Tests for module 'logb-ieee'.
[gnulib.git] / ChangeLog
1 2012-04-03  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'logb-ieee'.
4         * modules/logb-ieee-tests: New file.
5         * tests/test-logb-ieee.c: New file.
6
7         New module 'logb-ieee'.
8         * modules/logb-ieee: New file.
9
10         Tests for module 'logbf-ieee'.
11         * modules/logbf-ieee-tests: New file.
12         * tests/test-logbf-ieee.c: New file.
13         * tests/test-logb-ieee.h: New file.
14
15         New module 'logbf-ieee'.
16         * modules/logbf-ieee: New file.
17
18 2012-04-03  Bruno Haible  <bruno@clisp.org>
19
20         Tests for module 'logbl'.
21         * modules/logbl-tests: New file.
22         * tests/test-logbl.c: New file.
23
24         New module 'logbl'.
25         * lib/math.in.h (logbl): New declaration.
26         * lib/logbl.c: New file.
27         * m4/logbl.m4: New file.
28         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
29         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
30         REPLACE_LOGBL.
31         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
32         REPLACE_LOGBL.
33         * modules/logbl: New file.
34         * tests/test-math-c++.cc: Check the declaration of logbl.
35         * doc/posix-functions/logbl.texi: Mention the new module.
36
37 2012-04-02  Bruno Haible  <bruno@clisp.org>
38
39         Tests for module 'logbf'.
40         * modules/logbf-tests: New file.
41         * tests/test-logbf.c: New file.
42
43         New module 'logbf'.
44         * lib/math.in.h (logbf): New declaration.
45         * lib/logbf.c: New file.
46         * m4/logbf.m4: New file.
47         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
48         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
49         REPLACE_LOGBF.
50         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
51         REPLACE_LOGBF.
52         * modules/logbf: New file.
53         * tests/test-math-c++.cc: Check the declaration of logbf.
54         * doc/posix-functions/logbf.texi: Mention the new module.
55
56 2012-04-02  Bruno Haible  <bruno@clisp.org>
57
58         logb tests: More tests.
59         * tests/test-logb.h: New file, based on tests/test-logb.c and
60         tests/test-frexp.h.
61         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
62         (main): Just invoke test_function.
63         * modules/logb-tests (Files): Add tests/test-logb.h,
64         tests/minus-zero.h, tests/randomd.c.
65         (Makefile.am): Add randomd.c to test_logb_SOURCES.
66
67         logb: Provide replacement and workarounds.
68         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
69         is 1.
70         * lib/logb.c: New file.
71         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
72         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
73         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
74         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
75         * modules/logb (Files): Add lib/logb.c.
76         (Depends-on): Add isfinite, frexp, isnand.
77         (configure.ac): Compile the replacement code logb.c if needed.
78         * tests/test-math-c++.cc: Check the declaration of logb.
79         * doc/posix-functions/logb.texi: Mention the replacement and the bug
80         with subnormal numbers.
81
82 2012-04-02  Bruno Haible  <bruno@clisp.org>
83
84         log10* tests: Speed up.
85         * tests/test-log10.h (test_function): Reduce amount of random numbers
86         to test.
87
88 2012-04-01  Bruno Haible  <bruno@clisp.org>
89
90         logf-ieee: Fix test whether logf works.
91         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
92
93 2012-04-01  Bruno Haible  <bruno@clisp.org>
94
95         log10l: Work around log10l-ieee test failure on IRIX 6.5.
96         * lib/log10l.c: Include <float.h>
97         (log10l): On IRIX, normalize the +Infinity value.
98         * modules/log10l (Depends-on): Add 'float'.
99         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
100         +Infinity.
101
102         log10f-ieee: Work around test failure on NetBSD 5.1.
103         * m4/log10f-ieee.m4: New file.
104         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
105         test whether log10f works with a negative argument. Replace it if not.
106         * lib/log10f.c (log10f): For negative arguments, return NaN.
107         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
108         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
109         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
110
111         log10f-ieee: Work around test failure on Solaris 9.
112         * modules/log10f-ieee (Depends-on): Add log10-ieee.
113         (configure.ac): Require gl_FUNC_LOG10F.
114
115         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
116         * m4/log10-ieee.m4: New file.
117         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
118         whether log10 works with a negative argument. Replace it if not.
119         * lib/log10.c (log10): For negative arguments, return NaN.
120         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
121         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
122         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
123
124         Tests for module 'log10l-ieee'.
125         * modules/log10l-ieee-tests: New file.
126         * tests/test-log10l-ieee.c: New file.
127
128         New module 'log10l-ieee'.
129         * modules/log10l-ieee: New file.
130
131         Tests for module 'log10-ieee'.
132         * modules/log10-ieee-tests: New file.
133         * tests/test-log10-ieee.c: New file.
134
135         New module 'log10-ieee'.
136         * modules/log10-ieee: New file.
137
138         Tests for module 'log10f-ieee'.
139         * modules/log10f-ieee-tests: New file.
140         * tests/test-log10f-ieee.c: New file.
141         * tests/test-log10-ieee.h: New file.
142
143         New module 'log10f-ieee'.
144         * modules/log10f-ieee: New file.
145
146 2012-04-01  Bruno Haible  <bruno@clisp.org>
147
148         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
149         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
150         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
151         workaround.
152         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
153         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
154         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
155         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
156         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
157         (Depends-on): Update conditions.
158         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
159         IRIX 6.5, OSF/1 5.1 problems.
160
161 2012-04-01  Bruno Haible  <bruno@clisp.org>
162
163         log10f: Work around OSF/1 5.1 bug.
164         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
165         * lib/log10f.c (log10f): If logf exists, use it and provide just the
166         workaround.
167         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
168         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
170         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
171         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
172         (Depends-on): Update conditions.
173         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
174
175 2012-04-01  Bruno Haible  <bruno@clisp.org>
176
177         log10: Work around OSF/1 5.1 bug.
178         * lib/math.in.h (log10): New declaration.
179         * lib/log10.c: New file.
180         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
181         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
182         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
183         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
184         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
185         * modules/log10 (Files): Add lib/log10.c.
186         (Depends-on): Add math.
187         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
188         * tests/test-math-c++.cc: Check the declaration of log10.
189         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
190
191 2012-03-31  Bruno Haible  <bruno@clisp.org>
192
193         log10l tests: More tests.
194         * modules/log10l-tests (Files): Add tests/test-log10l.h,
195         tests/minus-zero.h, tests/randoml.c.
196         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
197         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
198         (main): Invoke test_function.
199
200         log10f tests: More tests.
201         * modules/log10f-tests (Files): Add tests/test-log10.h,
202         tests/minus-zero.h, tests/randomf.c.
203         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
204         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
205         (main): Invoke test_function.
206
207         log10 tests: More tests.
208         * tests/test-log10.h: New file.
209         * modules/log10-tests (Files): Add tests/test-log10.h,
210         tests/minus-zero.h, tests/randomd.c.
211         (Makefile.am): Add randomd.c to test_log10_SOURCES.
212         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
213         (main): Invoke test_function.
214
215 2012-03-31  Simon Josefsson  <simon@josefsson.org>
216
217         fflush: Fix syntax error.
218         * lib/fflush.c: Include unused-parameter.h, needed for
219         _GL_UNUSED_PARAMETER.
220         * modules/fflush (Depends-on): Add snippet/unused-parameter.
221
222 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
223
224         regex: pacify GCC when compiling GRUB
225         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
226         a diagnostic.  Reported by Vladimir Serbinenko in
227         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
228
229 2012-03-29  Eric Blake  <eblake@redhat.com>
230
231         stdio: don't assume gets any more
232         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
233         support.
234         * modules/stdio (Makefile.am): Likewise.
235         * lib/stdio-read.c (gets): Likewise.
236         * tests/test-stdio-c++.cc: Likewise.
237         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
238         * lib/stdio.in.h (gets): Make warning occur in more places.
239         * doc/posix-functions/gets.texi (gets): Update documentation.
240         Reported by Christer Solskogen.
241
242         maint.mk: fix syntax checks without exclusions
243         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
244         Reported by Daniel P. Berrange.
245
246         strerror_r: avoid compiler warning
247         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
248         level.
249
250         fflush: avoid compiler warning
251         * lib/fflush.c (update_fpos_cache): Mark variables that are
252         potentially unused.
253
254 2012-03-25  Bruno Haible  <bruno@clisp.org>
255
256         Tests for module 'localeconv'.
257         * modules/localeconv-tests: New file.
258         * tests/test-localeconv.c: New file.
259
260         New module 'localeconv'.
261         * lib/locale.in.h (localeconv): New declaration.
262         * lib/localeconv.c: New file.
263         * m4/localeconv.m4: New file.
264         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
265         REPLACE_LOCALECONV.
266         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
267         REPLACE_LOCALECONV.
268         * modules/localeconv: New file.
269         * modules/nl_langinfo (Depends-on): Add localeconv.
270         * modules/human (Depends-on): Likewise.
271         * doc/posix-functions/localeconv.texi: Mention the new module.
272
273 2012-03-25  Bruno Haible  <bruno@clisp.org>
274
275         locale: Provide a complete 'struct lconv'.
276         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
277         'struct lconv' does not contain int_p_cs_precedes.
278         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
279         * doc/posix-headers/locale.texi: Update.
280
281         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
282         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
283         * doc/posix-headers/locale.texi: Update.
284
285         locale: Provide a working 'struct lconv'.
286         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
287         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
288         'struct lconv' does not even contain decimal_point.
289         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
290         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
291         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
292         * doc/posix-headers/locale.texi: Mention the problems with
293         'struct lconv'.
294         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
295
296 2012-03-24  Bruno Haible  <bruno@clisp.org>
297
298         Enable common subexpression optimization in GCC.
299         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
300         macros.
301         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
302         GCC attribute 'const'.
303         (uc_locale_language): Declare with GCC attribute 'pure'.
304         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
305         with GCC attribute 'const'.
306         * lib/unictype.in.h (uc_is_general_category_withtable,
307         uc_combining_class, uc_combining_class_name,
308         uc_combining_class_long_name, uc_bidi_class_name,
309         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
310         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
311         uc_decimal_value, uc_digit_value, uc_numeric_value,
312         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
313         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
314         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
315         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
316         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
317         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
318         Declare with GCC attribute 'const'.
319         (uc_general_category_name, uc_general_category_long_name,
320         uc_general_category_byname, uc_general_category,
321         uc_is_general_category, uc_combining_class_byname,
322         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
323         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
324         Declare with GCC attribute 'pure'.
325         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
326         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
327         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
328         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
329         with GCC attribute 'pure'.
330         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
331         'const'.
332         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
333         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
334         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
335         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
336         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
337         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
338         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
339         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
340         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
341         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
342         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
343         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
344         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
345         GCC attribute 'pure'.
346         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
347         'const'.
348         * lib/uniwidth.in.h (uc_width): Simplify declaration.
349         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
350         u32_strwidth): Declare with GCC attribute 'pure'.
351
352         Enable common subexpression optimization in GCC.
353         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
354         (alphasort): Declare with GCC attribute 'pure'.
355         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
356         (atoll): Declare with GCC attribute 'pure'.
357         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
358         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
359         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
360         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
361         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
362         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
363         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
364
365 2012-03-24  Bruno Haible  <bruno@clisp.org>
366
367         gnulib-tool: Avoid unintended error output from 'cmp'.
368         * gnulib-tool (func_add_file, func_update_file, func_import): Use
369         "cmp -s", not "cmp > /dev/null".
370
371 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
372
373         gnulib-tool: fix imprecise comments w.r.t. an automake bug
374
375         It's not just Automake versions < 1.9b that creates an empty
376         pkgdatadir at installation time if pkgdata_DATA is specified
377         to empty; modern automake versions do this as well, at least
378         until automake 1.11.4 (not yet released at the moment of writing,
379         but soon to appear).  That behaviour was generally considered a
380         feature rather than a bug, at least until this discussion:
381         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
382
383         See also automake bugs #10997 and #11030.
384
385         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
386         reference to relevant automake bug numbers.
387         (func_emit_tests_Makefile_am): Likewise.
388
389 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
390
391         announce-gen: use Digest::SHA when possible
392         * build-aux/announce-gen: Use Digest::SHA when possible, falling
393         back to Digest::SHA1 if necessary.
394
395 2012-03-20  Jim Meyering  <meyering@redhat.com>
396
397         tests: avoid gcc warnings about argv vs. const initializers
398         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
399         warnings about discarding 'const' qualifier from pointer target type.
400         * tests/test-posix_spawn2.c (main): Likewise.
401
402 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
403
404         README-release: simplify slightly
405         * top/README-release: Run "git checkout master" only once.
406
407 2012-03-15  Mark Wielaard  <mark@klomp.org>
408
409         git-merge-changelog: add specific example on how to use with hg.
410         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
411
412 2012-03-18  Mark Wielaard  <mark@klomp.org>
413
414         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
415
416 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
417
418         git-version-gen: don't let "prefix" envvar cause trouble
419         * build-aux/git-version-gen (prefix): Initialize properly,
420         so as not to use a value specified via the environment.
421         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
422
423 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
424
425         regex: diagnose too-large repeat counts in EREs
426         Previously, the code did not diagnose the too-large repeat count
427         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
428         as if it were 'b\{1000000000}', which is unexpected.
429         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
430         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
431         is a reasonable one for this problem.  Another option would be to
432         create a new REG_OVERFLOW error for repeat counts that are too large.
433         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
434         count is too large, so that the caller can distinguish the two cases.
435         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
436         "Too large" return code, and that repeat counts are one example of this.
437
438 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
439
440         doc: some glibc x32 integer width issues
441         * doc/posix-headers/sys_types.texi (sys/types.h):
442         * doc/posix-headers/time.texi (time.h):
443         Mention that glibc x32 does not conform to POSIX in a couple of
444         areas related to integer widths.
445
446 2012-03-15  Bruno Haible  <bruno@clisp.org>
447
448         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
449         * lib/fma.c (VOLATILE): New macro.
450         (FUNC): Use it to work around a GCC compiler bug.
451
452 2012-03-13  Bruno Haible  <bruno@clisp.org>
453
454         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
455         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
456         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
457         REPLACE_HYPOTL to 1.
458         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
459
460 2012-03-13  Bruno Haible  <bruno@clisp.org>
461
462         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
463         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
464         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
465         REPLACE_REMAINDERL to 1.
466         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
467         bug.
468
469 2012-03-13  Bruno Haible  <bruno@clisp.org>
470
471         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
472         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
473         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
474         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
475         too big rounding errors.
476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
477         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
478         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
479         (Depends-on): Update conditions.
480         * tests/test-sqrtl.c (my_ldexpl): New function.
481         (main): Add test of a particular value.
482         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
483
484 2012-03-13  Pádraig Brady  <P@draigBrady.com>
485
486         doc: Update timer_* platform portability notes.
487         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
488         that always return ENOSYS.
489         * doc/posix-functions/timer_delete.texi: Likewise.
490         * doc/posix-functions/timer_gettime.texi: Likewise.
491         * doc/posix-functions/timer_settime.texi: Likewise.
492
493 2012-03-13  Bruno Haible  <bruno@clisp.org>
494
495         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
496         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
497         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
498         REPLACE_CBRTL to 1.
499         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
500
501 2012-03-13  Bruno Haible  <bruno@clisp.org>
502
503         remainderl: Avoid compilation error on AIX >= 5.2.
504         * lib/math.in.h (remainderl): Undefine macro from the system header.
505
506 2012-03-13  Bruno Haible  <bruno@clisp.org>
507
508         Avoid compilation errors with MSVC option -fp:strict.
509         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
510         * lib/cbrtf.c: Likewise.
511         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
512
513 2012-03-12  Bruno Haible  <bruno@clisp.org>
514
515         uninorm: Don't crash in out-of-memory conditions.
516         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
517         gracefully.
518         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
519         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
520
521 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
522
523         quote: fix syntax-check
524         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
525         also exports quote_quoting_options.
526
527 2012-03-12  Simon Josefsson  <simon@josefsson.org>
528
529         Collapse list of copyright years to ranges.  See
530         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
531         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
532         build-aux/csharpexec.sh.in, build-aux/gnupload,
533         build-aux/install-reloc, build-aux/javacomp.sh.in,
534         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
535         build-aux/move-if-change, build-aux/reloc-ldflags,
536         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
537
538 2012-03-11  Bruno Haible  <bruno@clisp.org>
539
540         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
541         * m4/log2f-ieee.m4: New file.
542         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
543         whether log2f works with a minus zero argument. Replace it if not.
544         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
545         (Depends-on): Add log2-ieee.
546         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
547         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
548
549         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
550         * m4/log2-ieee.m4: New file.
551         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
552         whether log2 works with a minus zero argument. Replace it if not.
553         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
554         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
555         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
556
557         Tests for module 'log2l-ieee'.
558         * modules/log2l-ieee-tests: New file.
559         * tests/test-log2l-ieee.c: New file.
560
561         New module 'log2l-ieee'.
562         * modules/log2l-ieee: New file.
563
564         Tests for module 'log2-ieee'.
565         * modules/log2-ieee-tests: New file.
566         * tests/test-log2-ieee.c: New file.
567
568         New module 'log2-ieee'.
569         * modules/log2-ieee: New file.
570
571         Tests for module 'log2f-ieee'.
572         * modules/log2f-ieee-tests: New file.
573         * tests/test-log2f-ieee.c: New file.
574         * tests/test-log2-ieee.h: New file.
575
576         New module 'log2f-ieee'.
577         * modules/log2f-ieee: New file.
578
579 2012-03-11  Bruno Haible  <bruno@clisp.org>
580
581         Tests for module 'log2l'.
582         * modules/log2l-tests: New file.
583         * tests/test-log2l.c: New file.
584
585         New module 'log2l'.
586         * lib/math.in.h (log2l): New declaration.
587         * lib/log2l.c: New file.
588         * m4/log2l.m4: New file.
589         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
590         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
591         REPLACE_LOG2L.
592         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
593         REPLACE_LOG2L.
594         * modules/log2l: New file.
595         * tests/test-math-c++.cc: Check the declaration of log2l.
596         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
597         and OSF/1 problems.
598
599 2012-03-11  Bruno Haible  <bruno@clisp.org>
600
601         Tests for module 'log2f'.
602         * modules/log2f-tests: New file.
603         * tests/test-log2f.c: New file.
604
605         New module 'log2f'.
606         * lib/math.in.h (log2f): New declaration.
607         * lib/log2f.c: New file.
608         * m4/log2f.m4: New file.
609         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
610         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
611         REPLACE_LOG2F.
612         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
613         REPLACE_LOG2F.
614         * modules/log2f: New file.
615         * tests/test-math-c++.cc: Check the declaration of log2f.
616         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
617         and OSF/1 and Cygwin problems.
618
619 2012-03-11  Bruno Haible  <bruno@clisp.org>
620
621         Tests for module 'log2'.
622         * modules/log2-tests: New file.
623         * tests/test-log2.c: New file.
624         * tests/test-log2.h: New file.
625
626         New module 'log2'.
627         * lib/math.in.h (log2): New declaration.
628         * lib/log2.c: New file.
629         * m4/log2.m4: New file.
630         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
631         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
632         REPLACE_LOG2.
633         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
634         REPLACE_LOG2.
635         * modules/log2: New file.
636         * tests/test-math-c++.cc: Check the declaration of log2.
637         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
638         and OSF/1 and Cygwin problems.
639
640 2012-03-11  Bruno Haible  <bruno@clisp.org>
641
642         exp2* tests: More tests.
643         * tests/test-exp2.h (test_function): Test all integral arguments that
644         don't need to overflow or denormalized numbers.
645         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
646         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
647         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
648
649 2012-03-10  Bruno Haible  <bruno@clisp.org>
650
651         log1pl-ieee: Work around test failure on AIX 7.1.
652         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
653
654         log1pl-ieee: Work around test failure on IRIX 6.5.
655         * m4/log1pl-ieee.m4: New file.
656         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
657         test whether log1pl works with a minus zero argument. Replace it if
658         not.
659         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
660         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
661         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
662         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
663         (Depends-on): Update conditions.
664         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
665         m4/signbit.m4.
666         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
667         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
668
669         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
670         * m4/log1pf-ieee.m4: New file.
671         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
672         test whether log1pf works with a minus zero argument. Replace it if
673         not.
674         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
675         m4/signbit.m4.
676         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
677         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
678
679         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
680         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
681         (configure.ac): Require gl_FUNC_LOG1PF.
682
683         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
684         * m4/log1p-ieee.m4: New file.
685         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
686         whether log1p works with a minus zero argument. Replace it if not.
687         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
688         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
689         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
690         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
691         (Depends-on): Update conditions.
692         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
693         m4/signbit.m4.
694         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
695         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
696
697         Tests for module 'log1pl-ieee'.
698         * modules/log1pl-ieee-tests: New file.
699         * tests/test-log1pl-ieee.c: New file.
700
701         New module 'log1pl-ieee'.
702         * modules/log1pl-ieee: New file.
703
704         Tests for module 'log1p-ieee'.
705         * modules/log1p-ieee-tests: New file.
706         * tests/test-log1p-ieee.c: New file.
707
708         New module 'log1p-ieee'.
709         * modules/log1p-ieee: New file.
710
711         Tests for module 'log1pf-ieee'.
712         * modules/log1pf-ieee-tests: New file.
713         * tests/test-log1pf-ieee.c: New file.
714         * tests/test-log1p-ieee.h: New file.
715
716         New module 'log1pf-ieee'.
717         * modules/log1pf-ieee: New file.
718
719 2012-03-10  Bruno Haible  <bruno@clisp.org>
720
721         Tests for module 'log1pl'.
722         * modules/log1pl-tests: New file.
723         * tests/test-log1pl.c: New file.
724
725         New module 'log1pl'.
726         * lib/math.in.h (log1pl): New declaration.
727         * lib/log1pl.c: New file.
728         * m4/log1pl.m4: New file.
729         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
730         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
731         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
732         * modules/log1pl: New file.
733         * tests/test-math-c++.cc: Check the declaration of log1pl.
734         * doc/posix-functions/log1pl.texi: Mention the new module.
735
736 2012-03-10  Bruno Haible  <bruno@clisp.org>
737
738         Tests for module 'log1pf'.
739         * modules/log1pf-tests: New file.
740         * tests/test-log1pf.c: New file.
741
742         New module 'log1pf'.
743         * lib/math.in.h (log1pf): New declaration.
744         * lib/log1pf.c: New file.
745         * m4/log1pf.m4: New file.
746         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
747         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
748         REPLACE_LOG1PF.
749         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
750         REPLACE_LOG1PF.
751         * modules/log1pf: New file.
752         * tests/test-math-c++.cc: Check the declaration of log1pf.
753         * doc/posix-functions/log1pf.texi: Mention the new module.
754
755 2012-03-10  Bruno Haible  <bruno@clisp.org>
756
757         log1p tests: More tests.
758         * tests/test-log1p.h: New file.
759         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
760         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
761         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
762         (main): Invoke test_function.
763
764         log1p: Provide replacement for Minix and MSVC.
765         * lib/math.in.h (log1p): New declaration.
766         * lib/log1p.c: New file.
767         * m4/log1p.m4: New file.
768         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
769         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
770         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
771         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
772         (Depends-on): Add math, isnand, log, round.
773         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
774         HAVE_LOG1P is 0.
775         * tests/test-math-c++.cc: Check the declaration of log1p.
776         * doc/posix-functions/log1p.texi: Mention the replacement.
777
778 2012-03-10  Bruno Haible  <bruno@clisp.org>
779
780         math tests: Small simplification.
781         * tests/test-exp.h (test_function): Use the same err_bound for
782         'double' on platforms with sizeof (long double) == sizeof (double)
783         than on platforms with sizeof (long double) > sizeof (double).
784         * tests/test-exp2.h (test_function): Likewise.
785         * tests/test-expm1.h (test_function): Likewise.
786         * tests/test-log.h (test_function): Likewise.
787
788 2012-03-10  Bruno Haible  <bruno@clisp.org>
789
790         Fix some comments.
791         * lib/expl.c: Fix an ambiguous comment.
792         * lib/expm1.c: Likewise.
793         * lib/expm1l.c: Likewise.
794         * lib/exp2.c: Likewise.
795         * lib/exp2l.c: Likewise.
796
797 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
798
799         regex: allow inclusion of <regex.h> before <limits.h>
800         Without this patch, portable programs had to include <limits.h> before
801         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
802         I ran into this problem with a test version of GNU grep on Solaris 8.
803         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
804         This is done conditionally so that this change can be merged
805         back to glibc.
806         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
807         using the included regex.
808
809         fts: depend on fdopendir
810         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
811         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
812         problem was introduced when fdopendir was split out.
813
814 2012-03-10  Bruno Haible  <bruno@clisp.org>
815
816         Remove unused variables.
817         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
818         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
819
820 2012-03-10  Bruno Haible  <bruno@clisp.org>
821
822         isnanf-nolibm: Fix last commit.
823         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
824
825         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
826         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
827
828 2012-03-10  Bruno Haible  <bruno@clisp.org>
829
830         logf-ieee: Work around test failure on NetBSD 5.1.
831         * m4/logf-ieee.m4: New file.
832         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
833         whether logf works with a negative argument. Replace it if not.
834         * lib/logf.c (logf): For negative arguments, return NaN.
835         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
836         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
837         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
838
839         logf-ieee: Work around test failure on Solaris 9.
840         * modules/logf-ieee (Depends-on): Add log-ieee.
841         (configure.ac): Require gl_FUNC_LOGF.
842
843         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
844         * m4/log-ieee.m4: New file.
845         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
846         log works with a negative argument. Replace it if not.
847         * lib/log.c (log): For negative arguments, return NaN.
848         * modules/log-ieee (Files): Add m4/log-ieee.m4.
849         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
850         * doc/posix-functions/log.texi: Mention the log-ieee module.
851
852         Tests for module 'logl-ieee'.
853         * modules/logl-ieee-tests: New file.
854         * tests/test-logl-ieee.c: New file.
855
856         New module 'logl-ieee'.
857         * modules/logl-ieee: New file.
858
859         Tests for module 'log-ieee'.
860         * modules/log-ieee-tests: New file.
861         * tests/test-log-ieee.c: New file.
862
863         New module 'log-ieee'.
864         * modules/log-ieee: New file.
865
866         Tests for module 'logf-ieee'.
867         * modules/logf-ieee-tests: New file.
868         * tests/test-logf-ieee.c: New file.
869         * tests/test-log-ieee.h: New file.
870
871         New module 'logf-ieee'.
872         * modules/logf-ieee: New file.
873
874 2012-03-10  Bruno Haible  <bruno@clisp.org>
875
876         log: Fix bug introduced on 2012-03-09.
877         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
878
879 2012-03-10  Pádraig Brady  <P@draigBrady.com>
880
881         timer-time: link explicitly with pthreads on glibc
882         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
883         to support static linking, when newer glibc is
884         detected, as that contains pthread emulation of
885         POSIX timer functions where required.
886         * modules/timer-time: Depend on threadlib to
887         pull in the appropriate library to link.
888
889 2012-03-10  Bruno Haible  <bruno@clisp.org>
890
891         log* tests: More tests.
892         * tests/test-log.h: New file.
893         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
894         (main): Invoke test_function.
895         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
896         (main): Invoke test_function.
897         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
898         (main): Invoke test_function.
899         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
900         tests/randomd.c.
901         (Makefile.am): Add randomd.c to test_log_SOURCES.
902         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
903         tests/randomf.c.
904         (Makefile.am): Add randomf.c to test_logf_SOURCES.
905         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
906         tests/randoml.c.
907         (Depends-on): Add 'float'.
908         (Makefile.am): Add randoml.c to test_logl_SOURCES.
909
910 2012-03-09  Bruno Haible  <bruno@clisp.org>
911
912         logl: Work around OSF/1 5.1 bug.
913         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
914         * lib/logl.c (logl): If logl exists, use it and provide just the
915         workaround.
916         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
917         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
918         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
919         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
920         * modules/logl (configure.ac): Consider REPLACE_LOGL.
921         (Depends-on): Update conditions.
922         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
923
924 2012-03-09  Bruno Haible  <bruno@clisp.org>
925
926         logf: Work around OSF/1 5.1 bug.
927         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
928         * lib/logf.c (logf): If logf exists, use it and provide just the
929         workaround.
930         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
931         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
932         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
933         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
934         * modules/logf (configure.ac): Consider REPLACE_LOGF.
935         (Depends-on): Update conditions.
936         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
937
938 2012-03-09  Bruno Haible  <bruno@clisp.org>
939
940         log: Work around OSF/1 5.1 bug.
941         * lib/math.in.h (log): New declaration.
942         * lib/log.c: New file.
943         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
944         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
945         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
946         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
947         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
948         * modules/log (Files): Add lib/log.c.
949         (Depends-on): Add math.
950         (configure.ac): If REPLACE_LOG is 1, compile an override.
951         * tests/test-math-c++.cc: Check the declaration of log.
952         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
953
954 2012-03-09  Jim Meyering  <meyering@redhat.com>
955
956         readtokens.c: adjust wording in a comment
957         * lib/readtokens.c: Insert omitted "that" in a comment.
958
959 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
960
961         modechange: add notations +40, 00440, etc.
962         * lib/modechange.c (mode_compile): Support new notations
963         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
964
965 2012-03-08  Bruno Haible  <bruno@clisp.org>
966
967         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
968         * m4/exp2l-ieee.m4: New file.
969         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
970         test whether exp2l works with a NaN argument and with a negative
971         infinity argument. Replace it if not.
972         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
973         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
974         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
975         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
976         (Depends-on): Update conditions.
977         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
978         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
979         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
980
981         Tests for module 'exp2l-ieee'.
982         * modules/exp2l-ieee-tests: New file.
983         * tests/test-exp2l-ieee.c: New file.
984
985         New module 'exp2l-ieee'.
986         * modules/exp2l-ieee: New file.
987
988         Tests for module 'exp2-ieee'.
989         * modules/exp2-ieee-tests: New file.
990         * tests/test-exp2-ieee.c: New file.
991
992         New module 'exp2-ieee'.
993         * modules/exp2-ieee: New file.
994
995         Tests for module 'exp2f-ieee'.
996         * modules/exp2f-ieee-tests: New file.
997         * tests/test-exp2f-ieee.c: New file.
998         * tests/test-exp2-ieee.h: New file.
999
1000         New module 'exp2f-ieee'.
1001         * modules/exp2f-ieee: New file.
1002
1003 2012-03-08  Bruno Haible  <bruno@clisp.org>
1004
1005         Tests for module 'exp2l'.
1006         * modules/exp2l-tests: New file.
1007         * tests/test-exp2l.c: New file.
1008
1009         New module 'exp2l'.
1010         * lib/math.in.h (exp2l): New declaration.
1011         * lib/exp2l.c: New file.
1012         * lib/expl-table.c: New file, extracted from lib/expl.c.
1013         * lib/expl.c (gl_expl_table): New declaration.
1014         (expl): Remove expl_table. Update reference.
1015         * m4/exp2l.m4: New file.
1016         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1017         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1018         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1019         * modules/exp2l: New file.
1020         * modules/expl (Files): Add lib/expl-table.c.
1021         (configure.ac): Compile also expl-table.c.
1022         * tests/test-math-c++.cc: Check the declaration of exp2l.
1023         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1024         problem.
1025
1026 2012-03-08  Bruno Haible  <bruno@clisp.org>
1027
1028         Tests for module 'exp2f'.
1029         * modules/exp2f-tests: New file.
1030         * tests/test-exp2f.c: New file.
1031
1032         New module 'exp2f'.
1033         * lib/math.in.h (exp2f): New declaration.
1034         * lib/exp2f.c: New file.
1035         * m4/exp2f.m4: New file.
1036         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1037         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1038         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1039         * modules/exp2f: New file.
1040         * tests/test-math-c++.cc: Check the declaration of exp2f.
1041         * doc/posix-functions/exp2f.texi: Mention the new module and the
1042         IRIX problem.
1043
1044 2012-03-08  Bruno Haible  <bruno@clisp.org>
1045
1046         Tests for module 'exp2'.
1047         * modules/exp2-tests: New file.
1048         * tests/test-exp2.c: New file.
1049         * tests/test-exp2.h: New file.
1050
1051         New module 'exp2'.
1052         * lib/math.in.h (exp2): New declaration.
1053         * lib/exp2.c: New file.
1054         * m4/exp2.m4: New file.
1055         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1056         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1057         REPLACE_EXP2.
1058         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1059         REPLACE_EXP2.
1060         * modules/exp2: New file.
1061         * tests/test-math-c++.cc: Check the declaration of exp2.
1062         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1063         and OpenBSD problems.
1064
1065 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1066
1067         savedir: fix comment typo
1068         * lib/savedir.c (savedirstream): Fix typo in comment.
1069
1070 2012-03-08  Bruno Haible  <bruno@clisp.org>
1071
1072         test-readtokens.c: use const; remove unwarranted cast
1073         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1074
1075 2012-03-08  Bruno Haible  <bruno@clisp.org>
1076
1077         fmal: Avoid compilation error on AIX.
1078         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1079         AIX 5.2..7.1.
1080
1081 2012-03-08  Bruno Haible  <bruno@clisp.org>
1082
1083         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1084         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1085         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1086         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1087         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1088         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1089         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1090
1091 2012-03-08  Bruno Haible  <bruno@clisp.org>
1092
1093         remainderf: Override buggy system function on IRIX 6.5.
1094         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1095         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1096         when it exists.
1097         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1098
1099 2012-03-08  Jim Meyering  <meyering@redhat.com>
1100
1101         test-readtokens.c: avoid const-related compilation warnings
1102         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1103
1104 2012-03-07  Jim Meyering  <meyering@redhat.com>
1105             Bruno Haible  <bruno@clisp.org>
1106
1107         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1108         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1109         tests/randomd.c.
1110         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1111         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1112         tests/randoml.c.
1113         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1114
1115 2012-03-07  Bruno Haible  <bruno@clisp.org>
1116
1117         expm1l: Avoid compilation error on AIX.
1118         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1119         AIX 5.2..7.1.
1120
1121 2012-03-07  Bruno Haible  <bruno@clisp.org>
1122
1123         expm1l: Don't override undeclared system function on IRIX 6.5.
1124         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1125         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1126         it exists. Set HAVE_DECL_EXPM1L.
1127         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1128         HAVE_EXPM1L.
1129         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1130         HAVE_EXPM1L.
1131         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1132
1133 2012-03-07  Bruno Haible  <bruno@clisp.org>
1134
1135         remainderl: Don't override undeclared system function on IRIX 6.5.
1136         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1137         HAVE_REMAINDERL.
1138         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1139         declared when it exists. Set HAVE_DECL_REMAINDERL.
1140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1141         not HAVE_REMAINDERL.
1142         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1143         HAVE_REMAINDERL.
1144         * doc/posix-functions/remainderl.texi: Mention missing declaration
1145         problem.
1146
1147 2012-03-07  Bruno Haible  <bruno@clisp.org>
1148
1149         rintf: Don't override undeclared system function on IRIX 6.5.
1150         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1151         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1152         exists. Set HAVE_DECL_RINTF.
1153         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1154         HAVE_RINTF.
1155         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1156         HAVE_RINTF.
1157         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1158
1159 2012-03-07  Bruno Haible  <bruno@clisp.org>
1160
1161         roundl: Avoid compilation error on AIX.
1162         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1163         AIX 5.2..7.1.
1164
1165 2012-03-07  Bruno Haible  <bruno@clisp.org>
1166
1167         roundl: Don't override undeclared system function on IRIX 6.5.
1168         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1169         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1170         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1171         * modules/roundl (configure.ac): For replacement code, test
1172         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1173         (Depends-on): Update conditions.
1174         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1175
1176 2012-03-07  Bruno Haible  <bruno@clisp.org>
1177
1178         roundf: Don't override undeclared system function on IRIX 6.5.
1179         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1180         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1181         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1182         * modules/roundf (configure.ac): For replacement code, test
1183         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1184         (Depends-on): Update conditions.
1185         * modules/roundf-ieee (Depends-on): Update conditions.
1186         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1187
1188 2012-03-07  Bruno Haible  <bruno@clisp.org>
1189
1190         round: Don't override undeclared system function on IRIX 6.5.
1191         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1192         argument.
1193         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1194         also when it is not declared. Set HAVE_ROUND. For replacement code,
1195         test HAVE_ROUND, not HAVE_DECL_ROUND.
1196         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1197         not HAVE_DECL_ROUND.
1198         (Depends-on): Update conditions.
1199         * modules/round-ieee (Depends-on): Update conditions.
1200         * doc/posix-functions/round.texi: Mention the IRIX problem.
1201
1202 2012-03-07  Bruno Haible  <bruno@clisp.org>
1203
1204         copysignf: Don't override undeclared system function on IRIX 6.5.
1205         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1206         HAVE_COPYSIGNF.
1207         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1208         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1209         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1210         not HAVE_COPYSIGNF.
1211         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1212         HAVE_COPYSIGNF.
1213         * doc/posix-functions/copysignf.texi: Mention missing declaration
1214         problem.
1215
1216 2012-03-07  Jim Meyering  <meyering@redhat.com>
1217
1218         readtokens: add tests
1219         * modules/readtokens-tests: New file.
1220         * tests/test-readtokens.c: New file.
1221
1222 2012-03-07  Jim Meyering  <meyering@redhat.com>
1223
1224         quotearg: the module must now include quote.h
1225         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1226         So must the module.
1227         * modules/quotearg (Files): Add quote.h.
1228
1229 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1230
1231         readtokens: avoid core dumps with unusual calling patterns
1232         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1233         * lib/readtokens.c: Include limits.h.
1234         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1235         (readtoken): Don't cache the delimiters; the cache code was buggy
1236         if !delim && saved_delim, or if the new n_delim differs from the old.
1237         Also, it wasn't thread-safe.
1238
1239 2012-03-07  Bruno Haible  <bruno@clisp.org>
1240
1241         quote: Adhere to common module description layout.
1242         * modules/quote (Makefile.am): Add back empty section.
1243
1244 2012-03-06  Akim Demaille  <demaille@gostai.com>
1245
1246         quote: fuse into quotearg
1247         This patch is made for the benefit of Bison.
1248         quote does not leave the choice of the quoting style to the user.
1249         quoting_style provides poor customizability, yet quoting_options,
1250         which is very rich, is hidden inside quotearg.c.  So in order to
1251         allow quote customization, move its implementation to quotearg.c.
1252         * lib/quote.c: Remove.
1253         * modules/quote: Adjust.
1254         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1255         warning: provide all the members of literal structs.
1256         (quote_quoting_options): New.
1257         (quote, quote_n): Import implementation from quote.c.
1258         * lib/quote.h: Import the comments from quote.c.
1259         (quote_quoting_options): New.
1260
1261 2012-03-06  Bruno Haible  <bruno@clisp.org>
1262
1263         Tests for module 'expm1l-ieee'.
1264         * modules/expm1l-ieee-tests: New file.
1265         * tests/test-expm1l-ieee.c: New file.
1266
1267         New module 'expm1l-ieee'.
1268         * modules/expm1l-ieee: New file.
1269
1270         Tests for module 'expm1f-ieee'.
1271         * modules/expm1f-ieee-tests: New file.
1272         * tests/test-expm1f-ieee.c: New file.
1273
1274         New module 'expm1f-ieee'.
1275         * modules/expm1f-ieee: New file.
1276
1277         Tests for module 'expm1-ieee'.
1278         * modules/expm1-ieee-tests: New file.
1279         * tests/test-expm1-ieee.c: New file.
1280         * tests/test-expm1-ieee.h: New file.
1281
1282         New module 'expm1-ieee'.
1283         * modules/expm1-ieee: New file.
1284         * m4/expm1-ieee.m4: New file.
1285         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1286         whether expm1 works with a minus zero argument. Replace it if not.
1287         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1288         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1289         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1290         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1291         (Depends-on): Update conditions.
1292         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1293         AIX problem.
1294
1295 2012-03-06  Bruno Haible  <bruno@clisp.org>
1296
1297         Work around expm1f bug on IRIX 6.5.
1298         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1299         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1300         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1301         not work.
1302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1303         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1304         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1305         (Depends-on): Update conditions.
1306         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1307
1308 2012-03-06  Bruno Haible  <bruno@clisp.org>
1309
1310         Tests for module 'expm1l'.
1311         * modules/expm1l-tests: New file.
1312         * tests/test-expm1l.c: New file.
1313
1314         New module 'expm1l'.
1315         * lib/math.in.h (expm1l): New declaration.
1316         * lib/expm1l.c: New file.
1317         * m4/expm1l.m4: New file.
1318         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1319         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
1320         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
1321         * modules/expm1l: New file.
1322         * tests/test-math-c++.cc: Check the declaration of expm1l.
1323         * doc/posix-functions/expm1l.texi: Mention the new module.
1324
1325 2012-03-06  Bruno Haible  <bruno@clisp.org>
1326
1327         Tests for module 'expm1f'.
1328         * modules/expm1f-tests: New file.
1329         * tests/test-expm1f.c: New file.
1330
1331         New module 'expm1f'.
1332         * lib/math.in.h (expm1f): New declaration.
1333         * lib/expm1f.c: New file.
1334         * m4/expm1f.m4: New file.
1335         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
1336         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
1337         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
1338         * modules/expm1f: New file.
1339         * tests/test-math-c++.cc: Check the declaration of expm1f.
1340         * doc/posix-functions/expm1f.texi: Mention the new module.
1341
1342 2012-03-06  Bruno Haible  <bruno@clisp.org>
1343
1344         Tests for module 'expm1'.
1345         * modules/expm1-tests: New file.
1346         * tests/test-expm1.c: New file.
1347         * tests/test-expm1.h: New file.
1348
1349         New module 'expm1'.
1350         * lib/math.in.h (expm1): New declaration.
1351         * lib/expm1.c: New file.
1352         * m4/expm1.m4: New file.
1353         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
1354         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
1355         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
1356         * modules/expm1: New file.
1357         * tests/test-math-c++.cc: Check the declaration of expm1.
1358         * doc/posix-functions/expm1.texi: Mention the new module.
1359
1360 2012-03-06  Bruno Haible  <bruno@clisp.org>
1361
1362         math: Ensure declarations of math functions.
1363         * modules/acosf (Depends-on): Add 'extensions'.
1364         * modules/asinf (Depends-on): Likewise.
1365         * modules/atan2f (Depends-on): Likewise.
1366         * modules/atanf (Depends-on): Likewise.
1367         * modules/cbrt (Depends-on): Likewise.
1368         * modules/cbrtf (Depends-on): Likewise.
1369         * modules/cbrtl (Depends-on): Likewise.
1370         * modules/copysignf (Depends-on): Likewise.
1371         * modules/copysignl (Depends-on): Likewise.
1372         * modules/cosf (Depends-on): Likewise.
1373         * modules/coshf (Depends-on): Likewise.
1374         * modules/expf (Depends-on): Likewise.
1375         * modules/fabsf (Depends-on): Likewise.
1376         * modules/fabsl (Depends-on): Likewise.
1377         * modules/fmaf (Depends-on): Likewise.
1378         * modules/fmal (Depends-on): Likewise.
1379         * modules/fmodf (Depends-on): Likewise.
1380         * modules/fmodl (Depends-on): Likewise.
1381         * modules/frexpf (Depends-on): Likewise.
1382         * modules/frexpl (Depends-on): Likewise.
1383         * modules/hypot (Depends-on): Likewise.
1384         * modules/hypotf (Depends-on): Likewise.
1385         * modules/hypotl (Depends-on): Likewise.
1386         * modules/ldexpf (Depends-on): Likewise.
1387         * modules/ldexpl (Depends-on): Likewise.
1388         * modules/log10f (Depends-on): Likewise.
1389         * modules/log10l (Depends-on): Likewise.
1390         * modules/log1p (Depends-on): Likewise.
1391         * modules/logb (Depends-on): Likewise.
1392         * modules/logf (Depends-on): Likewise.
1393         * modules/modff (Depends-on): Likewise.
1394         * modules/modfl (Depends-on): Likewise.
1395         * modules/powf (Depends-on): Likewise.
1396         * modules/remainderf (Depends-on): Likewise.
1397         * modules/remainderl (Depends-on): Likewise.
1398         * modules/rintf (Depends-on): Likewise.
1399         * modules/rintl (Depends-on): Likewise.
1400         * modules/sinf (Depends-on): Likewise.
1401         * modules/sinhf (Depends-on): Likewise.
1402         * modules/sqrtf (Depends-on): Likewise.
1403         * modules/tanf (Depends-on): Likewise.
1404         * modules/tanhf (Depends-on): Likewise.
1405         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
1406         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
1407         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
1408         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
1409         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
1410         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
1411         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
1412         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
1413         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
1414         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
1415         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
1416         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
1417         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
1418         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
1419         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
1420         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
1421         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1422         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1423         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
1424         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
1425         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1426         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
1427         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
1428         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
1429         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1430         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
1431         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
1432         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1433         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
1434         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1435         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1436         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
1437         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1438         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1439         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1440         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1441         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
1442         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
1443         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
1444         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
1445         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
1446
1447 2012-03-06  Bruno Haible  <bruno@clisp.org>
1448
1449         math: Update module names in warnings.
1450         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1451         tanl): Use specific module name in warn-on-use warning.
1452
1453 2012-03-06  Bruno Haible  <bruno@clisp.org>
1454
1455         expl: Simplify computation.
1456         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
1457
1458 2012-03-05  Bruno Haible  <bruno@clisp.org>
1459
1460         exp* tests: More tests.
1461         * tests/test-exp.h: New file.
1462         * tests/test-exp.c: Include <float.h> and test-exp.h.
1463         (main): Invoke test_function.
1464         * tests/test-expf.c: Include <float.h> and test-exp.h.
1465         (main): Invoke test_function.
1466         * tests/test-expl.c: Include <float.h> and test-exp.h.
1467         (main): Invoke test_function.
1468         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
1469         (Makefile.am): Add randomd.c to test_exp_SOURCES.
1470         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
1471         (Makefile.am): Add randomf.c to test_expf_SOURCES.
1472         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
1473         (Depends-on): Add 'float'.
1474         (Makefile.am): Add randoml.c to test_expl_SOURCES.
1475
1476         expl: Fix precision of computed result.
1477         * lib/expl.c: Completely rewritten.
1478         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
1479         (Maintainer): Add me.
1480         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
1481
1482 2012-03-05  Bruno Haible  <bruno@clisp.org>
1483
1484         cbrt* tests: More tests.
1485         * tests/test-cbrt.h: New file.
1486         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
1487         (main): Invoke test_function.
1488         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
1489         (main): Invoke test_function.
1490         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
1491         (main): Invoke test_function.
1492         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
1493         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
1494         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
1495         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
1496         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
1497         (Depends-on): Add 'float'.
1498         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
1499
1500 2012-03-05  Bruno Haible  <bruno@clisp.org>
1501
1502         hypot* tests: More tests.
1503         * tests/test-hypot.h: New file, partially extracted from
1504         tests/test-hypotl.c.
1505         * tests/test-hypot.c: Include test-hypot.h.
1506         (main): Invoke test_function.
1507         * tests/test-hypotf.c: Include test-hypot.h.
1508         (main): Invoke test_function.
1509         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1510         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1511         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1512         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1513         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1514         tests/randomf.c.
1515         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1516         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1517         tests/randoml.c.
1518         (Depends-on): Add 'fpucw', 'float'.
1519         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1520
1521 2012-03-05  Bruno Haible  <bruno@clisp.org>
1522
1523         fpucw: Doc about FreeBSD.
1524         * lib/fpucw.h: Mention FreeBSD in comments.
1525
1526 2012-03-04  Bruno Haible  <bruno@clisp.org>
1527
1528         sqrt* tests: More tests.
1529         * tests/test-sqrt.h: New file.
1530         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1531         (main): Invoke test_function.
1532         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1533         (main): Invoke test_function.
1534         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1535         (main): Invoke test_function.
1536         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1537         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1538         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1539         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1540         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1541         (Depends-on): Add 'float'.
1542         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1543
1544 2012-03-04  Bruno Haible  <bruno@clisp.org>
1545
1546         remainder* tests: More tests.
1547         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1548         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1549         (main): Invoke test_function.
1550         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1551         (main): Invoke test_function.
1552         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1553         (main): Invoke test_function.
1554         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1555         tests/randomd.c.
1556         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1557         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1558         tests/randomf.c.
1559         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1560         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1561         tests/randoml.c.
1562         (Depends-on): Add 'float'.
1563         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1564
1565 2012-03-04  Bruno Haible  <bruno@clisp.org>
1566
1567         remainder, remainderf, remainderl: Fix computation for large quotients.
1568         * lib/remainder.c: Completely rewritten.
1569         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1570         USE_FLOAT.
1571         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1572         USE_LONG_DOUBLE.
1573         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1574         isnand, isinf. Remove round, fma.
1575         * modules/remainderf (Files): Add lib/remainder.c.
1576         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1577         Remove roundf, fmaf.
1578         * modules/remainderl (Files): Add lib/remainder.c.
1579         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1580         isinf. Remove roundl, fmal.
1581         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1582         REMAINDER_LIBM.
1583         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1584         REMAINDERF_LIBM.
1585         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1586         REMAINDERL_LIBM.
1587
1588 2012-03-04  Bruno Haible  <bruno@clisp.org>
1589
1590         fmod* tests: More tests.
1591         * tests/test-fmod.h (my_ldexp): New function.
1592         (test_function): Reduce amount of random numbers to test. Add tests
1593         of very large quotients x / y.
1594         * tests/test-fmod.c (MAX_EXP): New macro.
1595         * tests/test-fmodf.c (MAX_EXP): Likewise.
1596         * tests/test-fmodl.c (MAX_EXP): Likewise.
1597
1598 2012-03-04  Bruno Haible  <bruno@clisp.org>
1599
1600         fmod, fmodl: Fix computation for large quotients x / y.
1601         * lib/fmod.c: Completely rewritten.
1602         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1603         USE_LONG_DOUBLE.
1604         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1605         isnand. Remove fma.
1606         * modules/fmodl (Files): Add lib/fmod.c.
1607         (Depends-on): Add float, isfinite, signbit, fabsl,
1608         frexpl, ldexpl, isnanl. Remove fma.
1609         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1610         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1611
1612 2012-03-03  Bruno Haible  <bruno@clisp.org>
1613
1614         fmod* tests: More tests.
1615         * tests/test-fmod.h: New file.
1616         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1617         (main): Invoke test_function.
1618         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1619         (main): Invoke test_function.
1620         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1621         (main): Invoke test_function.
1622         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1623         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1624         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1625         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1626         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1627         (Depends-on): Add 'float'.
1628         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1629
1630 2012-03-03  Bruno Haible  <bruno@clisp.org>
1631
1632         rint* tests: More tests.
1633         * tests/test-rint.h: New file, partially extracted from
1634         tests/test-rintl.c.
1635         * tests/test-rint.c: Include test-rint.h.
1636         (main): Invoke test_function.
1637         * tests/test-rintf.c: Include test-rint.h.
1638         (main): Invoke test_function.
1639         * tests/test-rintl.c: Include test-rint.h.
1640         (main): Invoke test_function.
1641         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1642         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1643         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1644         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1645         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1646         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1647
1648 2012-03-03  Bruno Haible  <bruno@clisp.org>
1649
1650         modf* tests: More tests.
1651         * tests/test-modf.h: New file.
1652         * tests/test-modf.c: Include <float.h> and test-modf.h.
1653         (main): Invoke test_function.
1654         * tests/test-modff.c: Include <float.h> and test-modf.h.
1655         (main): Invoke test_function.
1656         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1657         (main): Invoke test_function.
1658         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
1659         (Makefile.am): Add randomd.c to test_modf_SOURCES.
1660         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
1661         (Makefile.am): Add randomf.c to test_modff_SOURCES.
1662         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
1663         (Depends-on): Add 'float'.
1664         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
1665
1666 2012-03-03  Bruno Haible  <bruno@clisp.org>
1667
1668         fabs* tests: More tests.
1669         * tests/test-fabs.h: New file, partially extracted from
1670         tests/test-fabsl.c.
1671         * tests/test-fabs.c (RANDOM): New macro.
1672         * tests/test-fabsf.c (RANDOM): New macro.
1673         * tests/test-fabsl.c (RANDOM): New macro.
1674         * modules/fabs-tests (Files): Add tests/randomd.c.
1675         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
1676         * modules/fabsf-tests (Files): Add tests/randomf.c.
1677         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
1678         * modules/fabsl-tests (Files): Add tests/randoml.c.
1679         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
1680
1681 2012-03-03  Bruno Haible  <bruno@clisp.org>
1682
1683         ldexp* tests: More tests.
1684         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
1685         * tests/test-ldexp.c (RANDOM): New macro.
1686         * tests/test-ldexpf.c (RANDOM): New macro.
1687         * tests/test-ldexpl.c (RANDOM): New macro.
1688         * modules/ldexp-tests (Files): Add tests/randomd.c.
1689         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
1690         * modules/ldexpf-tests (Files): Add tests/randomf.c.
1691         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
1692         * modules/ldexpl-tests (Files): Add tests/randoml.c.
1693         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
1694
1695 2012-03-03  Bruno Haible  <bruno@clisp.org>
1696
1697         frexp* tests: More tests.
1698         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
1699         * tests/test-frexp.c (RANDOM): New macro.
1700         * tests/test-frexpf.c (RANDOM): New macro.
1701         * tests/test-frexpl.c (RANDOM): New macro.
1702         * modules/frexp-tests (Files): Add tests/randomd.c.
1703         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
1704         * modules/frexpf-tests (Files): Add tests/randomf.c.
1705         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
1706         * modules/frexpl-tests (Files): Add tests/randoml.c.
1707         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
1708
1709 2012-03-03  Bruno Haible  <bruno@clisp.org>
1710
1711         Support for pseudo-random numbers in tests.
1712         * tests/randomf.c: New file.
1713         * tests/randomd.c: New file.
1714         * tests/randoml.c: New file.
1715         * tests/macros.h (randomf, randomd, randoml): New declarations.
1716
1717 2012-03-03  Bruno Haible  <bruno@clisp.org>
1718
1719         frexp* tests: Refactor.
1720         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
1721         * tests/test-frexp.c: Include and use it.
1722         * tests/test-frexpf.c: Likewise.
1723         * tests/test-frexpl.c: Likewise.
1724         * modules/frexp-tests (Files): Add tests/test-frexp.h.
1725         * modules/frexpf-tests (Files): Likewise.
1726         * modules/frexpl-tests (Files): Likewise.
1727
1728 2012-03-02  Jim Meyering  <meyering@redhat.com>
1729
1730         maint: don't specify XZ_OPT=-9ev in dist-related rule
1731         Using xz's -9 option is warranted only if you have a very large
1732         tarball (see xz's documentation for the sizes vs. presets), and
1733         requires 64MiB of memory at decompression time.
1734         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
1735         Automake's default of just "-e" is fine.  Override on a
1736         per-package basis by setting XZ_OPT e.g., in cfg.mk.
1737
1738 2012-03-01  Eric Blake  <eblake@redhat.com>
1739
1740         maint.mk: allow announcement for non-gnulib project
1741         * maint.mk (announcement): Skip gnulib version if not used.
1742
1743 2012-03-01  Jim Meyering  <meyering@redhat.com>
1744
1745         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
1746         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
1747         envvar settings cannot interfere.  Otherwise, setting envvars like
1748         prohibit=foo require=bar, etc. would cause spurious test failures.
1749
1750 2012-03-01  Eric Blake  <eblake@redhat.com>
1751
1752         maint.mk: add per-line exclusions to prohibitions
1753         * maint.mk (_sc_search_regexp): Add $exclude parameter.
1754         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1755         (sc_const_long_option): Use it.
1756
1757 2012-03-01  Bruno Haible  <bruno@clisp.org>
1758
1759         Tests for module 'expl-ieee'.
1760         * modules/expl-ieee-tests: New file.
1761         * tests/test-expl-ieee.c: New file.
1762
1763         New module 'expl-ieee'.
1764         * modules/expl-ieee: New file.
1765
1766         Tests for module 'exp-ieee'.
1767         * modules/exp-ieee-tests: New file.
1768         * tests/test-exp-ieee.c: New file.
1769
1770         New module 'exp-ieee'.
1771         * modules/exp-ieee: New file.
1772
1773         Tests for module 'expf-ieee'.
1774         * modules/expf-ieee-tests: New file.
1775         * tests/test-expf-ieee.c: New file.
1776         * tests/test-exp-ieee.h: New file.
1777
1778         New module 'expf-ieee'.
1779         * modules/expf-ieee: New file.
1780
1781 2012-02-29  Bruno Haible  <bruno@clisp.org>
1782
1783         cbrtl-ieee: Work around test failure on IRIX 6.5.
1784         * m4/cbrtl-ieee.m4: New file.
1785         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
1786         test whether cbrtl works with a minus zero argument. Replace it if not.
1787         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
1788         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
1789         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
1790         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
1791         (Depends-on): Update conditions.
1792         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
1793         m4/signbit.m4.
1794         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
1795         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
1796         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
1797
1798         Tests for module 'cbrtl-ieee'.
1799         * modules/cbrtl-ieee-tests: New file.
1800         * tests/test-cbrtl-ieee.c: New file.
1801
1802         New module 'cbrtl-ieee'.
1803         * modules/cbrtl-ieee: New file.
1804
1805         Tests for module 'cbrt-ieee'.
1806         * modules/cbrt-ieee-tests: New file.
1807         * tests/test-cbrt-ieee.c: New file.
1808
1809         New module 'cbrt-ieee'.
1810         * modules/cbrt-ieee: New file.
1811
1812         Tests for module 'cbrtf-ieee'.
1813         * modules/cbrtf-ieee-tests: New file.
1814         * tests/test-cbrtf-ieee.c: New file.
1815         * tests/test-cbrt-ieee.h: New file.
1816
1817         New module 'cbrtf-ieee'.
1818         * modules/cbrtf-ieee: New file.
1819
1820 2012-02-29  Bruno Haible  <bruno@clisp.org>
1821
1822         cbrtf: Work around bug in IRIX 6.5 system function.
1823         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
1824         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
1825         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
1826         work.
1827         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
1828         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
1829         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
1830         (Depends-on): Update conditions.
1831         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
1832
1833 2012-02-29  Bruno Haible  <bruno@clisp.org>
1834
1835         Tests for module 'cbrtl'.
1836         * modules/cbrtl-tests: New file.
1837         * tests/test-cbrtl.c: New file.
1838
1839         New module 'cbrtl'.
1840         * lib/math.in.h (cbrtl): New declaration.
1841         * lib/cbrtl.c: New file.
1842         * m4/cbrtl.m4: New file.
1843         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
1844         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
1845         HAVE_DECL_CBRTL.
1846         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
1847         HAVE_DECL_CBRTL.
1848         * modules/cbrtl: New file.
1849         * tests/test-math-c++.cc: Check the declaration of cbrtl.
1850         * doc/posix-functions/cbrtl.texi: Mention the new module.
1851
1852 2012-02-29  Bruno Haible  <bruno@clisp.org>
1853
1854         Tests for module 'cbrtf'.
1855         * modules/cbrtf-tests: New file.
1856         * tests/test-cbrtf.c: New file.
1857
1858         New module 'cbrtf'.
1859         * lib/math.in.h (cbrtf): New declaration.
1860         * lib/cbrtf.c: New file.
1861         * m4/cbrtf.m4: New file.
1862         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
1863         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
1864         HAVE_DECL_CBRTF.
1865         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
1866         HAVE_DECL_CBRTF.
1867         * modules/cbrtf: New file.
1868         * tests/test-math-c++.cc: Check the declaration of cbrtf.
1869         * doc/posix-functions/cbrtf.texi: Mention the new module.
1870
1871 2012-02-29  Bruno Haible  <bruno@clisp.org>
1872
1873         cbrt: Provide replacement on MSVC and Minix.
1874         * lib/math.in.h (cbrt): New declaration.
1875         * lib/cbrt.c: New file.
1876         * m4/cbrt.m4: New file.
1877         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
1878         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
1879         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
1880         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
1881         (Depends-on): Add dependencies.
1882         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
1883         * tests/test-math-c++.cc: Check the declaration of cbrt.
1884         * doc/posix-functions/cbrt.texi: Mention that the module provides a
1885         replacement.
1886
1887 2012-02-29  Bruno Haible  <bruno@clisp.org>
1888
1889         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
1890         * m4/hypotl-ieee.m4: New file.
1891         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
1892         test whether hypotl works with mixed NaN and Infinity arguments.
1893         Replace it if not.
1894         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
1895         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
1896         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
1897         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
1898         (Depends-on): Update conditions.
1899         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
1900         (Depends-on): Add hypot-ieee.
1901         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
1902         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
1903
1904         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
1905         * m4/hypotf-ieee.m4: New file.
1906         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
1907         test whether hypotf works with mixed NaN and Infinity arguments.
1908         Replace it if not.
1909         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
1910         (Depends-on): Add hypot-ieee.
1911         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
1912         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
1913
1914         hypot-ieee: Work around test failure on OSF/1 and native Windows.
1915         * lib/math.in.h (hypot): New declaration.
1916         * lib/hypot.c: New file.
1917         * m4/hypot-ieee.m4: New file.
1918         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
1919         whether hypot works with mixed NaN and Infinity arguments. Replace it
1920         if not.
1921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
1922         REPLACE_HYPOT.
1923         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
1924         * modules/hypot (Files): Add lib/hypot.c.
1925         (Depends-on): Add dependencies.
1926         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
1927         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
1928         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
1929         * tests/test-math-c++.cc: Check the declaration of hypot.
1930         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
1931
1932         Tests for module 'hypotl-ieee'.
1933         * modules/hypotl-ieee-tests: New file.
1934         * tests/test-hypotl-ieee.c: New file.
1935
1936         New module 'hypotl-ieee'.
1937         * modules/hypotl-ieee: New file.
1938
1939         Tests for module 'hypot-ieee'.
1940         * modules/hypot-ieee-tests: New file.
1941         * tests/test-hypot-ieee.c: New file.
1942
1943         New module 'hypot-ieee'.
1944         * modules/hypot-ieee: New file.
1945
1946         Tests for module 'hypotf-ieee'.
1947         * modules/hypotf-ieee-tests: New file.
1948         * tests/test-hypotf-ieee.c: New file.
1949         * tests/test-hypot-ieee.h: New file.
1950
1951         New module 'hypotf-ieee'.
1952         * modules/hypotf-ieee: New file.
1953
1954 2012-02-29  Bruno Haible  <bruno@clisp.org>
1955
1956         Remove unused variables.
1957         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
1958         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1959         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
1960         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1961
1962 2012-02-29  Eric Blake  <eblake@redhat.com>
1963
1964         termios: fix pid_t always, not just for tcgetsid
1965         * doc/posix-headers/termios.texi (termios.h): Mention problem.
1966         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
1967         just when building tcgetsid.
1968
1969 2012-02-29  Bruno Haible  <bruno@clisp.org>
1970
1971         Tests for module 'hypotl'.
1972         * modules/hypotl-tests: New file.
1973         * tests/test-hypotl.c: New file.
1974
1975         New module 'hypotl'.
1976         * lib/math.in.h (hypotl): New declaration.
1977         * lib/hypotl.c: New file.
1978         * m4/hypotl.m4: New file.
1979         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1980         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
1981         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
1982         * modules/hypotl: New file.
1983         * tests/test-math-c++.cc: Check the hypotl declaration.
1984         * doc/posix-functions/hypotl.texi: Mention the new module.
1985
1986 2012-02-29  Eric Blake  <eblake@redhat.com>
1987
1988         tcgetsid: fix cygwin header bug
1989         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
1990
1991         docs: update cygwin progress
1992         * doc/posix-functions/llround.texi (llround): Added in cygwin
1993         1.7.8.
1994         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
1995         * doc/glibc-functions/program_invocation_name.texi
1996         (program_invocation_name): Likewise.
1997         * doc/glibc-functions/program_invocation_short_name.texi
1998         (program_invocation_short_name): Likewise.
1999         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2000         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2001         Likewise.
2002         * doc/posix-functions/pthread_spin_destroy.texi
2003         (pthread_spin_destroy): Added in cygwin 1.7.10.
2004         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2005         Likewise.
2006         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2007         Likewise.
2008         * doc/posix-functions/pthread_spin_trylock.texi
2009         (pthread_spin_trylock): Likewise.
2010         * doc/posix-functions/pthread_spin_unlock.texi
2011         (pthread_spin_unlock): Likewise.
2012         * doc/posix-functions/pthread_setschedprio.texi
2013         (pthread_setschedprio): Likewise.
2014         * doc/posix-functions/pthread_attr_getstack.texi
2015         (pthread_attr_getstack): Likewise.
2016         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2017         (pthread_attr_getstackaddr): Likewise.
2018         * doc/glibc-functions/pthread_getattr_np.texi
2019         (pthread_getattr_np): Likewise.
2020         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2021         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2022         * doc/posix-functions/clock_settime.texi (clock_settime):
2023         Likewise.
2024         * doc/posix-functions/pthread_attr_getguardsize.texi
2025         (pthread_attr_getguardsize): Likewise.
2026         * doc/posix-functions/pthread_attr_setguardsize.texi
2027         (pthread_attr_setguardsize): Likewise.
2028         * doc/posix-functions/pthread_attr_setstack.texi
2029         (pthread_attr_setstack): Likewise.
2030         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2031         (pthread_attr_setstackaddr): Likewise.
2032         * doc/posix-functions/clock_getcpuclockid.texi
2033         (clock_getcpuclockid): Likewise.
2034         * doc/posix-functions/pthread_getcpuclockid.texi
2035         (pthread_getcpuclockid): Likewise.
2036         * doc/glibc-functions/error.texi (error): Likewise.
2037         * doc/glibc-functions/error_at_line.texi (error_at_line):
2038         Likewise.
2039         * doc/glibc-functions/error_message_count.texi
2040         (error_message_count): Likewise.
2041         * doc/glibc-functions/error_one_per_line.texi
2042         (error_one_per_line): Likewise.
2043         * doc/glibc-functions/error_print_progname.texi
2044         (error_print_progname): Likewise.
2045         * doc/posix-functions/pthread_condattr_getclock.texi
2046         (pthread_condattr_getclock): Likewise.
2047         * doc/posix-functions/pthread_condattr_setclock.texi
2048         (pthread_condattr_setclock): Likewise.
2049         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2050         Likewise.
2051         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2052         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2053         * doc/glibc-functions/get_current_dir_name.texi
2054         (get_current_dir_name): Likewise.
2055         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2056         Likewise.
2057         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2058         wrong return type.
2059         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2060         1.7.11.
2061
2062 2012-02-29  Bruno Haible  <bruno@clisp.org>
2063
2064         Tests for module 'hypotf'.
2065         * modules/hypotf-tests: New file.
2066         * tests/test-hypotf.c: New file.
2067
2068         New module 'hypotf'.
2069         * lib/math.in.h (hypotf): New declaration.
2070         * lib/hypotf.c: New file.
2071         * m4/hypotf.m4: New file.
2072         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2073         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2074         REPLACE_HYPOTF.
2075         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2076         REPLACE_HYPOTF.
2077         * modules/hypotf: New file.
2078         * tests/test-math-c++.cc: Check the hypotf declaration.
2079         * doc/posix-functions/hypotf.texi: Mention the new module.
2080
2081         hypot: Prepare for hypotf module.
2082         * m4/hypot.m4: New file.
2083         * modules/hypot (Files): Add m4/hypot.m4.
2084         (configure.ac): Invoke gl_FUNC_HYPOT.
2085
2086 2012-02-29  Bruno Haible  <bruno@clisp.org>
2087
2088         hypot tests: More tests.
2089         * tests/test-hypot.c: Include <float.h>.
2090         (main): Add tests about overflow and underflow.
2091
2092 2012-02-29  Bruno Haible  <bruno@clisp.org>
2093
2094         math code: Add comments.
2095         * lib/acosl.c: Add comment about related glibc source files.
2096         * lib/asinl.c: Likewise.
2097         * lib/atanl.c: Likewise.
2098         * lib/expl.c: Likewise.
2099         * lib/logl.c: Likewise.
2100         * lib/sincosl.c: Likewise.
2101         * lib/sinl.c: Likewise.
2102         * lib/tanl.c: Likewise.
2103         * lib/trigl.c: Likewise.
2104         * lib/cosl.c: Likewise. Fix comments.
2105
2106 2012-02-28  Bruno Haible  <bruno@clisp.org>
2107
2108         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2109         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2110         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2111         HUGE_VALL are defined.
2112         (numeric_equald): Renamed from numeric_equal.
2113         (numeric_equalf, numeric_equall): New functions.
2114         (main): Check also HUGE_VALF, HUGE_VALL.
2115         * modules/math-tests (Files): Add tests/macros.h.
2116         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2117         HUGE_VALL.
2118
2119 2012-02-28  Bruno Haible  <bruno@clisp.org>
2120
2121         doc: Move ISO C11 feature notes into POSIX chapters.
2122         * doc/posix-functions/aligned_alloc.texi: Renamed from
2123         doc/glibc-functions/aligned_alloc.texi.
2124         * doc/posix-functions/quick_exit.texi: Renamed from
2125         doc/glibc-functions/quick_exit.texi.
2126         * doc/posix-headers/uchar.texi: Renamed from
2127         doc/glibc-headers/uchar.texi.
2128         * doc/posix-functions/c16rtomb.texi: Renamed from
2129         doc/glibc-functions/c16rtomb.texi.
2130         * doc/posix-functions/c32rtomb.texi: Renamed from
2131         doc/glibc-functions/c32rtomb.texi.
2132         * doc/posix-functions/mbrtoc16.texi: Renamed from
2133         doc/glibc-functions/mbrtoc16.texi.
2134         * doc/posix-functions/mbrtoc32.texi: Renamed from
2135         doc/glibc-functions/mbrtoc32.texi.
2136         * doc/gnulib.texi: Update.
2137         (Glibc uchar.h): Remove section.
2138         Suggested by Eric Blake.
2139
2140 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2141
2142         stdnoreturn: port to MSVC better
2143         MSVC standard headers use __declspec(noreturn), so #define noreturn
2144         to empty on that platform.  Reported by Bruno Haible in
2145         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2146         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2147         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2148
2149 2012-02-28  Bruno Haible  <bruno@clisp.org>
2150
2151         doc: Mention new glibc headers and functions.
2152         * doc/glibc-headers/uchar.texi: New file.
2153         * doc/glibc-functions/aligned_alloc.texi: New file.
2154         * doc/glibc-functions/c16rtomb.texi: New file.
2155         * doc/glibc-functions/c32rtomb.texi: New file.
2156         * doc/glibc-functions/clock_adjtime.texi: New file.
2157         * doc/glibc-functions/fanotify_init.texi: New file.
2158         * doc/glibc-functions/fanotify_mark.texi: New file.
2159         * doc/glibc-functions/inet6_opt_append.texi: New file.
2160         * doc/glibc-functions/inet6_opt_find.texi: New file.
2161         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2162         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2163         * doc/glibc-functions/inet6_opt_init.texi: New file.
2164         * doc/glibc-functions/inet6_opt_next.texi: New file.
2165         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2166         * doc/glibc-functions/inet6_rth_add.texi: New file.
2167         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2168         * doc/glibc-functions/inet6_rth_init.texi: New file.
2169         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2170         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2171         * doc/glibc-functions/inet6_rth_space.texi: New file.
2172         * doc/glibc-functions/login.texi: New file.
2173         * doc/glibc-functions/mbrtoc16.texi: New file.
2174         * doc/glibc-functions/mbrtoc32.texi: New file.
2175         * doc/glibc-functions/name_to_handle_at.texi: New file.
2176         * doc/glibc-functions/ntp_gettimex.texi: New file.
2177         * doc/glibc-functions/open_by_handle_at.texi: New file.
2178         * doc/glibc-functions/prlimit.texi: New file.
2179         * doc/glibc-functions/process_vm_readv.texi: New file.
2180         * doc/glibc-functions/process_vm_writev.texi: New file.
2181         * doc/glibc-functions/recvmmsg.texi: New file.
2182         * doc/glibc-functions/scandirat.texi: New file.
2183         * doc/glibc-functions/sendmmsg.texi: New file.
2184         * doc/glibc-functions/setns.texi: New file.
2185         * doc/glibc-functions/timespec_get.texi: New file.
2186         * doc/gnulib.texi: Include them.
2187         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2188         sections.
2189         Reported by Eric Blake.
2190
2191 2012-02-28  Bruno Haible  <bruno@clisp.org>
2192
2193         Avoid compilation errors with MSVC option -fp:strict.
2194         * lib/floor.c: Use MSVC specific pragma fenv_access.
2195         * lib/ceil.c: Likewise.
2196         * lib/trunc.c: Likewise.
2197         * lib/round.c: Likewise.
2198         * lib/rint.c: Likewise.
2199         * lib/fma.c: Likewise.
2200         * lib/integer_length.c: Likewise.
2201         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2202         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2203         * tests/test-floor2.c: Likewise.
2204         * tests/test-floorf2.c: Likewise.
2205         * tests/test-ceil2.c: Likewise.
2206         * tests/test-ceilf2.c: Likewise.
2207         * tests/test-trunc2.c: Likewise.
2208         * tests/test-truncf2.c: Likewise.
2209         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2210
2211 2012-02-27  Bruno Haible  <bruno@clisp.org>
2212
2213         Tests for module 'sqrtl-ieee'.
2214         * modules/sqrtl-ieee-tests: New file.
2215         * tests/test-sqrtl-ieee.c: New file.
2216
2217         New module 'sqrtl-ieee'.
2218         * modules/sqrtl-ieee: New file.
2219
2220         Tests for module 'sqrt-ieee'.
2221         * modules/sqrt-ieee-tests: New file.
2222         * tests/test-sqrt-ieee.c: New file.
2223
2224         New module 'sqrt-ieee'.
2225         * modules/sqrt-ieee: New file.
2226
2227         Tests for module 'sqrtf-ieee'.
2228         * modules/sqrtf-ieee-tests: New file.
2229         * tests/test-sqrtf-ieee.c: New file.
2230         * tests/test-sqrt-ieee.h: New file.
2231
2232         New module 'sqrtf-ieee'.
2233         * modules/sqrtf-ieee: New file.
2234
2235 2012-02-27  Bruno Haible  <bruno@clisp.org>
2236
2237         remainderl-ieee: Work around test failure on OSF/1.
2238         * m4/remainderl-ieee.m4: New file.
2239         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2240         present, test whether remainderl works with a zero second argument.
2241         Replace it if not.
2242         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2243         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2244         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2245         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2246         (Depends-on): Update conditions.
2247         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2248         (Depends-on): Add remainder-ieee.
2249         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2250         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2251         module.
2252
2253         remainderf-ieee: Work around test failure on OSF/1.
2254         * m4/remainderf-ieee.m4: New file.
2255         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2256         present, test whether remainderf works with a zero second argument.
2257         Replace it if not.
2258         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2260         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2261         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2262         (Depends-on): Update conditions.
2263         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2264         (Depends-on): Add remainder-ieee.
2265         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2266         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2267         module.
2268
2269         remainder-ieee: Work around test failure on OSF/1.
2270         * m4/remainder-ieee.m4: New file.
2271         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2272         present, test whether remainder works with a zero second argument.
2273         Replace it if not.
2274         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2275         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2276         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2277         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2278         (Depends-on): Update dependencies.
2279         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2280         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2281         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2282
2283         Tests for module 'remainderl-ieee'.
2284         * modules/remainderl-ieee-tests: New file.
2285         * tests/test-remainderl-ieee.c: New file.
2286
2287         New module 'remainderl-ieee'.
2288         * modules/remainderl-ieee: New file.
2289
2290         Tests for module 'remainder-ieee'.
2291         * modules/remainder-ieee-tests: New file.
2292         * tests/test-remainder-ieee.c: New file.
2293
2294         New module 'remainder-ieee'.
2295         * modules/remainder-ieee: New file.
2296
2297         Tests for module 'remainderf-ieee'.
2298         * modules/remainderf-ieee-tests: New file.
2299         * tests/test-remainderf-ieee.c: New file.
2300         * tests/test-remainder-ieee.h: New file.
2301
2302         New module 'remainderf-ieee'.
2303         * modules/remainderf-ieee: New file.
2304
2305 2012-02-27  Bruno Haible  <bruno@clisp.org>
2306
2307         modff, modfl: Fix configure syntax error.
2308         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2309         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2310
2311 2012-02-27  Bruno Haible  <bruno@clisp.org>
2312
2313         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2314         * m4/fmodl-ieee.m4: New file.
2315         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2316         whether fmodl works with zero arguments. Replace it if not.
2317         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2318         (Depends-on): Add fmod-ieee.
2319         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
2320         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
2321
2322         fmodf-ieee: Work around test failure on OSF/1.
2323         * m4/fmodf-ieee.m4: New file.
2324         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
2325         whether fmodf works with zero arguments. Replace it if not.
2326         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
2327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
2328         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
2329         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
2330         (Depends-on): Update dependencies.
2331         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
2332         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
2333         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
2334
2335         fmodf-ieee: Work around test failure on MSVC 9.
2336         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
2337         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
2338
2339         fmod-ieee: Work around test failures on OSF/1, mingw.
2340         * m4/fmod-ieee.m4: New file.
2341         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
2342         whether fmod works with zero arguments. Replace it if not.
2343         * lib/math.in.h (fmod): New declaration.
2344         * lib/fmod.c: New file.
2345         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
2346         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
2347         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
2348         * modules/fmod (Files): Add lib/fmod.c.
2349         (Depends-on): Add math, isinf, trunc, fma.
2350         (configure.ac): Arrange to compile lib/fmod.c if needed.
2351         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
2352         m4/signbit.m4.
2353         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
2354         * tests/test-math-c++.cc: Check the declaration of fmod.
2355         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2356
2357         fmodl-ieee: Fix test failures.
2358         * lib/fmodl.c (fmodl): Treat Inf specially.
2359         * modules/fmodl (Depends-on): Add isinf.
2360
2361         Tests for module 'fmodl-ieee'.
2362         * modules/fmodl-ieee-tests: New file.
2363         * tests/test-fmodl-ieee.c: New file.
2364
2365         New module 'fmodl-ieee'.
2366         * modules/fmodl-ieee: New file.
2367
2368         Tests for module 'fmod-ieee'.
2369         * modules/fmod-ieee-tests: New file.
2370         * tests/test-fmod-ieee.c: New file.
2371
2372         New module 'fmod-ieee'.
2373         * modules/fmod-ieee: New file.
2374
2375         Tests for module 'fmodf-ieee'.
2376         * modules/fmodf-ieee-tests: New file.
2377         * tests/test-fmodf-ieee.c: New file.
2378         * tests/test-fmod-ieee.h: New file.
2379
2380         New module 'fmodf-ieee'.
2381         * modules/fmodf-ieee: New file.
2382
2383 2012-02-27  Bruno Haible  <bruno@clisp.org>
2384
2385         Tests for module 'rintl-ieee'.
2386         * modules/rintl-ieee-tests: New file.
2387         * tests/test-rintl-ieee.c: New file.
2388
2389         New module 'rintl-ieee'.
2390         * modules/rintl-ieee: New file.
2391
2392         Tests for module 'rint-ieee'.
2393         * modules/rint-ieee-tests: New file.
2394         * tests/test-rint-ieee.c: New file.
2395
2396         New module 'rint-ieee'.
2397         * modules/rint-ieee: New file.
2398
2399         Tests for module 'rintf-ieee'.
2400         * modules/rintf-ieee-tests: New file.
2401         * tests/test-rintf-ieee.c: New file.
2402         * tests/test-rint-ieee.h: New file.
2403
2404         New module 'rintf-ieee'.
2405         * modules/rintf-ieee: New file.
2406
2407 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2408
2409         regex: re_search etc. should return -2 when memory exhausted
2410         This bug was uncovered when testing 'grep'.  Without the fix,
2411         re_search and friends return -1 when memory is exhausted, but -1
2412         means no match, and this causes grep to falsely report no-match
2413         instead of memory-exhaustion.  See
2414         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
2415         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
2416         trouble; this can occur if re_search_internal ran out of memory.
2417
2418 2012-02-26  Bruno Haible  <bruno@clisp.org>
2419
2420         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
2421         * m4/modfl-ieee.m4: New file.
2422         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
2423         whether modfl works with Inf. Replace it if not.
2424         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
2425         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
2426         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
2427         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
2428         (Depends-on): Update dependencies.
2429         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
2430         m4/signbit.m4.
2431         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
2432         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
2433
2434         modfl-ieee: Fix dependencies.
2435         * modules/modfl-ieee (Depends-on): Add modf-ieee.
2436
2437         modfl-ieee: Fix test failures.
2438         * lib/modfl.c (modfl): Treat NaN and Inf specially.
2439         * modules/modfl (Depends-on): Add isfinite, isinf.
2440
2441         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
2442         * m4/modff-ieee.m4: New file.
2443         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
2444         whether modff works with NaN and Inf. Replace it if not.
2445         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
2446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
2447         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
2448         * modules/modff (configure.ac): Consider REPLACE_MODFF.
2449         (Depends-on): Update dependencies.
2450         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
2451         m4/signbit.m4.
2452         (Depends-on): Add modf-ieee.
2453         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
2454         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
2455
2456         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
2457         * m4/modf-ieee.m4: New file.
2458         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
2459         whether modf works with NaN and Inf. Replace it if not.
2460         * lib/math.in.h (modf): New declaration.
2461         * lib/modf.c: New file.
2462         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
2463         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
2464         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
2465         * modules/modf (Files): Add lib/modf.c.
2466         (Depends-on): Add math, isfinite, trunc, isinf.
2467         (configure.ac): Addrange to compile lib/modf.c if needed.
2468         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
2469         m4/signbit.m4.
2470         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
2471         * tests/test-math-c++.cc: Check the declaration of modf.
2472         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
2473
2474         Tests for module 'modfl-ieee'.
2475         * modules/modfl-ieee-tests: New file.
2476         * tests/test-modfl-ieee.c: New file.
2477
2478         New module 'modfl-ieee'.
2479         * modules/modfl-ieee: New file.
2480
2481         Tests for module 'modf-ieee'.
2482         * modules/modf-ieee-tests: New file.
2483         * tests/test-modf-ieee.c: New file.
2484
2485         New module 'modf-ieee'.
2486         * modules/modf-ieee: New file.
2487
2488         Tests for module 'modff-ieee'.
2489         * modules/modff-ieee-tests: New file.
2490         * tests/test-modff-ieee.c: New file.
2491         * tests/test-modf-ieee.h: New file.
2492
2493         New module 'modff-ieee'.
2494         * modules/modff-ieee: New file.
2495
2496 2012-02-26  Bruno Haible  <bruno@clisp.org>
2497
2498         Tests for module 'fabsl-ieee'.
2499         * modules/fabsl-ieee-tests: New file.
2500         * tests/test-fabsl-ieee.c: New file.
2501
2502         New module 'fabsl-ieee'.
2503         * modules/fabsl-ieee: New file.
2504
2505         Tests for module 'fabs-ieee'.
2506         * modules/fabs-ieee-tests: New file.
2507         * tests/test-fabs-ieee.c: New file.
2508
2509         New module 'fabs-ieee'.
2510         * modules/fabs-ieee: New file.
2511
2512         Tests for module 'fabsf-ieee'.
2513         * modules/fabsf-ieee-tests: New file.
2514         * tests/test-fabsf-ieee.c: New file.
2515         * tests/test-fabs-ieee.h: New file.
2516
2517         New module 'fabsf-ieee'.
2518         * modules/fabsf-ieee: New file.
2519
2520 2012-02-26  Bruno Haible  <bruno@clisp.org>
2521
2522         Tests for module 'fmal-ieee'.
2523         * modules/fmal-ieee-tests: New file.
2524         * tests/test-fmal-ieee.c: New file.
2525
2526         New module 'fmal-ieee'.
2527         * modules/fmal-ieee: New file.
2528
2529         Tests for module 'fma-ieee'.
2530         * modules/fma-ieee-tests: New file.
2531         * tests/test-fma-ieee.c: New file.
2532
2533         New module 'fma-ieee'.
2534         * modules/fma-ieee: New file.
2535
2536         Tests for module 'fmaf-ieee'.
2537         * modules/fmaf-ieee-tests: New file.
2538         * tests/test-fmaf-ieee.c: New file.
2539         * tests/test-fma-ieee.h: New file.
2540
2541         New module 'fmaf-ieee'.
2542         * modules/fmaf-ieee: New file.
2543
2544 2012-02-26  Bruno Haible  <bruno@clisp.org>
2545
2546         Tests for module 'ldexpl-ieee'.
2547         * modules/ldexpl-ieee-tests: New file.
2548         * tests/test-ldexpl-ieee.c: New file.
2549
2550         New module 'ldexpl-ieee'.
2551         * modules/ldexpl-ieee: New file.
2552
2553         Tests for module 'ldexp-ieee'.
2554         * modules/ldexp-ieee-tests: New file.
2555         * tests/test-ldexp-ieee.c: New file.
2556
2557         New module 'ldexp-ieee'.
2558         * modules/ldexp-ieee: New file.
2559
2560         Tests for module 'ldexpf-ieee'.
2561         * modules/ldexpf-ieee-tests: New file.
2562         * tests/test-ldexpf-ieee.c: New file.
2563         * tests/test-ldexp-ieee.h: New file.
2564
2565         New module 'ldexpf-ieee'.
2566         * modules/ldexpf-ieee: New file.
2567
2568 2012-02-26  Bruno Haible  <bruno@clisp.org>
2569
2570         Refactor frexp*-ieee tests.
2571         * tests/test-frexp-ieee.h: New file.
2572         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2573         (main): Just call test_function.
2574         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2575         (main): Just call test_function.
2576         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2577         (main): Just call test_function.
2578         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2579         * modules/frexp-ieee-tests (Files): Likewise.
2580         * modules/frexpl-ieee-tests (Files): Likewise.
2581
2582         Tests for module 'frexpl-ieee'.
2583         * modules/frexpl-ieee-tests: New file.
2584         * tests/test-frexpl-ieee.c: New file.
2585
2586         New module 'frexpl-ieee'.
2587         * modules/frexpl-ieee: New file.
2588
2589         Tests for module 'frexp-ieee'.
2590         * modules/frexp-ieee-tests: New file.
2591         * tests/test-frexp-ieee.c: New file.
2592
2593         New module 'frexp-ieee'.
2594         * modules/frexp-ieee: New file.
2595
2596         Tests for module 'frexpf-ieee'.
2597         * modules/frexpf-ieee-tests: New file.
2598         * tests/test-frexpf-ieee.c: New file.
2599
2600         New module 'frexpf-ieee'.
2601         * modules/frexpf-ieee: New file.
2602
2603 2012-02-26  Bruno Haible  <bruno@clisp.org>
2604
2605         roundl-ieee tests: More tests.
2606         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2607         (main): Add tests for [MX] shaded specification in POSIX.
2608         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2609         (Depends-on): Add isnanl-nolibm.
2610
2611         round-ieee tests: More tests.
2612         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2613         (main): Add tests for [MX] shaded specification in POSIX.
2614         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2615         (Depends-on): Add isnand-nolibm.
2616
2617         roundf-ieee tests: More tests.
2618         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2619         (main): Add tests for [MX] shaded specification in POSIX.
2620         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2621         (Depends-on): Add isnanf-nolibm.
2622
2623         truncl-ieee tests: More tests.
2624         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2625         (main): Add tests for [MX] shaded specification in POSIX.
2626         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2627         (Depends-on): Add isnanl-nolibm.
2628
2629         trunc-ieee tests: More tests.
2630         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2631         (main): Add tests for [MX] shaded specification in POSIX.
2632         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2633         (Depends-on): Add isnand-nolibm.
2634
2635         truncf-ieee tests: More tests.
2636         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2637         (main): Add tests for [MX] shaded specification in POSIX.
2638         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2639         (Depends-on): Add isnanf-nolibm.
2640
2641         ceill-ieee tests: More tests.
2642         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2643         (main): Add tests for [MX] shaded specification in POSIX.
2644         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2645         (Depends-on): Add isnanl-nolibm.
2646
2647         ceil-ieee tests: More tests.
2648         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2649         (main): Add tests for [MX] shaded specification in POSIX.
2650         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2651         (Depends-on): Add isnand-nolibm.
2652
2653         ceilf-ieee tests: More tests.
2654         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2655         (main): Add tests for [MX] shaded specification in POSIX.
2656         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2657         (Depends-on): Add isnanf-nolibm.
2658
2659         floorl-ieee tests: More tests.
2660         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2661         (main): Add tests for [MX] shaded specification in POSIX.
2662         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2663         (Depends-on): Add isnanl-nolibm.
2664
2665         floor-ieee tests: More tests.
2666         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2667         (main): Add tests for [MX] shaded specification in POSIX.
2668         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2669         (Depends-on): Add isnand-nolibm.
2670
2671         floorf-ieee tests: More tests.
2672         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2673         (main): Add tests for [MX] shaded specification in POSIX.
2674         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2675         (Depends-on): Add isnanf-nolibm.
2676
2677 2012-02-26  Bruno Haible  <bruno@clisp.org>
2678
2679         fpieee: More comments.
2680         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
2681
2682 2012-02-25  Bruno Haible  <bruno@clisp.org>
2683
2684         Tests for module 'log10l'.
2685         * modules/log10l-tests: New file.
2686         * tests/test-log10l.c: New file.
2687         * tests/test-math-c++.cc: Check the declaration of log10l.
2688
2689         New module 'log10l'.
2690         * lib/math.in.h (log10l): New declaration.
2691         * lib/log10l.c: New file.
2692         * m4/log10l.m4: New file.
2693         * modules/log10l: New file.
2694         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
2695         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
2696         HAVE_DECL_LOG10L.
2697         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
2698         HAVE_DECL_LOG10L.
2699         * doc/posix-functions/log10l.texi: Mention the new module.
2700
2701 2012-02-25  Bruno Haible  <bruno@clisp.org>
2702
2703         fmodl, remainder*: Avoid wrong results due to rounding errors.
2704         * lib/fmodl.c (fmodl): Correct the result if it is not within the
2705         expected bounds.
2706         * lib/remainderf.c (remainderf): Likewise.
2707         * lib/remainder.c (remainder): Likewise.
2708         * lib/remainderl.c (remainderl): Likewise.
2709
2710 2012-02-25  Bruno Haible  <bruno@clisp.org>
2711
2712         Tests for module 'remainderl'.
2713         * modules/remainderl-tests: New file.
2714         * tests/test-remainderl.c: New file.
2715         * tests/test-math-c++.cc: Check the declaration of remainderl.
2716
2717         New module 'remainderl'.
2718         * lib/math.in.h (remainderl): New declaration.
2719         * lib/remainderl.c: New file.
2720         * m4/remainderl.m4: New file.
2721         * modules/remainderl: New file.
2722         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
2723         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
2724         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
2725         HAVE_REMAINDERL.
2726         * doc/posix-functions/remainderl.texi: Mention the new module.
2727
2728 2012-02-25  Bruno Haible  <bruno@clisp.org>
2729
2730         Tests for module 'remainderf'.
2731         * modules/remainderf-tests: New file.
2732         * tests/test-remainderf.c: New file.
2733         * tests/test-math-c++.cc: Check the declaration of remainderf.
2734
2735         New module 'remainderf'.
2736         * lib/math.in.h (remainderf): New declaration.
2737         * lib/remainderf.c: New file.
2738         * m4/remainderf.m4: New file.
2739         * modules/remainderf: New file.
2740         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
2741         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
2742         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
2743         HAVE_REMAINDERF.
2744         * doc/posix-functions/remainderf.texi: Mention the new module.
2745
2746 2012-02-25  Bruno Haible  <bruno@clisp.org>
2747
2748         remainder: Support for MSVC.
2749         * lib/math.in.h (remainder): New declaration.
2750         * lib/remainder.c: New file.
2751         * m4/remainder.m4: New file.
2752         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
2753         (Depends-on): Add math, round, fma.
2754         (configure.ac): Use results of gl_FUNC_REMAINDER.
2755         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
2756         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
2757         HAVE_DECL_REMAINDER.
2758         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
2759         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
2760         * tests/test-math-c++.cc: Check the declaration of remainder.
2761         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
2762         problems are fixed.
2763
2764 2012-02-25  Bruno Haible  <bruno@clisp.org>
2765
2766         Tests for module 'fmodl'.
2767         * modules/fmodl-tests: New file.
2768         * tests/test-fmodl.c: New file.
2769         * tests/test-math-c++.cc: Check the declaration of fmodl.
2770
2771         New module 'fmodl'.
2772         * lib/math.in.h (fmodl): New declaration.
2773         * lib/fmodl.c: New file.
2774         * m4/fmodl.m4: New file.
2775         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
2776         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
2777         REPLACE_FMODL.
2778         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
2779         REPLACE_FMODL.
2780         * modules/fmodl: New file.
2781         * doc/posix-functions/fmodl.texi: Mention the new module.
2782
2783 2012-02-25  Bruno Haible  <bruno@clisp.org>
2784
2785         Tests for module 'modfl'.
2786         * modules/modfl-tests: New file.
2787         * tests/test-modfl.c: New file.
2788         * tests/test-math-c++.cc: Check the declaration of modfl.
2789
2790         New module 'modfl'.
2791         * lib/math.in.h (modfl): New declaration.
2792         * lib/modfl.c: New file.
2793         * m4/modfl.m4: New file.
2794         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
2795         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
2796         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
2797         * modules/modfl: New file.
2798         * doc/posix-functions/modfl.texi: Mention the new module.
2799
2800 2012-02-25  Bruno Haible  <bruno@clisp.org>
2801
2802         Tests for module 'fabsl'.
2803         * modules/fabsl-tests: New file.
2804         * tests/test-fabsl.c: New file.
2805         * tests/test-math-c++.cc: Check the declaration of fabsl.
2806
2807         New module 'fabsl'.
2808         * lib/math.in.h (fabsl): New declaration.
2809         * lib/fabsl.c: New file.
2810         * m4/fabsl.m4: New file.
2811         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
2812         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
2813         REPLACE_FABSL.
2814         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
2815         REPLACE_FABSL.
2816         * modules/fabsl: New file.
2817         * doc/posix-functions/fabsl.texi: Mention the new module.
2818
2819 2012-02-25  Bruno Haible  <bruno@clisp.org>
2820
2821         fabs tests: More tests.
2822         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
2823         (zero): New variable.
2824         (main): Add tests for signed zero.
2825         * modules/fabs-tests (Files): Add tests/minus-zero.h.
2826
2827         fabsf tests: More tests.
2828         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
2829         (zero): New variable.
2830         (main): Add tests for signed zero.
2831         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
2832
2833 2012-02-24  Bruno Haible  <bruno@clisp.org>
2834
2835         atanl: Provide function definition on MSVC.
2836         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
2837         function pointer.
2838         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
2839
2840 2012-02-24  Bruno Haible  <bruno@clisp.org>
2841
2842         acosl: Provide function definition on MSVC.
2843         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
2844         function pointer.
2845         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
2846
2847 2012-02-24  Bruno Haible  <bruno@clisp.org>
2848
2849         asinl: Provide function definition on MSVC.
2850         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
2851         function pointer.
2852         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
2853
2854 2012-02-24  Bruno Haible  <bruno@clisp.org>
2855
2856         tanl: Provide function definition on MSVC.
2857         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
2858         function pointer.
2859         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
2860
2861 2012-02-24  Bruno Haible  <bruno@clisp.org>
2862
2863         cosl: Provide function definition on MSVC.
2864         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
2865         function pointer.
2866         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
2867
2868 2012-02-24  Bruno Haible  <bruno@clisp.org>
2869
2870         sinl: Provide function definition on MSVC.
2871         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
2872         function pointer.
2873         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
2874
2875 2012-02-24  Bruno Haible  <bruno@clisp.org>
2876
2877         logl: Provide function definition on MSVC.
2878         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
2879         function pointer.
2880         * lib/math.in.h (logl): Undefine if it does not exist as a function.
2881
2882 2012-02-24  Bruno Haible  <bruno@clisp.org>
2883
2884         expl: Provide function definition on MSVC.
2885         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
2886         function pointer.
2887         * lib/math.in.h (expl): Undefine if it does not exist as a function.
2888
2889 2012-02-24  Bruno Haible  <bruno@clisp.org>
2890
2891         sqrtl: Provide function definition on MSVC.
2892         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
2893         a function pointer.
2894         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
2895
2896 2012-02-24  Bruno Haible  <bruno@clisp.org>
2897
2898         ceill: Provide function definition on MSVC.
2899         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
2900         used as a function pointer.
2901         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
2902
2903 2012-02-24  Bruno Haible  <bruno@clisp.org>
2904
2905         floorl: Provide function definition on MSVC.
2906         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
2907         used as a function pointer.
2908         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
2909
2910 2012-02-24  Bruno Haible  <bruno@clisp.org>
2911
2912         ceilf: Provide function definition on MSVC.
2913         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
2914         used as a function pointer.
2915         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
2916
2917 2012-02-24  Bruno Haible  <bruno@clisp.org>
2918
2919         floorf: Provide function definition on MSVC.
2920         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
2921         used as a function pointer.
2922         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
2923
2924 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2925
2926         stdnoreturn: new module
2927         This implements a replacement for C11's <stdnoreturn.h>.
2928         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
2929         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
2930         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2931         * tests/test-stdnoreturn.c: New files.
2932
2933 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
2934
2935         regex: fix false multibyte matches in some regular expressions
2936         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
2937         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
2938         * lib/regex_internal.c (re_string_skip_chars):
2939         Fix miscomputation of remain_len that may cause incomplete
2940         multi-byte character and false match.
2941
2942 2012-02-24  Jim Meyering  <meyering@redhat.com>
2943
2944         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
2945         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
2946         uses with "==" *before* the call, e.g., 0 == strcmp (...)
2947         Remove now-unnecessary str''cmp obfuscation.
2948         Suggested by Akim Demaille.
2949
2950 2012-02-24  Bruno Haible  <bruno@clisp.org>
2951
2952         streq: Rename macro.
2953         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
2954         * NEWS: Mention the change.
2955         * lib/mbrtowc.c (mbrtowc): Update.
2956         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
2957         * lib/wcwidth.c (wcwidth): Update.
2958         Suggested by Akim Demaille and Jim Meyering.
2959
2960 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
2961
2962         regex: fix typo in definition of MIN
2963         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
2964         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
2965
2966 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2967             Bruno Haible  <bruno@clisp.org>
2968
2969         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
2970         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
2971         entries into a stack-allocated buffer directly.
2972         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
2973
2974 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2975             Bruno Haible  <bruno@clisp.org>
2976
2977         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
2978
2979          - There were several instances of this pattern:
2980
2981              for (;;) {
2982                n = acl (f, GETACLCNT, 0, NULL);
2983                [ allocate an array A of size N ]
2984                if (acl (f, GETACL, n, a) == n)
2985                  break;
2986              }
2987
2988            This loop might never terminate if some other process is constantly
2989            manipulating the file's ACL.  The loop should be rewritten to
2990            terminate.
2991
2992          - The acl (... GETACLNT ...) call is merely an optimization; its value
2993            is merely a hint as to how big to make the array.  A better
2994            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
2995            and just guess a reasonably-big size, growing the size and trying
2996            again if it's not large enough.  This guarantees termination, and
2997            saves a system call.
2998
2999         * lib/acl-internal.h: Include <limits.h>.
3000         (MIN, SIZE_MAX): New macros.
3001         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3002         a stack-allocated buffer, and use malloc if it does not fit. Don't
3003         use GETACLCNT.
3004         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3005
3006 2012-02-19  Bruno Haible  <bruno@clisp.org>
3007
3008         acl: Fix endless loop on Solaris with vxfs.
3009         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3010         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3011         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3012         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3013         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3014         Reported by Bill Jones in
3015         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3016
3017 2012-02-19  Bruno Haible  <bruno@clisp.org>
3018
3019         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3020         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3021         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3022         that this function returns 0 in some more cases.
3023
3024 2012-02-19  Bruno Haible  <bruno@clisp.org>
3025
3026         acl: Update doc references.
3027         * doc/acl-resources.txt: Update links to Solaris documentation.
3028
3029 2012-02-19  Bruno Haible  <bruno@clisp.org>
3030
3031         Fix test failure in many locales on Solaris 11.
3032         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3033         'tr' arguments.
3034         * tests/test-pipe-filter-ii1.c (main): Likewise.
3035         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3036         expressions in the C locale.
3037         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3038         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3039
3040 2012-02-19  Bruno Haible  <bruno@clisp.org>
3041
3042         gnulib-tool: Improve usage message.
3043         * gnulib-tool (func_usage): Move doc of --help and --version to the
3044         section "Operation modes".
3045
3046 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3047
3048         README-release: make it easier to execute commands
3049         * top/README-release: break commands out on to separate lines.
3050
3051 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3052
3053         GNUmakefile: simplify detection of unconfigured trees
3054         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3055         whether the tree make is being run from is already configured or
3056         not.  Related simplifications.
3057
3058 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3059
3060         * gnulib-tool (func_usage): Document --help and --version.
3061
3062 2012-02-11  Jim Meyering  <meyering@redhat.com>
3063
3064         bootstrap: don't exit 0 upon gnulib-tool failure
3065         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3066         its exit status, not 0.
3067
3068 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3069
3070         README-release: various improvements
3071         * top/README-release: Give a command to push changes for the
3072         release.  Add "distcheck" to list of other pre-release checks.
3073         Fix instance of "make stable" which should be "make TYPE".
3074
3075 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3076
3077         maint: replace FSF snail-mail addresses with URLs
3078         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3079         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3080         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3081         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3082         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3083         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3084         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3085         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3086         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3087         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3088         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3089         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3090         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3091         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3092         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3093         * lib/glthread/thread.c, lib/glthread/thread.h:
3094         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3095         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3096         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3097         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3098         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3099         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3100         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3101         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3102         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3103         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3104         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3105         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3106         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3107         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3108         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3109         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3110         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3111         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3112         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3113         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3114         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3115         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3116         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3117         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3118         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3119         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3120         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3121         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3122         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3123         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3124         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3125         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3126         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3127         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3128         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3129         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3130         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3131         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3132         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3133         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3134         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3135         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3136         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3137         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3138         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3139         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3140         * tests/test-poll.c, tests/test-quotearg-simple.c:
3141         * tests/test-quotearg.c, tests/test-quotearg.h:
3142         * tests/test-round-ieee.c, tests/test-round1.c:
3143         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3144         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3145         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3146         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3147         * tests/test-strerror.c, tests/test-strerror_r.c:
3148         * tests/test-strsignal.c, tests/test-strverscmp.c:
3149         * tests/test-xmemdup0.c:
3150         Replace FSF snail mail addresses with URLs, as per GNU coding
3151         standards.  See glibc bug
3152         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3153
3154 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3155
3156         README-release: capitalize a word and split a line
3157         * top/README-release: Fix punctuation and spacing.
3158
3159 2012-02-08  Akim Demaille  <demaille@gostai.com>
3160
3161         fatal-signal: use C prototypes (with explicit void).
3162         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3163         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3164
3165 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3166
3167         regex: spelling fix
3168         * lib/regexec.c: spelling fix
3169
3170         regex: rely on stdint.h for SIZE_MAX
3171         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3172
3173 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3174
3175         regex: merge glibc changes
3176
3177         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3178         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3179         (init_word_char): Work even if bitset words are not exactly 32 or
3180         64 bits wide.  Don't assume there are no padding bits.
3181         * lib/regex.c [_LIBC]: Do not include <config.h>.
3182         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3183         and -Wtype-limits.
3184         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3185         needless disagreement with glibc.  All uses changed.  Define it to
3186         1 only if _GNU_SOURCE, to match glibc.
3187         (_REG_RM_NAME): Remove; no longer needed, since the names in
3188         question are now all protected by __USE_GNU.
3189         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3190         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3191         * lib/regex_internal.h (MIN): New macro.
3192
3193         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3194         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3195
3196         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3197         * lib/regex_internal.c (re_string_fetch_byte_case):
3198         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3199         is miscompiled, and it turns out it is because of an incorrect
3200         attribute on re_string_fetch_byte_case.  Unlike
3201         re_string_peek_byte_case, this one is really not pure, it modifies
3202         memory (increments pstr->cur_idx), and with the pure attribute GCC
3203         assumed it doesn't and it cached the presumed value of
3204         regexp->cur_idx in a variable across the
3205          for (;; ++i)
3206            {
3207              if (i >= BRACKET_NAME_BUF_SIZE)
3208                return REG_EBRACK;
3209              if (token->type == OP_OPEN_CHAR_CLASS)
3210                ch = re_string_fetch_byte_case (regexp);
3211              else
3212                ch = re_string_fetch_byte (regexp);
3213              if (re_string_eoi(regexp))
3214                return REG_EBRACK;
3215              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3216                break;
3217              elem->opr.name[i] = ch;
3218            }
3219
3220         2011-11-29 Andreas Schwab <schwab@redhat.com>
3221         * lib/regcomp.c (build_equiv_class):
3222         Fix access after end of search string in regex matcher.
3223
3224         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3225         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3226
3227         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3228         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3229
3230         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3231         * lib/regcomp.c (parse_branch, parse_sub_exp):
3232         More regex memory leak fixes and tests.
3233         (parse_sub_exp, parse_bracket_exp):
3234         Fix memory leak for some invalid regular expressions.
3235
3236         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3237         * lib/regex_internal.c, lib/regexec.c:
3238         Fix unnecessary overallocation due to incomplete character.  When
3239         incomplete characters are found at the end of a string the code
3240         ran amok and allocated lots of memory.  Stricter limits are now in
3241         place.
3242
3243         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3244         * lib/regex.h: Update documentation.
3245
3246         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3247         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3248
3249         2010-05-05 Andreas Schwab <schwab@redhat.com>
3250         * lib/regexec.c (find_collation_sequence_value):
3251         Fix lookup of collation sequence value during regexp matching.
3252
3253         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3254         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3255
3256         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3257         * lib/regex.h: Cleanup namespace.
3258
3259         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3260         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3261
3262         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3263         * lib/regex_internal.h: Prevent some declarations and definitions
3264         to be seen when used in tests.
3265
3266         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3267         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3268         __libc_lock_* macros if not _LIBC.
3269         (struct re_dfa_t): Add lock.
3270
3271 2012-02-07  Eric Blake  <eblake@redhat.com>
3272
3273         maint.mk: also prohibit lower-case @var@
3274         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3275         lower case, like @top_srcdir@.
3276
3277 2012-02-04  Eric Blake  <eblake@redhat.com>
3278
3279         canonicalize: avoid uninitialized memory use
3280         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3281         random '/' left in dest.
3282         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3283
3284 2012-02-04  Bruno Haible  <bruno@clisp.org>
3285
3286         isatty: Fix test failure of ptsname_r on native Windows.
3287         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3288         and don't set errno.
3289         (isatty): Test first whether fd is valid. Set errno when returning 0.
3290
3291 2012-02-04  Bruno Haible  <bruno@clisp.org>
3292
3293         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3294         * tests/test-spawn-pipe-main.c: Include progname.h.
3295         (main): Invoke set_program_name.
3296         * modules/spawn-pipe-tests (Depends-on): Add progname.
3297
3298         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3299         * tests/test-nonblocking-socket-main.c: Include progname.h.
3300         (main): Invoke set_program_name.
3301         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3302
3303         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3304         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3305         (main): Invoke set_program_name.
3306         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3307
3308 2012-02-04  Eric Blake  <eblake@redhat.com>
3309
3310         canonicalize-lgpl: fix // handling
3311         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3312
3313         canonicalize: fix // handling
3314         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3315         /// to //, since only // is special.
3316
3317 2012-02-04  Bruno Haible  <bruno@clisp.org>
3318
3319         ioctl: Fix test failure on native Windows.
3320         * lib/ioctl.c: Include msvc-nothrow.h.
3321         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
3322
3323 2012-02-04  Bruno Haible  <bruno@clisp.org>
3324
3325         fsync: Avoid test failure on native Windows.
3326         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
3327         read-only.
3328
3329 2012-02-04  Bruno Haible  <bruno@clisp.org>
3330
3331         sys_select: Avoid syntax error on OpenBSD 5.0.
3332         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
3333         currently being included, just include the system's <sys/select.h>.
3334
3335 2012-02-04  Bruno Haible  <bruno@clisp.org>
3336
3337         sys_select: Avoid syntax error on OpenBSD 5.0.
3338         * lib/sys_select.in.h: Include <signal.h> only after the include_next
3339         <sys/select.h>, not before.
3340         Reported by Jiri B <jirib@devio.us>.
3341
3342 2012-02-04  Bruno Haible  <bruno@clisp.org>
3343
3344         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
3345         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
3346         global variables.
3347         * tests/test-get-rusage-data.c (main): Likewise.
3348         Reported by Jim Meyering.
3349
3350 2012-02-04  Bruno Haible  <bruno@clisp.org>
3351
3352         stdioext: Fix last commit.
3353         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
3354
3355 2012-02-03  Bruno Haible  <bruno@clisp.org>
3356
3357         stdioext: Add tentative support for Plan9.
3358         * lib/stdio-impl.h: Include <errno.h>.
3359         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
3360         * lib/freadable.c (freadable): Likewise.
3361         * lib/fwritable.c (fwritable): Likewise.
3362         * lib/fbufmode.c (fbufmode): Likewise.
3363         * lib/freading.c (freading): Likewise.
3364         * lib/fwriting.c (fwriting): Likewise.
3365         * lib/freadptr.c (freadptr): Likewise.
3366         * lib/freadseek.c (freadptrinc): Likewise.
3367         * lib/freadahead.c (freadahead): Likewise.
3368         * lib/fpurge.c (fpurge): Likewise.
3369         * lib/fseeko.c (rpl_fseeko): Likewise.
3370         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3371         Reported by Jens Staal <staal1978@gmail.com>.
3372
3373 2012-02-02  Jim Meyering  <meyering@redhat.com>
3374
3375         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3376         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3377         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3378         not even to try to add the attribute.  Instead, add a pragma to suppress
3379         the suggestion/warning.
3380
3381 2012-01-31  Karl Berry  <karl@gnu.org>
3382
3383         setstate doc: typo.
3384         * doc/posix-functions/setstate.texi (setstate): { not (.
3385
3386 2012-01-31  Bruno Haible  <bruno@clisp.org>
3387
3388         popen: Make more robust on Windows.
3389         * lib/popen.c: On native Windows, use the _popen based code even if
3390         HAVE_POPEN is set.
3391         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3392         environment variable on native Windows.
3393
3394 2012-01-30  Bruno Haible  <bruno@clisp.org>
3395
3396         pclose: Fix typo.
3397         * lib/stdio.in.h (pclose): Fix typo in warning message.
3398
3399 2012-01-30  Bruno Haible  <bruno@clisp.org>
3400
3401         doc about getlogin_r, setstate.
3402         * doc/posix-functions/getlogin_r.texi: List the incompatible
3403         declaration problem under "not fixed by gnulib".
3404         * doc/posix-functions/setstate.texi: Mention incompatible declaration
3405         problem on Solaris 11 and other platforms.
3406
3407 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
3408             Bruno Haible  <bruno@clisp.org>
3409
3410         poll tests: Make test more robust.
3411         * tests/test-poll.c: Include macros.h.
3412         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
3413         return value of various I/O operations.
3414         * modules/poll-tests (Files): Add tests/macros.h.
3415
3416 2012-01-30  Bruno Haible  <bruno@clisp.org>
3417
3418         sys_stat: Fix support for mingw64 and MSVC.
3419         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
3420         header files already do it.
3421         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
3422         stat itself.
3423         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3424
3425 2012-01-30  Bruno Haible  <bruno@clisp.org>
3426
3427         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
3428         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
3429         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
3430
3431 2012-01-29  Bruno Haible  <bruno@clisp.org>
3432
3433         quotearg: Fix test failure on MacOS X 10.5.
3434         * tests/test-quotearg-simple.c: Include localcharset.h.
3435         (main): If the locale encoding is not ASCII, bypass the tests of
3436         locale_quoting_style and clocale_quoting_style.
3437         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
3438
3439 2012-01-29  Jim Meyering  <meyering@redhat.com>
3440
3441         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
3442         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
3443         detect uses of canonicalize_file_name.
3444
3445 2012-01-28  Bruno Haible  <bruno@clisp.org>
3446
3447         test-framework-sh: Fix test failure with AIX 7.1 diff.
3448         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
3449         in column 1, like 'diff -c' does.
3450         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
3451         whether 'diff -u' is used. Instead, test whether the output contains
3452         some '@' character.
3453
3454 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3455
3456         strtoimax: eliminate need for stdint.h, inttypes.h checks
3457         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
3458         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
3459         the prerequisites for a recently-introduced strtoimax test.
3460         I guess this might cause strtoimax to be replaced when not
3461         strictly necessary on older hosts, but this shouldn't introduce
3462         any bugs and it should make Emacs 'configure' faster on typical
3463         modern hosts.  Problem discovered when importing the latest gnulib
3464         to an Emacs test version.
3465         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
3466
3467 2012-01-28  Bruno Haible  <bruno@clisp.org>
3468
3469         sys_time: Override 'struct timeval' on some native Windows platforms.
3470         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
3471         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
3472         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
3473         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
3474         needs to be overridden.
3475         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
3476         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
3477         * tests/test-sys_select.c: Check that the tv_sec member has the same
3478         size as a 'time_t'.
3479         * tests/test-sys_time.c: Likewise.
3480         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
3481         is set, set also REPLACE_GETTIMEOFDAY.
3482         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
3483         convert the resulting 'struct timeval' before returning.
3484         * lib/select.c: Include <sys/time.h>.
3485         (select, timeval): Undefine at the right place.
3486         * modules/select (Depends-on): Add sys_time.
3487         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
3488         some Windows platforms.
3489         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3490
3491 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3492
3493         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
3494         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
3495         an integer.
3496         * lib/fcntl.c (dupfd): Likewise.
3497         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
3498
3499 2012-01-28  Bruno Haible  <bruno@clisp.org>
3500
3501         fcntl: Avoid compilation error on native Windows.
3502         * modules/fcntl (Depends-on): Add 'close'.
3503
3504 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3505
3506         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3507         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3508         pointer to an integer.
3509         * lib/poll.c (IsConsoleHandle): Likewise.
3510         * lib/isatty.c (IsConsoleHandle): Likewise.
3511
3512 2012-01-28  Jim Meyering  <meyering@redhat.com>
3513
3514         doc: clarify README-release
3515         * top/README-release: Clarify: you should make a point to have
3516         the latest stable versions of build tools in your PATH, and the
3517         reference to buildreq is solely for its list of tool names, not
3518         for its minimal-functional version numbers.
3519         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3520
3521         maint.mk: use more readable (yet functionally equivalent) quoting
3522         It is common to quote a single quote in a single quoted string like
3523         this:  '...'\''...'.  Unless you know the idiom, that looks like
3524         gibberish, so prefer to double-quote the string when possible.
3525         Then you can use a more readable, lone single quote: "...'..."
3526         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3527         "don't" is more readable than the equivalent 'don'\''t'.
3528         (sc_cast_of_x_alloc_return_value): Likewise.
3529         (sc_cast_of_alloca_return_value): Likewise.
3530         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3531         rather than '\'':'\''.
3532
3533 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3534
3535         stdalign: relax _Alignof and tighten _Alignas test
3536         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3537         as it was too strict: alignof must divide offsetof, but it need
3538         not equal offsetof.  Inspired by Joseph S. Myers's comment
3539         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3540         Conversely, tighten the _Alignas test a bit, as the resulting
3541         alignment must be exactly 8.
3542
3543 2012-01-27  Bruno Haible  <bruno@clisp.org>
3544
3545         stdalign: Document the last change.
3546         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3547
3548 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3549
3550         stdalign: check that alignof and offsetof are consistent
3551         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3552         Problem reported for gnulib by Richard W.M. Jones in
3553         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3554
3555 2012-01-27  Jim Meyering  <meyering@redhat.com>
3556
3557         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3558         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3559         convert a sequence with gaps to the minimal containing range.
3560         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3561         * tests/test-update-copyright.sh: Test for this.
3562         The FSF confirmed it is ok to do this, assuming there is at
3563         least one significant change per year in the affected range:
3564         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3565
3566 2012-01-26  Bruno Haible  <bruno@clisp.org>
3567
3568         pipe2: refine doc about thread-safety
3569         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3570         multithread-safety problem.
3571         * doc/glibc-functions/accept4.texi: Likewise.
3572
3573 2012-01-26  Bruno Haible  <bruno@clisp.org>
3574
3575         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3576         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3577         In the test program, include <fcntl.h>, for O_RDONLY.
3578
3579 2012-01-26  Eric Blake  <eblake@redhat.com>
3580
3581         pipe2: document lack of thread-safety in replacement
3582         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3583         issue in replacement.
3584         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3585         Based on a report by Eric Wong.
3586
3587 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3588             Bruno Haible  <bruno@clisp.org>
3589
3590         malloca: Avoid warnings on x86_64 mingw64.
3591         * lib/malloca.c: Include <stdint.h>.
3592         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3593         * modules/malloca (Depends-on): Add stdint.
3594         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3595
3596 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3597
3598         obstack: remove __STDC__ conditionals
3599         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3600         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3601         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3602         m4/include_next.m4 as the only gnulib-maintained places that still
3603         refer to __STDC__.
3604
3605 2012-01-24  Bruno Haible  <bruno@clisp.org>
3606
3607         havelib: Modern quoting.
3608         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3609         the recent change to the GNU coding standards.
3610
3611 2012-01-24  Bruno Haible  <bruno@clisp.org>
3612
3613         stdint: Improve support for Android.
3614         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3615         Reported by Simon Josefsson <simon@josefsson.org>.
3616
3617 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3618
3619         doc: omit trailing empty lines from INSTALL etc.
3620         * doc/Makefile (INSTALL): Omit trailing empty lines.
3621         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3622         omit trailing empty lines.  This simplifies the build procedure.
3623
3624 2012-01-23  Jim Meyering  <meyering@redhat.com>
3625
3626         tests: avoid spurious warnings about gl_sockets_startup
3627         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3628         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3629         reporting a "statement with no effect".
3630         * tests/test-accept.c (main): Mark as "(void)".
3631         * tests/test-accept4.c (main): Likewise.
3632         * tests/test-bind.c (main): Likewise.
3633         * tests/test-connect.c (main): Likewise.
3634         * tests/test-getpeername.c (main): Likewise.
3635         * tests/test-getsockname.c (main): Likewise.
3636         * tests/test-getsockopt.c (main): Likewise.
3637         * tests/test-listen.c (main): Likewise.
3638         * tests/test-recv.c (main): Likewise.
3639         * tests/test-recvfrom.c (main): Likewise.
3640         * tests/test-send.c (main): Likewise.
3641         * tests/test-sendto.c (main): Likewise.
3642         * tests/test-setsockopt.c (main): Likewise.
3643         * tests/test-shutdown.c (main): Likewise.
3644
3645 2012-01-21  Bruno Haible  <bruno@clisp.org>
3646
3647         locale-fr.m4: Fix for Android.
3648         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3649         failure of the test program on Bionic libc.
3650
3651 2012-01-21  Jim Meyering  <meyering@redhat.com>
3652
3653         bootstrap: fail when bootstrap_post_import_hook fails
3654         Otherwise, it's far too easy to miss diagnostics emitted
3655         between gnulib-tool's output and that of running configure.
3656         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3657
3658 2012-01-17  Jim Meyering  <meyering@redhat.com>
3659
3660         maint: enable sc_trailing_blank
3661         * build-aux/pmccabe.css: Remove trailing blanks.
3662         * doc/acl-cygwin.txt: Likewise.
3663         * doc/gnu-oids.texi: Likewise
3664         * cfg.mk: Enable sc_trailing_blank.
3665         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
3666
3667 2012-01-17  Jim Meyering  <meyering@redhat.com>
3668
3669         maint: enable sc_prohibit_openat_without_use
3670         * cfg.mk: Enable sc_prohibit_openat_without_use.
3671         Exempt lib/selinux-at.c.
3672
3673 2012-01-17  Jim Meyering  <meyering@redhat.com>
3674
3675         maint: enable sc_prohibit_cloexec_without_use
3676         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
3677         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
3678
3679 2012-01-17  Jim Meyering  <meyering@redhat.com>
3680
3681         maint: enable sc_prohibit_intprops_without_use
3682         * cfg.mk: Enable sc_prohibit_intprops_without_use
3683         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
3684
3685 2012-01-17  Jim Meyering  <meyering@redhat.com>
3686
3687         maint: enable sc_prohibit_hash_pjw_without_use
3688         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
3689         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
3690         to match any use of \<hash_pjw\>, i.e., not necessarily with a
3691         following " (".
3692
3693 2012-01-17  Jim Meyering  <meyering@redhat.com>
3694
3695         maint: enable double-word-prohibiting rule
3696         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
3697         Exempt three files.
3698
3699 2012-01-17  Jim Meyering  <meyering@redhat.com>
3700
3701         maint: remove empty lines at EOF, but excluding modules/*
3702         Apply syntax rules at home as well as abroad.  Most changes
3703         were induced by running this:
3704           make srcdir=. _build-aux=build-aux -f top/maint.mk \
3705             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
3706             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
3707         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
3708         Exempt modules/* and two binary files.
3709         Also exempt doc/INSTALL*, per request from Bruno Haible.
3710         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
3711         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
3712         * doc/Copyright/request-assign.future: Likewise.
3713         * doc/Copyright/request-disclaim.changes: Likewise.
3714         * doc/INSTALL: Likewise.
3715         * doc/INSTALL.ISO: Likewise.
3716         * doc/INSTALL.UTF-8: Likewise.
3717         * doc/acl-cygwin.txt: Likewise.
3718         * doc/acl-resources.txt: Likewise.
3719         * doc/fdl-1.2.texi: Likewise.
3720         * doc/fdl-1.3.texi: Likewise.
3721         * doc/fdl.texi: Likewise.
3722         * lib/argp-pin.c: Likewise.
3723         * lib/round.c: Likewise.
3724         * lib/unicase/u16-totitle.c: Likewise.
3725         * lib/unictype/block_test.c: Likewise.
3726         * lib/uninorm/canonical-decomposition.c: Likewise.
3727         * m4/README: Likewise.
3728         * m4/relocatable-lib.m4: Likewise.
3729         * tests/test-isnand-nolibm.c: Likewise.
3730         * tests/test-isnand.c: Likewise.
3731         * tests/uninorm/NormalizationTest.txt: Likewise.
3732
3733 2012-01-17  Jim Meyering  <meyering@redhat.com>
3734
3735         maint: add framework to run syntax-check rules against gnulib sources
3736         * cfg.mk: New file, to disable all currently-failing tests.
3737         We'll enable them one by one, as they are made to pass.
3738         * Makefile (sc_maint): New rule.
3739
3740 2012-01-21  Bruno Haible  <bruno@clisp.org>
3741
3742         stdint: Add support for Android.
3743         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
3744         include the system's <stdint.h>.
3745         Reported by Simon Josefsson <simon@josefsson.org>.
3746
3747 2012-01-19  Jim Meyering  <meyering@redhat.com>
3748
3749         bootstrap: add bootstrap_post_import_hook
3750         Bison does still need something like the gnulib_mk_hook whose
3751         invocation I had to remove along with slurp in commit 767ccd40.
3752         Technically, we could get along without it, but doing so would
3753         have required living with a warning and a mandatory post-bootstrap
3754         automake rerun.
3755         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
3756         (bootstrap_post_import_hook): New function.
3757         Invoke it after gnulib-tool --import and before autoreconf.
3758
3759 2012-01-18  Jim Meyering  <meyering@redhat.com>
3760
3761         gitlog-to-changelog: don't use "no_"-prefixed variable name
3762         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
3763         to enable both --cluster and --no-cluster.  Change variable name,
3764         s/\$no_cluster/$cluster/, and reverse usage to match.
3765
3766         gitlog-to-changelog: use "||", not "or" in expressions
3767         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
3768         expressions.
3769
3770 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
3771
3772         gitlog-to-changelog: new option --no-cluster
3773         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
3774         clustering of adjacent commit messages.
3775
3776 2012-01-17  Jim Meyering  <meyering@redhat.com>
3777
3778         maint: spell file systems with two words, not one
3779         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
3780         two words, not one.
3781
3782 2012-01-16  Jim Meyering  <meyering@redhat.com>
3783
3784         bootstrap: add a FIXME comment to ensure we eventually remove the hack
3785         * build-aux/bootstrap (gnulib_tool_options): Add comment.
3786
3787 2012-01-16  Eric Blake  <eblake@redhat.com>
3788
3789         bootstrap: cater to autoconf 2.59
3790         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
3791         is not available.
3792
3793         bootstrap: properly check for libtool
3794         * build-aux/bootstrap (libtoolize): Also run libtool when older
3795         usage is detected.
3796
3797 2012-01-15  Bruno Haible  <bruno@clisp.org>
3798
3799         Improve support for MSVC 9.
3800         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
3801         clashes on MSVC.
3802         * lib/fcntl.in.h: Likewise.
3803         * lib/stdlib.in.h: Likewise.
3804         * lib/sys_stat.in.h: Likewise.
3805
3806 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
3807
3808         gnupload: we hold the master copy of this script now
3809         For motivation and more information, see:
3810         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
3811         * build-aux/gnupload: Make it clear in the heading comments that the
3812         master copy of this file is maintained by gnulib.  Since we are at
3813         it, bump its copyright year and ...
3814         ($scriptversion): ... the date in its version.
3815         ($usage): Patches and bug reports should be sent to the gnulib list,
3816         not the automake one.
3817         * config/srclist.txt: Don't try to sync 'gnupload' from automake
3818         anymore.
3819
3820 2012-01-15  Bruno Haible  <bruno@clisp.org>
3821
3822         Fix module 'random'.
3823         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
3824         initstate, setstate are declared.
3825
3826 2012-01-14  Bruno Haible  <bruno@clisp.org>
3827
3828         Tests for module 'random'.
3829         * modules/random-tests: New file.
3830         * tests/test-random.c: New file, based on tests/test-random_r.c.
3831
3832         New module 'random'.
3833         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
3834         declarations.
3835         * lib/random.c: New file, based on glibc/stdlib/random.c.
3836         * m4/random.m4: New file.
3837         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
3838         HAVE_RANDOM.
3839         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
3840         * modules/random: New file.
3841         * config/srclist.txt: Add an entry for random.c.
3842         * doc/posix-functions/random.texi: Mention the 'random' module.
3843         * doc/posix-functions/initstate.texi: Likewise.
3844         * doc/posix-functions/setstate.texi: Likewise.
3845         * doc/posix-functions/srandom.texi: Likewise.
3846
3847 2012-01-12  Bruno Haible  <bruno@clisp.org>
3848
3849         random_r: Use common idioms.
3850         * lib/random_r.c: Include <stdlib.h> first.
3851
3852         random_r: Override incompatible API on AIX, OSF/1.
3853         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
3854         Override the system function if REPLACE_RANDOM_R is 1.
3855         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
3856         and OSF/1, set REPLACE_RANDOM_R.
3857         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
3858         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
3859         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
3860         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
3861         * doc/glibc-functions/random_r.texi: Likewise.
3862         * doc/glibc-functions/setstate_r.texi: Likewise.
3863
3864         random_r: Support for MSVC 9.
3865         * lib/random_r.c: Include stdint.h, not inttypes.h.
3866
3867 2012-01-12  Eric Blake  <eblake@redhat.com>
3868
3869         inet_ntop: guard extra work by IF_LINT
3870         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
3871         better code generation when not checking for warnings.
3872         Suggested by Paul Eggert and Jim Meyering.
3873
3874         strptime: fix regression on mingw
3875         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
3876         Fix regression.  Reported by Bruno Haible.
3877
3878 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
3879             Bruno Haible  <bruno@clisp.org>
3880
3881         copy-file: add error-code-returning variant.
3882         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
3883         (qcopy_file_preserving): New declaration.
3884         * lib/copy-file.c (qcopy_file_preserving): Renamed from
3885         copy_file_preserving. Change return type to 'int'. Don't emit an error
3886         message here.
3887         (copy_file_preserving): New function.
3888         * tests/test-copy-file.c: Include <stdlib.h>.
3889         (main): Test qcopy_file_preserving if the environment variable
3890         NO_STDERR_OUTPUT is set.
3891         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
3892         with NO_STDERR_OUTPUT
3893         * tests/test-copy-file-2.sh: Likewise.
3894
3895 2012-01-10  Bruno Haible  <bruno@clisp.org>
3896
3897         copy-file: Use 'quote' module consistently.
3898         * lib/copy-file.c (copy_file_preserving): Use quote().
3899
3900         copy-file: Refactor.
3901         * lib/copy-file.c: Include quote.h.
3902         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
3903         message here.
3904         * modules/copy-file (Depends-on): Add quote.
3905
3906         acl: Export qcopy_acl.
3907         * lib/acl.h (qcopy_acl): New declaration.
3908         * lib/copy-acl.c (qcopy_acl): Make non-static.
3909
3910         acl: Rename a local variable.
3911         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
3912
3913         acl: Align return values of copy_acl and qcopy_acl.
3914         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
3915         maybe < -1.
3916
3917 2012-01-11  Eric Blake  <eblake@redhat.com>
3918
3919         strptime: silence gcc warnings
3920         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
3921         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
3922         Reported by Daniel P. Berrange.
3923
3924         inet_ntop: silence gcc warning
3925         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
3926         Reported by Daniel P. Berrange.
3927
3928 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
3929
3930         getloadavg test: skip the test on GNU/Linux without /proc mounted
3931         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
3932         file.  When /proc is not mounted, it always fails with ENOENT.
3933         * tests/test-getloadavg.c (main): Treat ENOENT return code from
3934         getloadavg(3) the same way as ENOSYS and ENOTSUP.
3935
3936 2012-01-10  Bruno Haible  <bruno@clisp.org>
3937
3938         regex: Avoid link error on MSVC 9.
3939         * modules/regex (Depends-on): Add wctype.
3940
3941 2012-01-10  Bruno Haible  <bruno@clisp.org>
3942
3943         doc: Mention --with-tests option.
3944         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
3945         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
3946         --with-tests.
3947         Reported by Reuben Thomas.
3948
3949 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
3950
3951         users.txt: order package names lexicographically.
3952         * users.txt: Order package names lexicographically.
3953
3954 2012-01-10  Jim Meyering  <meyering@redhat.com>
3955
3956         maint.mk: fix description in comment
3957         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
3958
3959         ignore-value: remove deprecated ignore_ptr function
3960         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
3961         * NEWS: Note this.
3962
3963 2012-01-09  Jim Meyering  <meyering@redhat.com>
3964
3965         test-init.sh: avoid a subshell
3966         * tests/test-init.sh: Remove protective subshell.
3967         Suggested by Bernhard Voelker.  While a subshell is normally
3968         required to protect against older shells (Solaris, FreeBSD) that
3969         warn about a missing program before performing redirection, the
3970         shell-selection tests performed by init.sh probably exclude any
3971         offending shell.
3972
3973 2012-01-08  Bruno Haible  <bruno@clisp.org>
3974
3975         setlocale tests: Avoid test failure on Solaris 11 2011-11.
3976         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
3977         variable.
3978
3979 2012-01-08  Bruno Haible  <bruno@clisp.org>
3980
3981         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
3982         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3983         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3984         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
3985         macro.
3986         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
3987         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3988         * lib/spawn_faction_addopen.c: Add workaround implementation if
3989         HAVE_WORKING_POSIX_SPAWN.
3990         * modules/spawn (Makefile): Substitute
3991         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3992         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
3993         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
3994         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3995         (Depends-on): Update conditions.
3996         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
3997         the Solaris 11 bug.
3998
3999 2012-01-08  Bruno Haible  <bruno@clisp.org>
4000
4001         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4002         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4003         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4004         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4005         macro.
4006         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4007         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4008         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4009         HAVE_WORKING_POSIX_SPAWN.
4010         * modules/spawn (Makefile): Substitute
4011         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4012         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4013         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4014         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4015         (Depends-on): Update conditions.
4016         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4017         the Solaris 11 bug.
4018
4019 2012-01-08  Bruno Haible  <bruno@clisp.org>
4020
4021         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4022         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4023         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4024         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4025         HAVE_WORKING_POSIX_SPAWN.
4026         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4027         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4028         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4029         * lib/spawn_faction_addclose.c: Add workaround implementation if
4030         HAVE_WORKING_POSIX_SPAWN.
4031         * modules/spawn (Makefile): Substitute
4032         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4033         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4034         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4035         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4036         (Depends-on): Update conditions.
4037         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4038         the Solaris 11 bug.
4039
4040 2012-01-08  Bruno Haible  <bruno@clisp.org>
4041
4042         doc: Update for Solaris 11 2011-11.
4043         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4044         * m4/printf.m4: Update comments.
4045
4046 2012-01-08  Bruno Haible  <bruno@clisp.org>
4047
4048         mktime: Avoid compilation error on Solaris 11.
4049         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4050
4051 2012-01-08  Bruno Haible  <bruno@clisp.org>
4052
4053         doc: Small fix.
4054         * doc/posix-headers/nl_types.texi: Correct platforms list.
4055
4056 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4057
4058         Add lgpl-3.0 module.
4059         * MODULES.html.sh (Support for building documentation): Add
4060         lgpl-3.0.
4061         * modules/lgpl-3.0: New file.
4062
4063 2012-01-08  Jim Meyering  <meyering@redhat.com>
4064
4065         select.c: indent with spaces, not TABs
4066         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4067
4068 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4069
4070         quotearg: do not use grave accent for left quote
4071         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4072         locale_quoting_style.
4073         (quotearg_buffer_restyled): Fix example.
4074         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4075
4076 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4077
4078         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4079         Most programs do not have translation catalogs for English and much
4080         less separate catalogs for British and American English.  Drop the
4081         suggestion to translators about these two, and provide it
4082         automatically for Unicode locales.  Like most programs, even those
4083         using American English, we use single quotation marks.  This conflicts
4084         with the American typographic convention, but works better when you
4085         cite the entire error message within double quotes.  It also tries not
4086         to clash with established practice and with what non-gnulib programs
4087         will usually do.
4088         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4089         using an UTF-8 or GB-18030 locale.  The list of other locales with
4090         quotes was provided by Bruno Haible.
4091         (quotearg_buffer_restyled): Adjust instructions to translators.
4092         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4093         text, since this would be wrong when using Unicode.
4094         * modules/quotearg: Depend on c-strcaseeq.
4095
4096 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4097
4098         quotearg: fix Wikipedia link
4099         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4100
4101 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4102
4103         Fix for mingw with MSVC9.
4104         * m4/ld-version-script.m4: Check that compiler rejects version
4105         scripts with syntax errors.  Reported by Bruno Haible
4106         <bruno@clisp.org>.
4107
4108 2012-01-06  Bruno Haible  <bruno@clisp.org>
4109
4110         Talk about "native Windows API", not "Woe32".
4111         * lib/accept4.c: Update comments to mention native Windows.
4112         * lib/execute.c: Likewise.
4113         * lib/fatal-signal.c: Likewise.
4114         * lib/localcharset.c: Likewise.
4115         * lib/nanosleep.c: Likewise.
4116         * lib/nl_langinfo.c: Likewise.
4117         * lib/pclose.c: Likewise.
4118         * lib/pipe-filter-gi.c: Likewise.
4119         * lib/pipe-filter-ii.c: Likewise.
4120         * lib/pipe.c: Likewise.
4121         * lib/pipe2.c: Likewise.
4122         * lib/popen.c: Likewise.
4123         * lib/progreloc.c: Likewise.
4124         * lib/relocatable.c: Likewise.
4125         * lib/sigaction.c: Likewise.
4126         * lib/sigprocmask.c: Likewise.
4127         * lib/spawn-pipe.h: Likewise.
4128         * lib/spawn-pipe.c: Likewise.
4129         * lib/spawni.c: Likewise.
4130         * lib/stat-time.h: Likewise.
4131         * lib/w32spawn.h: Likewise.
4132         * tests/test-isatty.c: Likewise.
4133         * lib/config.charset: More comments.
4134         * doc/gnulib-intro.texi: Mention native Windows.
4135         * doc/posix-functions/_Exit_C99.texi: Likewise.
4136         * doc/posix-headers/fcntl.texi: Likewise.
4137
4138 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4139
4140         argp: Avoid crash if translator uses % characters in a translation.
4141         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4142         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4143
4144 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4145
4146         doc: C11 and C++11 are now official
4147         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4148         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4149         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4150         * modules/stdalign:
4151         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4152
4153 2012-01-06  Bruno Haible  <bruno@clisp.org>
4154
4155         uc-is-grapheme-break tests: Tweak.
4156         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4157         message.
4158
4159 2012-01-06  Bruno Haible  <bruno@clisp.org>
4160
4161         test-init.sh: correct the test for diff -u
4162         * tests/test-init.sh: Also redirect stdout to /dev/null.
4163
4164 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4165
4166         Use ', not `, for quoting output.
4167         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4168         (print_changelog_deltas, get_tool_versions, main program):
4169         * build-aux/git-version-gen:
4170         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4171         * build-aux/move-if-change (help):
4172         * build-aux/useless-if-before-free (usage, main program):
4173         * check-module (parse_module_file, usage)
4174         (find_included_lib_files, check_module):
4175         * lib/argmatch.c (main) [TEST]:
4176         * lib/argp-help.c (_help):
4177         * lib/getopt1.c (main) [TEST]:
4178         * lib/git-merge-changelog.c (usage):
4179         * lib/xstrtol-error.c (xstrtol_error):
4180         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4181         * m4/argz.m4 (gl_FUNC_ARGZ):
4182         * m4/bison.m4 (gl_BISON):
4183         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4184         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4185         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4186         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4187         * m4/gc-random.m4 (gl_GC_RANDOM):
4188         * m4/intl.m4 (gt_CHECK_DECL):
4189         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4190         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4191         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4192         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4193         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4194         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4195         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4196         * tests/test-dirname.c (main):
4197         * tests/test-getpass.c (main):
4198         * tests/test-iconvme.c (main):
4199         * tests/test-parse-datetime.c (LOG):
4200         * tests/test-xstrtoimax.sh:
4201         * tests/test-xstrtol.sh:
4202         * tests/test-xstrtoll.sh:
4203         * tests/test-xstrtoumax.sh:
4204         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4205         * top/GNUmakefile (abort-due-to-no-makefile):
4206         Quote 'like this', not `like this', as per the recent change to
4207         the GNU coding standards.
4208
4209 2012-01-05  Bruno Haible  <bruno@clisp.org>
4210
4211         strtoimax: Don't force a replacement on systems where intmax_t is int.
4212         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4213         'intmax_t' is not larger than 'int'.
4214         Reported by Pádraig Brady <P@draigBrady.com>.
4215
4216 2012-01-05  Bruno Haible  <bruno@clisp.org>
4217
4218         doc: Mention NetBSD bugs.
4219         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4220         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4221
4222 2012-01-05  Bruno Haible  <bruno@clisp.org>
4223
4224         strtoumax tests: Enhance tests.
4225         * tests/test-strtoumax.c (main): Add tests for large values.
4226
4227 2012-01-05  Bruno Haible  <bruno@clisp.org>
4228
4229         strtoimax: Work around AIX 5.1 bug.
4230         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4231         definition.
4232         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4233         Set HAVE_STRTOIMAX.
4234         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4235         REPLACE_STRTOIMAX.
4236         * modules/inttypes-incomplete (Makefile.am): Substitute
4237         REPLACE_STRTOIMAX.
4238         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4239         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4240         (Depends-on): Update conditions.
4241         * tests/test-strtoimax.c (main): Add tests for large values.
4242         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4243
4244 2012-01-05  Bruno Haible  <bruno@clisp.org>
4245
4246         inttypes: Modernize.
4247         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4248         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4249         (Makefile.am): Update inttypes.h rule.
4250
4251 2012-01-05  Jim Meyering  <meyering@redhat.com>
4252
4253         init.sh: don't waste a subshell just to redirect stderr
4254         * tests/init.sh: In testing for diff -u and diff -c, use a
4255         stderr-redirecting exec inside `...` rather than a subshell.
4256
4257         test-init.sh: avoid failure on HP-UX 11.00
4258         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4259         resolves to diff -c or cmp.  Reported by Bruno Haible.
4260
4261 2012-01-05  Bruno Haible  <bruno@clisp.org>
4262
4263         Tests for module 'strtoull'.
4264         * modules/strtoull-tests: New file.
4265         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4266
4267 2012-01-05  Bruno Haible  <bruno@clisp.org>
4268
4269         Tests for module 'strtoll'.
4270         * modules/strtoll-tests: New file.
4271         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4272
4273 2012-01-05  Bruno Haible  <bruno@clisp.org>
4274
4275         Tests for module 'strtoul'.
4276         * modules/strtoul-tests: New file.
4277         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4278
4279 2012-01-05  Bruno Haible  <bruno@clisp.org>
4280
4281         Tests for module 'strtol'.
4282         * modules/strtol-tests: New file.
4283         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4284
4285 2012-01-04  Jim Meyering  <meyering@redhat.com>
4286
4287         test-init.sh: accommodate Solaris 5.10's different diff -u output
4288         * tests/test-init.sh: Also exempt @@ lines from the comparison
4289         of diff output, since Solaris 5.10 and GNU diff formats differ.
4290         Reported by Stefano Lattarini.
4291
4292 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4293
4294         test-posixtm: don't assume signed integer wraparound
4295         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4296         after signed integer overflow.  Inspired by (though it may not
4297         fix) Bruno Haible's bug report in
4298         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4299
4300         Spell out "Windows 9x" and "Windows XP".
4301         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4302         "Windows 9x" and "WinXP" with "Windows XP".
4303
4304 2012-01-04  Jim Meyering  <meyering@redhat.com>
4305
4306         test-vc-list-files-cvs.sh: remove obsolete comment
4307         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4308         double exit.  Now that's all encapsulated via skip_ and Exit.
4309
4310 2012-01-04  Bruno Haible  <bruno@clisp.org>
4311
4312         Talk about "native Windows API", not "Win32".
4313         * lib/classpath.c: Update comments to mention native Windows.
4314         * lib/csharpexec.c: Likewise.
4315         * lib/dup2.c: Likewise.
4316         * lib/error.c: Likewise.
4317         * lib/fcntl.c: Likewise.
4318         * lib/filename.h: Likewise.
4319         * lib/findprog.c: Likewise.
4320         * lib/get-rusage-as.c: Likewise.
4321         * lib/get-rusage-data.c: Likewise.
4322         * lib/getpagesize.c: Likewise.
4323         * lib/javaexec.c: Likewise.
4324         * lib/msvc-inval.c: Likewise.
4325         * lib/msvc-nothrow.c: Likewise.
4326         * lib/nanosleep.c: Likewise.
4327         * lib/nonblocking.c: Likewise.
4328         * lib/printf-parse.c: Likewise.
4329         * lib/setlocale.c: Likewise.
4330         * lib/sigaction.c: Likewise.
4331         * lib/strerror_r.c: Likewise.
4332         * lib/tmpdir.c: Likewise.
4333         * lib/vasnprintf.c: Likewise.
4334         * lib/w32spawn.h: Likewise.
4335         * lib/waitpid.c: Likewise.
4336         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
4337         * m4/locale-ar.m4: Likewise.
4338         * m4/locale-fr.m4: Likewise.
4339         * m4/locale-ja.m4: Likewise.
4340         * m4/locale-tr.m4: Likewise.
4341         * m4/locale-zh.m4: Likewise.
4342         * m4/printf.m4: Likewise.
4343         * tests/test-cloexec.c: Likewise.
4344         * tests/test-copy-acl.sh: Likewise.
4345         * tests/test-copy-file.sh: Likewise.
4346         * tests/test-file-has-acl.sh: Likewise.
4347         * tests/test-set-mode-acl.sh: Likewise.
4348         * tests/test-dup-safer.c: Likewise.
4349         * tests/test-dup2.c: Likewise.
4350         * tests/test-dup3.c: Likewise.
4351         * tests/test-fcntl.c: Likewise.
4352         * tests/test-nonblocking-pipe.h: Likewise.
4353         * tests/test-nonblocking-socket.h: Likewise.
4354         * tests/test-pipe.c: Likewise.
4355         * tests/test-pipe2.c: Likewise.
4356         * tests/test-spawn-pipe-child.c: Likewise.
4357         * doc/acl-resources.txt: Likewise.
4358         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4359         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
4360         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
4361         * lib/localcharset.c: Update comments to mention native Windows.
4362         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4363         * lib/localename.c: Likewise.
4364         * lib/progreloc.c: Likewise.
4365         * lib/relocatable.c: Likewise.
4366         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4367         (windows_compute_revents): Renamed from win32_compute_revents.
4368         (windows_compute_revents_socket): Renamed from
4369         win32_compute_revents_socket.
4370         * lib/select.c: Update comments to mention native Windows.
4371         (windows_poll_handle): Renamed from win32_poll_handle.
4372         * m4/threadlib.m4: Update comments to mention native Windows.
4373         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4374         --enable-threads=windows instead of --enable-threads=win32. Set
4375         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4376         * lib/glthread/lock.h: Update comments to mention native Windows.
4377         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4378         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4379         USE_WIN32_THREADS.
4380         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4381         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4382         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4383         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4384         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4385         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4386         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4387         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4388         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4389         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4390         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4391         * tests/test-tls.c: Likewise.
4392         Rationale:
4393         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4394         on both 32-bit and 64-bit Windows systems.
4395         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
4396         line of distinction is between "native Windows" on one side and Unix/
4397         POSIX systems on the other side. More details in
4398         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
4399         Suggested by Paul Eggert.
4400
4401 2012-01-03  Bruno Haible  <bruno@clisp.org>
4402
4403         isatty: Support for MSVC 9.
4404         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
4405         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
4406         (_isatty_nothrow): New function.
4407         (isatty): Use it instead of _isatty.
4408         (IsConsoleHandle): Add comment, from Paolo Bonzini.
4409         * lib/poll.c (IsConsoleHandle): Likewise.
4410         * lib/select.c (IsConsoleHandle): Likewise.
4411         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
4412         (gl_PREREQ_ISATTY): New macro.
4413         * modules/isatty (Depends-on): Add msvc-inval.
4414         (configure.ac): Invoke gl_PREREQ_ISATTY.
4415
4416 2012-01-03  Jim Meyering  <meyering@redhat.com>
4417
4418         maint.mk: remove temporary transition aid from over 1.5 years ago
4419         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
4420         purpose was to aid in the transition (avoiding silent malfunction)
4421         from that old name to the new _sc_search_regexp.  This shim was
4422         added by commit 219c504b.
4423
4424         init.sh: do not try to accommodate compare arguments starting with "-"
4425         * tests/init.sh (compare_dev_null_): Do not try to accommodate
4426         compare arguments that start with "-".  Besides, we do not worry
4427         about this when invoking diff or cmp; why start now with sed?
4428         Using "--" to separate options from argument would trigger sed
4429         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
4430         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
4431
4432 2012-01-02  Bruno Haible  <bruno@clisp.org>
4433
4434         Enhance tests for module 'isatty'.
4435         * modules/isatty-tests (Depends-on): Add pipe-posix.
4436         * tests/test-isatty.c: Include <fcntl.h>.
4437         (DEV_NULL): New macro.
4438         (main): Test the resut of isatty() also on regular files, pipes, and
4439         /dev/null.
4440
4441         New module 'isatty'.
4442         * lib/unistd.in.h (isatty): New declaration.
4443         * lib/isatty.c: New file, based on an idea of
4444         Bastien Roucariès <roucaries.bastien@gmail.com>.
4445         * m4/isatty.m4: New file.
4446         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
4447         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
4448         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
4449         REPLACE_ISATTY.
4450         * modules/isatty: New file.
4451         * doc/posix-functions/isatty.texi: Mention the new module.
4452         Suggested by Paolo Bonzini.
4453
4454 2012-01-02  Bruno Haible  <bruno@clisp.org>
4455
4456         canonicalize: Tweak 2011-12-29 commit.
4457         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
4458         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
4459
4460 2012-01-02  Jim Meyering  <meyering@redhat.com>
4461
4462         gitlog-to-changelog: describe input syntax in --help output
4463         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
4464
4465         gitlog-to-changelog: fix typo in --help: show backslash before email @
4466         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
4467         in sources, but not in actual output.
4468
4469 2011-12-30  Jim Meyering  <meyering@redhat.com>
4470
4471         gitlog-to-changelog: don't malfunction when name contains %-directive
4472         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
4473         in a name string cause trouble.  E.g., with a user name of "%s",
4474         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
4475
4476 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
4477
4478         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
4479         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
4480         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
4481         the "  (tiny change)" notation that is appended to the standard
4482         ChangeLog "date  name  email" header line.
4483
4484 2012-01-01  Jim Meyering  <meyering@redhat.com>
4485
4486         test-framework-sh: init.sh: fix "make dist" failure
4487         When using gnulib-tool's --with-tests option and any module that
4488         depends on test-framework-sh, "make dist" would fail due to the
4489         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
4490         in the gltests directory, and not in the gllib/ directory.
4491         One way to work around that is to move the EXTRA_DIST += init.sh
4492         from the primary module to the -tests one:
4493         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
4494         * modules/test-framework-sh (Makefile.am): ...not here.
4495         Reported by Tom G. Christensen in
4496         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
4497
4498         version-etc: update copyright year reported by --version
4499         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
4500
4501 2011-12-31  Pádraig Brady  <P@draigBrady.com>
4502
4503         canonicalize: only stat() if required
4504         * lib/canonicalize.c (canonicalize_filename_mode):
4505         Avoid calling l?stat() when both CAN_MISSING,
4506         and CAN_NOLINKS are set, as we neither need
4507         to resolve symlinks or test component existence.
4508
4509 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4510
4511         doc: cover st_ino issues once; add OpenVMS etc.
4512         * doc/posix-functions/stat.texi (stat):
4513         * doc/posix-functions/lstat.texi (lstat):
4514         * doc/posix-functions/fstatat.texi (fstatat):
4515         * doc/posix-functions/fstat.texi (fstat):
4516         Move general 'struct stat' stuff to sys_stat.texi,
4517         leaving behind a pointer.
4518         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4519         Merge duplicate info about 'struct stat' problems into here.
4520         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4521         and suggest partial workarounds.
4522
4523         same-inode: port to OpenVMS
4524         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4525         three st_ino values.
4526
4527 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4528
4529         canonicalize: fix references to stat() and lstat()
4530         * lib/canonicalize.c (canonicalize_filename_mode):
4531         Ensure references always resolve to a replacement
4532         function if required (even via a macro).
4533
4534 2011-12-30  Jim Meyering  <meyering@redhat.com>
4535
4536         gitlog-to-changelog: remove a little duplication
4537         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4538         rather than twice.
4539
4540 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4541
4542         canonicalize: add support for not resolving symlinks
4543         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4544         indicate we don't want to follow symlinks.  Also
4545         provide CAN_MODE_MASK to aid setting these existing
4546         mutually exclusive values.
4547         * lib/canonicalize.c (canonicalize_filename_mode):
4548         Extract the flags from can_mode parameter, which
4549         are currently just used to select between stat()
4550         and lstat().  Also ensure that mutually exclusive
4551         values are flagged immediately as invalid.
4552         * tests/test-canonicalize.c: Verify symlinks are
4553         not followed, and that invalid flag combinations
4554         are diagnosed.
4555
4556 2011-12-25  Jim Meyering  <meyering@redhat.com>
4557
4558         gitlog-to-changelog: do not clump multi-paragraph entries
4559         Identical header lines (date,name,email+coauthors) are suppressed,
4560         thus putting all entries with those same characteristics under
4561         a single header.  However, when a log entry consists of two or
4562         more paragraphs, it may not be clear where it starts and ends.
4563         This change makes it so that such an entry is always separated
4564         from others by a header line, even when that header would
4565         otherwise be suppressed.
4566         * build-aux/gitlog-to-changelog: Implement the above.
4567         Inspired by a related request from Stefano Lattarini in
4568         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4569
4570 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4571
4572         announce-gen: fix `cmd' typo in diagnostic
4573         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4574         diagnostic: a missing '$' meant that the command was not output.
4575
4576 2011-12-23  Jim Meyering  <meyering@redhat.com>
4577
4578         test-framework-sh: distribute init.sh
4579         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4580         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4581         fail due to the lack of init.sh.
4582
4583         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4584         * modules/atexit-tests: Rather than listing tests/init.sh,
4585         now that there's a module for it, simply depend on that new module.
4586         * modules/closein-tests: Likewise.
4587         * modules/exclude-tests: Likewise.
4588         * modules/getcwd-tests: Likewise.
4589         * modules/perror-tests: Likewise.
4590         * modules/pread-tests: Likewise.
4591         * modules/pwrite-tests: Likewise.
4592         * modules/vc-list-files-tests: Likewise.
4593         * modules/verify-tests: Likewise.
4594         * modules/xalloc-die-tests: Likewise.
4595         * modules/xstrtoimax-tests: Likewise.
4596         * modules/xstrtol-tests: Likewise.
4597         * modules/xstrtoll-tests: Likewise.
4598         * modules/xstrtoumax-tests: Likewise.
4599         * modules/yesno-tests: Likewise.
4600
4601 2011-12-22  Jim Meyering  <meyering@redhat.com>
4602
4603         test-framework-sh: add minimal tests of init.sh's compare function
4604         * modules/test-framework-sh-tests: New file.
4605         * tests/test-init.sh: New file.
4606
4607         test-framework-sh: new module
4608         * modules/test-framework-sh: New file.
4609         * MODULES.html.sh (Support for maintaining and releasing projects):
4610         List it.
4611
4612         init.sh: do not emit simulated diff output to stderr
4613         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4614
4615 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4616
4617         .gitignore: ignore gnulib.dvi and regex.info
4618         * doc/.gitignore:add gnulib.dvi and regex.info
4619
4620 2011-12-22  Jim Meyering  <meyering@redhat.com>
4621
4622         init.sh: correct previous change
4623         * tests/init.sh (compare): My previous change was wrong.
4624         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4625
4626         init.sh: avoid unwarranted test failure when using "set -e"
4627         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4628         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4629         a use like "compare exp out" would get evoke an unconditional failure.
4630
4631 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4632
4633         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4634         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4635         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4636         autoreconf that did not.
4637         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4638         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4639
4640 2011-12-17  Jim Meyering  <meyering@redhat.com>
4641
4642         bootstrap: remove some now-unneeded code
4643         This script arose back when gnulib-tool was young.
4644         Since then, it has seen improvements that render much of this
4645         script unnecessary.  In particular, it can now make symlinks
4646         to the files it uses.  Also, I no longer see as much value in
4647         marking files as read-only via comments.
4648         If you relied on the symlink-creation feature of the preceding
4649         version of this script, you can get most of that functionality
4650         by adding the --symlink option to the definition of
4651         gnulib_tool_option_extras in your bootstrap.conf file.
4652         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4653         Run autopoint and libtoolize *before* gnulib-tool.
4654         After it, run an abbreviated autoreconf, rather than a loop around
4655         all tools.
4656         (slirp, bt_mark_as_generated): Remove functions.
4657
4658 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4659
4660         ftoastr: fix typo
4661         * lib/ftoastr.h: Fix misspelling in comment.
4662
4663 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
4664
4665         * top/README-release: fix punctuation.
4666
4667 2011-12-17  Jim Meyering  <meyering@redhat.com>
4668
4669         bootstrap: correct the recent buildreq change
4670         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
4671         had no effect.
4672         * build-aux/bootstrap (buildreq): Bracket each search term with
4673         "*...*", so that the shell "case" statement works as intended.
4674         Add comments.
4675
4676 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
4677
4678         build: let bootstrap resort to wget when downloading .po files
4679         * build-aux/bootstrap (download_po_files): Fallback to wget when
4680         downloading the .po files via rsync fails.  This is necessary to
4681         bootstrap from behind a strict firewall.
4682
4683 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4684
4685         stdint: don't assume C++11 when compiling with g++
4686         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
4687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
4688         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
4689         work also in C++ before C++11, as that improperly inhibits
4690         generating a substitute stdint.h for that case.
4691
4692 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4693
4694         alloca: protect comment from gnulib-tool
4695         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
4696         that gnulib-tool doesn't think it's a license, and munge it to
4697         say "GCC version 3".
4698
4699 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
4700
4701         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
4702         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
4703         $(abs_top_builddir) instead of $(top_builddir).
4704
4705 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
4706
4707         strftime-tests: also test nanoseconds
4708         * tests/test-strftime.c (T): Add a test of %N.
4709
4710 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
4711
4712         inttypes, stdint: add C++11 support
4713         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
4714         when including inttypes.h and stdint.h.  Support this change to
4715         the standard.
4716         * doc/posix-headers/inttypes.texi (inttypes.h):
4717         * doc/posix-headers/stdint.texi (stdint.h): Document this.
4718         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
4719         Define if not defined already, for the benefit of pre-C++11 hosts.
4720         Define the standard format macros (e.g., PRId8) always.
4721         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
4722         Likewise, if __cpluspus.  Define the standard constant and limit
4723         macros (e.g., INT8_C, INT8_MAX) always.
4724         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
4725         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
4726         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
4727         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
4728         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
4729         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
4730         Likewise.
4731
4732 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4733
4734         nonblocking tests: Fix test failure on Linux/PPC.
4735         Suggested by Prerna Saxena in
4736         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
4737         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
4738         Set to 1100000.
4739
4740 2011-12-12  Jim Meyering  <meyering@redhat.com>
4741
4742         argmatch: don't hard-code `' when listing valid option arguments
4743         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
4744         use the quote function to add quotes.  Use fputs rather than
4745         fprintf for the format string with no format directive.
4746
4747 2011-12-07  Eric Blake  <eblake@redhat.com>
4748
4749         bootstrap: detect tools required by gnulib-tool
4750         * build-aux/bootstrap (buildreq): Provide minimum implicit
4751         dependencies.
4752         * DEPENDENCIES: Mention patch as a prereq.
4753
4754 2011-12-04  Bruno Haible  <bruno@clisp.org>
4755
4756         sethostname: Port to Windows platforms.
4757         * lib/sethostname.c: Provide an alternate implementation for Windows
4758         platforms.
4759         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
4760         (main): Skip the test if sethostname() fails with EPERM. On Windows
4761         platforms, don't check the result of gethostname().
4762
4763 2011-12-04  Bruno Haible  <bruno@clisp.org>
4764             Jim Meyering  <meyering@redhat.com>
4765
4766         tests: Avoid spurious error message on platforms without mktemp program.
4767         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
4768
4769 2011-12-04  Bruno Haible  <bruno@clisp.org>
4770
4771         sethostname: Fix documentation.
4772         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
4773         "not fixed" section.
4774
4775 2011-12-03  Bruno Haible  <bruno@clisp.org>
4776
4777         gnulib-tool: Verify that the License field is present and non-empty.
4778         * gnulib-tool (func_get_license_raw): New function, extracted from
4779         func_get_license.
4780         (func_get_license): Use it. Warn if the module is not a test module and
4781         has no license.
4782         Suggested by Jim Meyering.
4783
4784 2011-12-03  Bruno Haible  <bruno@clisp.org>
4785
4786         sethostname tests: Fix link error on mingw.
4787         * tests/test-sethostname1.c: New file, extracted from
4788         tests/test-sethostname.c.
4789         * tests/test-sethostname2.c: New file, extracted from
4790         tests/test-sethostname.c.
4791         * tests/test-sethostname.c: Remove file.
4792         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
4793         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
4794         (Depends-on): Add gethostname.
4795         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
4796         Link the latter with $(GETHOSTNAME_LIB).
4797
4798         sethostname tests: Fix compilation error on mingw.
4799         * tests/test-sethostname.c: Don't include <sys/types.h>.
4800         (geteuid): Use a dummy value without uid_t.
4801         * modules/sethostname-tests (Depends-on): Remove sys_types.
4802
4803         sethostname tests: Avoid a gcc warning.
4804         * tests/test-sethostname.c (main): Remove an unused variable.
4805
4806         Tweak last commit.
4807         * modules/sethostname-tests (Files): Sort by decreasing importance.
4808         (configure.ac): Check for geteuid.
4809         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
4810         the test when there's nothing to test. Drop an unnecessary cast.
4811         Improve an error message. Verify that the final sethostname() call
4812         succeeds.
4813
4814 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4815
4816         Add a test suite for the sethostname module.
4817         * modules/sethostname-tests: New file.  A test program
4818         for the sethostname module.
4819         * tests/test-sethostname.c: Likewise.
4820
4821 2011-12-03  Bruno Haible  <bruno@clisp.org>
4822
4823         Tweak last commit.
4824         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
4825         Fix preprocessor directives indentation. Fix typos.
4826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
4827         * modules/unistd (Makefile): Likewise.
4828
4829 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4830
4831         Integrate the sethostname module into unistd.
4832         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
4833         into the unistd.h header.
4834         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
4835         preprocessor directives.
4836         * modules/unistd: Setup the Makefile substitutions of the
4837         SETHOSTNAME preprocessor directives.
4838
4839 2011-12-03  Bruno Haible  <bruno@clisp.org>
4840
4841         Tweak last commit.
4842         * lib/sethostname.c: Don't include <string.h>.
4843         (sethostname): No need to copy the argument string to the stack. Don't
4844         call clearerr. Preserve errno when fprintf failed.
4845         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
4846         Don't invoke AC_REPLACE_FUNCS.
4847         * modules/sethostname (Link): Remove empty section.
4848         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
4849         failure problem.
4850
4851 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4852
4853         New module 'sethostname'.
4854         * lib/sethostname.c (sethostname): New file.  Provide sethostname
4855         for systems that lack it.
4856         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
4857         sethostname declaration and function.
4858         * modules/sethostname: New file.  Define the sethostname module.
4859
4860 2011-12-03  Bruno Haible  <bruno@clisp.org>
4861
4862         Tweak last commit.
4863         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
4864
4865 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4866
4867         Split the HOST_NAME_MAX detection into a separate m4 macro.
4868         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
4869         macro so it can be used by the pending sethostname module.
4870
4871 2011-12-03  Bruno Haible  <bruno@clisp.org>
4872
4873         Fix module descriptions syntax.
4874         * modules/argv-iter (License): Fix syntax.
4875         * modules/di-set (License): Likewise.
4876         * modules/ino-map (License): Likewise.
4877         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
4878
4879 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
4880
4881         stdalign: port to Clang 3.0
4882         Problem reported by Simon Josefsson in
4883         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
4884         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
4885         which has <stdalign.h> but which does not define alignof.
4886         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
4887
4888 2011-12-01  Eric Blake  <eblake@redhat.com>
4889
4890         mktempd: silence dd usage
4891         * build-aux/mktempd (rand_bytes): Silence dd.
4892
4893 2011-11-30  Simon Josefsson  <simon@josefsson.org>
4894
4895         manywarnings: Don't mention gcc version in docstring.
4896         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
4897         Jim Meyering <meyering@redhat.com>.
4898
4899 2011-11-30  Jim Meyering  <meyering@redhat.com>
4900
4901         hash: mark a few floating point constants with "f" suffix
4902         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
4903         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
4904         floating point constants with "f", since they're destined to be
4905         saved/used as "float"s.
4906
4907 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
4908
4909         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
4910         * tests/test-float.c (test_long_double): Correct and re-enable the
4911         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
4912
4913 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
4914
4915         Avoid subtracting two pointers that don't point into the same block.
4916         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
4917         only pointers into the same memory block are subtracted. We cannot
4918         assume that sizeof (ptrdiff_t) == sizeof (void *).
4919
4920 2011-11-29  Eric Blake  <eblake@redhat.com>
4921
4922         maint.mk: add syntax check for use of compare from init.sh
4923         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
4924         moved here from coreutils.
4925
4926         manywarnings: drop -Wunsuffixed-float-constants
4927         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
4928         '1.0D', which is the only way to silence this warning for 'double'.
4929
4930 2011-11-29  Jim Meyering  <meyering@redhat.com>
4931
4932         hash: mark compute_bucket_size with the pure attribute
4933         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
4934
4935         quotearg, propername: correct pragma guard expression
4936         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
4937         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
4938
4939 2011-11-28  Jim Meyering  <meyering@redhat.com>
4940
4941         propername: do not mark proper_name with the const attribute
4942         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
4943         since it examines data pointed to by its parameter.
4944         * lib/propername.c (proper_name): Instead, add a pragma to suppress
4945         the suggestion from -Wsuggest-attribute=const.
4946
4947         propername: mark one more function as const
4948         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
4949
4950 2011-11-27  Jim Meyering  <meyering@redhat.com>
4951
4952         mark functions with const and pure attributes
4953
4954         Mark functions per suggestions from gcc-4.6 when using these options:
4955         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
4956         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
4957         Follow these guidelines: when possible, apply the attribute to
4958         an extern declaration, not to its definition.  Apply it to the
4959         definition only when the definition is static.
4960         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
4961         * lib/argv-iter.h (argv_iter_n_args): Likewise.
4962         * lib/base64.h (isbase64): Likewise.
4963         * lib/basename-lgpl.c (last_component, base_len): Likewise.
4964         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
4965         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
4966         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
4967         (c_tolower, c_toupper): Likewise.
4968         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
4969         * lib/chdir-long.c (find_non_slash): Likewise.
4970         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
4971         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
4972         * lib/file-type.h (file_type): Likewise.
4973         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
4974         * lib/filevercmp.c (verrevcmp): Likewise.
4975         * lib/freadahead.h (freadahead): Likewise.
4976         * lib/fts.c (fts_maxarglen): Likewise.
4977         * lib/hash-pjw.h (hash_pjw): Likewise.
4978         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
4979         * lib/hash.c (is_prime, next_prime): Likewise.
4980         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
4981         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
4982         (hash_table_ok, hash_get_first, hash_string): Likewise.
4983         (compute_bucket_size): Likewise.
4984         * lib/i-ring.h (i_ring_empty): Likewise.
4985         * lib/isnan.c (isnanl): Likewise.
4986         * lib/math.h (isnanl, rpl_isnanl): Likewise.
4987         * lib/memcasecmp.h (memcasecmp): Likewise.
4988         * lib/memchr2.h (memchr2): Likewise.
4989         * lib/memcmp2.h (memcmp2): Likewise.
4990         * lib/parse-datetime.y (lookup_zone): Likewise.
4991         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
4992         [!WINDOWS_SOCKETS]: Likewise.
4993         * lib/strnlen1.h (strnlen1): Likewise.
4994         * lib/uniwidth.in.h (uc_width): Likewise.
4995         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
4996         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
4997         (quoting_options_from_style): Add a comment.
4998         * lib/propername.h (proper_name): Add a comment.
4999
5000 2011-11-27  Bruno Haible  <bruno@clisp.org>
5001
5002         Remove unused macros from !_LIBC code in glibc-borrowed files.
5003         * lib/fnmatch.c (STRCOLL): Remove macro.
5004         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5005         * lib/glob.c (__stat, __readdir64): Remove macros.
5006         * lib/tempname.c (__open64, __xstat64): Remove macros.
5007         Suggested by Paul Eggert.
5008
5009 2011-11-27  Bruno Haible  <bruno@clisp.org>
5010
5011         getcwd: Fix link error on MSVC 9.
5012         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5013
5014 2011-11-27  Bruno Haible  <bruno@clisp.org>
5015
5016         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5017         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5018         HAVE_OPENDIR is 0.
5019         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5020         HAVE_CLOSEDIR is 0.
5021         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5022         is 0.
5023         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5024
5025 2011-11-27  Bruno Haible  <bruno@clisp.org>
5026
5027         getcwd: Fix bug from 2011-08-17.
5028         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5029         platforms that need it.
5030         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5031         code of 4 to be a failure, not a success. This ensures that
5032         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5033
5034 2011-11-27  Bruno Haible  <bruno@clisp.org>
5035
5036         binary-io tests: Avoid test failure on mingw when libtool is used.
5037         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5038         Don't verify the size of t-bin-out1.tmp here.
5039         * tests/test-binary-io.sh: Verify it here.
5040         Reported by Simon Josefsson.
5041
5042 2011-11-26  Bruno Haible  <bruno@clisp.org>
5043
5044         Fix conflict between two instantiations of module 'unistd'.
5045         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5046         ${include_guard_prefix} also in the autoconf snippet.
5047         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5049         GNULIB_UNISTD_H_GETOPT.
5050         * modules/getopt-posix (configure.ac): Set the
5051         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5052         * modules/getopt-gnu (configure.ac): Likewise.
5053         * modules/unistd (Makefile.am): Change the substitution value of
5054         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5055         Reported by Simon Josefsson.
5056
5057 2011-11-25  Bruno Haible  <bruno@clisp.org>
5058
5059         pagealign_alloc: Doc and comments.
5060         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5061         module.
5062         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5063
5064 2011-11-25  Jim Meyering  <meyering@redhat.com>
5065
5066         test-update-copyright.sh: avoid false-positive failure
5067         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5068         around false positive failure on Cygwin/Windows.  The latter was
5069         matching erroneously-created files with names like
5070         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5071
5072 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5073
5074         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5075         * m4/valgrind-tests.m4: Check that the parameters that will be
5076         used works, not just a subset of them.  Reported by Bruno Haible
5077         <bruno@clisp.org>.
5078
5079 2011-11-24  Jim Meyering  <meyering@redhat.com>
5080
5081         test-stdalign.c: comment out long double tests
5082         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5083         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5084         error: '_Alignas' specifiers cannot reduce alignment of \
5085         'static_longdouble_alignas'.
5086
5087 2011-11-22  Jim Meyering  <meyering@redhat.com>
5088
5089         init.sh: make "compare /dev/null FILE" output more readable
5090         * tests/init.sh (compare_): Document the preferred order of arguments.
5091         (emit_diff_u_header_): New function.
5092         (compare_dev_null_): Emit a simulated diff, rather than just the
5093         contents of the unexpected file.  Suggestion from Bruno Haible.
5094
5095 2011-11-21  Jim Meyering  <meyering@redhat.com>
5096             Eric Blake  <eblake@redhat.com>
5097
5098         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5099         * tests/init.sh: Make our compare function slightly more portable.
5100         Reported by Bruno Haible in
5101         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5102
5103 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5104
5105         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5106         before using it, in code that ends up in config.h.
5107
5108 2011-11-20  Bruno Haible  <bruno@clisp.org>
5109
5110         getcwd: Work around getcwd bug on AIX 5..7.
5111         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5112         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5113         Use a different value for gl_cv_func_getcwd_path_max. Move the
5114         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5115         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5116         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5117         Define HAVE_MINIMALLY_WORKING_GETCWD.
5118         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5119         where it is not even minimally working, that is, on AIX.
5120         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5121         m4/getcwd-path-max.m4.
5122         (main): Update exit code computation.
5123         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5124         getcwd does not handle long file names.
5125
5126 2011-11-20  Bruno Haible  <bruno@clisp.org>
5127
5128         getcwd: Fix bug from 2009-09-10.
5129         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5130         like "no".
5131
5132 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5133
5134         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5135
5136 2011-11-20  Bruno Haible  <bruno@clisp.org>
5137
5138         fma tests: Avoid shadowing local variables.
5139         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5140         expected.
5141
5142 2011-11-20  Bruno Haible  <bruno@clisp.org>
5143
5144         copysignf tests: Fix.
5145         * tests/test-copysignf.c: Fix signature check.
5146
5147 2011-11-20  Bruno Haible  <bruno@clisp.org>
5148
5149         fma: Remove unused code.
5150         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5151         unused macros.
5152
5153 2011-11-20  Bruno Haible  <bruno@clisp.org>
5154
5155         sethostname: Fix doc about AIX.
5156         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5157         sethostname; it has it.
5158
5159         sethostname: Mention more portability problems.
5160         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5161         problem.
5162         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5163
5164 2011-11-19  Bruno Haible  <bruno@clisp.org>
5165
5166         Depend on module fcntl-h when AT_FDCWD is used.
5167         * modules/utimens (Depends-on): Add fcntl-h.
5168         * modules/areadlinkat (Depends-on): Likewise.
5169         * modules/areadlinkat-with-size (Depends-on): Likewise.
5170         * modules/faccessat (Depends-on): Likewise.
5171         * modules/fchmodat (Depends-on): Likewise.
5172         * modules/fchownat (Depends-on): Likewise.
5173         * modules/getcwd (Depends-on): Likewise.
5174         * modules/mkdirat (Depends-on): Likewise.
5175         * modules/mkfifoat (Depends-on): Likewise.
5176         * modules/readlinkat (Depends-on): Likewise.
5177         * modules/symlinkat (Depends-on): Likewise.
5178         * modules/dup2-tests (Depends-on): Likewise.
5179         * modules/fdutimensat-tests (Depends-on): Likewise.
5180         * modules/futimens-tests (Depends-on): Likewise.
5181
5182 2011-11-19  Bruno Haible  <bruno@clisp.org>
5183
5184         euidaccess: Update a comment.
5185         * lib/euidaccess.c: Update comment about platforms with faccessat.
5186
5187 2011-11-19  Bruno Haible  <bruno@clisp.org>
5188
5189         openat: Fix file list.
5190         * modules/openat (Files): Remove lib/at-func.c.
5191
5192 2011-11-19  Bruno Haible  <bruno@clisp.org>
5193
5194         fstatat: Simplify.
5195         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5196         gnulib should define rpl_fstatat, there is a
5197         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5198
5199 2011-11-19  Bruno Haible  <bruno@clisp.org>
5200
5201         Ensure 'inline' can be used in tests/test-utimens-common.h.
5202         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5203         * modules/futimens-tests (configure.ac): Likewise.
5204         * modules/utimens-tests (configure.ac): Likewise.
5205         * modules/utimensat-tests (configure.ac): Likewise.
5206
5207 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5208
5209         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5210         not hash_insert0.
5211         (hash_insert_if_absent): Doc fix.
5212
5213 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5214
5215         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5216
5217 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5218
5219         test-getcwd: disambiguate exit status
5220         * tests/test-getcwd.c (test_long_name): Return 0..7.
5221         (main): Exit with an unambiguous exit status.  The old
5222         code yielded a mysterious mixture of two failure codes.
5223
5224         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5225         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5226         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5227         rpl_fstatat or fstatat.  This should fix the other problem
5228         reported by Kai Habel in
5229         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5230         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5231         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5232         and I reproduced it on a Solaris 8 host we still have in production.
5233
5234 2011-11-18  Jim Meyering  <meyering@redhat.com>
5235
5236         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5237         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5238         Add a sentence to the comment.
5239         (hash_insert0): New function that simply calls hash_insert_if_absent.
5240         * lib/hash.h (hash_insert_if_absent): Declare it.
5241         (hash_insert0): Add deprecation attribute.
5242         (_GL_ATTRIBUTE_DEPRECATED): Define.
5243         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5244         not hash_insert0.
5245         * NEWS: Mention it, even though it's not really an incompatible change.
5246
5247 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5248
5249         openat: avoid compilation failure due to lack of <errno.h> inclusion
5250         * lib/openat.c: Include <errno.h>.
5251
5252 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5253
5254         * modules/getcwd (Depends-on): Add fdopendir.
5255         This fixes one of the two problems reported by Kai Habel in
5256         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5257
5258         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5259         stdalign problem reported by Ian Beckwith in
5260         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5261         * modules/crypto/gc-arcfour (Depends-on):
5262         Depend conditionally on crypto/arcfour.
5263         * modules/crypto/gc-arctwo (Depends-on):
5264         Depend conditionally on crypto/arctwo.
5265         * modules/crypto/gc-des (Depends-on):
5266         Depend conditionally on crypto/des.
5267         * modules/crypto/gc-hmac-md5 (Depends-on):
5268         Depend conditionally on crypto/hmac-md5.
5269         * modules/crypto/gc-hmac-sha1 (Depends-on):
5270         Depend conditionally on crypto/hmac-sha1.
5271         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5272         * modules/crypto/gc-md4 (Depends-on):
5273         Depend conditionally on crypto/md4.
5274         * modules/crypto/gc-md5 (Depends-on):
5275         Depend conditionally on crypto/md5.
5276         * modules/crypto/gc-rijndael (Depends-on):
5277         Depend conditionally on crypto/rijndael.
5278         * modules/crypto/gc-sha1 (Depends-on):
5279         Depend conditionally on crypto/sha1.
5280         * modules/crypto/gc-arcfour:
5281         * modules/crypto/gc-arctwo:
5282         * modules/crypto/gc-des:
5283         * modules/crypto/gc-hmac-md5:
5284         * modules/crypto/gc-hmac-sha1:
5285         * modules/crypto/gc-md2:
5286         * modules/crypto/gc-md4:
5287         * modules/crypto/gc-md5:
5288         * modules/crypto/gc-rijndael:
5289         * modules/crypto/gc-sha1:
5290         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5291         now that the conditional dependencies do the work for us.
5292
5293 2011-11-17  Jim Meyering  <meyering@redhat.com>
5294
5295         tests: factor st_ctime-comparison out of two headers
5296         * tests/test-utimens-common.h (ctime_compare): Define.
5297         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5298         * tests/test-lutimens.h (test_lutimens): Likewise.
5299         * tests/test-utimens.h (test_utimens): Likewise.
5300
5301         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5302         Invoke the test program via an init.sh-using wrapper.
5303         * tests/test-getcwd.sh: New file.
5304         * modules/getcwd-tests (Files): Add it.
5305         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5306
5307 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5308
5309         gitlog-to-changelog: support multi-author commits.
5310         The FSF cares about keeping track of all authors of patches to its
5311         projects, but Git doesn't provide obvious support for multi-author
5312         changesets. Consensus seems to be forming around the use of extra
5313         Signed-off-by inspired lines in the log message formatted as
5314         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5315         multi-author commits between version control systems.
5316         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5317         log message and output in standard ChangeLog multi-author format.
5318         Reported by Peter Rosin <peda@lysator.liu.se>
5319
5320 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
5321             Bruno Haible  <bruno@clisp.org>
5322
5323         Fix some modules' file list.
5324         * modules/fstatat (Files): Add m4/lstat.m4.
5325         * modules/openat (Files): Likewise.
5326         * modules/unlinkat (Files): Likewise.
5327
5328 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
5329
5330         maint.mk: fix tight-scope.mk generation in VPATH builds.
5331         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5332         reference with $(srcdir) so that the file is found correctly even
5333         when running `make syntax-check' in a VPATH build.
5334
5335 2011-11-13  Bruno Haible  <bruno@clisp.org>
5336             Jim Meyering  <meyering@redhat.com>
5337
5338         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
5339         * tests/init.sh (compare): Remove "No differences encountered" or
5340         synonymous output from the 'diff' program.
5341
5342 2011-11-13  Bruno Haible  <bruno@clisp.org>
5343
5344         Makefile: Tweak indentation.
5345         * Makefile: Use tab as first character in every line that contains rule
5346         commands.
5347
5348 2011-11-13  Bruno Haible  <bruno@clisp.org>
5349
5350         Syntax check for copyright statements.
5351         * check-copyright: New file.
5352         * Makefile (sc_check_copyright): New rule.
5353
5354 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5355
5356         * build-aux/git-version-gen: Add --prefix to configure the tag
5357         match string.
5358
5359 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5360
5361         * build-aux/git-version-gen: Add --help and --version.
5362
5363 2011-11-12  Jim Meyering  <meyering@redhat.com>
5364
5365         revamp the other test-exclude?.sh scripts to use init.sh, too
5366         * tests/test-exclude1.sh: Use init.sh.
5367         * tests/test-exclude2.sh: Likewise.
5368         * tests/test-exclude3.sh: Likewise.
5369         * tests/test-exclude4.sh: Likewise.
5370         * tests/test-exclude5.sh: Likewise.
5371         * tests/test-exclude6.sh: Likewise.
5372         * tests/test-exclude7.sh: Likewise.
5373         * tests/test-exclude8.sh: Likewise.
5374         * modules/exclude-tests (Files): List init.sh.
5375
5376         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5377         These shell scripts ignored failure of the binary test-exclude,
5378         so making the latter return 77 didn't cause them to be skipped.
5379         * tests/test-exclude5.sh: Exit with test-exclude's error status
5380         when that program fails.  Revamp to use init.sh.
5381         * tests/test-exclude2.sh: Likewise.
5382
5383         test-exclude: fix a typo
5384         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5385
5386 2011-11-11  Bruno Haible  <bruno@clisp.org>
5387
5388         obstack: Fix compilation error on MSVC 9.
5389         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5390
5391 2011-11-11  Jim Meyering  <meyering@redhat.com>
5392
5393         test-exclude: skip tests rather than failing on deficient systems
5394         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5395         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
5396         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
5397         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
5398
5399 2011-11-10  Bruno Haible  <bruno@clisp.org>
5400
5401         ptsname_r test: Avoid gcc warning on glibc systems.
5402         * tests/test-ptsname_r.c (null_ptr): New function.
5403         (test_errors): Use it.
5404
5405 2011-11-10  Bruno Haible  <bruno@clisp.org>
5406
5407         ptsname_r: Avoid compilation error on OSF/1 5.1.
5408         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
5409         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
5410         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
5411         function is not declared or incompatibly declared.
5412         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
5413         * modules/ptsname_r (Depends-on, configure.ac): Update.
5414         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
5415
5416 2011-11-10  Bruno Haible  <bruno@clisp.org>
5417
5418         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
5419         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
5420         When cross-compiling, guess yes on all platforms except AIX.
5421         Reported by Ludovic Courtès <ludo@gnu.org>.
5422
5423 2011-11-09  Bruno Haible  <bruno@clisp.org>
5424
5425         ptsname_r tests: Fix bugs.
5426         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
5427         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
5428
5429 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5430
5431         fstatat: work with cross-compilation
5432         Problem reported by Ludovic Courtès in
5433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
5434         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
5435         "cross-compiling" and assume the bug is present.  Replace
5436         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
5437         an inverted sense, to be more conservative about our assumptions.
5438         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
5439
5440 2011-11-09  Bruno Haible  <bruno@clisp.org>
5441
5442         Improve MODULES.html output.
5443         * modules/mkfifoat (Description): Use the word "function".
5444         * modules/readlinkat (Description): Likewise.
5445         * modules/symlinkat (Description): Likewise.
5446
5447 2011-11-09  Eric Blake  <eblake@redhat.com>
5448
5449         ptsname_r-tests: new test module
5450         * modules/ptsname_r-tests: New module.
5451         * tests/test-ptsname_r.c: New file.
5452
5453         ptsname_r: new module
5454         * modules/ptsname_r: New module.
5455         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
5456         * lib/ptsname.c (__ptsname_r): Split...
5457         * lib/ptsname_r.c: ...into new file.
5458         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5459         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
5460         * modules/stdlib (Makefile.am): Substitute witnesses.
5461         * lib/stdlib.in.h (ptsname_r): Declare it.
5462         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
5463         * MODULES.html.sh (Misc): Likewise.
5464         * modules/ptsname (Depends-on): Alter dependency.
5465         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
5466
5467 2011-11-09  Jim Meyering  <meyering@redhat.com>
5468
5469         announce-gen: be more concise when there's only one URL+tarball
5470         * build-aux/announce-gen (get_tool_versions): When you distribute
5471         only one type of tarball, combine the first two "Here are..."
5472         sections and make the key-checking grammar independent of
5473         how many tarballs there are.
5474
5475 2011-11-09  Eric Blake  <eblake@redhat.com>
5476
5477         openpty: provide a stub on mingw
5478         * lib/pty.in.h (includes): Provide forward declarations.
5479         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
5480
5481         raise: fix mingw handling of SIGPIPE
5482         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
5483
5484 2011-11-08  Bruno Haible  <bruno@clisp.org>
5485
5486         More conditional dependencies.
5487         * modules/faccessat (Depends-on): Add conditions.
5488         * modules/fchmodat (Depends-on): Likewise.
5489         * modules/fchownat (Depends-on): Likewise.
5490         * modules/fstatat (Depends-on): Likewise.
5491         * modules/mkfifoat (Depends-on): Likewise.
5492         * modules/readlinkat (Depends-on): Likewise.
5493         * modules/symlinkat (Depends-on): Likewise.
5494         * modules/unlinkat (Depends-on): Likewise.
5495         * modules/utimensat (Depends-on): Likewise.
5496         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
5497         * modules/linkat (Depends-on): Refine the conditions.
5498         * modules/renameat (Depends-on): Likewise.
5499
5500 2011-11-08  Bruno Haible  <bruno@clisp.org>
5501
5502         faccessat: Move AC_LIBOBJ invocation to module description.
5503         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
5504         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5505         invocation from here...
5506         * modules/faccessat (configure.ac): ... to here. Invoke
5507         gl_PREREQ_FACCESSAT.
5508
5509 2011-11-08  Bruno Haible  <bruno@clisp.org>
5510
5511         faccessat: Simplify autoconf macro.
5512         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5513         gl_FUNC_EUIDACCESS.
5514
5515 2011-11-08  Bruno Haible  <bruno@clisp.org>
5516
5517         renameat: Fix dependencies.
5518         * modules/renameat (Depends-on): Add stdbool.
5519
5520 2011-11-08  Bruno Haible  <bruno@clisp.org>
5521
5522         mkfifoat: Fix module description.
5523         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5524         not gl_UNISTD_MODULE_INDICATOR.
5525
5526 2011-11-08  Bruno Haible  <bruno@clisp.org>
5527
5528         fstatat: Remove unused dependency.
5529         * modules/fstatat (Depends-on): Remove fstat.
5530
5531 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5532
5533         GNUmakefile: behave when Makefile is missing.
5534         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5535
5536 2011-11-08  Bruno Haible  <bruno@clisp.org>
5537
5538         openat: Conditionalize dependencies.
5539         * lib/openat.c: Reduce the scope of some #includes.
5540         * modules/openat (Depends-on): Add conditions.
5541
5542 2011-11-07  Jim Meyering  <meyering@redhat.com>
5543
5544         maint.mk: extract GPG key ID without using a temporary file
5545         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5546         without using a temporary file.  Based on a suggestion from Werner Koch
5547         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5548
5549 2011-11-07  Eric Blake  <eblake@redhat.com>
5550
5551         grantpt: fix typo
5552         * lib/stdlib.in.h (grantpt): Check correct function.
5553
5554         maint.mk: silence new syntax check
5555         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5556
5557 2011-11-06  Bruno Haible  <bruno@clisp.org>
5558
5559         Doc about floating-point and math API.
5560         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5561         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5562
5563 2011-11-06  Bruno Haible  <bruno@clisp.org>
5564
5565         stdalign tests: Skip the test when compiled by Sun C.
5566         * tests/test-stdalign.c (main): Skip the test on Sun C.
5567
5568 2011-11-06  Bruno Haible  <bruno@clisp.org>
5569
5570         ansi-c++-opt: Complete the 2011-06-05 change.
5571         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5572         does not support namespaces, set the variable to "no", not to ":".
5573
5574 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5575
5576         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5577
5578 2011-11-06  Bruno Haible  <bruno@clisp.org>
5579
5580         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5581         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5582         (minus_zerol) [HP-UX]: New macro.
5583         (unary_minus) [HP-UX]: New function.
5584         (copysignl) [HP-UX]: Use unary_minus function.
5585
5586 2011-11-06  Bruno Haible  <bruno@clisp.org>
5587
5588         ldexp, ldexpf, ldexpl: Enhance tests.
5589         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5590         and tests/test-ldexpl.c.
5591         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5592         LDEXP, MIN_EXP, MAX_EXP): New macros.
5593         Include test-ldexp.h.
5594         (main): Just call test_function.
5595         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5596         infinity.h, nan.h.
5597         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5598         MAX_EXP): New macros.
5599         Include test-ldexp.h.
5600         (x, y): Remove variables.
5601         (main): Just call test_function.
5602         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5603         infinity.h, nan.h.
5604         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5605         MAX_EXP): New macros.
5606         Include test-ldexp.h.
5607         (x, y): Remove variables.
5608         (main): Just call test_function.
5609         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5610         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5611         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5612         (Depends-on): Add isnand-nolibm, signbit, float.
5613         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5614         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5615         (Depends-on): Add isnanf-nolibm, signbit, float.
5616
5617 2011-11-06  Bruno Haible  <bruno@clisp.org>
5618
5619         math tests: Cosmetics.
5620         * tests/test-math-c++.cc: Reorder declarations.
5621
5622 2011-11-05  Bruno Haible  <bruno@clisp.org>
5623
5624         fma*: Simplify test.
5625         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5626         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5627
5628         Tests for module 'fmal'.
5629         * modules/fmal-tests: New file.
5630         * tests/test-fmal1.c: New file.
5631         * tests/test-fmal2.c: New file.
5632
5633         New module 'fmal'.
5634         * lib/math.in.h (fmal): New declaration.
5635         * lib/fmal.c: New file.
5636         * m4/fmal.m4: New file.
5637         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5638         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5639         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5640         REPLACE_FMAL.
5641         * modules/fmal: New file.
5642         * doc/posix-functions/fmal.texi: Mention the new module and the various
5643         bugs.
5644
5645         Tests for module 'fmaf'.
5646         * modules/fmaf-tests: New file.
5647         * tests/test-fmaf1.c: New file.
5648         * tests/test-fmaf2.c: New file.
5649
5650         New module 'fmaf'.
5651         * lib/math.in.h (fmaf): New declaration.
5652         * lib/fmaf.c: New file.
5653         * m4/fmaf.m4: New file.
5654         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5655         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5656         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5657         REPLACE_FMAF.
5658         * modules/fmaf: New file.
5659         * doc/posix-functions/fmaf.texi: Mention the new module and the various
5660         bugs.
5661
5662         Tests for module 'fma'.
5663         * modules/fma-tests: New file.
5664         * tests/test-fma1.c: New file.
5665         * tests/test-fma1.h: New file.
5666         * tests/test-fma2.c: New file.
5667         * tests/test-fma2.h: New file.
5668
5669         New module 'fma'.
5670         * lib/math.in.h (fma): New declaration.
5671         * lib/fma.c: New file.
5672         * m4/fma.m4: New file.
5673         * m4/fegetround.m4: New file.
5674         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
5675         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
5676         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
5677         REPLACE_FMA.
5678         * modules/fma: New file.
5679         * doc/posix-functions/fma.texi: Mention the new module and the various
5680         bugs.
5681
5682         Extend gl_MATHFUNC.
5683         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
5684         Support 'void' as argument type.
5685         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
5686
5687 2011-11-05  Jim Meyering  <meyering@redhat.com>
5688
5689         maint.mk: also prohibit inclusion of dirent.h without use
5690         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
5691
5692 2011-11-05  Bruno Haible  <bruno@clisp.org>
5693
5694         ldexpl tests: Avoid test failure on MSVC 9.
5695         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
5696         value. Needed in order to enforce the conversion from a value greater
5697         than LDBL_MAX to Infinity.
5698
5699 2011-11-05  Bruno Haible  <bruno@clisp.org>
5700
5701         New modules 'at-internal', 'openat-h', split off from module 'openat'.
5702         * modules/at-internal: New file, extracted from modules/openat.
5703         * modules/openat-h: New file.
5704         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
5705         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
5706         * modules/openat (Description): Add reference to POSIX function.
5707         (Files): Remove lib/openat.h, lib/openat-proc.c.
5708         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
5709         intprops, unistd.
5710         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
5711         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
5712         gl_FCNTL_MODULE_INDICATOR.
5713         (Include): Remove unistd.h, openat.h.
5714         * modules/areadlinkat (Files): Add lib/at-func.c.
5715         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5716         openat-die, openat-h, save-cwd.
5717         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
5718         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5719         openat-die, openat-h, save-cwd, unistd.
5720         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
5721         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5722         openat-h, save-cwd. Remove fcntl-h, openat.
5723         * modules/fchmodat (Files): Remove lib/openat.h.
5724         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5725         openat, stdbool, unistd.
5726         * modules/fchownat (Files): Remove lib/openat.h.
5727         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5728         openat, stdbool, sys_stat.
5729         * modules/fdopendir (Files): Remove lib/openat-priv.h,
5730         lib/openat-proc.c.
5731         (Depends-on): Add at-internal.
5732         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
5733         * modules/fstatat (Files): Remove lib/openat.h.
5734         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5735         stdbool, unistd.
5736         * modules/fts (Depends-on): Add openat-h.
5737         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
5738         openat.
5739         * modules/mkdirat (Files): Remove lib/openat.h.
5740         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5741         openat, stdbool, sys_stat.
5742         * modules/mkfifoat (Files): Add lib/at-func.c.
5743         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5744         openat-h, save-cwd. Remove fcntl-h, openat.
5745         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
5746         * modules/readlinkat (Files): Add lib/at-func.c.
5747         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5748         openat-h, save-cwd. Remove fcntl-h, openat.
5749         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
5750         openat.
5751         * modules/selinux-at (Files): Add lib/at-func.c.
5752         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5753         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
5754         * modules/symlinkat (Files): Add lib/at-func.c.
5755         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5756         openat-h, save-cwd. Remove fcntl-h, openat.
5757         * modules/unlinkat (Files): Remove lib/openat.h.
5758         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5759         stdbool.
5760         * modules/utimensat (Files): Add lib/at-func.c.
5761         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
5762         openat-die, openat-h, save-cwd.
5763         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
5764         * modules/fdutimensat-tests (Depends-on): Add openat.
5765         * modules/fstatat-tests (Depends-on): Add openat-h.
5766         * modules/readlinkat-tests (Depends-on): Add openat.
5767         * modules/symlinkat-tests (Depends-on): Add openat.
5768
5769 2011-11-05  Bruno Haible  <bruno@clisp.org>
5770
5771         openat: Include <stdbool.h>.
5772         * lib/openat.c: Include <stdbool.h>.
5773
5774 2011-11-04  Bruno Haible  <bruno@clisp.org>
5775
5776         fchownat, renameat, unlinkat: Fix dependencies.
5777         * modules/fchownat (Depends-on): Add fstatat.
5778         * modules/renameat (Depends-on): Likewise.
5779         * modules/unlinkat (Depends-on): Likewise.
5780
5781 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5782
5783         openat: remove direct dependency on dirent
5784         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
5785         and hasn't been needed ever since fdopendir was split into its own
5786         module on 2009-08-31.
5787         * modules/openat (Depends-on): Remove dirent.
5788
5789 2011-11-04  Bruno Haible  <bruno@clisp.org>
5790
5791         renameat: Optimize code size.
5792         * modules/renameat (configure.ac): Don't compile at-func2.c if
5793         REPLACE_RENAMEAT is 1.
5794
5795 2011-11-04  Bruno Haible  <bruno@clisp.org>
5796
5797         openat tests: Fix file list.
5798         * modules/openat-tests (Files): Add tests/test-open.h.
5799
5800 2011-11-04  Bruno Haible  <bruno@clisp.org>
5801
5802         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
5803         * modules/fchmodat (Depends-on): Add openat-die.
5804         * modules/fchownat (Depends-on): Likewise.
5805         * modules/linkat (Depends-on): Likewise.
5806         * modules/renameat (Depends-on): Likewise.
5807         * modules/openat (Depends-on): Add dirent.
5808
5809 2011-11-04  Jim Meyering  <meyering@redhat.com>
5810
5811         at-func*.c: fix comments
5812         * lib/at-func2.c: Correct/improve first-line comment.
5813         * lib/at-func.c: Correct grammar in first-line comment.
5814
5815 2011-11-04  Bruno Haible  <bruno@clisp.org>
5816
5817         New module 'mkdirat', split off from module 'openat'.
5818         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
5819         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
5820         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
5821         * modules/mkdirat: New file, extracted from modules/openat.
5822         * modules/openat (Files): Remove lib/mkdirat.c.
5823         (Depends-on): Remove mkdir.
5824         (configure.ac): Remove AC_LIBOBJ of mkdirat.
5825         (Include): Remove <sys/stat.h>.
5826         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
5827         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
5828         tests/test-mkdir.h.
5829         (Depends-on): Remove ignore-value.
5830         (Makefile.am): Remove rules for test-mkdirat.
5831         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
5832         of module 'openat'.
5833         * NEWS: Mention the change.
5834
5835 2011-11-04  Bruno Haible  <bruno@clisp.org>
5836
5837         closedir: Avoid warning on mingw.
5838         * lib/closedir.c: Include <unistd.h>.
5839
5840 2011-11-04  Bruno Haible  <bruno@clisp.org>
5841
5842         New module 'fstatat', split off from module 'openat'.
5843         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
5844         defined.
5845         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
5846         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
5847         gl_FUNC_FSTATAT.
5848         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
5849         * modules/fstatat: New file, extracted from modules/openat.
5850         * modules/openat (Files): Remove lib/fstatat.c.
5851         (Depends-on): Remove lstat.
5852         (configure.ac): Remove AC_LIBOBJ of fstatat.
5853         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
5854         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
5855         tests/test-lstat.h, tests/test-stat.h.
5856         (Depends-on): Remove getcwd-lgpl.
5857         (Makefile.am): Remove rules for test-fstatat.
5858         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
5859         of module 'openat'.
5860         * NEWS: Mention the change.
5861         * modules/getcwd (Depends-on): Add fstatat.
5862         * modules/linkat (Depends-on): Likewise.
5863         * modules/mkfifoat-tests (Depends-on): Likewise.
5864         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
5865
5866 2011-11-03  Bruno Haible  <bruno@clisp.org>
5867
5868         New module 'unlinkat', split off from module 'openat'.
5869         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
5870         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
5871         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
5872         * modules/unlinkat: New file, extracted from modules/openat. Correct
5873         the dependency conditions.
5874         * modules/openat (Files): Remove lib/unlinkat.c.
5875         (Depends-on): Remove rmdir, unlink.
5876         (configure.ac): Remove AC_LIBOBJ of unlinkat.
5877         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
5878         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
5879         tests/test-rmdir.h, tests/test-unlink.h.
5880         (Depends-on): Remove unlinkdir.
5881         (Makefile.am): Remove rules for test-unlinkat.
5882         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
5883         of module 'openat'.
5884         * NEWS: Mention the change.
5885         * modules/linkat-tests (Depends-on): Add unlinkat.
5886         * modules/mkfifoat-tests (Depends-on): Likewise.
5887         * modules/readlinkat-tests (Depends-on): Likewise.
5888
5889 2011-11-02  Bruno Haible  <bruno@clisp.org>
5890
5891         New module 'fchmodat', split off from module 'openat'.
5892         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
5893         defined.
5894         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
5895         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
5896         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
5897         * modules/fchmodat: New file, extracted from modules/openat.
5898         * modules/openat (Files): Remove lib/fchmodat.c.
5899         (configure.ac): Remove AC_LIBOBJ of fchmodat.
5900         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
5901         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
5902         (Makefile.am): Remove rules for test-fchmodat.
5903         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
5904         of module 'openat'.
5905         * NEWS: Mention the change.
5906
5907 2011-11-02  Jim Meyering  <meyering@redhat.com>
5908
5909         putenv: indent #definition of "environ" to placate cppi
5910         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
5911
5912         gitlog-to-changelog: provide a ChangeLog-repair mechanism
5913         Git logs are often treated as immutable, because editing them
5914         changes the SHA1 checksums of all descendants.  Thus, errors in
5915         git logs tend to stay there forever.  However, when we generate
5916         a ChangeLog file -- typically for distribution -- from that git log,
5917         we can actually make corrections in the generated file.  The key
5918         lies in recording in machine-readable/applicable form the desired
5919         corrections.  See --help for description and an example.
5920         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
5921         (usage): Describe it; alphabetize option descriptions.
5922         (main): Honor the new option, carefully.
5923
5924 2011-11-01  Jim Meyering  <meyering@redhat.com>
5925
5926         gitlog-to-changelog: avoid an infloop
5927         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
5928         that ends up being empty.
5929
5930 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5931
5932         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
5933         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
5934         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
5935         contains (possibly-quoted) backslashes.  This should avoid
5936         all-too-common shell bugs if COMPLICATED contains backslashes in
5937         the "wrong" places.  Reported by David Evans in
5938         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
5939         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
5940         because we want ASCII ranges.  Is there some reason we don't use
5941         the C locale everywhere in this script?
5942         (func_module, top level): Avoid unwanted pathname expansion when
5943         $repo_url_prefix or $repo_url_suffix_repl contain shell
5944         metacharacters like '?' and '*'.
5945
5946 2011-11-01  Bruno Haible  <bruno@clisp.org>
5947
5948         fchownat: Improve description.
5949         * modules/fchownat (Description): Add link to function.
5950
5951 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5952
5953         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
5954         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
5955         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
5956         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
5957
5958 2011-11-01  Bruno Haible  <bruno@clisp.org>
5959
5960         alignof: Avoid collision with stdalign module.
5961         * lib/alignof.h (alignof): Remove macro.
5962         * NEWS: Mention the change.
5963         Reported by Paul Eggert.
5964
5965 2011-11-01  Bruno Haible  <bruno@clisp.org>
5966
5967         New module 'fchownat', split off from module 'openat'.
5968         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
5969         defined.
5970         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
5971         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
5972         invoke gl_FUNC_FCHOWNAT.
5973         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
5974         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
5975         * modules/fchownat: New file, extracted from modules/openat.
5976         * modules/openat (Files): Remove lib/fchownat.c.
5977         (Depends-on): Remove lchown.
5978         (configure.ac): Remove AC_LIBOBJ of fchownat.
5979         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
5980         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
5981         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
5982         (Depends-on): Remove mgetgroups, usleep, stat-time.
5983         (configure.ac): Remove test for getegid.
5984         (Makefile.am): Remove rules for test-fchownat.
5985         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
5986         of module 'openat'.
5987         * NEWS: Mention the change.
5988
5989 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
5990
5991         stdalign: port better to MSVC and to Sun C 5.11
5992         This fixes some of the problems reported by Bruno Haible in
5993         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
5994         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
5995         shortcomings of MSVC and of Sun C 5.11.
5996         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
5997         around __declspec arg.
5998         * modules/stdalign-tests (Files): Add tests/macros.h.
5999         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6000         Include macros.h, for ASSERT.
6001         (DECLARE_ALIGNED): Remove.
6002         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6003         to catch bug), and to 1 if not (simplifies the rest of the code).
6004         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6005         (CHECK_AUTO): Remove.
6006         (CHECK_ALIGNED): Check only the alignment of the static vars,
6007         since auto var alignment isn't supported by Sun C 5.11.
6008         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6009         ASSERT failures are easier to diagnose.
6010
6011 2011-10-31  Bruno Haible  <bruno@clisp.org>
6012
6013         doc about some IRIX 5.3 problems.
6014         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6015         on IRIX 5.3.
6016         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6017         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6018         5.3.
6019         * doc/posix-functions/grantpt.texi: Likewise.
6020         * doc/posix-functions/unlockpt.texi: Likewise.
6021         * doc/posix-functions/lgamma.texi: Likewise.
6022         * doc/posix-functions/nextafter.texi: Likewise.
6023         * doc/posix-functions/remainder.texi: Likewise.
6024         * doc/posix-functions/select.texi: Mention misplaced declaration on
6025         IRIX 5.3.
6026         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6027
6028 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6029
6030         gitlog-to-changelog: fix git-log invocation.
6031         git-log mishandles date strings before 1970-01-01 UTC, and there is
6032         no use to specify --since=1970-01-01 by default anyway.
6033         * build-aux/gitlog-to-changelog: By default, when no --since option
6034         was given, do not specify explicit --since option to git-log.
6035
6036 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6037
6038         gitlog-to-changelog: new option --append-dot.
6039         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6040         first non-blank line of each commit message terminated with a dot.
6041
6042 2011-10-30  Bruno Haible  <bruno@clisp.org>
6043
6044         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6045         * lib/ffsl.h: Include <config.h>.
6046         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6047
6048 2011-10-30  Jim Meyering  <meyering@redhat.com>
6049
6050         GNUmakefile: reenable "make syntax-check" for most projects
6051         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6052         build-aux variable", "syntax-check" would do nothing but succeed with
6053         the "No version control files detected..." diagnostic (unless you
6054         happened to override _build-aux via cfg.mk).
6055         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6056         to precede inclusion of maint.mk.  Otherwise, these variables would
6057         be used undefined in any project that does not override the default.
6058
6059 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6060
6061         gitlog-to-changelog: treat a message with only blank lines as empty.
6062         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6063         trailing blank lines before the code that issues a warning about an
6064         empty commit message.
6065
6066 2011-10-30  Jim Meyering  <meyering@redhat.com>
6067
6068         test-parse-datetime.c: avoid new DST-related false positive test failure
6069         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6070         based on the time/date we'll convert, not the current time.
6071         Otherwise, the moment we cross a DST boundary like today's in
6072         Europe, (CEST to CET), that offset ends up being one hour off.
6073
6074 2011-10-27  Bruno Haible  <bruno@clisp.org>
6075
6076         fstat: Tweak documentation.
6077         * modules/fstat (Description): More precise description.
6078
6079 2011-10-27  Bruno Haible  <bruno@clisp.org>
6080
6081         Update documentation regarding 'largefile' module.
6082         * doc/posix-functions/fstat.texi: Tweak wording.
6083         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6084         problems with huge directories and/or small ino_t types.
6085         * doc/posix-functions/readdir.texi: Likewise.
6086         * doc/posix-functions/rewinddir.texi: Likewise.
6087
6088 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6089
6090         maint.mk: don't maintain a second build-aux variable.
6091         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6092         depends on GNUmakefile, which already maintains a cfg.mk
6093         overridable $(_build-aux) for projects with a non-standard
6094         build-aux directory location, although without the $(srcdir)
6095         prefix.  Use that variable consistently instead of introducing a
6096         second one.  Adjust all call sites.
6097
6098 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6099
6100         Add stdalign module and use it in other modules.
6101         This is based on a previous proposal by Bruno Haible
6102         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6103
6104         stdalign: new module
6105         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6106         * modules/stdalign: New files.
6107         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6108         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6109
6110         stdalign-tests: new module
6111         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6112
6113         argp: use stdalign
6114         * lib/argp-parse.c: Include <stdalign.h>.
6115         (alignof): Remove.
6116         * modules/argp (Depends-on): Add stdalign.
6117
6118         crypto libraries: use stdalign
6119         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6120         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6121         Do not include <stdlib.h> twice, in md4.c.
6122         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6123         because we are accessing a pointer's bit-pattern, not a size.
6124         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6125         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6126         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6127         * modules/crypto/sha512: Likewise.
6128
6129         sys_socket: use stdalign, not alignof
6130         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6131         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6132
6133 2011-10-27  Bruno Haible  <bruno@clisp.org>
6134
6135         raise test: Avoid a test failure on Linux/MIPS.
6136         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6137         because 99 is a valid signal on Linux/MIPS.
6138
6139 2011-10-27  Bruno Haible  <bruno@clisp.org>
6140
6141         nonblocking tests: Fix test failure on Linux/MIPS.
6142         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6143         Set to 270000.
6144
6145 2011-10-27  Bruno Haible  <bruno@clisp.org>
6146
6147         utimensat: Work around problem on Linux/hppa.
6148         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6149         values.
6150         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6151
6152 2011-10-25  Jim Meyering  <meyering@redhat.com>
6153
6154         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6155         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6156         after symbols like NULL, size_t, etc.
6157         Reported by Alfred M. Szmidt.
6158
6159         maint.mk: exempt ENODATA from a syntax-check rule
6160         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6161         from the sc_prohibit_always-defined_macros syntax-check rule.
6162         Add a comment.  See this for more details:
6163         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6164
6165 2011-10-23  Jim Meyering  <meyering@redhat.com>
6166
6167         fts: close parent dir FD before returning from post-traversal fts_read
6168         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6169         unlink A, even though an FD open on A remained.  This is suboptimal
6170         (holding a file descriptor open longer than needed), but otherwise not
6171         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6172         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6173         that represents a real problem: it causes the removal of A to fail
6174         with e.g., "rm: cannot remove `A': Device or resource busy"
6175
6176         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6177         directory file descriptors.  After completing the final, FTS_DP,
6178         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6179         cache, but then proceeded to add a new FD to it via the subsequent
6180         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6181         final file descriptor would be closed only via fts_close's call to
6182         fd_ring_clear.  Now, it is usually closed earlier, via the final
6183         FTS_DP-returning fts_read call.
6184         * lib/fts.c (restore_initial_cwd): New function, converted from
6185         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6186         Update callers.
6187         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6188         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6189
6190 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6191             Bruno Haible  <bruno@clisp.org>
6192             Jim Meyering  <jim@meyering.net>
6193
6194         readme-release: improve safety of release prep instructions.
6195         * README-release: Don't git pull all branches when only master
6196         is needed for the release process.
6197         Run make maintainer-clean before changing trees and merging.
6198         Don't try to run ./configure right after git pull in case files
6199         that influence the bootstrap process have changed, move the
6200         ./configure step to after running ./bootstrap.
6201         Don't bootstrap "one last time"... it's the first time!
6202
6203 2011-10-22  Bruno Haible  <bruno@clisp.org>
6204
6205         errno, strerror-override: Support for MSVC 10.
6206         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6207         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6208         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6209         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6210         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6211         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6212         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6213         Assign values compatible with MSVC 10.
6214         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6215         New macros.
6216         (GNULIB_defined_EWINSOCK): New macro.
6217         * lib/strerror-override.c (strerror_override): Update accordingly.
6218         * lib/strerror-override.h: Likewise.
6219         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6220         longer equal to the corresponding errno value.
6221         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6222
6223 2011-10-22  Bruno Haible  <bruno@clisp.org>
6224
6225         perror: Recognize when test program crashes.
6226         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6227         strerror, set gl_cv_func_perror_works to no.
6228         Reported by Daniel Richard G. <skunk@iskunk.org>.
6229
6230         perror: Fix indentation.
6231         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6232
6233 2011-10-22  Bruno Haible  <bruno@clisp.org>
6234
6235         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6236         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6237         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6238         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6239         functions, not as a macro.
6240         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6241         macros.
6242         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6243         absence of macro.
6244         Suggested by Eric Blake.
6245         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6246
6247 2011-10-21  Bruno Haible  <bruno@clisp.org>
6248
6249         relocatable-prog-wrapper: Don't leave object files behind.
6250         * build-aux/install-reloc: Re-synchronize list of .o files to be
6251         removed with list of compilation units.
6252
6253 2011-10-20  Bruno Haible  <bruno@clisp.org>
6254
6255         openpty, posix_openpt: Remove code duplication.
6256         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6257         * lib/openpty.c: Include <stdlib.h>.
6258         (openpty): Use posix_openpt on all platforms except IRIX.
6259         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6260
6261 2011-10-20  Bruno Haible  <bruno@clisp.org>
6262
6263         unlockpt: Detect invalid argument.
6264         * lib/unlockpt.c: Include <fcntl.h>.
6265         (unlockpt): Check whether fd is valid, using fcntl().
6266         * modules/unlockpt (Depends-on): Add fcntl-h.
6267
6268 2011-10-20  Bruno Haible  <bruno@clisp.org>
6269
6270         openpty: Avoid compilation error on AIX 6.1.
6271         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6272
6273 2011-10-20  Bruno Haible  <bruno@clisp.org>
6274
6275         posix_openpt: Support for OpenBSD.
6276         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6277         (posix_openpt) [OpenBSD]: New code.
6278         * lib/grantpt.c: Include <fcntl.h>.
6279         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6280         * modules/grantpt (Depends-on): Add fcntl-h.
6281
6282 2011-10-20  Bruno Haible  <bruno@clisp.org>
6283
6284         posix_openpt test: Coding style.
6285         * tests/test-posix_openpt.c: Use GNU coding style.
6286
6287 2011-10-20  Bruno Haible  <bruno@clisp.org>
6288
6289         grantpt: Support --avoid=pt_chown.
6290         * modules/grantpt (Files): Add lib/pty-private.h.
6291
6292 2011-10-20  Bruno Haible  <bruno@clisp.org>
6293
6294         posix_openpt: Fix autoconf macro.
6295         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6296         unneeded check for _getpty.
6297
6298 2011-10-20  Bruno Haible  <bruno@clisp.org>
6299
6300         openpty: Update comments.
6301         * lib/openpty.c: Add comments about Minix.
6302
6303 2011-10-19  Eric Blake  <eblake@redhat.com>
6304
6305         openpty: relax license
6306         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6307
6308         pt_chown: use configmake to simplify build
6309         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6310
6311         ptsname and others: relax license
6312         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6313         * modules/unlockpt (License): Likewise.
6314         * modules/pt_chown (License): Likewise.
6315         * modules/ptsname (License): Likewise.
6316         * modules/ttyname_r (License): Likewise.
6317
6318 2011-10-19  Jim Meyering  <meyering@redhat.com>
6319
6320         posix_openpt: remove spurious #endif
6321         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
6322
6323 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
6324
6325         maint.mk: Respect $(build_aux) in web-manual rule.
6326         * top/maint.mk (web-manual): Find gen-announce script in user's
6327         $(build_aux) directory instead of hard-coding 'build-aux'.
6328
6329 2011-10-19  Bruno Haible  <bruno@clisp.org>
6330
6331         posix_openpt: Fix compilation error.
6332         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
6333         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
6334         Mention the openpty module as an alternative.
6335
6336 2011-10-19  Bruno Haible  <bruno@clisp.org>
6337
6338         Support for old NeXTstep 3.3 frexp().
6339         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
6340         execution time of the test to 5 seconds.
6341         Reported by Daniel Richard G. <skunk@iskunk.org>.
6342
6343 2011-10-19  Bruno Haible  <bruno@clisp.org>
6344
6345         Support for old NeXTstep 3.3 sed.
6346         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
6347         part, use /.../, not \|...|. Escape periods in the header file name.
6348         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6349         Reported by Daniel Richard G. <skunk@iskunk.org>.
6350
6351 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6352
6353         Support for old NeXTstep 3.3 gcc.
6354         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
6355         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
6356         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
6357         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6358         * lib/regex.h (_Restrict_arr_): Likewise.
6359         * lib/regex_internal.h (re_token_t): Likewise.
6360         * lib/regexec.c (check_node_accept_bytes): Likewise.
6361         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6362
6363 2011-10-18  Eric Blake  <eblake@redhat.com>
6364
6365         posix_openpt: new module
6366         * modules/posix_openpt: New module.
6367         * m4/posix_openpt.m4: New file.
6368         * lib/posix_openpt.c: Likewise.
6369         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6370         (gl_STDLIB_H_DEFAULTS): Set defaults.
6371         * modules/stdlib (Makefile.am): Substitute macros.
6372         * lib/stdlib.in.h (posix_openpt): Declare.
6373         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6374         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6375         * modules/posix_openpt-tests: New test module.
6376         * tests/test-posix_openpt.c: New test.
6377
6378 2011-10-15  Bruno Haible  <bruno@clisp.org>
6379
6380         xstrtoll: Fix compilation failure.
6381         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6382         from lib/strtol.c.
6383         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6384         some platforms.
6385         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6386
6387 2011-10-15  Bruno Haible  <bruno@clisp.org>
6388
6389         vasnprintf: Optimize bit search operation.
6390         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6391         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6392         gl_DOUBLE_EXPONENT_LOCATION.
6393         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6394         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6395         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6396         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6397         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6398         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6399         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6400         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6401         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
6402
6403 2011-10-15  Bruno Haible  <bruno@clisp.org>
6404
6405         vasnprintf: Fix comments.
6406         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
6407
6408 2011-10-14  Bruno Haible  <bruno@clisp.org>
6409
6410         Tests for module 'integer_length_ll'.
6411         * modules/integer_length_ll-tests: New file.
6412         * tests/test-integer_length_ll.c: New file.
6413
6414         New module 'integer_length_ll'.
6415         * lib/integer_length_ll.c: New file.
6416         * modules/integer_length_ll: New file.
6417
6418 2011-10-14  Bruno Haible  <bruno@clisp.org>
6419
6420         Tests for module 'integer_length_l'.
6421         * modules/integer_length_l-tests: New file.
6422         * tests/test-integer_length_l.c: New file.
6423
6424         New module 'integer_length_l'.
6425         * lib/integer_length_l.c: New file.
6426         * modules/integer_length_l: New file.
6427
6428 2011-10-14  Bruno Haible  <bruno@clisp.org>
6429
6430         Tests for module 'integer_length'.
6431         * modules/integer_length-tests: New file.
6432         * tests/test-integer_length.c: New file.
6433
6434         New module 'integer_length'.
6435         * lib/integer_length.h: New file.
6436         * lib/integer_length.c: New file.
6437         * modules/integer_length: New file.
6438
6439 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6440
6441         popen: Fix dependency conditions.
6442         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
6443
6444 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6445
6446         perror: Fix autoconf test.
6447         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
6448         <stdlib.h> and <string.h>.
6449
6450 2011-10-14  Bruno Haible  <bruno@clisp.org>
6451
6452         ffsl: Optimize on 64-bit platforms.
6453         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
6454         unrolling.
6455
6456 2011-10-13  Bruno Haible  <bruno@clisp.org>
6457
6458         ffsl: Optimize on 32-bit platforms.
6459         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
6460         use ffs() without a loop.
6461
6462         ffsl, ffsll: Optimize for GCC.
6463         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
6464         * lib/ffsl.c (GCC_BUILTIN): New macro.
6465         * lib/ffsll.c (GCC_BUILTIN): Likewise.
6466
6467 2011-10-13  Bruno Haible  <bruno@clisp.org>
6468
6469         ffs, bcopy, memset: Support symbol renaming via config.h.
6470         * lib/ffs.c: Include <config.h>.
6471         * lib/bcopy.c: Likewise.
6472         * lib/memset.c: Likewise.
6473
6474 2011-10-10  Bruno Haible  <bruno@clisp.org>
6475
6476         atanl: Simplify for platforms where 'long double' == 'double'.
6477         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6478         alternative implementation.
6479         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6480         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6481         * modules/atanl (Depends-on): Add atan. Update conditions.
6482
6483 2011-10-10  Bruno Haible  <bruno@clisp.org>
6484
6485         acosl: Simplify for platforms where 'long double' == 'double'.
6486         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6487         alternative implementation.
6488         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6489         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6490         * modules/acosl (Depends-on): Add acos. Update conditions.
6491
6492 2011-10-10  Bruno Haible  <bruno@clisp.org>
6493
6494         asinl: Simplify for platforms where 'long double' == 'double'.
6495         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6496         alternative implementation.
6497         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6498         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6499         * modules/asinl (Depends-on): Add asin. Update conditions.
6500
6501 2011-10-10  Bruno Haible  <bruno@clisp.org>
6502
6503         tanl: Simplify for platforms where 'long double' == 'double'.
6504         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6505         implementation.
6506         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6507         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6508         * modules/tanl (Depends-on): Add tan. Update conditions.
6509         (configure.ac): Don't compile trigl.c if
6510         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6511
6512 2011-10-10  Bruno Haible  <bruno@clisp.org>
6513
6514         cosl: Simplify for platforms where 'long double' == 'double'.
6515         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6516         implementation.
6517         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6518         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6519         * modules/cosl (Depends-on): Add cos. Update conditions.
6520         (configure.ac): Don't compile sincosl.c and trigl.c if
6521         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6522
6523 2011-10-10  Bruno Haible  <bruno@clisp.org>
6524
6525         sinl: Simplify for platforms where 'long double' == 'double'.
6526         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6527         implementation.
6528         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6529         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6530         * modules/sinl (Depends-on): Add sin. Update conditions.
6531         (configure.ac): Don't compile sincosl.c and trigl.c if
6532         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6533
6534 2011-10-10  Bruno Haible  <bruno@clisp.org>
6535
6536         logl: Simplify for platforms where 'long double' == 'double'.
6537         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6538         implementation.
6539         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6540         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6541         * modules/logl (Depends-on): Add log. Update conditions.
6542
6543 2011-10-10  Bruno Haible  <bruno@clisp.org>
6544
6545         expl: Simplify for platforms where 'long double' == 'double'.
6546         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6547         implementation.
6548         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6549         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6550         * modules/expl (Depends-on): Add exp. Update conditions.
6551
6552 2011-10-10  Bruno Haible  <bruno@clisp.org>
6553
6554         sqrtl: Simplify for platforms where 'long double' == 'double'.
6555         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6556         alternative implementation.
6557         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6558         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6559         * modules/sqrtl (Depends-on): Update conditions.
6560
6561 2011-10-10  Bruno Haible  <bruno@clisp.org>
6562
6563         ldexpl: Simplify for platforms where 'long double' == 'double'.
6564         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6565         alternative implementation.
6566         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6567         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6568         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6569
6570 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6571
6572         ffsll: set correct witness
6573         * modules/ffsll (configure.ac): Fix typo.
6574
6575 2011-10-10  Bruno Haible  <bruno@clisp.org>
6576
6577         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6578         * lib/printf-frexpl.c: Include <config.h>.
6579         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6580         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6581         second time.
6582         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6583         gl_LONG_DOUBLE_VS_DOUBLE.
6584         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6585         conditions.
6586
6587 2011-10-10  Bruno Haible  <bruno@clisp.org>
6588
6589         frexpl: Simplify for platforms where 'long double' == 'double'.
6590         * lib/frexpl.c: Include <config.h>.
6591         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6592         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6593         time.
6594         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6595         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6596         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6597         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6598         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6599         conditions.
6600
6601 2011-10-10  Jim Meyering  <meyering@redhat.com>
6602
6603         test-renameat: don't leave behind a temporary file
6604         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6605           ERROR: files left in build directory after distclean:
6606           ./gltests/test-renameat.too
6607           make[1]: *** [distcleancheck] Error 1
6608         Reported by Tom G. Christensen.
6609
6610 2011-10-09  Bruno Haible  <bruno@clisp.org>
6611
6612         rint: Determine RINT_LIBM correctly on AIX 7.
6613         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6614         directly, not only through a function pointer. Also accept an optional
6615         4th argument with extra code.
6616         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6617         rintf() call by gcc when optimizing.
6618
6619         mathfunc.m4: Refactor.
6620         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6621         m4 variable.
6622
6623 2011-10-09  Bruno Haible  <bruno@clisp.org>
6624
6625         rintl: Simplify for platforms where 'long double' == 'double'.
6626         * lib/rintl.c: Include <config.h>.
6627         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6628         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6629         time.
6630         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6631         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6632         * modules/rintl (Depends-on): Add rint. Update conditions.
6633
6634 2011-10-09  Bruno Haible  <bruno@clisp.org>
6635
6636         roundl: Simplify for platforms where 'long double' == 'double'.
6637         * lib/roundl.c: Include <config.h>.
6638         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6639         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6640         time.
6641         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6642         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6643         * modules/roundl (Depends-on): Add round. Update conditions.
6644
6645 2011-10-09  Bruno Haible  <bruno@clisp.org>
6646
6647         truncl: Simplify for platforms where 'long double' == 'double'.
6648         * lib/truncl.c: Include <config.h>.
6649         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6650         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6651         time.
6652         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6653         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6654         * modules/truncl (Depends-on): Add trunc. Update conditions.
6655
6656 2011-10-09  Bruno Haible  <bruno@clisp.org>
6657
6658         ceill: Simplify for platforms where 'long double' == 'double'.
6659         * lib/ceill.c: Include <config.h>.
6660         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6661         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6662         time.
6663         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6664         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6665         * modules/ceill (Depends-on): Add ceil. Update conditions.
6666
6667 2011-10-09  Bruno Haible  <bruno@clisp.org>
6668
6669         floorl: Simplify for platforms where 'long double' == 'double'.
6670         * lib/floorl.c: Include <config.h>.
6671         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6672         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6673         time.
6674         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6675         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6676         * modules/floorl (Depends-on): Add floor. Update conditions.
6677
6678 2011-10-09  Bruno Haible  <bruno@clisp.org>
6679
6680         rint: Fix ordering constraints.
6681         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
6682         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6683         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6684
6685 2011-10-09  Bruno Haible  <bruno@clisp.org>
6686
6687         copysignl: Simplify for platforms where 'long double' == 'double'.
6688         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6689         alternative.
6690         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6691         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6692         * modules/copysignl (Depends-on): Add copysign. Update conditions.
6693
6694 2011-10-09  Bruno Haible  <bruno@clisp.org>
6695
6696         Tests for module 'rintl'.
6697         * modules/rintl-tests: New file.
6698         * tests/test-rintl.c: New file.
6699
6700         New module 'rintl'.
6701         * lib/math.in.h (rintl): New declaration.
6702         * lib/rintl.c: New file.
6703         * m4/rintl.m4: New file.
6704         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
6705         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
6706         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
6707         * modules/rintl: New file.
6708         * tests/test-math-c++.cc: Check the declaration of rintl.
6709         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6710         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
6711         * doc/posix-functions/rintl.texi: Mention the new module.
6712
6713 2011-10-09  Bruno Haible  <bruno@clisp.org>
6714
6715         Tests for module 'rintf'.
6716         * modules/rintf-tests: New file.
6717         * tests/test-rintf.c: New file.
6718
6719         New module 'rintf'.
6720         * lib/math.in.h (rintf): New declaration.
6721         * lib/rintf.c: New file.
6722         * m4/rintf.m4: New file.
6723         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
6724         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
6725         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
6726         * modules/rintf: New file.
6727         * tests/test-math-c++.cc: Check the declaration of rintf.
6728         * doc/posix-functions/rintf.texi: Mention the new module.
6729
6730 2011-10-09  Bruno Haible  <bruno@clisp.org>
6731
6732         rint: Support for MSVC.
6733         * lib/math.in.h (rint): New declaration.
6734         * lib/rint.c: New file.
6735         * m4/rint.m4: New file.
6736         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
6737         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
6738         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
6739         * modules/rint (Description): Fix.
6740         (Files): Add lib/rint.c, m4/rint.m4.
6741         (Depends-on): Add math.
6742         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
6743         gl_MATH_MODULE_INDICATOR.
6744         * tests/test-math-c++.cc: Check the declaration of rint.
6745         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6746         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
6747         * doc/posix-functions/rint.texi: Mention the replacement provided by
6748         the module.
6749
6750         rint tests: More tests.
6751         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
6752         minus-zero.h, infinity.h, nan.h.
6753         (main): Skip the test if the current rounding mode is not standard. Add
6754         tests for negative numbers, minus zero, infinity, NaN.
6755         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
6756         tests/nan.h.
6757         (Depends-on): Add isnand-nolibm.
6758
6759 2011-10-09  Bruno Haible  <bruno@clisp.org>
6760
6761         Tests for module 'copysignl'.
6762         * modules/copysignl-tests: New file.
6763         * tests/test-copysignl.c: New file.
6764
6765         New module 'copysignl'.
6766         * lib/math.in.h (copysignl): New declaration.
6767         * lib/copysignl.c: New file.
6768         * m4/copysignl.m4: New file.
6769         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
6770         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
6771         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
6772         HAVE_COPYSIGNL.
6773         * modules/copysignl: New file.
6774         * tests/test-math-c++.cc: Check the declaration of copysignl.
6775         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6776         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
6777         * doc/posix-functions/copysignl.texi: Mention the new module.
6778
6779 2011-10-09  Bruno Haible  <bruno@clisp.org>
6780
6781         Tests for module 'copysignf'.
6782         * modules/copysignf-tests: New file.
6783         * tests/test-copysignf.c: New file.
6784
6785         New module 'copysignf'.
6786         * lib/math.in.h (copysignf): New declaration.
6787         * lib/copysignf.c: New file.
6788         * m4/copysignf.m4: New file.
6789         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
6790         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
6791         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
6792         HAVE_COPYSIGNF.
6793         * modules/copysignf: New file.
6794         * tests/test-math-c++.cc: Check the declaration of copysignf.
6795         * doc/posix-functions/copysignf.texi: Mention the new module.
6796
6797 2011-10-09  Bruno Haible  <bruno@clisp.org>
6798
6799         Ensure that HAVE_* variables are set to 1 before they are set to 0.
6800         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
6801         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
6802         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6803         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
6804         gl_SIGNAL_H_DEFAULTS.
6805
6806 2011-10-09  Bruno Haible  <bruno@clisp.org>
6807
6808         poll: Make macro safer.
6809         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
6810         ac_cv_header_poll_h is not set.
6811
6812 2011-10-09  Bruno Haible  <bruno@clisp.org>
6813
6814         copysign: Provide replacement.
6815         * lib/math.in.h (copysign): New declaration.
6816         * lib/copysign.c: New file.
6817         * m4/copysign.m4: New file.
6818         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
6819         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
6820         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
6821         HAVE_COPYSIGN.
6822         * modules/copysign (Description): Clarify.
6823         (Files): Add lib/copysign.c, m4/copysign.m4.
6824         (Depends-on): Add math, signbit.
6825         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
6826         gl_MATH_MODULE_INDICATOR.
6827         * tests/test-math-c++.cc: Check the declaration of copysign.
6828         * doc/posix-functions/copysign.texi: Mention the effects of the module
6829         on Minix and MSVC.
6830
6831 2011-10-09  Bruno Haible  <bruno@clisp.org>
6832
6833         isinf: Ensure macro on AIX 5.1.
6834         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
6835         macro.
6836         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
6837
6838 2011-10-09  Bruno Haible  <bruno@clisp.org>
6839
6840         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
6841         * modules/snprintf-posix-tests (configure.ac): Require
6842         gl_LONG_DOUBLE_VS_DOUBLE.
6843         * modules/sprintf-posix-tests (configure.ac): Likewise.
6844         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
6845         * modules/vasprintf-posix-tests (configure.ac): Likewise.
6846         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
6847         * modules/vsprintf-posix-tests (configure.ac): Likewise.
6848         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
6849         tests on platforms where 'long double' is the same as 'double'.
6850         * tests/test-sprintf-posix.h (test_function): Likewise.
6851         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6852         * tests/test-vasprintf-posix.c (test_function): Likewise.
6853
6854         *printf: Fix for platforms where 'long double' == 'double'.
6855         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
6856         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
6857         * modules/dprintf-posix (Files): Add m4/math_h.m4.
6858         * modules/fprintf-posix (Files): Likewise.
6859         * modules/obstack-printf-posix (Files): Likewise.
6860         * modules/snprintf-posix (Files): Likewise.
6861         * modules/sprintf-posix (Files): Likewise.
6862         * modules/vasnprintf (Files): Likewise.
6863         * modules/vasnprintf-posix (Files): Likewise.
6864         * modules/vasprintf-posix (Files): Likewise.
6865         * modules/vdprintf-posix (Files): Likewise.
6866         * modules/vfprintf-posix (Files): Likewise.
6867         * modules/vsnprintf-posix (Files): Likewise.
6868         * modules/vsprintf-posix (Files): Likewise.
6869         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6870         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6871         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6872         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6873         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6874         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6875         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6876
6877         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
6878         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
6879         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6880         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
6881         'long double'.
6882         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
6883
6884         isinf: Fix for platforms where 'long double' == 'double'.
6885         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6886         Don't blindly assume 80-bit 'long double'.
6887
6888         isfinite: Fix for platforms where 'long double' == 'double'.
6889         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6890         Don't blindly assume 80-bit 'long double'.
6891
6892         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
6893         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
6894         * modules/isfinite-tests (configure.ac): Require
6895         gl_LONG_DOUBLE_VS_DOUBLE.
6896         * modules/isinf-tests (configure.ac): Likewise.
6897         * modules/isnan-tests (configure.ac): Likewise.
6898         * modules/isnanl-tests (configure.ac): Likewise.
6899         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
6900         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
6901         tests on platforms where 'long double' is the same as 'double'.
6902         * tests/test-isinf.c (test_isinfl): Likewise.
6903         * tests/test-isnan.c (test_long_double): Likewise.
6904         * tests/test-isnanl.h (main): Likewise.
6905
6906 2011-10-08  Bruno Haible  <bruno@clisp.org>
6907
6908         Tests for module 'tanhf'.
6909         * modules/tanhf-tests: New file.
6910         * tests/test-tanhf.c: New file.
6911
6912         New module 'tanhf'.
6913         * lib/math.in.h (tanhf): New declaration.
6914         * lib/tanhf.c: New file.
6915         * m4/tanhf.m4: New file.
6916         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
6917         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
6918         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
6919         * modules/tanhf: New file.
6920         * tests/test-math-c++.cc: Check the declaration of tanhf.
6921         * doc/posix-functions/tanhf.texi: Mention the new module.
6922
6923         tanh: Use a .m4 file.
6924         * m4/tanh.m4: New file.
6925         * modules/tanh (Files): Add it.
6926         (configure.ac): Just invoke gl_FUNC_TANH.
6927
6928 2011-10-08  Bruno Haible  <bruno@clisp.org>
6929
6930         Tests for module 'coshf'.
6931         * modules/coshf-tests: New file.
6932         * tests/test-coshf.c: New file.
6933
6934         New module 'coshf'.
6935         * lib/math.in.h (coshf): New declaration.
6936         * lib/coshf.c: New file.
6937         * m4/coshf.m4: New file.
6938         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
6939         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
6940         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
6941         * modules/coshf: New file.
6942         * tests/test-math-c++.cc: Check the declaration of coshf.
6943         * doc/posix-functions/coshf.texi: Mention the new module.
6944
6945         cosh: Use a .m4 file.
6946         * m4/cosh.m4: New file.
6947         * modules/cosh (Files): Add it.
6948         (configure.ac): Just invoke gl_FUNC_COSH.
6949
6950 2011-10-08  Bruno Haible  <bruno@clisp.org>
6951
6952         Tests for module 'sinhf'.
6953         * modules/sinhf-tests: New file.
6954         * tests/test-sinhf.c: New file.
6955
6956         New module 'sinhf'.
6957         * lib/math.in.h (sinhf): New declaration.
6958         * lib/sinhf.c: New file.
6959         * m4/sinhf.m4: New file.
6960         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
6961         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
6962         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
6963         * modules/sinhf: New file.
6964         * tests/test-math-c++.cc: Check the declaration of sinhf.
6965         * doc/posix-functions/sinhf.texi: Mention the new module.
6966
6967         sinh: Use a .m4 file.
6968         * m4/sinh.m4: New file.
6969         * modules/sinh (Files): Add it.
6970         (configure.ac): Just invoke gl_FUNC_SINH.
6971
6972 2011-10-08  Bruno Haible  <bruno@clisp.org>
6973
6974         Tests for module 'atan2f'.
6975         * modules/atan2f-tests: New file.
6976         * tests/test-atan2f.c: New file.
6977
6978         New module 'atan2f'.
6979         * lib/math.in.h (atan2f): New declaration.
6980         * lib/atan2f.c: New file.
6981         * m4/atan2f.m4: New file.
6982         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
6983         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
6984         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
6985         * modules/atan2f: New file.
6986         * tests/test-math-c++.cc: Check the declaration of atan2f.
6987         * doc/posix-functions/atan2f.texi: Mention the new module.
6988
6989         atan2: Use a .m4 file.
6990         * m4/atan2.m4: New file.
6991         * modules/atan2 (Files): Add it.
6992         (configure.ac): Just invoke gl_FUNC_ATAN2.
6993
6994 2011-10-08  Bruno Haible  <bruno@clisp.org>
6995
6996         Tests for module 'atanf'.
6997         * modules/atanf-tests: New file.
6998         * tests/test-atanf.c: New file.
6999
7000         New module 'atanf'.
7001         * lib/math.in.h (atanf): New declaration.
7002         * lib/atanf.c: New file.
7003         * m4/atanf.m4: New file.
7004         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7006         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7007         * modules/atanf: New file.
7008         * tests/test-math-c++.cc: Check the declaration of atanf.
7009         * doc/posix-functions/atanf.texi: Mention the new module.
7010
7011         atan: Use a .m4 file.
7012         * m4/atan.m4: New file.
7013         * modules/atan (Files): Add it.
7014         (configure.ac): Just invoke gl_FUNC_ATAN.
7015
7016 2011-10-08  Bruno Haible  <bruno@clisp.org>
7017
7018         Tests for module 'acosf'.
7019         * modules/acosf-tests: New file.
7020         * tests/test-acosf.c: New file.
7021
7022         New module 'acosf'.
7023         * lib/math.in.h (acosf): New declaration.
7024         * lib/acosf.c: New file.
7025         * m4/acosf.m4: New file.
7026         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7028         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7029         * modules/acosf: New file.
7030         * tests/test-math-c++.cc: Check the declaration of acosf.
7031         * doc/posix-functions/acosf.texi: Mention the new module.
7032
7033         acos: Use a .m4 file.
7034         * m4/acos.m4: New file.
7035         * modules/acos (Files): Add it.
7036         (configure.ac): Just invoke gl_FUNC_ACOS.
7037
7038 2011-10-08  Bruno Haible  <bruno@clisp.org>
7039
7040         Tests for module 'asinf'.
7041         * modules/asinf-tests: New file.
7042         * tests/test-asinf.c: New file.
7043
7044         New module 'asinf'.
7045         * lib/math.in.h (asinf): New declaration.
7046         * lib/asinf.c: New file.
7047         * m4/asinf.m4: New file.
7048         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7049         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7050         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7051         * modules/asinf: New file.
7052         * tests/test-math-c++.cc: Check the declaration of asinf.
7053         * doc/posix-functions/asinf.texi: Mention the new module.
7054
7055         asin: Use a .m4 file.
7056         * m4/asin.m4: New file.
7057         * modules/asin (Files): Add it.
7058         (configure.ac): Just invoke gl_FUNC_ASIN.
7059
7060 2011-10-08  Bruno Haible  <bruno@clisp.org>
7061
7062         Tests for module 'tanf'.
7063         * modules/tanf-tests: New file.
7064         * tests/test-tanf.c: New file.
7065
7066         New module 'tanf'.
7067         * lib/math.in.h (tanf): New declaration.
7068         * lib/tanf.c: New file.
7069         * m4/tanf.m4: New file.
7070         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7071         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7072         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7073         * modules/tanf: New file.
7074         * tests/test-math-c++.cc: Check the declaration of tanf.
7075         * doc/posix-functions/tanf.texi: Mention the new module.
7076
7077         tan: Use a .m4 file.
7078         * m4/tan.m4: New file.
7079         * modules/tan (Files): Add it.
7080         (configure.ac): Just invoke gl_FUNC_TAN.
7081
7082 2011-10-08  Bruno Haible  <bruno@clisp.org>
7083
7084         Tests for module 'cosf'.
7085         * modules/cosf-tests: New file.
7086         * tests/test-cosf.c: New file.
7087
7088         New module 'cosf'.
7089         * lib/math.in.h (cosf): New declaration.
7090         * lib/cosf.c: New file.
7091         * m4/cosf.m4: New file.
7092         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7094         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7095         * modules/cosf: New file.
7096         * tests/test-math-c++.cc: Check the declaration of cosf.
7097         * doc/posix-functions/cosf.texi: Mention the new module.
7098
7099         cos: Use a .m4 file.
7100         * m4/cos.m4: New file.
7101         * modules/cos (Files): Add it.
7102         (configure.ac): Just invoke gl_FUNC_COS.
7103
7104 2011-10-08  Bruno Haible  <bruno@clisp.org>
7105
7106         Tests for module 'sinf'.
7107         * modules/sinf-tests: New file.
7108         * tests/test-sinf.c: New file.
7109
7110         New module 'sinf'.
7111         * lib/math.in.h (sinf): New declaration.
7112         * lib/sinf.c: New file.
7113         * m4/sinf.m4: New file.
7114         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7116         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7117         * modules/sinf: New file.
7118         * tests/test-math-c++.cc: Check the declaration of sinf.
7119         * doc/posix-functions/sinf.texi: Mention the new module.
7120
7121         sin: Use a .m4 file.
7122         * m4/sin.m4: New file.
7123         * modules/sin (Files): Add it.
7124         (configure.ac): Just invoke gl_FUNC_SIN.
7125
7126 2011-10-08  Bruno Haible  <bruno@clisp.org>
7127
7128         Tests for module 'powf'.
7129         * modules/powf-tests: New file.
7130         * tests/test-powf.c: New file.
7131
7132         New module 'powf'.
7133         * lib/math.in.h (powf): New declaration.
7134         * lib/powf.c: New file.
7135         * m4/powf.m4: New file.
7136         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7137         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7138         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7139         * modules/powf: New file.
7140         * tests/test-math-c++.cc: Check the declaration of powf.
7141         * doc/posix-functions/powf.texi: Mention the new module.
7142
7143         pow: Use a .m4 file.
7144         * m4/pow.m4: New file.
7145         * modules/pow (Files): Add it.
7146         (configure.ac): Just invoke gl_FUNC_POW.
7147
7148 2011-10-08  Bruno Haible  <bruno@clisp.org>
7149
7150         Tests for module 'log10f'.
7151         * modules/log10f-tests: New file.
7152         * tests/test-log10f.c: New file.
7153
7154         New module 'log10f'.
7155         * lib/math.in.h (log10f): New declaration.
7156         * lib/log10f.c: New file.
7157         * m4/log10f.m4: New file.
7158         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7159         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7160         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7161         * modules/log10f: New file.
7162         * tests/test-math-c++.cc: Check the declaration of log10f.
7163         * doc/posix-functions/log10f.texi: Mention the new module.
7164
7165         log10: Use a .m4 file.
7166         * m4/log10.m4: New file.
7167         * modules/log10 (Files): Add it.
7168         (configure.ac): Just invoke gl_FUNC_LOG10.
7169
7170 2011-10-08  Bruno Haible  <bruno@clisp.org>
7171
7172         Tests for module 'logf'.
7173         * modules/logf-tests: New file.
7174         * tests/test-logf.c: New file.
7175
7176         New module 'logf'.
7177         * lib/math.in.h (logf): New declaration.
7178         * lib/logf.c: New file.
7179         * m4/logf.m4: New file.
7180         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7182         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7183         * modules/logf: New file.
7184         * tests/test-math-c++.cc: Check the declaration of logf.
7185         * doc/posix-functions/logf.texi: Mention the new module.
7186
7187         log: Use a .m4 file.
7188         * m4/log.m4: New file.
7189         * modules/log (Files): Add it.
7190         (configure.ac): Just invoke gl_FUNC_LOG.
7191
7192 2011-10-08  Bruno Haible  <bruno@clisp.org>
7193
7194         Tests for module 'expf'.
7195         * modules/expf-tests: New file.
7196         * tests/test-expf.c: New file.
7197
7198         New module 'expf'.
7199         * lib/math.in.h (expf): New declaration.
7200         * lib/expf.c: New file.
7201         * m4/expf.m4: New file.
7202         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7204         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7205         * modules/expf: New file.
7206         * tests/test-math-c++.cc: Check the declaration of expf.
7207         * doc/posix-functions/expf.texi: Mention the new module.
7208
7209         exp: Use a .m4 file.
7210         * m4/exp.m4: New file.
7211         * modules/exp (Files): Add it.
7212         (configure.ac): Just invoke gl_FUNC_EXP.
7213
7214 2011-10-08  Bruno Haible  <bruno@clisp.org>
7215
7216         Tests for module 'sqrtf'.
7217         * modules/sqrtf-tests: New file.
7218         * tests/test-sqrtf.c: New file.
7219
7220         New module 'sqrtf'.
7221         * lib/math.in.h (sqrtf): New declaration.
7222         * lib/sqrtf.c: New file.
7223         * m4/sqrtf.m4: New file.
7224         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7225         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7226         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7227         * modules/sqrtf: New file.
7228         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7229         * doc/posix-functions/sqrtf.texi: Mention the new module.
7230
7231 2011-10-08  Bruno Haible  <bruno@clisp.org>
7232
7233         Tests: Avoid link failures w.r.t. libintl.
7234         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7235         $(LIBINTL).
7236         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7237         $(LIBINTL).
7238         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7239         against $(LIBINTL).
7240         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7241         $(LIBINTL).
7242         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7243         $(LIBINTL).
7244         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7245
7246 2011-10-08  Bruno Haible  <bruno@clisp.org>
7247
7248         pow tests: Defeat compiler optimizations.
7249         * tests/test-pow.c (main): Assign arguments to x and y before use.
7250
7251 2011-10-08  Bruno Haible  <bruno@clisp.org>
7252
7253         gnulib-tool: Improve last commit.
7254         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7255         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7256         ignore dependencies that are not among the modules list.
7257
7258 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7259
7260         gnulib-tool: don't follow dependencies to avoided modules
7261         This fixes a bug that is related to the previous one.
7262         * gnulib-tool (func_modules_transitive_closure)
7263         (func_emit_autoconf_snippets):
7264         Check whether a dependency is acceptable before using it.
7265         (--extract-dependencies): Report an error if --avoid is also used,
7266         since this combination of options is not yet supported.
7267
7268         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7269         Problem reported by Peter Dyballa in
7270         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7271         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7272         when echoing "$condition".
7273
7274 2011-10-07  Bruno Haible  <bruno@clisp.org>
7275
7276         Fix documentation about math functions on MacOS X.
7277         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7278         MacOS X 10.5.
7279         * doc/posix-functions/fdim.texi: Likewise.
7280         * doc/posix-functions/feclearexcept.texi: Likewise.
7281         * doc/posix-functions/fegetenv.texi: Likewise.
7282         * doc/posix-functions/fegetround.texi: Likewise.
7283         * doc/posix-functions/feholdexcept.texi: Likewise.
7284         * doc/posix-functions/feraiseexcept.texi: Likewise.
7285         * doc/posix-functions/fesetenv.texi: Likewise.
7286         * doc/posix-functions/fesetround.texi: Likewise.
7287         * doc/posix-functions/fetestexcept.texi: Likewise.
7288         * doc/posix-functions/feupdateenv.texi: Likewise.
7289         * doc/posix-functions/fmax.texi: Likewise.
7290         * doc/posix-functions/fmin.texi: Likewise.
7291         * doc/posix-functions/log2.texi: Likewise.
7292         * doc/posix-functions/modff.texi: Likewise.
7293         * doc/posix-functions/nan.texi: Likewise.
7294         * doc/posix-functions/nanf.texi: Likewise.
7295         * doc/posix-functions/nextafterf.texi: Likewise.
7296         * doc/posix-functions/remquo.texi: Likewise.
7297
7298 2011-10-07  Bruno Haible  <bruno@clisp.org>
7299
7300         modff: Drop assumption about library that defines modff.
7301         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7302         AC_CHECK_FUNCS.
7303         * modules/modff (Files): Add m4/mathfunc.m4.
7304
7305 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7306
7307         raise tests: Avoid a GCC warning.
7308         * tests/test-raise.c (handler): Use _Noreturn.
7309
7310 2011-10-07  Bruno Haible  <bruno@clisp.org>
7311
7312         Tests for module 'ldexpf'.
7313         * modules/ldexpf-tests: New file.
7314         * tests/test-ldexpf.c: New file.
7315
7316         New module 'ldexpf'.
7317         * lib/math.in.h (ldexpf): New declaration.
7318         * lib/ldexpf.c: New file.
7319         * m4/ldexpf.m4: New file.
7320         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
7321         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
7322         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
7323         * modules/ldexpf: New file.
7324         * tests/test-math-c++.cc: Check the declaration of ldexpf.
7325         * doc/posix-functions/ldexpf.texi: Mention the new module.
7326
7327 2011-10-06  Bruno Haible  <bruno@clisp.org>
7328
7329         frexpf: Work around problems on IRIX and mingw.
7330         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
7331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
7332         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
7333         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
7334         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
7335         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
7336         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
7337
7338 2011-10-06  Bruno Haible  <bruno@clisp.org>
7339
7340         fabsf: Drop assumption about library that defines fabsf.
7341         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
7342         AC_CHECK_FUNCS.
7343         * modules/fabsf (Files): Add m4/mathfunc.m4.
7344
7345 2011-10-06  Bruno Haible  <bruno@clisp.org>
7346
7347         frexpf: Drop assumption about library that defines frexpf.
7348         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
7349         'int *', 'float *', 'long double *', 'float', 'long double'.
7350         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
7351         AC_CHECK_FUNCS.
7352         * modules/frexpf (Files): Add m4/mathfunc.m4.
7353
7354         Tests for module 'frexpf'.
7355         * modules/frexpf-tests: New file.
7356         * tests/test-frexpf.c: New file.
7357
7358         New module 'frexpf'.
7359         * lib/math.in.h (frexpf): New declaration.
7360         * lib/frexpf.c: New file.
7361         * m4/frexpf.m4: New file.
7362         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7363         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7364         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7365         * modules/frexpf: New file.
7366         * tests/test-math-c++.cc: Check the declaration of frexpf.
7367         * doc/posix-functions/frexpf.texi: Mention the new module.
7368
7369 2011-10-06  Bruno Haible  <bruno@clisp.org>
7370
7371         math: Sort function declarations of math.in.h.
7372         * lib/math.in.h (frexp, logb): Move declarations.
7373
7374 2011-10-05  Bruno Haible  <bruno@clisp.org>
7375
7376         Tests for module 'modff'.
7377         * modules/modff-tests: New file.
7378         * tests/test-modff.c: New file.
7379
7380         New module 'modff'.
7381         * lib/math.in.h (modff): New declaration.
7382         * lib/modff.c: New file.
7383         * m4/modff.m4: New file.
7384         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7385         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7386         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7387         * modules/modff: New file.
7388         * tests/test-math-c++.cc: Check the declaration of modff.
7389         * doc/posix-functions/modff.texi: Mention the new module.
7390
7391         modf tests: Make test sharper.
7392         * tests/test-modf.c (main): Strengthen upper bound.
7393
7394         modf: Use a .m4 file.
7395         * m4/modf.m4: New file.
7396         * modules/modf (Files): Add it.
7397         (configure.ac): Just invoke gl_FUNC_MODF.
7398
7399 2011-10-05  Bruno Haible  <bruno@clisp.org>
7400
7401         Tests for module 'fmodf'.
7402         * modules/fmodf-tests: New file.
7403         * tests/test-fmodf.c: New file.
7404
7405         New module 'fmodf'.
7406         * lib/math.in.h (fmodf): New declaration.
7407         * lib/fmodf.c: New file.
7408         * m4/fmodf.m4: New file.
7409         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
7410         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
7411         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
7412         * modules/fmodf: New file.
7413         * tests/test-math-c++.cc: Check the declaration of fmodf.
7414         * doc/posix-functions/fmodf.texi: Mention the new module.
7415
7416         fmod: Use a .m4 file.
7417         * m4/fmod.m4: New file.
7418         * modules/fmod (Files): Add it.
7419         (configure.ac): Just invoke gl_FUNC_FMOD.
7420
7421 2011-10-05  Bruno Haible  <bruno@clisp.org>
7422
7423         Tests for module 'fabsf'.
7424         * modules/fabsf-tests: New file.
7425         * tests/test-fabsf.c: New file.
7426
7427         New module 'fabsf'.
7428         * lib/math.in.h (fabsf): New declaration.
7429         * lib/fabsf.c: New file.
7430         * m4/fabsf.m4: New file.
7431         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
7432         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
7433         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
7434         * modules/fabsf: New file.
7435         * tests/test-math-c++.cc: Check the declaration of fabsf.
7436         * doc/posix-functions/fabsf.texi: Mention the new module.
7437
7438         fabs: Use a .m4 file.
7439         * m4/fabs.m4: New file.
7440         * modules/fabs (Files): Add it.
7441         (configure.ac): Just invoke gl_FUNC_FABS.
7442
7443 2011-10-05  Jim Meyering  <meyering@redhat.com>
7444
7445         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
7446         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
7447         ls -lL regression introduced in coreutils-8.12, it does so at the
7448         cost of an additional stat call in the common case.  Besides, now
7449         that the kernel change that prompted commit 95f7c57f has been reverted
7450         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
7451         we have no use for commit 95f7c57f, "file-has-acl: use
7452         acl_extended_file_nofollow if available".
7453
7454 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
7455
7456         file-has-acl: revert unintended change in behavior of ls -L
7457         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
7458         derived from...
7459         (file_has_acl): ...code here.  Call it.
7460         This problem was introduced with 2011-07-22 commit 95f7c57f,
7461         "file-has-acl: use acl_extended_file_nofollow if available".
7462         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
7463
7464 2011-10-03  Bruno Haible  <bruno@clisp.org>
7465
7466         poll: Avoid link errors on MSVC.
7467         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
7468         * modules/poll (Depends-on): Add sockets.
7469         (Link): New section.
7470         * NEWS: Mention the change.
7471         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
7472         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
7473         $(LIB_POLL) instead of $(LIBSOCKET).
7474
7475 2011-10-03  Bruno Haible  <bruno@clisp.org>
7476
7477         sys_select tests: Fix link error on MSVC 9.
7478         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
7479         with $(LIB_SELECT) instead of $(LIBSOCKET).
7480
7481 2011-10-03  Bruno Haible  <bruno@clisp.org>
7482
7483         sys_select: Fix compilation error on mingw.
7484         * lib/sys_select.in.h: On native Windows, include <io.h>.
7485
7486 2011-10-03  Bruno Haible  <bruno@clisp.org>
7487
7488         wmemset: Support for MSVC.
7489         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
7490         whether wmemset() exists.
7491
7492 2011-10-03  Bruno Haible  <bruno@clisp.org>
7493
7494         wmemmove: Support for MSVC.
7495         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
7496         whether wmemmove() exists.
7497
7498 2011-10-03  Bruno Haible  <bruno@clisp.org>
7499
7500         wmemcpy: Support for MSVC.
7501         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
7502         whether wmemcpy() exists.
7503
7504 2011-10-03  Bruno Haible  <bruno@clisp.org>
7505
7506         wmemcmp: Support for MSVC.
7507         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7508         whether wmemcmp() exists.
7509
7510 2011-10-03  Bruno Haible  <bruno@clisp.org>
7511
7512         wmemchr: Support for MSVC.
7513         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7514         whether wmemchr() exists.
7515
7516 2011-10-03  Bruno Haible  <bruno@clisp.org>
7517
7518         glthread/*, strsignal: Support for MSVC.
7519         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7520         including <winsock.h> on MSVC 9.
7521         * lib/glthread/lock.h: Likewise.
7522         * lib/glthread/thread.h: Likewise.
7523         * lib/glthread/tls.h: Likewise.
7524         * lib/glthread/yield.h: Likewise.
7525         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7526         if HAVE_UNISTD_H is false.
7527         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7528
7529 2011-10-03  Bruno Haible  <bruno@clisp.org>
7530
7531         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7532         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7533         Set to 100000.
7534
7535 2011-10-03  Bruno Haible  <bruno@clisp.org>
7536
7537         acl: Fix specification.
7538         * lib/file-has-acl.c (file_has_acl): Fix specification.
7539
7540 2011-10-03  Bruno Haible  <bruno@clisp.org>
7541
7542         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7543         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7544         (compute_curr_prefix, shared_library_fullname,
7545         find_shared_library_fullname, get_shared_library_fullname, relocate):
7546         Use it together with PIC && INSTALLDIR.
7547         Reported by <jojelino@gmail.com>
7548         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7549
7550 2011-10-01  Jim Meyering  <meyering@redhat.com>
7551
7552         maint.mk: adjust a release-related rule not to require use of gzip
7553         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7554         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7555         projects that build only .tar.xz files.  Also fix an erroneous test.
7556
7557         test-linkat: don't leave behind a temporary file
7558         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7559         Otherwise, coreutils' "make distcheck" would fail with this:
7560           Only in /c/cu/tests/torture/coreutils/test/\
7561             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7562           make[2]: *** [my-distcheck] Error 1
7563
7564         float, math: add omitted file
7565         * lib/itold.c: Add file, required for yesterday's float change.
7566
7567 2011-10-01  Bruno Haible  <bruno@clisp.org>
7568
7569         isinf: Fix for OpenBSD/x86.
7570         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7571         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7572         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7573
7574 2011-10-01  Bruno Haible  <bruno@clisp.org>
7575
7576         isfinite: Fix syntax error in configure test.
7577         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7578
7579         isfinite: Fix typo.
7580         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7581         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7582
7583 2011-10-01  Bruno Haible  <bruno@clisp.org>
7584
7585         nonblocking tests: Fix test failure on Linux/IA-64.
7586         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7587         Set to 270000.
7588
7589 2011-10-01  Bruno Haible  <bruno@clisp.org>
7590
7591         mkfifoat tests: Fix a test failure on mingw.
7592         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7593         with error ENOSYS.
7594
7595 2011-09-30  Bruno Haible  <bruno@clisp.org>
7596
7597         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7598         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7599         'long double'. Set REPLACE_ITOLD.
7600         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7601         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7602         * lib/itold.c: New file.
7603         * modules/float (Files): Add lib/itold.c.
7604         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7605         (Makefile.am): Substitute REPLACE_ITOLD.
7606         * modules/math (Depends-on): Add float.
7607         (Makefile.am): Substitute REPLACE_ITOLD.
7608         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7609         * doc/posix-headers/math.texi: Likewise.
7610         * doc/posix-functions/logl.texi: Likewise.
7611
7612 2011-09-30  Bruno Haible  <bruno@clisp.org>
7613
7614         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7615         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7616         Set to 140000.
7617
7618 2011-09-30  Bruno Haible  <bruno@clisp.org>
7619
7620         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7621         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7622         invocation, say "right after AC_PROG_CC_STDC", not "right after
7623         AC_PROG_CC".
7624         Reported by Gary V. Vaughan <gary@gnu.org>.
7625
7626 2011-09-30  Bruno Haible  <bruno@clisp.org>
7627
7628         Centralize C99 requirement.
7629         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7630         * modules/stdarg (configure.ac-early): Invoke it instead of
7631         AC_PROG_CC_STDC.
7632         Reported by Gary V. Vaughan and Paul Eggert.
7633
7634 2011-09-29  Bruno Haible  <bruno@clisp.org>
7635
7636         float: Fix LDBL_MAX value on Linux/PowerPC.
7637         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7638         on Linux/PowerPC.
7639         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7640         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7641         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7642         platform.
7643         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7644
7645 2011-09-29  Bruno Haible  <bruno@clisp.org>
7646
7647         doc: Improve doc about gl_EARLY.
7648         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7649         AC_PROG_CC_STDC invocation.
7650         Reported by Gary V. Vaughan <gary@gnu.org>.
7651
7652 2011-09-28  Bruno Haible  <bruno@clisp.org>
7653
7654         fgetc, fputc, fread, fwrite tests: Fix link error.
7655         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7656         on non-MSVC platforms.
7657         * tests/test-fputc.c (main): Likewise.
7658         * tests/test-fread.c (main): Likewise.
7659         * tests/test-fwrite.c (main): Likewise.
7660         Reported by Jim Meyering.
7661
7662 2011-09-27  Bruno Haible  <bruno@clisp.org>
7663
7664         fputc, fwrite tests: Avoid test failure on MSVC.
7665         * tests/test-fgetc.c: Include msvc-inval.h.
7666         (main): Invoke gl_msvc_inval_ensure_handler.
7667         * tests/test-fputc.c: Include msvc-inval.h.
7668         (main): Invoke gl_msvc_inval_ensure_handler.
7669         * tests/test-fread.c: Include msvc-inval.h.
7670         (main): Invoke gl_msvc_inval_ensure_handler.
7671         * tests/test-fwrite.c: Include msvc-inval.h.
7672         (main): Invoke gl_msvc_inval_ensure_handler.
7673         * modules/fgetc-tests (Depends-on): Add msvc-inval.
7674         * modules/fputc-tests (Depends-on): Likewise.
7675         * modules/fread-tests (Depends-on): Likewise.
7676         * modules/fwrite-tests (Depends-on): Likewise.
7677
7678 2011-09-27  Bruno Haible  <bruno@clisp.org>
7679
7680         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
7681         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
7682         (raise): Remove older, duplicated declaration.
7683         (_gl_raise_SIGPIPE): New declaration.
7684         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
7685         (rpl_raise): Remove function.
7686         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
7687         a gnulib-defined SIGPIPE here.
7688         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
7689         'sigprocmask' has detected missing signal-blocking and the module
7690         'sigpipe' is enabled.
7691         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7692
7693 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
7694
7695         base64-tests: avoid memory leak
7696         * tests/test-base64.c (main): Plug memory leak.
7697
7698         base32: new module
7699         * modules/base32: New module.
7700         * lib/base32.c: New file.
7701         * lib/base32.h: Likewise.
7702         * m4/base32.m4: Likewise.
7703         * modules/base32-tests: New test.
7704         * tests/test-base32.c: Likewise.
7705         * MODULES.html.sh (Misc): Mention it.
7706
7707 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7708
7709         gnulib: use more-standard license notice wording
7710         * gnulib-tool (func_emit_copyright_notice): When emitting a
7711         license notice into a file, use the standard wording as suggested
7712         by the current information for GNU maintainers, except say "file"
7713         rather than "program".  The new wording gives a license version
7714         number, which addresses an issue raised by Glenn Morris in
7715         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
7716         * m4/onceonly.m4: Use that same wording here, too.
7717
7718         dup2: minor simplification
7719         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
7720         as lib/dup2.c no longer uses 'inline'.
7721
7722 2011-09-25  Bruno Haible  <bruno@clisp.org>
7723
7724         strings: Fix compilation error on MSVC.
7725         * lib/strings.in.h: Include <stddef.h> for size_t.
7726
7727 2011-09-25  Bruno Haible  <bruno@clisp.org>
7728
7729         fflush et al.: Document limitation on MSVC.
7730         * doc/posix-functions/fflush.texi: Document possible crash in handling
7731         mode other than DEFAULT_HANDLING.
7732         * doc/posix-functions/fgetc.texi: Likewise.
7733         * doc/posix-functions/fputc.texi: Likewise.
7734         * doc/posix-functions/fread.texi: Likewise.
7735         * doc/posix-functions/fwrite.texi: Likewise.
7736
7737 2011-09-25  Bruno Haible  <bruno@clisp.org>
7738
7739         msvc-inval: Allow three invalid parameter handling modes.
7740         * lib/msvc-inval.h: Don't include <stdlib.h> here.
7741         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
7742         macros.
7743         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
7744         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
7745         SANE_LIBRARY_HANDLING as a no-op.
7746         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
7747         <stdlib.h>.
7748         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
7749
7750 2011-09-25  Bruno Haible  <bruno@clisp.org>
7751
7752         msvc-inval: Make handler multithread-safe.
7753         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
7754         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
7755         declarations.
7756         (gl_msvc_inval_current): New declaration.
7757         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7758         Operate on the structure returned by gl_msvc_inval_current().
7759         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
7760         Remove varaiables.
7761         (tls_index, tls_initialized): New variables.
7762         (not_per_thread): New variable.
7763         (gl_msvc_inval_current): New function.
7764         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
7765         returned by gl_msvc_inval_current().
7766
7767 2011-09-25  Bruno Haible  <bruno@clisp.org>
7768
7769         msvc-inval: Install handler globally.
7770         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
7771         !_MSC_VER.
7772         (gl_msvc_invalid_parameter_handler): Remove declaration.
7773         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
7774         declarations.
7775         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7776         Install the handler globally, don't uninstall it.
7777         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
7778         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
7779         currently valid, call RaiseException instead.
7780         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
7781         for !_MSC_VER.
7782
7783 2011-09-25  Bruno Haible  <bruno@clisp.org>
7784
7785         strerror_r-posix: Fix for MSVC 9.
7786         * lib/strerror_r.c (local_snprintf): New function.
7787         (snprintf): Define to local_snprintf, not to _snprintf.
7788
7789 2011-09-25  Bruno Haible  <bruno@clisp.org>
7790
7791         ftruncate: Support for MSVC 9.
7792         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
7793         (chsize_nothrow): New function.
7794         (chsize): Redefine as a macro.
7795         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
7796         * modules/ftruncate (Depends-on): Add msvc-inval.
7797
7798 2011-09-25  Bruno Haible  <bruno@clisp.org>
7799
7800         New module 'fstat'.
7801         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
7802         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
7803         * lib/fchdir.c (rpl_fstat): Remove function.
7804         * m4/fstat.m4: New file.
7805         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
7806         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
7807         declared.
7808         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
7809         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
7810         * modules/fstat: New file.
7811         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
7812         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
7813         is set.
7814         * doc/posix-functions/fstat.texi: Mention the new module and the
7815         problem on MSVC.
7816         * NEWS: Mention the change.
7817         * modules/acl (Depends-on): Add fstat.
7818         * modules/chdir-safer (Depends-on): Likewise.
7819         * modules/chown (Depends-on): Likewise.
7820         * modules/copy-file (Depends-on): Likewise.
7821         * modules/fchdir (Depends-on): Likewise.
7822         * modules/fdopendir (Depends-on): Likewise.
7823         * modules/fopen (Depends-on): Likewise.
7824         * modules/fts (Depends-on): Likewise.
7825         * modules/getcwd (Depends-on): Likewise.
7826         * modules/isapipe (Depends-on): Likewise.
7827         * modules/linkat (Depends-on): Likewise.
7828         * modules/lseek (Depends-on): Likewise.
7829         * modules/mkdir-p (Depends-on): Likewise.
7830         * modules/open (Depends-on): Likewise.
7831         * modules/openat (Depends-on): Likewise.
7832         * modules/read-file (Depends-on): Likewise.
7833         * modules/renameat (Depends-on): Likewise.
7834         * modules/utimens (Depends-on): Likewise.
7835
7836 2011-09-25  Bruno Haible  <bruno@clisp.org>
7837
7838         linkat: Fix compilation on MSVC 9.
7839         * lib/linkat.c: Don't include <stdint.h>.
7840
7841 2011-09-25  Bruno Haible  <bruno@clisp.org>
7842
7843         fclose: Support for MSVC 9.
7844         * lib/fclose.c: Include msvc-inval.h.
7845         (fclose_nothrow): New function.
7846         (rpl_fclose): Use it.
7847         * modules/fclose (Depends-on): Add msvc-inval.
7848         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
7849
7850 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7851
7852         dup2: minor simplifications
7853         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
7854         that it's a performance win.
7855         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
7856         ! defined __CYGWIN__)" to "ifdef F_GETFL".
7857
7858 2011-09-24  Jim Meyering  <meyering@redhat.com>
7859
7860         test-futimens: avoid a warning from gcc -Wshadow
7861         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
7862         to avoid a shadowing warning.
7863
7864 2011-09-24  Bruno Haible  <bruno@clisp.org>
7865
7866         fdopen: Support for MSVC 9.
7867         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
7868         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
7869         * lib/fdopen.c: Include msvc-inval.h.
7870         (fdopen_nothrow): New function.
7871         (rpl_fdopen): Use it.
7872         * modules/fdopen (Depends-on): Add msvc-inval.
7873         * modules/fclose-tests (Depends-on): Add fdopen.
7874         * modules/fflush-tests (Depends-on): Likewise.
7875         * modules/fgetc-tests (Depends-on): Likewise.
7876         * modules/fputc-tests (Depends-on): Likewise.
7877         * modules/fread-tests (Depends-on): Likewise.
7878         * modules/freopen-tests (Depends-on): Likewise.
7879         * modules/fseeko-tests (Depends-on): Likewise.
7880         * modules/ftello-tests (Depends-on): Likewise.
7881         * modules/fwrite-tests  (Depends-on): Likewise.
7882         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
7883
7884 2011-09-24  Bruno Haible  <bruno@clisp.org>
7885
7886         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
7887         * modules/fgetc-tests (Depends-on): Add unistd.
7888         * modules/fputc-tests (Depends-on): Likewise.
7889         * modules/fread-tests (Depends-on): Likewise.
7890         * modules/fwrite-tests (Depends-on): Likewise.
7891
7892 2011-09-24  Bruno Haible  <bruno@clisp.org>
7893
7894         dup: Simplify autoconf test.
7895         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
7896         on gl_MSVC_INVAL's result.
7897
7898 2011-09-24  Bruno Haible  <bruno@clisp.org>
7899
7900         Tests for function fwrite().
7901         * modules/fwrite-tests: New file.
7902         * tests/test-fwrite.c: New file.
7903         * modules/stdio-tests (Depends-on): Add fwrite-tests.
7904
7905         Tests for function fread().
7906         * modules/fread-tests: New file.
7907         * tests/test-fread.c: New file.
7908         * modules/stdio-tests (Depends-on): Add fread-tests.
7909
7910         Activate fputc tests.
7911         * modules/stdio-tests (Depends-on): Add fputc-tests.
7912
7913         Enhance fgetc, fputc tests.
7914         * tests/test-fgetc.c (main): Also test the stream's error indicator.
7915         * tests/test-fputc.c (main): Likewise.
7916
7917 2011-09-24  Bruno Haible  <bruno@clisp.org>
7918
7919         write: Support for MSVC 9.
7920         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7921         is not 1.
7922         * lib/write.c (write_nothrow): New function.
7923         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
7924         not 1. Use write_nothrow.
7925         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
7926         invalid parameter handler.
7927         (gl_PREREQ_WRITE): New macro.
7928         * modules/write (Depends-on): Add msvc-inval.
7929         (configure.ac): Invoke gl_PREREQ_WRITE.
7930         * doc/posix-functions/write.texi: Mention the problem on MSVC.
7931
7932 2011-09-24  Bruno Haible  <bruno@clisp.org>
7933
7934         read: Fix last commit.
7935         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
7936
7937 2011-09-24  Bruno Haible  <bruno@clisp.org>
7938
7939         dup2: Fix last commit.
7940         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
7941         (rpl_dup2): Disable fcntl workaround on native Windows.
7942
7943         sigprocmask: Make code safer.
7944         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
7945         section that changes macro definitions for this compilation unit.
7946
7947 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7948
7949         dup2: clarify by coalescing Windows-specific material
7950         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
7951         "msvc-nothrow.h"' to the Windows-specific section, so that the
7952         Emacs source need not contain these include files.
7953         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
7954         Windows-specific fixes into this function rather than just the
7955         nothrow fix, as this shortens and clarifies the code.  Always
7956         define as a function, as that's a bit cleaner than having it be
7957         sometimes a function and sometimes a macro.
7958         (rpl_dup2): Move the Windows-specific stuff out of here and into
7959         ms_windows_dup2.  Don't protect the Haiku-related fix with
7960         "#if !defined __linux__", as the same code also works around
7961         a Linux kernel bug, and it doesn't add any system calls on any
7962         platform.  Add comment about FreeBSD 6.1.
7963
7964         sigprocmask: move #include directive
7965         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
7966         Windows-specific section, so that the Emacs source need not
7967         contain msvc-inval.h.
7968
7969 2011-09-23  Bruno Haible  <bruno@clisp.org>
7970
7971         read: Support for MSVC 9.
7972         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7973         is not 1.
7974         * lib/read.c (read_nothrow): New function.
7975         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
7976         read_nothrow.
7977         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
7978         invalid parameter handler.
7979         (gl_PREREQ_READ): New macro.
7980         * modules/read (Depends-on): Add msvc-inval.
7981         (configure.ac): Invoke gl_PREREQ_READ.
7982         * doc/posix-functions/read.texi: Mention the problem on MSVC.
7983
7984 2011-09-23  Bruno Haible  <bruno@clisp.org>
7985
7986         close: Support for MSVC 9.
7987         * lib/close.c: Include <errno.h>, msvc-inval.h.
7988         (close_nothrow): New function.
7989         (rpl_close): Use it.
7990         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
7991         invalid parameter handler.
7992         * modules/close (Depends-on): Add msvc-inval.
7993         * modules/dup2-tests (Depends-on): Add close.
7994         * modules/dup3-tests (Depends-on): Likewise.
7995         * modules/fcntl-tests (Depends-on): Likewise.
7996         * modules/spawn-pipe-tests (Depends-on): Likewise.
7997         * modules/unistd-safer-tests (Depends-on): Likewise.
7998         * doc/posix-functions/close.texi: Mention the problem on MSVC.
7999
8000 2011-09-23  Bruno Haible  <bruno@clisp.org>
8001
8002         New module 'dup'.
8003         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8004         Allow replacement.
8005         * lib/dup.c: New file.
8006         * lib/fchdir.c (rpl_dup): Remove function.
8007         * m4/dup.m4: New file.
8008         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8009         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8010         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8011         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8012         * modules/dup: New file.
8013         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8014         'dup' module is in use.
8015         * modules/fdopendir (Depends-on): Add dup.
8016         * modules/fdutimensat-tests (Depends-on): Likewise.
8017         * modules/fts (Depends-on): Likewise.
8018         * modules/futimens-tests (Depends-on): Likewise.
8019         * modules/posix_spawnp-tests (Depends-on): Likewise.
8020         * modules/unistd-safer-tests (Depends-on): Likewise.
8021         * modules/utimens-tests (Depends-on): Likewise.
8022         * doc/posix-functions/dup.texi: Mention the new module and the problem
8023         on MSVC.
8024
8025 2011-09-23  Bruno Haible  <bruno@clisp.org>
8026
8027         getdtablesize: Support for MSVC 9.
8028         * lib/getdtablesize.c: Include msvc-inval.h.
8029         (_setmaxstdio_nothrow): New function.
8030         (_setmaxstdio): Redefine it.
8031         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8032         * modules/getdtablesize (Depends-on): Add msvc-inval.
8033         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8034
8035 2011-09-23  Bruno Haible  <bruno@clisp.org>
8036
8037         signal-h: Rename from signal.
8038         * modules/signal-h: Renamed from modules/signal.
8039         * modules/pthread_sigmask (Depends-on): Update.
8040         * modules/raise (Depends-on): Likewise.
8041         * modules/sigaction (Depends-on): Likewise.
8042         * modules/sigpipe (Depends-on): Likewise.
8043         * modules/sigprocmask (Depends-on): Likewise.
8044         * modules/sys_select (Depends-on): Likewise.
8045         * modules/signal-h-tests: Renamed from modules/signal-tests.
8046         (Files, Depends-on, Makefile.am): Update.
8047         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8048         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8049         (Files, Makefile.am): Update.
8050         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8051         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8052         * modules/signal: New placeholder file.
8053         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8054         * doc/posix-headers/signal.texi: Update.
8055         * NEWS: Mention the change.
8056
8057 2011-09-23  Bruno Haible  <bruno@clisp.org>
8058
8059         sigprocmask: Avoid crashes through signal() on MSVC 9.
8060         * lib/sigprocmask.c: Include msvc-inval.h.
8061         (signal_nothrow): New function.
8062         (signal): Redefine it.
8063         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8064         * modules/sigprocmask (Depends-on): Add msvc-inval.
8065         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8066
8067 2011-09-23  Bruno Haible  <bruno@clisp.org>
8068
8069         Tests for module 'raise'.
8070         * modules/raise-tests: New file.
8071         * tests/test-raise.c: New file.
8072
8073         raise: Support for MSVC.
8074         * lib/signal.in.h (raise): New declaration.
8075         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8076         for native Windows platforms.
8077         * m4/raise.m4: New file.
8078         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8079         HAVE_RAISE, REPLACE_RAISE.
8080         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8081         REPLACE_RAISE.
8082         * modules/raise (Status, Notice): Remove fields.
8083         (Files): Add m4/raise.m4.
8084         (Depends-on): Add signal, msvc-inval.
8085         (configure.ac): Use the common idioms.
8086         (Maintainer): Add me.
8087         * tests/test-signal-c++.cc: Check the signature of raise.
8088         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8089
8090 2011-09-23  Bruno Haible  <bruno@clisp.org>
8091
8092         pipe2: Fix compilation on pre-C99 compilers.
8093         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8094
8095 2011-09-23  Bruno Haible  <bruno@clisp.org>
8096
8097         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8098         * lib/msvc-nothrow.h: New file.
8099         * lib/msvc-nothrow.c: New file.
8100         * m4/msvc-nothrow.m4: New file.
8101         * modules/msvc-nothrow: New file.
8102         * lib/dup2.c: Include msvc-nothrow.h.
8103         (rpl_dup2): No need to protect _get_osfhandle call here.
8104         * lib/accept4.c: Include msvc-nothrow.h.
8105         * lib/error.c: Likewise.
8106         * lib/fcntl.c: Likewise.
8107         * lib/lseek.c: Likewise.
8108         * lib/nonblocking.c: Likewise.
8109         * lib/poll.c: Likewise.
8110         * lib/read.c: Likewise.
8111         * lib/select.c: Likewise.
8112         * lib/sockets.h: Likewise.
8113         * lib/sockets.c: Likewise.
8114         * lib/stdio-read.c: Likewise.
8115         * lib/stdio-write.c: Likewise.
8116         * lib/write.c: Likewise.
8117         * lib/w32sock.h: Likewise.
8118         * lib/w32spawn.h: Likewise.
8119         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8120         * lib/fsync.c: Likewise.
8121         * lib/isapipe.c: Likewise.
8122         * modules/dup2 (Depends-on): Add msvc-nothrow.
8123         * modules/accept4 (Depends-on): Likewise.
8124         * modules/error (Depends-on): Likewise.
8125         * modules/fcntl (Depends-on): Likewise.
8126         * modules/lseek (Depends-on): Likewise.
8127         * modules/nonblocking (Depends-on): Likewise.
8128         * modules/poll (Depends-on): Likewise.
8129         * modules/read (Depends-on): Likewise.
8130         * modules/select (Depends-on): Likewise.
8131         * modules/sockets (Depends-on): Likewise.
8132         * modules/sigpipe (Depends-on): Likewise.
8133         * modules/write (Depends-on): Likewise.
8134         * modules/accept (Depends-on): Likewise.
8135         * modules/bind (Depends-on): Likewise.
8136         * modules/connect (Depends-on): Likewise.
8137         * modules/gethostname (Depends-on): Likewise.
8138         * modules/getpeername (Depends-on): Likewise.
8139         * modules/getsockname (Depends-on): Likewise.
8140         * modules/getsockopt (Depends-on): Likewise.
8141         * modules/ioctl (Depends-on): Likewise.
8142         * modules/listen (Depends-on): Likewise.
8143         * modules/recv (Depends-on): Likewise.
8144         * modules/recvfrom (Depends-on): Likewise.
8145         * modules/send (Depends-on): Likewise.
8146         * modules/sendto (Depends-on): Likewise.
8147         * modules/setsockopt (Depends-on): Likewise.
8148         * modules/shutdown (Depends-on): Likewise.
8149         * modules/socket (Depends-on): Likewise.
8150         * modules/execute (Depends-on): Likewise.
8151         * modules/spawn-pipe (Depends-on): Likewise.
8152         * modules/flock (Depends-on): Likewise.
8153         * modules/fsync (Depends-on): Likewise.
8154         * modules/isapipe (Depends-on): Likewise.
8155         * tests/test-cloexec.c: Include msvc-nothrow.h.
8156         * tests/test-dup-safer.c: Likewise.
8157         * tests/test-dup2.c: Likewise.
8158         * tests/test-dup3.c: Likewise.
8159         * tests/test-fcntl.c: Likewise.
8160         * tests/test-pipe.c: Likewise.
8161         * tests/test-pipe2.c: Likewise.
8162         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8163         * modules/unistd-safer-tests (Depends-on): Likewise.
8164         * modules/dup2-tests (Depends-on): Likewise.
8165         * modules/dup3-tests (Depends-on): Likewise.
8166         * modules/fcntl-tests (Depends-on): Likewise.
8167         * modules/pipe-posix-tests (Depends-on): Likewise.
8168         * modules/pipe2-tests (Depends-on): Likewise.
8169
8170 2011-09-23  Bruno Haible  <bruno@clisp.org>
8171
8172         dup2: Make code more maintainable.
8173         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8174         (rpl_dup2): Use it.
8175         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8176         * modules/dup2 (configure.ac): Invoke it.
8177         Reported by Paul Eggert.
8178
8179 2011-09-23  Bruno Haible  <bruno@clisp.org>
8180
8181         msvc-inval: Fix compilation error.
8182         * lib/msvc-inval.h: Include <excpt.h>.
8183
8184 2011-09-23  Bruno Haible  <bruno@clisp.org>
8185
8186         mkdir: Tweak for MSVC 9.
8187         * lib/sys_stat.in.h: Update comments.
8188         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8189
8190         Tests for module 'chdir'.
8191         * modules/chdir-tests: New file.
8192         * tests/test-chdir.c: New file.
8193
8194         New module 'chdir'.
8195         * modules/chdir: New file.
8196         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8197         (chdir): New declaration.
8198         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8199         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8200         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8201         * tests/test-unistd-c++.cc: Check signature of chdir.
8202         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8203         * modules/chdir-long (Depends-on): Add chdir.
8204         * modules/fchdir (Depends-on): Likewise.
8205         * modules/rename (Depends-on): Likewise.
8206         * modules/savewd (Depends-on): Likewise.
8207
8208         rmdir: Support for mingw, MSVC 9.
8209         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8210         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8211
8212         getcwd: Tweak for MSVC 9.
8213         * lib/unistd.in.h: Update comments.
8214         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8215
8216 2011-09-22  Bruno Haible  <bruno@clisp.org>
8217
8218         strerror_r-posix: Avoid a link error on MSVC.
8219         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8220         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8221
8222 2011-09-22  Bruno Haible  <bruno@clisp.org>
8223
8224         select: Avoid link errors on MSVC.
8225         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8226         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8227         * modules/pselect (Link): Likewise.
8228         * NEWS: Mention the change.
8229         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8230         test-select-stdin against $(LIB_SELECT).
8231         * modules/pselect-tests (Makefile.am): Link test-pselect against
8232         $(LIB_SELECT).
8233
8234 2011-09-22  Bruno Haible  <bruno@clisp.org>
8235
8236         select: Avoid compilation error on MSVC.
8237         * lib/select.c: Don't include <stdbool.h>.
8238
8239 2011-09-21  Bruno Haible  <bruno@clisp.org>
8240
8241         Consolidate all uses of PATH_MAX in *.m4 files.
8242         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8243         macros.
8244         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8245         and gl_PATHMAX_SNIPPET.
8246         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8247         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8248         * modules/chdir-long (Files): Add m4/pathmax.m4.
8249         * modules/getcwd (Files): Likewise.
8250
8251 2011-09-21  Bruno Haible  <bruno@clisp.org>
8252
8253         ftruncate: Un-deprecate, concentrate on Win32 support.
8254         * modules/ftruncate (Status, Notice): Remove sections.
8255         (Depends-on): Add largefile.
8256         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8257         non-mingw platforms.
8258         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8259         include <io.h>.
8260         * modules/perror-tests (Depends-on): Add ftruncate.
8261         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8262         'ftruncate' module.
8263
8264 2011-09-21  Bruno Haible  <bruno@clisp.org>
8265
8266         Add dependencies to new dirent related modules.
8267         * modules/opendir (Depends-on): Add closedir.
8268         * modules/getcwd (Depends-on): Add opendir, closedir.
8269         * modules/dirent-safer-tests (Depends-on): Likewise.
8270         * modules/fdopendir-tests (Depends-on): Likewise.
8271         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8272         * modules/renameat-tests (Depends-on): Likewise.
8273
8274 2011-09-21  Bruno Haible  <bruno@clisp.org>
8275
8276         opendir: Avoid compilation error on mingw.
8277         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8278         * modules/opendir (Depends-on): Add unistd.
8279
8280 2011-09-21  Bruno Haible  <bruno@clisp.org>
8281
8282         ftruncate tests: Avoid a test failure on mingw.
8283         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8284
8285 2011-09-21  Bruno Haible  <bruno@clisp.org>
8286
8287         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8288         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8289         native Windows.
8290
8291 2011-09-21  Bruno Haible  <bruno@clisp.org>
8292
8293         New module 'fdopen'.
8294         * lib/stdio.in.h (fdopen): New declaration.
8295         * lib/fdopen.c: New file.
8296         * m4/fdopen.m4: New file.
8297         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8298         REPLACE_FDOPEN.
8299         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8300         REPLACE_FDOPEN.
8301         * modules/fdopen: New file.
8302         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8303         * tests/test-stdio-c++.cc: Check signature of fdopen.
8304         * doc/posix-functions/fdopen.texi: Mention the new module.
8305
8306 2011-09-21  Bruno Haible  <bruno@clisp.org>
8307
8308         unlockpt tests: Avoid test failure on NetBSD 5.1.
8309         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8310         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8311
8312 2011-09-21  Bruno Haible  <bruno@clisp.org>
8313
8314         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8315         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8316         * tests/test-getlogin_r.c (main): Likewise.
8317
8318 2011-09-20  Bruno Haible  <bruno@clisp.org>
8319
8320         time tests: Don't require pid_t.
8321         * doc/posix-headers/time.texi: Revert last change.
8322         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
8323         * tests/test-time.c: Comment out the check for pid_t.
8324
8325 2011-09-20  Bruno Haible  <bruno@clisp.org>
8326
8327         fsync tests: Avoid a test failure on mingw.
8328         * tests/test-fsync.c (main): Allow a failure with EIO.
8329
8330 2011-09-20  Bruno Haible  <bruno@clisp.org>
8331
8332         euidaccess: Update comments.
8333         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
8334
8335 2011-09-20  Bruno Haible  <bruno@clisp.org>
8336
8337         Ensure EBADF returns for socket functions on mingw.
8338         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
8339         descriptor is invalid.
8340         * lib/bind.c (rpl_bind): Likewise.
8341         * lib/connect.c (rpl_connect): Likewise.
8342         * lib/getpeername.c (rpl_getpeername): Likewise.
8343         * lib/getsockname.c (rpl_getsockname): Likewise.
8344         * lib/getsockopt.c (rpl_getsockopt): Likewise.
8345         * lib/listen.c (rpl_listen): Likewise.
8346         * lib/recv.c (rpl_recv): Likewise.
8347         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8348         * lib/send.c (rpl_send): Likewise.
8349         * lib/sendto.c (rpl_sendto): Likewise.
8350         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8351         * lib/shutdown.c (rpl_shutdown): Likewise.
8352
8353 2011-09-20  Bruno Haible  <bruno@clisp.org>
8354
8355         select tests: EBADF tests.
8356         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
8357         test_bad_fd): New functions.
8358         (test_function): Invoke also test_bad_fd.
8359
8360 2011-09-20  Bruno Haible  <bruno@clisp.org>
8361
8362         Tests for module 'posix_spawn_file_actions_addopen.
8363         * modules/posix_spawn_file_actions_addopen-tests: New file.
8364         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8365
8366         Tests for module 'posix_spawn_file_actions_adddup2'.
8367         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8368         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8369
8370         Tests for module 'posix_spawn_file_actions_addclose'.
8371         * modules/posix_spawn_file_actions_addclose-tests: New file.
8372         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8373
8374 2011-09-20  Bruno Haible  <bruno@clisp.org>
8375
8376         Tests for module 'unlockpt'.
8377         * modules/unlockpt-tests: New file.
8378         * tests/test-unlockpt.c: New file.
8379         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8380
8381         Tests for module 'grantpt'.
8382         * modules/grantpt-tests: New file.
8383         * tests/test-grantpt.c: New file.
8384         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8385
8386 2011-09-20  Bruno Haible  <bruno@clisp.org>
8387
8388         freopen tests: EBADF tests.
8389         * tests/test-freopen.c: Include errno.h, unistd.h.
8390         (main): Add tests for EBADF, commented out for the moment.
8391
8392         fclose tests: EBADF tests.
8393         * tests/test-fclose.c (main): Add tests for EBADF.
8394
8395         fflush tests: EBADF tests.
8396         * tests/test-fflush.c: Include errno.h, macros.h.
8397         (main): Add tests for EBADF.
8398
8399         ftello tests: EBADF tests.
8400         * tests/test-ftello4.sh: New file.
8401         * tests/test-ftello4.c: New file.
8402         * modules/ftello-tests (Files): Add them.
8403         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
8404
8405         fseeko tests: EBADF tests.
8406         * tests/test-fseeko4.sh: New file.
8407         * tests/test-fseeko4.c: New file.
8408         * modules/fseeko-tests (Files): Add them.
8409         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
8410
8411         Tests for function fputc().
8412         * modules/fputc-tests: New file.
8413         * tests/test-fputc.c: New file.
8414         * modules/stdio-tests (Depends-on): Add fputc-tests.
8415
8416         Tests for function fgetc().
8417         * modules/fgetc-tests: New file.
8418         * tests/test-fgetc.c: New file.
8419         * modules/stdio-tests (Depends-on): Add fgetc-tests.
8420
8421         Tests for function fdopen().
8422         * modules/fdopen-tests: New file.
8423         * tests/test-fdopen.c: New file.
8424         * modules/stdio-tests (Depends-on): Add fdopen-tests.
8425
8426         Tests for module 'vdprintf'.
8427         * modules/vdprintf-tests: New file.
8428         * tests/test-vdprintf.c: New file.
8429
8430         Tests for module 'dprintf'.
8431         * modules/dprintf-tests: New file.
8432         * tests/test-dprintf.c: New file.
8433
8434 2011-09-20  Bruno Haible  <bruno@clisp.org>
8435
8436         Tests for module 'ioctl'.
8437         * modules/ioctl-tests: New file.
8438         * tests/test-ioctl.c: New file.
8439
8440 2011-09-20  Bruno Haible  <bruno@clisp.org>
8441
8442         fcntl tests: EBADF tests.
8443         * tests/test-fcntl.c (main): Add more tests for EBADF.
8444
8445 2011-09-20  Bruno Haible  <bruno@clisp.org>
8446
8447         utimensat tests: EBADF tests.
8448         * tests/test-utimensat.c (main): Add tests for EBADF.
8449
8450         renameat tests: EBADF tests.
8451         * tests/test-renameat.c (main): Add tests for EBADF.
8452
8453         mkfifoat tests: EBADF tests.
8454         * tests/test-mkfifoat.c (main): Add tests for EBADF.
8455
8456         readlinkat tests: EBADF tests.
8457         * tests/test-readlinkat.c (main): Add tests for EBADF.
8458
8459         symlinkat tests: EBADF tests.
8460         * tests/test-symlinkat.c (main): Add tests for EBADF.
8461
8462         linkat tests: EBADF tests.
8463         * tests/test-linkat.c (main): Add tests for EBADF.
8464
8465         Tests for module 'faccessat'.
8466         * modules/faccessat-tests: New file.
8467         * tests/test-faccessat.c: New file.
8468
8469         fdopendir tests: EBADF tests.
8470         * tests/test-fdopendir.c (main): Add more tests for EBADF.
8471
8472         openat tests: EBADF tests.
8473         * tests/test-fchownat.c (main): Add tests for EBADF.
8474         * tests/test-fstatat.c (main): Likewise.
8475         * tests/test-mkdirat.c (main): Likewise.
8476         * tests/test-openat.c (main): Likewise.
8477         * tests/test-unlinkat.c (main): Likewise.
8478         * tests/test-fchmodat.c: New file.
8479         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
8480         (Makefile.am): Also run 'test-fchmodat'.
8481
8482 2011-09-20  Bruno Haible  <bruno@clisp.org>
8483
8484         utimens, futimens, fdutimensat tests: EBADF tests.
8485         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
8486
8487         Tests for function fstat().
8488         * modules/fstat-tests: New file.
8489         * tests/test-fstat.c: New file.
8490         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
8491
8492 2011-09-20  Bruno Haible  <bruno@clisp.org>
8493
8494         test-ttyname_r tests: EBADF tests.
8495         * tests/test-ttyname_r.c (main): Add tests for EBADF.
8496
8497         Tests for module 'isatty'.
8498         * modules/isatty-tests: New file.
8499         * tests/test-isatty.c: New file.
8500
8501         Tests for module 'write'.
8502         * modules/write-tests: New file.
8503         * tests/test-write.c: New file.
8504
8505         Tests for module 'read'.
8506         * modules/read-tests: New file.
8507         * tests/test-read.c: New file.
8508
8509         pwrite tests: EBADF tests.
8510         * tests/test-pwrite.c (main): Add tests for EBADF.
8511
8512         pread tests: EBADF tests.
8513         * tests/test-pread.c (main): Add tests for EBADF.
8514
8515         lseek tests: EBADF tests.
8516         * tests/test-lseek.c (main): Add more tests for EBADF.
8517
8518         Tests for module 'ftruncate'.
8519         * modules/ftruncate-tests: New file.
8520         * tests/test-ftruncate.sh: New file.
8521         * tests/test-ftruncate.c: New file.
8522
8523         fsync tests: EBADF tests.
8524         * tests/test-fsync.c (main): Add more tests for EBADF.
8525
8526         fdatasync tests: EBADF tests.
8527         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8528
8529         Tests for module 'fchown'.
8530         * modules/fchown-tests: New file.
8531         * tests/test-fchown.c: New file.
8532
8533         Tests for module 'fchmod'.
8534         * modules/fchmod-tests: New file.
8535         * tests/test-fchmod.c: New file.
8536
8537         fchdir tests: EBADF tests.
8538         * tests/test-fchdir.c (main): Add more tests for EBADF.
8539
8540         dup2 tests: EBADF tests.
8541         * tests/test-dup2.c (main): Add more tests for EBADF.
8542
8543         Tests for module 'dup'.
8544         * modules/dup-tests: New file.
8545         * tests/test-dup.c: New file.
8546
8547         Tests for module 'close'.
8548         * modules/close-tests: New file.
8549         * tests/test-close.c: New file.
8550
8551 2011-09-20  Bruno Haible  <bruno@clisp.org>
8552
8553         Tests for module 'shutdown'.
8554         * modules/shutdown-tests: New file.
8555         * tests/test-shutdown.c: New file.
8556
8557         Tests for module 'setsockopt'.
8558         * modules/setsockopt-tests: New file.
8559         * tests/test-setsockopt.c: New file.
8560
8561         Tests for module 'sendto'.
8562         * modules/sendto-tests: New file.
8563         * tests/test-sendto.c: New file.
8564
8565         Tests for module 'send'.
8566         * modules/send-tests: New file.
8567         * tests/test-send.c: New file.
8568
8569         Tests for module 'recvfrom'.
8570         * modules/recvfrom-tests: New file.
8571         * tests/test-recvfrom.c: New file.
8572
8573         Tests for module 'recv'.
8574         * modules/recv-tests: New file.
8575         * tests/test-recv.c: New file.
8576
8577         Tests for module 'listen'.
8578         * modules/listen-tests: New file.
8579         * tests/test-listen.c: New file.
8580
8581         Tests for module 'getsockopt'.
8582         * modules/getsockopt-tests: New file.
8583         * tests/test-getsockopt.c: New file.
8584
8585         Tests for module 'getsockname'.
8586         * modules/getsockname-tests: New file.
8587         * tests/test-getsockname.c: New file.
8588
8589         Tests for module 'getpeername'.
8590         * modules/getpeername-tests: New file.
8591         * tests/test-getpeername.c: New file.
8592
8593         Tests for module 'connect'.
8594         * modules/connect-tests: New file.
8595         * tests/test-connect.c: New file.
8596
8597         Tests for module 'bind'.
8598         * modules/bind-tests: New file.
8599         * tests/test-bind.c: New file.
8600
8601         accept4 tests: Fix for native Windows.
8602         * tests/test-accept4.c: Include sockets.h.
8603         (main): Invoke gl_sockets_startup.
8604         * modules/accept4-tests (Depends-on): Add sockets.
8605
8606         accept tests: Fix for native Windows.
8607         * tests/test-accept.c: Include sockets.h.
8608         (main): Invoke gl_sockets_startup.
8609         * modules/accept-tests (Depends-on): Add sockets.
8610
8611 2011-09-19  Bruno Haible  <bruno@clisp.org>
8612
8613         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8614         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8615         do...while(0).
8616         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8617         Suggested by Paul Eggert.
8618
8619 2011-09-19  Bruno Haible  <bruno@clisp.org>
8620
8621         sched: Ensure pid_t is defined.
8622         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8623         not define pid_t.
8624         * lib/sched.in.h: Include <sys/types.h>.
8625         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8626         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8627
8628 2011-09-19  Bruno Haible  <bruno@clisp.org>
8629
8630         msvc-inval: Ensure the entire expansion is a single statement.
8631         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8632         of braces.
8633
8634 2011-09-19  Jim Meyering  <meyering@redhat.com>
8635
8636         tests: use printf, not echo in init.sh's warn_ function
8637         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8638         misbehave when given strings containing a backslash or starting
8639         with e.g., -n.  James Youngman suggested setting IFS.
8640
8641 2011-09-19  Eric Blake  <eblake@redhat.com>
8642
8643         futimens: enhance test
8644         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8645         closed non-negative fd.
8646
8647         date: accept 'hence' as opposite of 'ago'
8648         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8649         * tests/test-parse-datetime.c (main): Enhance test.
8650         Suggested by Jesse Wilson.
8651
8652 2011-09-19  Jim Meyering  <meyering@redhat.com>
8653
8654         getcwd: don't fail in a deep directory on a system without openat
8655         Before this change, getcwd would fail when called from a directory
8656         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8657         the non-openat implementation used "..", "../..", "../../..", etc.
8658         to access ancestor directories.  With too many, that string would
8659         be longer than PATH_MAX.
8660         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
8661         using gnulib's openat replacement.
8662         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
8663         we're using the replacement function.
8664
8665 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
8666
8667         maint.mk: avoid warnings from perl about missing files
8668         * top/maint.mk (def_sym_regex): Ignore files listed in
8669         $(gl_other_headers_) that do not exist, say because a project
8670         does not use a corresponding module.
8671
8672 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8673
8674         stat: use pathmax.h only if needed
8675         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
8676         This is better for Emacs, which does not have a mingw port and
8677         therefore can avoid the pathmax module.
8678
8679         utimens: remove dependency on dup2
8680         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
8681         to work around the Linux kernel bug.
8682         * modules/utimens (Depends-on): Remove dup2.
8683
8684 2011-09-18  Bruno Haible  <bruno@clisp.org>
8685
8686         inet_ntop, inet_pton: Look for it also in libresolv.
8687         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
8688         libnsl, search for it in libresolv.
8689         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8690         Needed on Solaris 7.
8691
8692 2011-09-18  Bruno Haible  <bruno@clisp.org>
8693
8694         accept, accept4 tests: Avoid link error on Solaris.
8695         * modules/accept-tests (Makefile.am): Link test-accept against
8696         $(LIBSOCKET).
8697         * modules/accept4-tests (Makefile.am): Link test-accept4 against
8698         $(LIBSOCKET).
8699
8700         accept4: Avoid link error on Solaris.
8701         * modules/accept4 (Link): New section.
8702
8703         socket functions: Avoid link errors on Solaris.
8704         * modules/accept (Depends-on): Add socketlib.
8705         (Link): New section.
8706         * modules/bind (Depends-on): Add socketlib.
8707         (Link): New section.
8708         * modules/connect (Depends-on): Add socketlib.
8709         (Link): New section.
8710         * modules/getpeername (Depends-on): Add socketlib.
8711         (Link): New section.
8712         * modules/getsockname (Depends-on): Add socketlib.
8713         (Link): New section.
8714         * modules/getsockopt (Depends-on): Add socketlib.
8715         (Link): New section.
8716         * modules/listen (Depends-on): Add socketlib.
8717         (Link): New section.
8718         * modules/recv (Depends-on): Add socketlib.
8719         (Link): New section.
8720         * modules/recvfrom (Depends-on): Add socketlib.
8721         (Link): New section.
8722         * modules/send (Depends-on): Add socketlib.
8723         (Link): New section.
8724         * modules/sendto (Depends-on): Add socketlib.
8725         (Link): New section.
8726         * modules/setsockopt (Depends-on): Add socketlib.
8727         (Link): New section.
8728         * modules/shutdown (Depends-on): Add socketlib.
8729         (Link): New section.
8730         * modules/socket (Depends-on): Add socketlib.
8731         (Link): New section.
8732
8733 2011-09-18  Bruno Haible  <bruno@clisp.org>
8734
8735         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
8736         * tests/test-ptsname.c (main): Terminate the test if it takes longer
8737         than 5 seconds.
8738         * modules/ptsname-tests (configure.ac): Test for alarm.
8739
8740 2011-09-18  Bruno Haible  <bruno@clisp.org>
8741
8742         posix_spawn_file_actions_add*: Fix module dependencies.
8743         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
8744         posix_spawn_file_actions_init.
8745         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
8746         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
8747
8748 2011-09-18  Bruno Haible  <bruno@clisp.org>
8749
8750         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
8751         * tests/test-rename.h (test_rename): Allow error code EEXIST.
8752         * tests/test-renameat.c (main): Likewise.
8753
8754 2011-09-18  Bruno Haible  <bruno@clisp.org>
8755
8756         Tests for module 'accept4'.
8757         * modules/accept4-tests: New file.
8758         * tests/test-accept4.c: New file.
8759
8760 2011-09-18  Bruno Haible  <bruno@clisp.org>
8761
8762         Tests for module 'accept'.
8763         * modules/accept-tests: New file.
8764         * tests/test-accept.c: New file.
8765
8766 2011-09-18  Bruno Haible  <bruno@clisp.org>
8767
8768         dup2: Support for MSVC.
8769         * lib/dup2.c: Include msvc-inval.h.
8770         (rpl_dup2): Handle invalid parameter notifications during dup2 and
8771         _get_osfhandle calls.
8772         * modules/dup2 (Depends-on): Add msvc-inval.
8773         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
8774
8775         New module 'msvc-inval'.
8776         * lib/msvc-inval.h: New file.
8777         * lib/msvc-inval.c: New file.
8778         * m4/msvc-inval.m4: New file.
8779         * modules/msvc-inval: New file.
8780
8781 2011-09-17  Bruno Haible  <bruno@clisp.org>
8782
8783         Tests for module 'pclose'.
8784         * modules/pclose-tests: New file.
8785
8786         New module 'pclose'.
8787         * lib/stdio.in.h (pclose): New declaration.
8788         * lib/pclose.c: New file.
8789         * m4/pclose.m4: New file.
8790         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
8791         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
8792         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
8793         * modules/pclose: New file.
8794         * modules/popen-tests (Depends-on): Add pclose.
8795         * modules/popen-safer-tests (Depends-on): Likewise.
8796         * doc/posix-functions/pclose.texi: Mention the new module.
8797
8798 2011-09-17  Bruno Haible  <bruno@clisp.org>
8799
8800         popen: Support for MSVC.
8801         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
8802         * lib/popen.c (popen): Provide alternate definition for native Windows.
8803         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
8804         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
8805         * modules/popen (Depends-on, configure.ac): Update condition.
8806         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
8807         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
8808         fixed.
8809
8810 2011-09-17  Bruno Haible  <bruno@clisp.org>
8811
8812         isnanl, isnand, isnanf: Work around MSVC bug.
8813         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
8814
8815 2011-09-17  Bruno Haible  <bruno@clisp.org>
8816
8817         sys_socket tests: Fix recent mistake.
8818         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
8819
8820 2011-09-17  Bruno Haible  <bruno@clisp.org>
8821
8822         putenv: Support for MSVC.
8823         * modules/putenv (Depends-on): Add environ.
8824         * lib/putenv.c (environ): Disable declaration.
8825         * lib/unistd.in.h: Update comment.
8826
8827 2011-09-17  Bruno Haible  <bruno@clisp.org>
8828
8829         math: Avoid macro redefinition warnings on MSVC.
8830         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
8831         Undefine before redefining.
8832
8833 2011-09-17  Bruno Haible  <bruno@clisp.org>
8834
8835         doc: Mention functions which are declared as macros.
8836         * doc/posix-functions/*[fl].texi: Mention that some functions are
8837         defined as macros with arguments only.
8838
8839 2011-09-17  Bruno Haible  <bruno@clisp.org>
8840
8841         Add dependencies to new dirent related modules.
8842         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
8843         * modules/fts (Depends-on): Likewise.
8844         * modules/glob (Depends-on): Likewise.
8845         * modules/savedir (Depends-on): Likewise.
8846         * modules/scandir (Depends-on): Likewise.
8847         * modules/dirent-safer (Depends-on): Add opendir, closedir.
8848         * modules/fdopendir (Depends-on): Add opendir.
8849
8850 2011-09-17  Bruno Haible  <bruno@clisp.org>
8851
8852         inet_pton: Support for MSVC on Windows Vista or newer.
8853         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
8854         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
8855         HAVE_DECL_INET_PTON is defined.
8856         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8857         On platforms with <winsock2.h>, test whether inet_pton is declared in
8858         <ws2tcpip.h>. If so, arrange to replace it.
8859         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8860         REPLACE_INET_PTON.
8861         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
8862         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
8863         (Depends-on, configure.ac): Update condition.
8864         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
8865
8866 2011-09-17  Bruno Haible  <bruno@clisp.org>
8867
8868         inet_ntop: Support for MSVC on Windows Vista or newer.
8869         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
8870         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
8871         HAVE_DECL_INET_NTOP is defined.
8872         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8873         On platforms with <winsock2.h>, test whether inet_ntop is declared in
8874         <ws2tcpip.h>. If so, arrange to replace it.
8875         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8876         REPLACE_INET_NTOP.
8877         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
8878         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
8879         (Depends-on, configure.ac): Update condition.
8880         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
8881
8882 2011-09-16  Eric Blake  <eblake@redhat.com>
8883
8884         test-fsync: yet another enhancement
8885         * tests/test-fsync.c (main): Also test behavior on read-only text
8886         file.
8887
8888 2011-09-16  Bruno Haible  <bruno@clisp.org>
8889
8890         Enhance fsync, fdatasync tests.
8891         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
8892         * tests/test-fdatasync.c (main): Likewise.
8893
8894 2011-09-16  Bruno Haible  <bruno@clisp.org>
8895
8896         Support for MSVC compiler: Ensure mode_t gets defined.
8897         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
8898         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8899         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8900         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
8901         * tests/test-fcntl-h.c: Check that mode_t is defined.
8902         * tests/test-sys_stat.c: Likewise.
8903         * tests/test-sys_types.c: Likewise.
8904         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
8905         * doc/posix-headers/sys_stat.texi: Likewise.
8906         * doc/posix-headers/sys_types.texi: Likewise.
8907
8908 2011-09-16  Bruno Haible  <bruno@clisp.org>
8909
8910         sys_stat: Support for MSVC.
8911         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
8912         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
8913         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
8914         MSVC.
8915
8916 2011-09-16  Bruno Haible  <bruno@clisp.org>
8917
8918         Support for MSVC compiler: Ensure off_t gets defined.
8919         * lib/unistd.in.h: Include <sys/types.h>.
8920         * tests/test-fcntl-h.c: Check that off_t is defined.
8921         * tests/test-sys_stat.c: Likewise.
8922         * tests/test-sys_types.c: Likewise.
8923
8924 2011-09-16  Eric Blake  <eblake@redhat.com>
8925
8926         fdatasync: port to Solaris
8927         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
8928         * modules/fdatasync (Link): Document it.
8929         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
8930
8931         fdatasync: port to MacOS X 10.7
8932         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
8933         declared.
8934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
8935         * modules/unistd (Makefile.am): Substitute it.
8936         * lib/unistd.in.h (fdatasync): Declare on MacOS.
8937         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
8938
8939         fdatasync: minor improvements
8940         * modules/fdatasync (Depends-on): Add condition for fsync.
8941         * lib/fdatasync.c (fdatasync): Add comment.
8942         * tests/test-unistd-c++.cc: Test fdatasync.
8943
8944         unistd: update refs to newer POSIX
8945         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
8946         Suggested by Bruno Haible.
8947
8948         fdatasync: new module
8949         * modules/fsync (Description): Document difference to fdatasync.
8950         * modules/fdatasync: New module.
8951         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
8952         * lib/fdatasync.c (fdatasync): Likewise.
8953         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
8954         defaults.
8955         * modules/unistd (Makefile.am): Set witnesses.
8956         * lib/unistd.in.h (fdatasync): Declare.
8957         * MODULES.html.sh: Document it.
8958         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
8959         * modules/fdatasync-tests: New test.
8960         * tests/test-fdatasync.c: Likewise.
8961
8962 2011-09-16  Eric Blake  <eblake@redhat.com>
8963
8964         test-fsync: enhance tests
8965         * modules/fsync-tests (Depends-on): Add errno, for mingw.
8966         * tests/test-fsync.c (main): Enhance test.
8967
8968 2011-09-15  Bruno Haible  <bruno@clisp.org>
8969
8970         Support for MSVC compiler: Ensure ssize_t gets defined.
8971         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
8972         * doc/posix-headers/stdio.texi: Likewise.
8973         * modules/stdio (Depends-on): Add ssize_t.
8974         * modules/sys_socket (Depends-on): Likewise.
8975         * modules/sys_types (Depends-on): Likewise.
8976         * modules/sys_uio (Depends-on): Likewise.
8977         * modules/unistd (Depends-on): Likewise.
8978         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
8979         * tests/test-sys_types.c: Check that ssize_t is defined.
8980
8981 2011-09-14  Bruno Haible  <bruno@clisp.org>
8982
8983         Avoid using #, the m4 comment starter character, near brackets.
8984         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
8985         delimiter character in sed expressions.
8986         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8987         Suggested by Eric Blake.
8988
8989         Properly quote AC_CHECK_DECLS' 4th argument.
8990         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
8991         argument.
8992         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8993         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8994         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8995         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
8996         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
8997         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
8998         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
8999         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9000         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9001         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9002         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9003         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9004         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9005         * m4/isinf.m4 (gl_ISINF): Likewise.
9006         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9007         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9008         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9009         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9010         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9011         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9012         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9013         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9014         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9015         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9016         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9017         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9018         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9019         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9020         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9021         Reported by Eric Blake.
9022
9023         Properly quote AC_CHECK_DECL's 4th argument.
9024         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9025         argument.
9026         * m4/argp.m4 (gl_ARGP): Likewise.
9027         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9028         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9029         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9030         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9031         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9032         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9033         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9034         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9035         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9036         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9037         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9038         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9039         Reported by Eric Blake.
9040
9041 2011-09-14  Eric Blake  <eblake@redhat.com>
9042
9043         opendir: avoid compile warning
9044         * lib/opendir.c (includes): Always include errno.h.
9045         Reported by Tatsuro MATSUOKA.
9046
9047 2011-09-14  Jim Meyering  <meyering@redhat.com>
9048
9049         maint.mk: sc_tight_scope: propagate failure from sub-make
9050         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9051         Reported by Martin von Gagern.
9052
9053 2011-09-13  Bruno Haible  <bruno@clisp.org>
9054
9055         tempname: Support for MSVC.
9056         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9057         MSVC.
9058         * modules/tempname (Depends-on): Add fcntl-h.
9059
9060 2011-09-13  Bruno Haible  <bruno@clisp.org>
9061
9062         sys_time: Support for MSVC.
9063         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9064         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9065         include <winsock2.h>.
9066         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9067         function declarations that collide with POSIX.
9068         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9069         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9070
9071 2011-09-13  Bruno Haible  <bruno@clisp.org>
9072
9073         stat: Support for MSVC.
9074         * lib/stat.c: Include pathmax.h.
9075         * modules/stat (Depends-on): Add pathmax.
9076
9077         pathmax: Support for native Windows.
9078         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9079
9080 2011-09-12  Bruno Haible  <bruno@clisp.org>
9081
9082         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9083         * lib/dirent.in.h (struct dirent): New type.
9084         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9085         DT_WHT): New macros.
9086         (DIR): New type.
9087         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9088         (readdir, rewinddir): New declarations.
9089         * lib/dirent-private.h: New file.
9090         * lib/opendir.c: New file.
9091         * lib/readdir.c: New file.
9092         * lib/rewinddir.c: New file.
9093         * lib/closedir.c: New file.
9094         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9095         * m4/opendir.m4: New file.
9096         * m4/readdir.m4: New file.
9097         * m4/rewinddir.m4: New file.
9098         * m4/closedir.m4: New file.
9099         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9100         REPLACE_CLOSEDIR here.
9101         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9102         readdir, rewinddir are declared.
9103         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9104         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9105         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9106         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9107         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9108         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9109         * modules/opendir: New file.
9110         * modules/readdir: New file.
9111         * modules/rewinddir: New file.
9112         * modules/closedir: New file.
9113         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9114         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9115         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9116         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9117         * NEWS: Mention the 'fchdir' change.
9118
9119 2011-09-11  Bruno Haible  <bruno@clisp.org>
9120
9121         asm-underscore.m4: Support for MSVC.
9122         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9123         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9124
9125 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9126
9127         Doc about crypt functions.
9128         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9129         needing for _GNU_SOURCE to get crypt.
9130         * doc/posix-functions/encrypt.texi: Likewise.
9131         * doc/posix-functions/setkey.texi: Likewise.
9132
9133 2011-09-11  Bruno Haible  <bruno@clisp.org>
9134
9135         doc: Update regarding MSVC 9.
9136         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9137         tested".
9138         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9139         * doc/posix-headers/*.texi: Likewise.
9140         * doc/pastposix-functions/*.texi: Likewise.
9141         * doc/glibc-functions/*.texi: Likewise.
9142         * doc/glibc-headers/*.texi: Likewise.
9143
9144 2011-09-11  Bruno Haible  <bruno@clisp.org>
9145
9146         unistd et al.: Don't assume <unistd.h> exists.
9147         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9148         does not exist.
9149         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9150         exist. But include <stdlib.h>.
9151         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9152         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9153         symlink() does not exist.
9154         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9155         include <io.h> instead.
9156         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9157         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9158         include <direct.h> instead.
9159         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9160         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9161         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9162         <io.h> instead.
9163         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9164         correctly if the system does not have hard links.
9165         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9166         <direct.h> instead.
9167         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9168         it when looking for function declarations.
9169         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9170         <direct.h> and <io.h> instead.
9171         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9172
9173 2011-09-11  Bruno Haible  <bruno@clisp.org>
9174
9175         strcase: Support for MSVC.
9176         * modules/strcase (Status, Notice): Remove obsoletion mark.
9177         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9178         * doc/posix-functions/strncasecmp.texi: Likewise.
9179
9180         strings: Don't assume <strings.h> exists.
9181         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9182         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9183         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9184         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9185
9186 2011-09-11  Bruno Haible  <bruno@clisp.org>
9187
9188         dirent: Don't assume <dirent.h> exists.
9189         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9190         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9191         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9192         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9193
9194 2011-09-11  Bruno Haible  <bruno@clisp.org>
9195
9196         Fix wint_t on MSVC.
9197         * lib/wchar.in.h (wint_t): On MSVC, override it.
9198         * lib/wctype.in.h (wint_t): Likewise.
9199         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9200         MSVC.
9201         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9202         * doc/posix-headers/wctype.texi: Likewise.
9203
9204 2011-09-11  Bruno Haible  <bruno@clisp.org>
9205
9206         sys_types: Fix typo.
9207         * lib/sys_types.in.h: Fix typo in comment.
9208         Reported by Paul Eggert.
9209
9210         Support for MSVC compiler: Ensure size_t gets defined.
9211         * modules/strings (Depends-on): Add 'sys_types'.
9212         * modules/sys_uio (Depends-on): Likewise.
9213         * lib/sys_uio.in.h: Update comment.
9214
9215         C++ tests for module 'sys_types'.
9216         * modules/sys_types-c++-tests: New file.
9217         * tests/test-sys_types-c++.cc: New file.
9218
9219         Tests for module 'sys_types'.
9220         * modules/sys_types-tests: New file.
9221         * tests/test-sys_types.c: New file.
9222
9223         New module 'sys_types'.
9224         * lib/sys_types.in.h: New file.
9225         * m4/sys_types_h.m4: New file.
9226         * modules/sys_types: New file.
9227         * doc/posix-headers/sys_types.texi: Mention the new module and the
9228         size_t problem on MSVC 9.
9229
9230 2011-09-11  Bruno Haible  <bruno@clisp.org>
9231
9232         Support for MSVC compiler: Avoid division by a literal 0.
9233         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9234         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9235         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9236         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9237         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9238         * tests/infinity.h: New file.
9239         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9240         on MSVC.
9241         * tests/test-ceilf1.c: Include infinity.h.
9242         (main): Use Infinityf.
9243         * tests/test-ceil1.c: Include infinity.h.
9244         (main): Use Infinityd.
9245         * tests/test-ceill.c: Include infinity.h.
9246         (main): Use Infinityl.
9247         * tests/test-dprintf-posix.c: Include infinity.h.
9248         (test_function): Use Infinityd.
9249         * tests/test-floorf1.c: Include infinity.h.
9250         (main): Use Infinityf.
9251         * tests/test-floor1.c: Include infinity.h.
9252         (main): Use Infinityd.
9253         * tests/test-floorl.c: Include infinity.h.
9254         (main): Use Infinityl.
9255         * tests/test-fprintf-posix.c: Include infinity.h.
9256         (test_function): Use Infinityd.
9257         * tests/test-frexp.c: Include infinity.h.
9258         (main): Use Infinityd.
9259         * tests/test-frexpl.c: Include infinity.h.
9260         (main): Use Infinityl.
9261         * tests/test-isfinite.c: Include infinity.h.
9262         (test_isfinitef): Use Infinityf.
9263         (test_isfinited): Use Infinityd.
9264         (test_isfinitel): Use Infinityl.
9265         * tests/test-isinf.c: Include infinity.h.
9266         (test_isinff): Use Infinityf.
9267         (test_isinfd): Use Infinityd.
9268         (test_isinfl): Use Infinityl.
9269         * tests/test-isnan.c: Include infinity.h.
9270         (test_float): Use Infinityf.
9271         (test_double): Use Infinityd.
9272         (test_long_double): Use Infinityl.
9273         * tests/test-isnanf.h: Include infinity.h.
9274         (main): Use Infinityf.
9275         * tests/test-isnand.h: Include infinity.h.
9276         (main): Use Infinityd.
9277         * tests/test-isnanl.h: Include infinity.h.
9278         (main): Use Infinityl.
9279         * tests/test-ldexpl.c: Include infinity.h.
9280         (main): Use Infinityl.
9281         * tests/test-printf-posix.h: Include infinity.h.
9282         (test_function): Use Infinityd.
9283         * tests/test-roundf1.c: Include infinity.h.
9284         (main): Use Infinityf.
9285         * tests/test-round1.c: Include infinity.h.
9286         (main): Use Infinityd.
9287         * tests/test-roundl.c: Include infinity.h.
9288         (main): Use Infinityl.
9289         * tests/test-signbit.c: Include infinity.h.
9290         (test_signbitf): Use Infinityf.
9291         (test_signbitd): Use Infinityd.
9292         (test_signbitl): Use Infinityl.
9293         * tests/test-snprintf-posix.h: Include infinity.h.
9294         (test_function): Use Infinityd, Infinityl.
9295         * tests/test-sprintf-posix.h: Include infinity.h.
9296         (test_function): Use Infinityd, Infinityl.
9297         * tests/test-truncf1.c: Include infinity.h.
9298         (main): Use Infinityf.
9299         * tests/test-trunc1.c: Include infinity.h.
9300         (main): Use Infinityd.
9301         * tests/test-truncl.c: Include infinity.h.
9302         (main): Use Infinityl.
9303         * tests/test-vasnprintf-posix.c: Include infinity.h.
9304         (test_function): Use Infinityd, Infinityl.
9305         * tests/test-vasprintf-posix.c: Include infinity.h.
9306         (test_function): Use Infinityd, Infinityl.
9307         * modules/ceilf-tests (Files): Add tests/infinity.h.
9308         * modules/ceil-tests (Files): Likewise.
9309         * modules/ceill-tests (Files): Likewise.
9310         * modules/dprintf-posix-tests (Files): Likewise.
9311         * modules/floorf-tests (Files): Likewise.
9312         * modules/floor-tests (Files): Likewise.
9313         * modules/floorl-tests (Files): Likewise.
9314         * modules/fprintf-posix-tests (Files): Likewise.
9315         * modules/frexp-tests (Files): Likewise.
9316         * modules/frexp-nolibm-tests (Files): Likewise.
9317         * modules/frexpl-tests (Files): Likewise.
9318         * modules/frexpl-nolibm-tests (Files): Likewise.
9319         * modules/isfinite-tests (Files): Likewise.
9320         * modules/isinf-tests (Files): Likewise.
9321         * modules/isnan-tests (Files): Likewise.
9322         * modules/isnanf-tests (Files): Likewise.
9323         * modules/isnanf-nolibm-tests (Files): Likewise.
9324         * modules/isnand-tests (Files): Likewise.
9325         * modules/isnand-nolibm-tests (Files): Likewise.
9326         * modules/isnanl-tests (Files): Likewise.
9327         * modules/isnanl-nolibm-tests (Files): Likewise.
9328         * modules/ldexpl-tests (Files): Likewise.
9329         * modules/printf-posix-tests (Files): Likewise.
9330         * modules/roundf-tests (Files): Likewise.
9331         * modules/round-tests (Files): Likewise.
9332         * modules/roundl-tests (Files): Likewise.
9333         * modules/signbit-tests (Files): Likewise.
9334         * modules/snprintf-posix-tests (Files): Likewise.
9335         * modules/sprintf-posix-tests (Files): Likewise.
9336         * modules/truncf-tests (Files): Likewise.
9337         * modules/trunc-tests (Files): Likewise.
9338         * modules/truncl-tests (Files): Likewise.
9339         * modules/vasnprintf-posix-tests (Files): Likewise.
9340         * modules/vasprintf-posix-tests (Files): Likewise.
9341         * modules/vdprintf-posix-tests (Files): Likewise.
9342         * modules/vfprintf-posix-tests (Files): Likewise.
9343         * modules/vprintf-posix-tests (Files): Likewise.
9344         * modules/vsnprintf-posix-tests (Files): Likewise.
9345         * modules/vsprintf-posix-tests (Files): Likewise.
9346         * modules/xprintf-posix-tests (Files): Likewise.
9347
9348 2011-09-11  Bruno Haible  <bruno@clisp.org>
9349
9350         Ensure pid_t gets defined.
9351         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
9352         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9353         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9354         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9355         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9356         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9357         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9358         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9359         * tests/test-fcntl-h.c: Check that pid_t is defined.
9360         * tests/test-sched.c: Likewise.
9361         * tests/test-termios.c: Likewise.
9362         * tests/test-time.c: Likewise.
9363         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9364         * doc/posix-headers/signal.texi: Likewise.
9365         * doc/posix-headers/sys_types.texi: Likewise.
9366         * doc/posix-headers/time.texi: Likewise.
9367
9368 2011-09-11  Bruno Haible  <bruno@clisp.org>
9369
9370         acl: Fix compilation on Solaris 10 (older version).
9371         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9372         of ACE_EVERYONE.
9373         * lib/set-mode-acl.c (qset_acl): Likewise.
9374         Reported by Christian Jullien <eligis@orange.fr>.
9375
9376 2011-09-10  Bruno Haible  <bruno@clisp.org>
9377
9378         iconv, unsetenv: Add support for MSVC compiler.
9379         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9380         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9381
9382 2011-09-10  Bruno Haible  <bruno@clisp.org>
9383
9384         *printf: Add support for MSVC compiler.
9385         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9386         handles the exception caused by the %n directive. When cross-compiling,
9387         guess no on native Windows.
9388         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9389         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9390         emulate it through vsnprintf.
9391         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9392         * doc/posix-functions/dprintf.texi: Update documentation regarding
9393         MSVC 9.
9394         * doc/posix-functions/fprintf.texi: Likewise.
9395         * doc/posix-functions/printf.texi: Likewise.
9396         * doc/posix-functions/snprintf.texi: Likewise.
9397         * doc/posix-functions/sprintf.texi: Likewise.
9398         * doc/posix-functions/swprintf.texi: Likewise.
9399         * doc/posix-functions/vdprintf.texi: Likewise.
9400         * doc/posix-functions/vfprintf.texi: Likewise.
9401         * doc/posix-functions/vprintf.texi: Likewise.
9402         * doc/posix-functions/vsnprintf.texi: Likewise.
9403         * doc/posix-functions/vsprintf.texi: Likewise.
9404         * doc/glibc-functions/asprintf.texi: Likewise.
9405         * doc/glibc-functions/obstack_printf.texi: Likewise.
9406         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9407         * doc/glibc-functions/vasprintf.texi: Likewise.
9408
9409 2011-09-10  Bruno Haible  <bruno@clisp.org>
9410
9411         nocrash: Add support for native Windows.
9412         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
9413
9414 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
9415             Bruno Haible  <bruno@clisp.org>
9416
9417         absolute-header, include-next: Add support for MSVC compiler.
9418         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
9419         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
9420         directory separator in #line directives.
9421         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
9422         recognize also backslash as directory separator in #line directives.
9423
9424 2011-09-08  Jim Meyering  <meyering@redhat.com>
9425
9426         maint.mk: mark the post-release commit log with "maint: " prefix
9427         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
9428         one-line commit-log summary.
9429
9430 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
9431             Bruno Haible  <bruno@clisp.org>
9432
9433         Doc about crypt functions.
9434         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
9435         systems.
9436         * doc/posix-functions/encrypt.texi: Likewise.
9437         * doc/posix-functions/setkey.texi: Likewise.
9438
9439 2011-09-08  Simon Josefsson  <simon@josefsson.org>
9440
9441         * lib/gc.h: Fix copyright header.
9442
9443 2011-09-07  Bruno Haible  <bruno@clisp.org>
9444
9445         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
9446         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
9447         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
9448
9449 2011-09-07  Bruno Haible  <bruno@clisp.org>
9450
9451         openat: Work around compilation error with OSF/1 5.1 DTK cc.
9452         * lib/fopen.c: Use different syntax for include of <stdio.h>.
9453         * lib/freopen.c: Likewise.
9454         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
9455         * lib/lstat.c: Likewise.
9456         * lib/stat.c: Likewise.
9457         * lib/open.c: Use different syntax for include of <fcntl.h>.
9458         * lib/openat.c: Include fcntl.h again, explicitly.
9459
9460 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
9461
9462         parse-datetime: document the newly accepted format
9463         * doc/parse-datetime.texi (Combined date and time of day items):
9464         New section.
9465
9466 2011-09-06  Bruno Haible  <bruno@clisp.org>
9467
9468         acl: Fix a test failure on newer Solaris 10 with ZFS.
9469         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
9470         ENOSYS as no ACL.
9471         Reported by Jim Meyering.
9472
9473 2011-09-06  Bruno Haible  <bruno@clisp.org>
9474
9475         acl: Update for AIX >= 5.3 with NFS.
9476         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
9477         ENOSYS as no ACL.
9478
9479         acl: Fix a test failure on AIX >= 5.3 with NFS.
9480         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
9481         as no ACL.
9482
9483 2011-09-06  Bruno Haible  <bruno@clisp.org>
9484
9485         acl: Fix a test failure on IRIX 6.5 with NFS.
9486         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
9487         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
9488         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
9489         * lib/copy-acl.c (qcopy_acl): Likewise.
9490
9491 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9492
9493         openat: port to AIX 7.1 with large files
9494         AIX 7.1 does a "#define openat open64at" if large files are in use,
9495         so we can't simply #undef openat.  Use the orig_openat trick (similar
9496         to orig_open in lib/open.c) to work around the problem.  Problem
9497         reported by Kevin Brott for GNU tar, in the thread containing
9498         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
9499         * lib/openat.c (__need_system_fcntl_h): Define first.
9500         Include <fcntl.h> and <sys/types.h> before undefining.
9501         (orig_openat) [HAVE_OPENAT]: New inline function.
9502         (openat) [HAVE_OPENAT]: Do not undef.
9503         (rpl_openat): Use orig_openat, not openat.
9504
9505 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9506             Bruno Haible  <bruno@clisp.org>
9507
9508         acl: Avoid errors on NonStop Kernel.
9509         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9510         ENOTSUP errors.
9511
9512 2011-09-05  Bruno Haible  <bruno@clisp.org>
9513
9514         acl: Clean up Solaris code.
9515         * lib/acl-internal.h: Remove no-op #if.
9516         * lib/file-has-acl.c: Likewise.
9517         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9518         * lib/copy-acl.c (qcopy_acl): Likewise.
9519
9520 2011-09-05  Bruno Haible  <bruno@clisp.org>
9521
9522         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9523         binaries built on the original Solaris 10.
9524         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9525         trivial.
9526
9527 2011-09-05  Bruno Haible  <bruno@clisp.org>
9528
9529         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9530         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9531         10.
9532         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9533         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9534         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9535         instead of acl_get, facl_get, acl_set, facl_set.
9536
9537 2011-09-05  Bruno Haible  <bruno@clisp.org>
9538
9539         copy-file: Try unit tests on more file systems.
9540         * tests/test-copy-file-1.sh: New file.
9541         * tests/test-copy-file-2.sh: New file.
9542         * modules/copy-file-tests (Files): Add them.
9543         (Makefile.am): Add them to TESTS.
9544
9545         acl: Try unit tests on more file systems.
9546         * tests/test-file-has-acl-1.sh: New file.
9547         * tests/test-file-has-acl-2.sh: New file.
9548         * tests/test-set-mode-acl-1.sh: New file.
9549         * tests/test-set-mode-acl-2.sh: New file.
9550         * tests/test-copy-acl-1.sh: New file.
9551         * tests/test-copy-acl-2.sh: New file.
9552         * modules/acl-tests (Files): Add them.
9553         (Makefile.am): Add them to TESTS.
9554
9555 2011-09-04  Bruno Haible  <bruno@clisp.org>
9556
9557         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9558         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9559         10.
9560         (OLD_ALLOW, OLD_DENY): New macros.
9561         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9562         ACE_ACCESS_ALLOWED_ACE_TYPE.
9563         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9564         ACE_ACCESS_DENIED_ACE_TYPE.
9565         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9566         (NEW_ACE_EXECUTE): Fix value.
9567         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9568         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9569         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9570         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9571         NEW_ACE_SYNCHRONIZE): New macros.
9572         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9573         instead of acl_fromtext, acl_set, facl_set.
9574         Fixes a coreutils/tests/cp/perm failure.
9575
9576 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9577
9578         openat: test for fstatat (..., 0) bug
9579         Further testing with tar suggests that fstatat (..., 0)
9580         does not work in general, on AIX 7.1; see
9581         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9582         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9583         replacement fstatat (which is what older AIX releases were using
9584         anyway).
9585         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9586         use is now changed to orig_fstatat.  This was probably the right
9587         thing to do anyway.
9588         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9589         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9590         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9591         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9592         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9593         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9594         if the bug is found.
9595
9596         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9597         This tests for another fstatat bug on AIX 7.1:
9598         fstatat (AT_FDCWD, ..., 0) does not work.  See
9599         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9600         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9601         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9602         (rpl_fstatat): Adjust so that it works around either (or both)
9603         bugs if present.
9604         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9605
9606 2011-09-03  Karl Berry  <karl@gnu.org>
9607
9608         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9609         in index entries.
9610
9611 2011-09-02  Bruno Haible  <bruno@clisp.org>
9612
9613         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9614         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9615         values of AR, ARFLAGS, RANLIB.
9616         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9617
9618 2011-09-02  Bruno Haible  <bruno@clisp.org>
9619
9620         Find 'ar' program that fits with --host argument.
9621         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9622
9623 2011-09-02  Bruno Haible  <bruno@clisp.org>
9624
9625         tests: init.sh: Support any non-GNU diff.
9626         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9627         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9628         Solaris 8.
9629
9630 2011-09-02  Bruno Haible  <bruno@clisp.org>
9631
9632         tests: init.sh: work also with any non-GNU diff that supports -u
9633         * tests/init.sh: Relax check for diff -u support.
9634         Rather than checking for GNU diff via --version, simply check
9635         for support for -u itself.  Useful at least on OpenBSD 4.9,
9636         AIX 7.1, IRIX 6.5, and Solaris 10.
9637
9638 2011-09-01  Bruno Haible  <bruno@clisp.org>
9639
9640         strtoimax, strtoumax: Document problem on HP-UX 11.
9641         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9642         * doc/posix-functions/strtoumax.texi: Likewise.
9643
9644 2011-09-01  Bruno Haible  <bruno@clisp.org>
9645
9646         strtoumax: Avoid link error on OSF/1 with DTK cc.
9647         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9648         defined as a function.
9649         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9650         strtoumax is defined, not whether it is declared.
9651
9652 2011-09-01  Bruno Haible  <bruno@clisp.org>
9653
9654         strtoimax: Avoid link error on OSF/1 with DTK cc.
9655         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9656         defined as a function.
9657         * modules/strtoimax (Depends-on, configure.ac): Test only whether
9658         strtoimax is defined, not whether it is declared.
9659
9660 2011-09-01  Bruno Haible  <bruno@clisp.org>
9661
9662         imaxdiv: Avoid link error on OSF/1 with DTK cc.
9663         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
9664         as a function.
9665         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
9666         whether it is declared.
9667
9668 2011-09-01  Bruno Haible  <bruno@clisp.org>
9669
9670         imaxabs: Avoid link error on OSF/1 with DTK cc.
9671         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
9672         as a function.
9673         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
9674         whether it is declared.
9675
9676 2011-09-01  Bruno Haible  <bruno@clisp.org>
9677
9678         Tests for module 'strtoumax'.
9679         * modules/strtoumax-tests: New file.
9680         * tests/test-strtoumax.c: New file.
9681
9682         Tests for module 'strtoimax'.
9683         * modules/strtoimax-tests: New file.
9684         * tests/test-strtoimax.c: New file.
9685
9686         Tests for module 'imaxdiv'.
9687         * modules/imaxdiv-tests: New file.
9688         * tests/test-imaxdiv.c: New file.
9689
9690         Tests for module 'imaxabs'.
9691         * modules/imaxabs-tests: New file.
9692         * tests/test-imaxabs.c: New file.
9693
9694 2011-09-01  Bruno Haible  <bruno@clisp.org>
9695
9696         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
9697         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
9698         pthread_create.
9699
9700 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9701
9702         openat: work around AIX 7.1 fstatat issue
9703         This should fix the problem that was not properly fixed
9704         in the previous change, dated 2011-08-30.
9705         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
9706         __need_system_stat_h defined.
9707         (orig_fstatat) [HAVE_FSTATAT]: New function.
9708         (rpl_fstatat): Go back to the old way of doing things,
9709         except call orig_fstatat instead of fstatat.
9710         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
9711         Remove unnecessary check whether fstatat fills in st_size etc.
9712
9713 2011-09-01  Bruno Haible  <bruno@clisp.org>
9714
9715         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
9716         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
9717         just include the system's header.
9718
9719 2011-08-31  Jim Meyering  <meyering@redhat.com>
9720
9721         tests: avoid spurious assertion failure in test-float.c on ppc64
9722         * tests/test-float.c (test_long_double): Comment out an assertion,
9723         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
9724         with gcc-4.4.4.
9725
9726         maint: indent with spaces, not TABs
9727         I need to get in the habit of running gnulib's "make check".
9728         Both of these would have been caught.
9729         * m4/largefile.m4: Indent with spaces, not TABs.
9730         * lib/parse-datetime.y (iso_8601_time): Likewise.
9731         Spotted by Pádraig Brady.
9732
9733         test-parse-datetime.c: accommodate a relatively strict gcc warning
9734         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
9735         to avoid a warning from gcc's -Werror=missing-declarations.
9736         Insert a few spaces-before-funcall-parenthesis.
9737
9738 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
9739
9740         parse-datetime: accept ISO 8601 date and time rep with "T" separator
9741         The parser now accepts ISO 8601 date-time strings with "T" as the
9742         separator.  It has long parsed dates like "2004-02-29 16:21:42"
9743         with a space between the date and time strings.  Now it also parses
9744         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
9745         variants like "2004-02-29T16:21:42.333-07:00"
9746         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
9747         of day representation using the 'T' separator character.
9748         * doc/parse-datetime.texi (General date syntax): replace use of
9749         deprecated --iso-8601 option with --rfc-3339 in example of date
9750         command output formats that can be parsed.
9751         * tests/test-parse-datetime.c (tm_diff): New function, taken from
9752         lib/parse-datetime.y.
9753         (gmt_offset): New function.
9754         (main): Add additional test cases to validate ISO8601 extended
9755         date and time of day parsing.
9756
9757 2011-08-31  Bruno Haible  <bruno@clisp.org>
9758
9759         freopen: Documentation.
9760         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
9761         name.
9762         Reported by Claudio Bley <claudio.bley@gmail.com>.
9763
9764 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
9765
9766         freopen: Don't crash if the filename argument is NULL.
9767         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
9768         NULL.
9769
9770 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9771
9772         openat: work around AIX 7.1 fstatat bug
9773         Problem reported by Kevin Brott for GNU tar, in the thread containing
9774         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
9775         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
9776         FSTATAT_ST_SIZE_ETC_BROKEN.
9777         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
9778         rpl_fstatat.
9779         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
9780         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
9781         AC_CHECK_FUNCS_ONCE for fstatat.
9782         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
9783         fchmodat, mkdirat, openat and unlinkat.
9784
9785 2011-08-30  Bruno Haible  <bruno@clisp.org>
9786
9787         Avoid endless recursions if config.h includes some header files.
9788         * lib/fopen.c (__need_FILE): Define already before including config.h.
9789         * lib/freopen.c (__need_FILE): Likewise.
9790         * lib/open.c (__need_system_fcntl_h): Likewise.
9791         * lib/stat.c (__need_system_sys_stat_h): Likewise.
9792         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
9793         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9794
9795 2011-08-25  Karl Berry  <karl@gnu.org>
9796
9797         * config/srclist.txt (ylwrap): new try.
9798         * build-aux/ylwrap: new file.
9799
9800 2011-08-23  Bruno Haible  <bruno@clisp.org>
9801
9802         tmpdir: Use a good default directory on native Windows.
9803         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
9804         (P_tmpdir): Default to _P_tmpdir on native Windows.
9805         (path_search): On native Windows, try the value returned by GetTempPath
9806         before trying P_tmpdir.
9807         * modules/tmpdir (Depends-on): Add pathmax.
9808         Suggested by John Darrington <john@darrington.wattle.id.au>.
9809
9810 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
9811
9812         doc: fix typo in README-release
9813         * top/README-release: Capitalize first word of a sentence.
9814
9815 2011-08-19  Jim Meyering  <meyering@redhat.com>
9816
9817         fts: do not exhaust memory when processing million-entry directories
9818         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
9819         directory would require about 256*N bytes of memory.  Thus, it was
9820         easy to construct a directory too large to be processed by any of
9821         those tools.  With this change, fts' maximum memory utilization is
9822         now limited to around 30MB.
9823         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
9824         (fts_read): When we've processed the final entry (i.e., when
9825         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
9826         using the parent entry to read any remaining entries.  Dispatch
9827         depending on what fts_build returns:
9828         - NULL+stop, aka failure: stop
9829         - NULL otherwise: move up in the dir hierarchy
9830         - non-NULL: handle this new entry
9831         (fts_build): Declare and use new local, continue_readdir.
9832         Prepare to be called from fts_read, when the entries
9833         from a partially-read directory have just been exhausted.
9834         In that case, we'll skip the opendir and instead use the parent's
9835         fts_dirp and derive dir_fd from that.
9836         Finally, in the readdir loop, if we read max_entries entries,
9837         exit the loop ensuring *not* to call closedir.  This is required
9838         so that fts_dirp can be reused on a subsequent call.
9839         Prompted by Ben England's report of memory exhaustion in find
9840         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
9841
9842         maint: fts: move decl of `dp' down into while loop; split a long line
9843         * lib/fts.c (fts_build): No semantic change.
9844
9845         fts: add/use new struct member, fts_dirp
9846         We are about to use this to manage any directory with
9847         too many entries to read all of them into memory at once.
9848         To do that, we'll need to save the DIR* pointer in each
9849         affected FTSENT struct.
9850         * lib/fts_.h: Include <dirent.h>.
9851         (struct FTSENT) [fts_dirp]: New member.
9852         * lib/fts.c (closedir_and_clear): Define.
9853         Use it in place of closedir so that we are sure to
9854         clear the new fts_dirp member when done with it.
9855         (fts_alloc): Initialize the new member.
9856         (fts_lfree): Free, if needed.
9857
9858         maint: fts: give __opendir2 a new parameter and rename
9859         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
9860         than surreptitiously using sole caller's "dir_fd".
9861         (fts_opendir): Rename from __opendir2.
9862
9863         maint: fts.c: remove __opendir2's now-unused parameter, oflag
9864         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
9865
9866         maint: fts.c: correct off-by-one indentation
9867         * lib/fts.c (fts_build): Correct indentation, change style
9868         of a couple of block comments, and bracing style.
9869
9870         maint: fts.c: move __opendir2 #define "up" out of function body
9871         * lib/fts.c (__opendir2): Move "up".  No semantic change.
9872
9873         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
9874         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
9875         out for a long time and besides was useful only on BSD systems.
9876
9877 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9878
9879         regex: port to Stratus OpenVOS
9880         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
9881         define to empty, rather than attempting nonportable optimizations.
9882         Problem reported by Paul Green in:
9883         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
9884         and fix suggested by Eric Blake in:
9885         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
9886
9887 2011-08-17  Eric Blake  <eblake@redhat.com>
9888
9889         getcwd: fix test failures on mingw
9890         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
9891         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
9892         test if long directory cannot be created, and allow mingw errno.
9893
9894         getcwd-lgpl: fix m4 to match relaxed test for BSD
9895         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
9896         (gl_FUNC_GETCWD_SIGNATURE): New macro.
9897         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
9898         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
9899         signature problem.
9900
9901         getcwd: fix compilation on mingw64
9902         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
9903         getcwd.
9904         Reported by Marc-André Lureau.
9905
9906         pipe2: silence compiler warning
9907         * lib/pipe2.c (pipe2): Hide label if it is not used.
9908
9909 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
9910
9911         relocatable-prog: fix link error
9912         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
9913         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
9914         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
9915         into modules/relocatable-lib without noticing that
9916         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
9917         also needs to build relocatable.c.
9918
9919 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9920
9921         getaddrinfo: fix sh typo in gai_strerrorA decl checking
9922         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
9923         shell code: it contained a 'break' that was not in a loop.
9924         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
9925         via a shell-language loop; this may have been true in old Autoconf
9926         versions, but it's not true in Autoconf 2.68.  I found this bug
9927         when testing coreutils git on Solaris 8, whose shell complains
9928         about the syntax error.
9929
9930 2011-08-12  Simon Josefsson  <simon@josefsson.org>
9931
9932         * lib/base64.c: Fix comment to reference RFC 4648.
9933         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
9934         <gvtulder@gmail.com>.
9935
9936 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
9937
9938         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
9939
9940         po/Makefile.in.in: fix make -q problem
9941         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
9942         rule, since there's no file named 'check-macro-version' and its
9943         use as a file breaks make -q.
9944         (all): Don't depend on check-macro-version.
9945         (CHECK_MACRO_VERSION): New macro.
9946         (stamp-po): Use it.
9947
9948         configmake: fix make -q problem
9949         * modules/configmake (configmake.h): Update configmake.h's time stamp
9950         even if the file does not change.  Otherwise, 'make -q' fails.
9951         Problem reported by Simon Josefsson in
9952         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
9953
9954 2011-08-11  Jim Meyering  <meyering@redhat.com>
9955
9956         git-version-gen: correct the advice in a comment
9957         * build-aux/git-version-gen: Correct comment.
9958         Don't recommend to list .tarball-version in .gitignore.
9959
9960 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9961
9962         base64: fix off-by-one buffer size bug
9963         Problem and (trivial) fix reported by Gijs van Tulder in
9964         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
9965         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
9966         * tests/test-base64.c (main): Catch the bug.
9967
9968 2011-08-10  Eric Blake  <eblake@redhat.com>
9969
9970         closein: correct comments
9971         * lib/closein.c (close_stdin): Improve comments.
9972
9973 2011-08-09  Bruno Haible  <bruno@clisp.org>
9974
9975         More tests for 'fseeko'.
9976         * tests/test-fseeko3.c: New file, from Eric Blake.
9977         * tests/test-fseeko3.sh: New file.
9978         * modules/fseeko-tests (Files): Add them.
9979         (TESTS): Add test-fseeko3.sh.
9980         (check_PROGRAMS): Add test-fseeko3.
9981
9982 2011-08-09  Eric Blake  <eblake@redhat.com>
9983
9984         fseeko: remove unneeded hack
9985         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
9986
9987         fseeko: fix bug on glibc
9988         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
9989         Reported by John W. Eaton.
9990
9991 2011-08-08  Bruno Haible  <bruno@clisp.org>
9992
9993         unictype/base: Fix interoperability with preinstalled libunistring.
9994         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
9995         Reported by Simon Josefsson.
9996
9997 2011-08-08  Bruno Haible  <bruno@clisp.org>
9998
9999         iswblank: Detect declaration correctly.
10000         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10001         AC_CHECK_DECLS invocation.
10002
10003 2011-08-08  Bruno Haible  <bruno@clisp.org>
10004
10005         tcgetsid: Detect declaration correctly.
10006         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10007         AC_CHECK_DECLS invocation.
10008         Reported by Simon Josefsson.
10009
10010 2011-08-08  Eric Blake  <eblake@redhat.com>
10011
10012         largefile: fix typo that regressed large file support
10013         * modules/largefile (configure.ac-early): Fix section name.
10014
10015 2011-08-06  Karl Berry  <karl@gnu.org>
10016
10017         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10018         a separate module.
10019
10020 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10021
10022         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10023         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10024         get prototype for free.
10025
10026 2011-08-04  Bruno Haible  <bruno@clisp.org>
10027
10028         Tests for module 'pathmax'.
10029         * modules/pathmax-tests: New file.
10030         * tests/test-pathmax.c: New file.
10031
10032         canonicalize-lgpl: Support larger filenames on the Hurd.
10033         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10034         Reported by Paul Eggert.
10035
10036         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10037         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10038         * lib/chdir-long.h: Include pathmax.h.
10039         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10040         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10041         (PATH_MAX): Remove code that is done by pathmax.h.
10042         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10043         * lib/tmpfile.c: Add a comment.
10044         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10045         * modules/chdir-long (Depends-on): Add pathmax.
10046         * modules/getcwd (Depends-on): Add pathmax.
10047         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10048         is not defined.
10049         * doc/posix-headers/limits.texi: Mention the pathmax module.
10050         * NEWS: Mention the change.
10051
10052 2011-08-02  Bruno Haible  <bruno@clisp.org>
10053
10054         pthread_sigmask: Actually use results of gl_THREADLIB.
10055         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10056         gl_THREADLIB, not gl_[]THREADLIB.
10057         Reported by Eric Blake.
10058
10059 2011-08-02  Jim Meyering  <meyering@redhat.com>
10060
10061         maint.mk: relax the default _gl_TS_function_match regexp
10062         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10063         space between function name and "(" in an "extern" declaration.
10064         That would fail to match a decl with no space there: extern void foo();
10065
10066 2011-07-31  Iain Nicol  <iain@thenicols.net>
10067
10068         git-version-gen: document that EXTRA_DIST must include .version
10069         * build-aux/git-version-gen: In the how-to-use comment, document
10070         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10071         will fail when run from an unpacked distribution tarball.
10072
10073 2011-08-01  Bruno Haible  <bruno@clisp.org>
10074
10075         wctype-h: Fix last change.
10076         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10077         REPLACE_TOWLOWER to 0.
10078         Reported by Sam Steingold <sds@gnu.org>.
10079
10080 2011-07-31  Bruno Haible  <bruno@clisp.org>
10081
10082         frexpl: Update autoconf test.
10083         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10084         according to changes of 2011-06-20.
10085
10086 2011-07-31  Bruno Haible  <bruno@clisp.org>
10087
10088         sys_utsname: Add support for Minix.
10089         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10090         <sys/utsname.h>.
10091         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10092         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10093
10094 2011-07-31  Bruno Haible  <bruno@clisp.org>
10095
10096         strings: Add support for Minix.
10097         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10098         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10099         * doc/posix-headers/strings.texi: Document the Minix problem.
10100
10101 2011-07-31  Bruno Haible  <bruno@clisp.org>
10102
10103         wctype-h: Add support for Minix.
10104         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10105         REPLACE_TOWLOWER.
10106         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10107         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10108         REPLACE_ISWCNTRL.
10109
10110 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10111
10112         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10113         This is a performance improvement for 64-bit hosts: it causes the
10114         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10115
10116 2011-07-31  Bruno Haible  <bruno@clisp.org>
10117
10118         stdioext: Add support for Minix.
10119         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10120         * lib/fpurge.c (fpurge): Likewise.
10121         * lib/freadahead.c (freadahead): Likewise.
10122         * lib/freadable.c (freadable): Likewise.
10123         * lib/freading.c (freading): Likewise.
10124         * lib/freadptr.c (freadptr): Likewise.
10125         * lib/freadseek.c (freadptrinc): Likewise.
10126         * lib/fseeko.c (rpl_fseeko): Likewise.
10127         * lib/fseterr.c (fseterr): Likewise.
10128         * lib/fwritable.c (fwritable): Likewise.
10129         * lib/fwriting.c (fwriting): Likewise.
10130         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10131         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10132
10133 2011-07-31  Bruno Haible  <bruno@clisp.org>
10134
10135         errno: Port to Minix.
10136         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10137         ECONNABORTED are defined.
10138         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10139         GNULIB_defined_ECONNABORTED): New macros.
10140         * lib/strerror-override.h (strerror_override): Test also
10141         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10142         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10143         ECONNABORTED.
10144         * doc/posix-headers/errno.texi: Mention the Minix problem.
10145
10146 2011-07-31  Bruno Haible  <bruno@clisp.org>
10147
10148         Work around declaration collisions on Minix.
10149         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10150         defined, set REPLACE_MBSINIT.
10151         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10152         defined, set REPLACE_MBRTOWC.
10153         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10154         set REPLACE_MBRLEN.
10155         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10156         defined, set REPLACE_MBSRTOWCS.
10157         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10158         defined, set REPLACE_WCRTOMB.
10159         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10160         defined, set REPLACE_WCSRTOMBS.
10161
10162 2011-07-31  Bruno Haible  <bruno@clisp.org>
10163
10164         Add support for Minix with ACK compiler.
10165         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10166         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10167         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10168
10169 2011-07-31  Bruno Haible  <bruno@clisp.org>
10170
10171         Documentation about Minix.
10172         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10173         * doc/glibc-headers/*.texi: Likewise.
10174         * doc/posix-functions/*.texi: Likewise.
10175         * doc/glibc-functions/*.texi: Likewise.
10176
10177 2011-07-31  Bruno Haible  <bruno@clisp.org>
10178
10179         snippet/warn-on-use: Fix indentation.
10180         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10181
10182 2011-07-25  Jim Meyering  <meyering@redhat.com>
10183
10184         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10185         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10186         commands.
10187
10188 2011-07-27  Jim Meyering  <meyering@redhat.com>
10189
10190         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10191         * top/maint.mk (gl_extract_significant_defines_): Now that
10192         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10193         gnulib/lib/signal.in.h, and now that we recommend to
10194         define-if-undefined those two symbols in application code,
10195         we must filter them out of the "significant" list.
10196         This avoids a "make syntax-check" failure in coreutils.
10197
10198 2011-07-26  Eric Blake  <eblake@redhat.com>
10199
10200         warnings: add comments about previous patch
10201         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10202         * m4/include_next.m4: Likewise.
10203         * m4/warn-on-use.m4: Likewise.
10204         * m4/warnings.m4: Likewise, and simplify use.
10205         Suggested by Stefano Lattarini.
10206
10207         include-next, warnings: support older autoconf
10208         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10209         AS_VAR_PUSHDEF in a way that works with older autoconf.
10210         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10211         Reported by Daniel P. Berrange.
10212
10213 2011-07-25  Bruno Haible  <bruno@clisp.org>
10214
10215         fseek, ftell: Fix doc.
10216         * doc/posix-functions/fseek.texi: Reword statement about
10217         AC_SYS_LARGEFILE.
10218         * doc/posix-functions/ftell.texi: Likewise.
10219
10220 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10221             Bruno Haible  <bruno@clisp.org>
10222
10223         Add dependencies to the 'largefile' module.
10224         * modules/fopen (Depends-on): Add 'largefile'.
10225         * modules/freopen (Depends-on): Likewise.
10226         * modules/fseeko (Depends-on): Likewise.
10227         * modules/ftello (Depends-on): Likewise.
10228         * modules/glob (Depends-on): Likewise.
10229         * modules/lseek (Depends-on): Likewise.
10230         * modules/lstat (Depends-on): Likewise.
10231         * modules/mkostemp (Depends-on): Likewise.
10232         * modules/mkostemps (Depends-on): Likewise.
10233         * modules/mkstemp (Depends-on): Likewise.
10234         * modules/mkstemps (Depends-on): Likewise.
10235         * modules/open (Depends-on): Likewise.
10236         * modules/openat (Depends-on): Likewise.
10237         * modules/pread (Depends-on): Likewise.
10238         * modules/pwrite (Depends-on): Likewise.
10239         * modules/scandir (Depends-on): Likewise.
10240         * modules/stat (Depends-on): Likewise.
10241         * modules/tmpfile (Depends-on): Likewise.
10242         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10243         since the containing module now depends on the largefile module.
10244         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10245         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10246         off_t is fixed by gnulib.
10247         * doc/posix-functions/freopen.texi: Likewise.
10248         * doc/posix-functions/fseeko.texi: Likewise.
10249         * doc/posix-functions/fstatat.texi: Likewise.
10250         * doc/posix-functions/ftello.texi: Likewise.
10251         * doc/posix-functions/glob.texi: Likewise.
10252         * doc/posix-functions/lseek.texi: Likewise.
10253         * doc/posix-functions/lstat.texi: Likewise.
10254         * doc/posix-functions/mkstemp.texi: Likewise.
10255         * doc/posix-functions/open.texi: Likewise.
10256         * doc/posix-functions/openat.texi: Likewise.
10257         * doc/posix-functions/pread.texi: Likewise.
10258         * doc/posix-functions/pwrite.texi: Likewise.
10259         * doc/posix-functions/scandir.texi: Likewise.
10260         * doc/posix-functions/stat.texi: Likewise.
10261         * doc/posix-functions/tmpfile.texi: Likewise.
10262         * doc/glibc-functions/mkostemp.texi: Likewise.
10263         * doc/glibc-functions/mkostemps.texi: Likewise.
10264         * doc/glibc-functions/mkstemps.texi: Likewise.
10265
10266 2011-07-25  Bruno Haible  <bruno@clisp.org>
10267
10268         fcntl: Move AC_LIBOBJ invocation to module description.
10269         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10270         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10271
10272         fcntl: Remove call-in from fchdir.m4.
10273         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10274         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10275
10276         dup3: Remove potential call-in from fchdir.m4.
10277         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10278         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10279
10280         dup2: Move AC_LIBOBJ invocation to module description.
10281         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10282         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10283         Don't invoke AC_LIBOBJ.
10284         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10285
10286         dup2: Remove call-in from fchdir.m4.
10287         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10288         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10289
10290         fclose: Move AC_LIBOBJ invocation to module description.
10291         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10292         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10293         to 1.
10294         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10295
10296         fclose: Remove call-in from close.m4.
10297         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10298         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10299
10300         close: Move AC_LIBOBJ invocation to module description.
10301         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10302         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10303         1.
10304         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10305
10306         close: Remove call-in from fchdir.m4.
10307         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10308         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10309
10310         open: Move AC_LIBOBJ invocation to module description.
10311         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10312         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10313         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10314
10315         open: Remove call-in from fchdir.m4.
10316         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10317         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10318
10319         fchdir: Start to remove gl_REPLACE_* idiom.
10320         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
10321         (gl_FUNC_FCHDIR): Invoke it.
10322
10323 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10324
10325         * lib/ftell.c (ftell): Comment out cast.
10326
10327         close: use gl_REPLACE_FCLOSE only if defined
10328         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
10329         is defined.  The close module doesn't depend on the fclose module
10330         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
10331         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
10332         I reproduced the problem with "./gnulib-tool --test close sys_socket".
10333
10334 2011-07-24  Jim Meyering  <meyering@redhat.com>
10335
10336         test-select.h: avoid warning when using gcc's -Wmissing-declarations
10337         * tests/test-select.h (test_function): Declare as "static".
10338
10339 2011-07-24  Bruno Haible  <bruno@clisp.org>
10340
10341         doc: Mention the effects of AC_SYS_LARGEFILE.
10342         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
10343         on this function.
10344         * doc/posix-functions/aio_error.texi: Likewise.
10345         * doc/posix-functions/aio_fsync.texi: Likewise.
10346         * doc/posix-functions/aio_read.texi: Likewise.
10347         * doc/posix-functions/aio_return.texi: Likewise.
10348         * doc/posix-functions/aio_suspend.texi: Likewise.
10349         * doc/posix-functions/aio_write.texi: Likewise.
10350         * doc/posix-functions/fgetpos.texi: Likewise.
10351         * doc/posix-functions/fopen.texi: Likewise.
10352         * doc/posix-functions/freopen.texi: Likewise.
10353         * doc/posix-functions/fsetpos.texi: Likewise.
10354         * doc/posix-functions/fstatvfs.texi: Likewise.
10355         * doc/posix-functions/ftruncate.texi: Likewise.
10356         * doc/posix-functions/ftw.texi: Likewise.
10357         * doc/posix-functions/getrlimit.texi: Likewise.
10358         * doc/posix-functions/glob.texi: Likewise.
10359         * doc/posix-functions/lio_listio.texi: Likewise.
10360         * doc/posix-functions/lockf.texi: Likewise.
10361         * doc/posix-functions/mkstemp.texi: Likewise.
10362         * doc/posix-functions/mmap.texi: Likewise.
10363         * doc/posix-functions/nftw.texi: Likewise.
10364         * doc/posix-functions/openat.texi: Likewise.
10365         * doc/posix-functions/opendir.texi: Likewise.
10366         * doc/posix-functions/posix_fadvise.texi: Likewise.
10367         * doc/posix-functions/posix_fallocate.texi: Likewise.
10368         * doc/posix-functions/pread.texi: Likewise.
10369         * doc/posix-functions/pwrite.texi: Likewise.
10370         * doc/posix-functions/readdir.texi: Likewise.
10371         * doc/posix-functions/readdir_r.texi: Likewise.
10372         * doc/posix-functions/rewinddir.texi: Likewise.
10373         * doc/posix-functions/scandir.texi: Likewise.
10374         * doc/posix-functions/seekdir.texi: Likewise.
10375         * doc/posix-functions/setrlimit.texi: Likewise.
10376         * doc/posix-functions/statvfs.texi: Likewise.
10377         * doc/posix-functions/telldir.texi: Likewise.
10378         * doc/posix-functions/tmpfile.texi: Likewise.
10379         * doc/posix-functions/truncate.texi: Likewise.
10380         * doc/glibc-functions/fallocate.texi: Likewise.
10381         * doc/glibc-functions/fstatfs.texi: Likewise.
10382         * doc/glibc-functions/fts_children.texi: Likewise.
10383         * doc/glibc-functions/fts_read.texi: Likewise.
10384         * doc/glibc-functions/getdirentries.texi: Likewise.
10385         * doc/glibc-functions/mkostemp.texi: Likewise.
10386         * doc/glibc-functions/mkostemps.texi: Likewise.
10387         * doc/glibc-functions/mkstemps.texi: Likewise.
10388         * doc/glibc-functions/preadv.texi: Likewise.
10389         * doc/glibc-functions/pwritev.texi: Likewise.
10390         * doc/glibc-functions/sendfile.texi: Likewise.
10391         * doc/glibc-functions/statfs.texi: Likewise.
10392
10393 2011-07-24  Bruno Haible  <bruno@clisp.org>
10394
10395         doc: Fix typo.
10396         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
10397
10398 2011-07-24  Bruno Haible  <bruno@clisp.org>
10399
10400         doc: Mention fsusage.
10401         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
10402
10403 2011-07-24  Bruno Haible  <bruno@clisp.org>
10404
10405         doc: Mention new glibc headers and functions.
10406         * doc/glibc-headers/gshadow.texi: New file.
10407         * doc/glibc-functions/endsgent.texi: New file.
10408         * doc/glibc-functions/fgetsgent.texi: New file.
10409         * doc/glibc-functions/fgetsgent_r.texi: New file.
10410         * doc/glibc-functions/getsgent.texi: New file.
10411         * doc/glibc-functions/getsgent_r.texi: New file.
10412         * doc/glibc-functions/getsgnam.texi: New file.
10413         * doc/glibc-functions/getsgnam_r.texi: New file.
10414         * doc/glibc-functions/putsgent.texi: New file.
10415         * doc/glibc-functions/setsgent.texi: New file.
10416         * doc/glibc-functions/sgetsgent.texi: New file.
10417         * doc/glibc-functions/sgetsgent_r.texi: New file.
10418         * doc/glibc-functions/malloc_info.texi: New file.
10419         * doc/glibc-functions/preadv.texi: New file.
10420         * doc/glibc-functions/pwritev.texi: New file.
10421         * doc/glibc-functions/register_printf_modifier.texi: New file.
10422         * doc/glibc-functions/register_printf_specifier.texi: New file.
10423         * doc/glibc-functions/register_printf_type.texi: New file.
10424         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
10425         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
10426         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
10427         * doc/glibc-functions/pthread_getname_np.texi: New file.
10428         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
10429         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
10430         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
10431         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
10432         * doc/glibc-functions/pthread_setname_np.texi: New file.
10433         * doc/glibc-functions/pthread_sigqueue.texi: New file.
10434         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
10435         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
10436         * doc/glibc-functions/qsort_r.texi: New file.
10437         * doc/glibc-functions/quick_exit.texi: New file.
10438         * doc/glibc-functions/syncfs.texi: New file.
10439         * doc/gnulib.texi: Include them.
10440         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
10441         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
10442         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
10443         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10444         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10445         * doc/glibc-functions/execvpe.texi: Likewise.
10446
10447 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10448
10449         ftell: don't include <unistd.h>
10450         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
10451         guaranteed to define off_t, and the ftell module depends on the
10452         stdio module.
10453
10454         ftell: do not assume wraparound signed arithmetic
10455         * lib/ftell.c: Include <limits.h>.
10456         (ftell): Don't assume wraparound signed arithmetic.
10457
10458 2011-07-24  Bruno Haible  <bruno@clisp.org>
10459
10460         close: No longer depend on module 'fclose'.
10461         * modules/close (Depends-on): Remove fclose.
10462         * NEWS: Mention the change.
10463         Suggested by Sam Steingold <sds@gnu.org>.
10464
10465 2011-07-24  Bruno Haible  <bruno@clisp.org>
10466
10467         fsusage: Enable large volume support on AIX >= 5.2.
10468         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
10469         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
10470         instead of STAT_STATVFS.
10471         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
10472
10473         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
10474         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
10475         f_blocks field only on MacOS X.
10476
10477         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
10478         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
10479         * modules/fsusage (Depends-on): Add largefile.
10480
10481 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10482
10483         * README: Modernize discussion of signed integers.
10484         Assuming overflow wraparound is no longer safe.
10485         Mention ones' complement and signed magnitude.
10486
10487 2011-07-22  Bruno Haible  <bruno@clisp.org>
10488
10489         select tests, pselect tests: Refactor.
10490         * tests/test-select.h: New file, extracted from tests/test-select.c.
10491         (select_fn): New type.
10492         (test, do_select, do_select_nowait, do_select_wait, test_tty,
10493         test_connect_first, test_accept_first, test_pair, test_socket_pair,
10494         test_pipe): Add my_select argument.
10495         (test_function): Renamed from main. Add my_select argument.
10496         * tests/test-select.c: Move most code to tests/test-select.h. Include
10497         test-select.h.
10498         * modules/select-tests (Files): Add tests/test-select.h.
10499         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
10500         (my_select, main): New functions.
10501         * modules/pselect-tests (Files): Add tests/test-select.h,
10502         tests/macros.h, tests/signature.h.
10503         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
10504         (configure.ac): Check for <sys/wait.h>.
10505
10506 2011-07-22  Bruno Haible  <bruno@clisp.org>
10507
10508         sys_select tests: Check the signature of FD_*.
10509         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10510         signature tests from here...
10511         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10512         here.
10513         * modules/sys_select-tests (Files): Add tests/signature.h.
10514
10515 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10516
10517         largefile: new module, replacing large-inode
10518         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10519         * MODULES.html.sh: Add largefile, remove large-inode.
10520         * modules/largefile, m4/largefile.m4: New files.
10521         * modules/large-inode, m4/large-inode.m4: Remove.
10522
10523         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10524         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10525         implementations that use only 32 bits to count blocks.
10526         On typical hosts with 1024-byte blocks, this fails with file
10527         systems as small as 4 TiB.  Problem reported by Herb Wartens
10528         <http://debbugs.gnu.org/9140> and this should also fix a similar
10529         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10530
10531         large-inode: New module
10532         * MODULES.html.sh: Add it.
10533         * modules/large-inode, m4/large-inode.m4: New files.
10534
10535         extensions: Enable extensions on MacOS X 10.5 and later.
10536         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10537
10538 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10539
10540         file-has-acl: use acl_extended_file_nofollow if available
10541         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10542         (acl_extended_file): New macro.
10543         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10544         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10545
10546 2011-07-21  Bruno Haible  <bruno@clisp.org>
10547
10548         Declare system functions in a way that works with C++.
10549         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10550         declare fdopendir as extern "C".
10551         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10552         declare frexpl as extern "C".
10553         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10554         declare gai_strerror as extern "C".
10555         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10556         programs, declare gai_strerror as extern "C".
10557         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10558         declare getlogin_r as extern "C".
10559         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10560         as extern "C".
10561         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10562         declare ldexpl as extern "C".
10563         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10564         as extern "C".
10565         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10566         program, declare getmntinfo as extern "C".
10567         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10568         stpncpy as extern "C".
10569         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10570         program, declare __xpg_strerror_r as extern "C".
10571         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10572         strndup as extern "C".
10573         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10574         declare memset and bzero as extern "C".
10575         Reported by Sam Steingold <sds@gnu.org>.
10576
10577 2011-07-12  Jim Meyering  <meyering@redhat.com>
10578
10579         maint.mk: prohibit inclusion of "verify.h" without use
10580         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10581
10582 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10583
10584         timer-time: A new module to check for timer_settime()
10585         * m4/timer_time.m4: Check for the posix function.
10586         * modules/timer-time: Add the new module.
10587         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10588         Mention it.
10589
10590 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10591             Bruno Haible  <bruno@clisp.org>
10592
10593         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10594         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10595         not defined, assume POSIX threads and look for pthread_sigmask in
10596         $LIBS, without changing $CPPFLAGS.
10597
10598 2011-07-19  Bruno Haible  <bruno@clisp.org>
10599
10600         strstr: Update cross-compilation guess.
10601         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10602         CPUs, guess no, in view of glibc
10603         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10604         Suggested by Eric Blake. Reported by Reuben Thomas.
10605
10606 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10607
10608         getopt-gnu: suppress core dumps from detection code
10609         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10610         to suppress core dumps that may well occur on glibc systems.
10611         * modules/getopt-gnu: Depend on nocrash.
10612
10613 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10614
10615         pthread_sigmask: ensure usleep is declared
10616         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10617         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10618
10619 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10620
10621         doc: Document NonStop portability issues.
10622         * doc/posix-functions/sigaction.texi (sigaction):
10623         * doc/posix-headers/signal.texi (signal.h):
10624         Document NonStop.  See Joachim Schmitz in
10625         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10626
10627 2011-07-15  Bruno Haible  <bruno@clisp.org>
10628
10629         ffsl, ffsll: Avoid unportable behaviour.
10630         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10631
10632 2011-07-15  Bruno Haible  <bruno@clisp.org>
10633
10634         ffs: More tests.
10635         * tests/test-ffs.c (NBITS): New macro.
10636         (main): Add more tests.
10637         * tests/test-ffsl.c (NBITS): New macro.
10638         (main): Add more tests.
10639         * tests/test-ffsll.c (NBITS): New macro.
10640         (main): Add more tests.
10641
10642 2011-07-15  Eric Blake  <eblake@redhat.com>
10643
10644         ffsl, ffsll: new modules
10645         * modules/ffsl: New file.
10646         * modules/ffsll: Likewise.
10647         * m4/ffsl.m4: Likewise.
10648         * m4/ffsll.m4: Likewise.
10649         * lib/ffsl.c: Likewise.
10650         * lib/ffsl.h: Likewise.
10651         * lib/ffsll.c: Likewise.
10652         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10653         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10654         * modules/string (Makefile.am): Substitute witnesses.
10655         * lib/strings.in.h (ffsl, ffsll): Declare.
10656         * modules/ffsl-tests: New test file.
10657         * modules/ffsll-tests: Likewise.
10658         * tests/test-ffsl.c: Likewise.
10659         * tests/test-ffsll.c: Likewise.
10660         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10661         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
10662         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
10663
10664         ffs: fix m4 prerequisite
10665         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
10666
10667         ffs: avoid undefined behavior
10668         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
10669         * tests/test-ffs.c (naive, main): Avoid signed shifts.
10670         Reported by Bruno Haible.
10671
10672 2011-07-12  Bruno Haible  <bruno@clisp.org>
10673
10674         pthread_sigmask: Rely on module 'threadlib'.
10675         * modules/pthread_sigmask (Depends-on): Add threadlib.
10676         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
10677         is defined.
10678
10679 2011-07-12  Bruno Haible  <bruno@clisp.org>
10680
10681         regex: Depend on module 'strcase'.
10682         * modules/regex (Depends-on): Add strcase, for strcasecmp().
10683
10684 2011-07-12  Jim Meyering  <meyering@redhat.com>
10685
10686         warn-on-use: fix typo in file name
10687         * modules/snippet/warn-on-use (Files): Correct file name:
10688         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
10689
10690 2011-07-12  Bruno Haible  <bruno@clisp.org>
10691
10692         strings: Document module.
10693         * doc/posix-headers/strings.texi: Mention module 'strings'.
10694
10695 2011-07-12  Bruno Haible  <bruno@clisp.org>
10696
10697         Rename module '_Noreturn' to 'snippet/_Noreturn'.
10698         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
10699         (Files, Makefile.am): Update.
10700         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
10701         * modules/stdlib (Depends-on): Update.
10702
10703 2011-07-12  Bruno Haible  <bruno@clisp.org>
10704
10705         * NEWS: Mention the changes.
10706
10707         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
10708         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
10709         (Files, Makefile.am): Update.
10710         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
10711         * modules/arpa_inet (Depends-on): Update.
10712         * modules/ctype (Depends-on): Update.
10713         * modules/dirent (Depends-on): Update.
10714         * modules/fcntl-h (Depends-on): Update.
10715         * modules/glob (Depends-on): Update.
10716         * modules/iconv-h (Depends-on): Update.
10717         * modules/inttypes-incomplete (Depends-on): Update.
10718         * modules/langinfo (Depends-on): Update.
10719         * modules/locale (Depends-on): Update.
10720         * modules/math (Depends-on): Update.
10721         * modules/netdb (Depends-on): Update.
10722         * modules/poll-h (Depends-on): Update.
10723         * modules/pty (Depends-on): Update.
10724         * modules/search (Depends-on): Update.
10725         * modules/signal (Depends-on): Update.
10726         * modules/spawn (Depends-on): Update.
10727         * modules/stdio (Depends-on): Update.
10728         * modules/stdlib (Depends-on): Update.
10729         * modules/string (Depends-on): Update.
10730         * modules/strings (Depends-on): Update.
10731         * modules/sys_file (Depends-on): Update.
10732         * modules/sys_ioctl (Depends-on): Update.
10733         * modules/sys_select (Depends-on): Update.
10734         * modules/sys_socket (Depends-on): Update.
10735         * modules/sys_stat (Depends-on): Update.
10736         * modules/sys_time (Depends-on): Update.
10737         * modules/sys_times (Depends-on): Update.
10738         * modules/sys_utsname (Depends-on): Update.
10739         * modules/sys_wait (Depends-on): Update.
10740         * modules/termios (Depends-on): Update.
10741         * modules/time (Depends-on): Update.
10742         * modules/unistd (Depends-on): Update.
10743         * modules/wchar (Depends-on): Update.
10744         * modules/wctype-h (Depends-on): Update.
10745         * MODULES.html.sh (Support for building libraries and executables):
10746         Update.
10747
10748         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
10749         * modules/snippet/unused-parameter: Renamed from
10750         modules/unused-parameter.
10751         (Files, Makefile.am): Update.
10752         * build-aux/snippet/unused-parameter.h: Renamed from
10753         build-aux/unused-parameter.h.
10754         * modules/selinux-h (Depends-on): Update.
10755         * modules/unistr/base (Depends-on): Update.
10756         * MODULES.html.sh (Core language properties): Update.
10757
10758         Rename module 'link-warning' to 'snippet/link-warning'.
10759         * modules/snippet/link-warning: Renamed from modules/link-warning.
10760         (Files, Makefile.am): Update.
10761         * build-aux/snippet/link-warning.h: Renamed from
10762         build-aux/link-warning.h.
10763         * MODULES.html.sh (Support for building libraries and executables):
10764         Update.
10765
10766         Rename module 'c++defs' to 'snippet/c++defs'.
10767         * modules/snippet/c++defs: Renamed from modules/c++defs.
10768         (Files, Makefile.am): Update.
10769         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
10770         * modules/arpa_inet (Depends-on): Update.
10771         * modules/ctype (Depends-on): Update.
10772         * modules/dirent (Depends-on): Update.
10773         * modules/fcntl-h (Depends-on): Update.
10774         * modules/glob (Depends-on): Update.
10775         * modules/iconv-h (Depends-on): Update.
10776         * modules/langinfo (Depends-on): Update.
10777         * modules/locale (Depends-on): Update.
10778         * modules/math (Depends-on): Update.
10779         * modules/netdb (Depends-on): Update.
10780         * modules/poll-h (Depends-on): Update.
10781         * modules/pty (Depends-on): Update.
10782         * modules/search (Depends-on): Update.
10783         * modules/signal (Depends-on): Update.
10784         * modules/spawn (Depends-on): Update.
10785         * modules/stdio (Depends-on): Update.
10786         * modules/stdlib (Depends-on): Update.
10787         * modules/string (Depends-on): Update.
10788         * modules/strings (Depends-on): Update.
10789         * modules/sys_ioctl (Depends-on): Update.
10790         * modules/sys_select (Depends-on): Update.
10791         * modules/sys_socket (Depends-on): Update.
10792         * modules/sys_stat (Depends-on): Update.
10793         * modules/sys_time (Depends-on): Update.
10794         * modules/sys_wait (Depends-on): Update.
10795         * modules/termios (Depends-on): Update.
10796         * modules/time (Depends-on): Update.
10797         * modules/unistd (Depends-on): Update.
10798         * modules/wchar (Depends-on): Update.
10799         * modules/wctype-h (Depends-on): Update.
10800
10801         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
10802         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
10803         (Files, Makefile.am): Update.
10804         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
10805         * modules/argv-iter (Depends-on): Update.
10806         * modules/arpa_inet (Depends-on): Update.
10807         * modules/dirent (Depends-on): Update.
10808         * modules/fcntl-h (Depends-on): Update.
10809         * modules/fnmatch (Depends-on): Update.
10810         * modules/getopt-posix (Depends-on): Update.
10811         * modules/glob (Depends-on): Update.
10812         * modules/iconv-h (Depends-on): Update.
10813         * modules/inttypes-incomplete (Depends-on): Update.
10814         * modules/locale (Depends-on): Update.
10815         * modules/math (Depends-on): Update.
10816         * modules/netdb (Depends-on): Update.
10817         * modules/search (Depends-on): Update.
10818         * modules/signal (Depends-on): Update.
10819         * modules/spawn (Depends-on): Update.
10820         * modules/stdio (Depends-on): Update.
10821         * modules/stdlib (Depends-on): Update.
10822         * modules/string (Depends-on): Update.
10823         * modules/strings (Depends-on): Update.
10824         * modules/sys_socket (Depends-on): Update.
10825         * modules/sys_stat (Depends-on): Update.
10826         * modules/sys_time (Depends-on): Update.
10827         * modules/sys_times (Depends-on): Update.
10828         * modules/sys_utsname (Depends-on): Update.
10829         * modules/time (Depends-on): Update.
10830         * modules/unistd (Depends-on): Update.
10831         * modules/wchar (Depends-on): Update.
10832         * MODULES.html.sh (Support for building libraries and executables):
10833         Update.
10834
10835 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10836
10837         Improvements on _Noreturn and related modules.
10838
10839         modules/_Exit-tests: test _Noreturn too
10840         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
10841         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
10842         (main): Use them.
10843
10844         stdnoreturn, stdnoreturn-tests: remove modules
10845         They're not needed here and a bit premature for use elsewhere.  See
10846         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
10847         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
10848         * tests/test-stdnoreturn.c: Remove files.
10849         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
10850         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
10851         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
10852         and using noreturn.
10853         * modules/openat, modules/sigpipe-die, modules/xalloc:
10854         * modules/xmemdup0, modules/xstrtol:
10855         Remove dependency on stdnoreturn.
10856
10857         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
10858         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
10859         Reparenthesize to avoid GCC warning.
10860         Support Microsoft's syntax.
10861         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
10862
10863         _Noreturn-tests: remove module
10864         * modules/_Noreturn-tests: Remove.
10865         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
10866         * tests/test-_Noreturn.c: Remove.
10867         * tests/test-stdnoreturn.c: Merge from the old
10868         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
10869
10870 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10871
10872         _Noreturn, stdnoreturn, and related modules.
10873
10874         * top/maint.mk: Adjust to new noreturn support.
10875         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
10876         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
10877
10878         xalloc: use stdnoreturn.h
10879         * lib/xalloc.h: Include <stdnoreturn.h>.
10880         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10881         * modules/xalloc (Depends-on): Add stdnoreturn.
10882
10883         xstrtol: use stdnoreturn.h
10884         * lib/xstrtol.h: Include <stdnoreturn.h>.
10885         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10886         * modules/xstrtol (Depends-on): Add stdnoreturn.
10887
10888         xmemdup0: use stdnoreturn.h
10889         * lib/xmemdup0.h: Include <stdnoreturn.h>.
10890         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10891         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
10892
10893         sigpipe-die: use stdnoreturn.h
10894         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
10895         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10896         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
10897
10898         openat: use stdnoreturn.h
10899         * lib/openat.h: Include <stdnoreturn.h>.
10900         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10901         * modules/openat (Depends-on): Add stdnoreturn.
10902
10903         * lib/openat-die.c (openat_save_fail): Modernize comment.
10904
10905         * lib/xalloc-die.c (xalloc_die): Modernize comment.
10906
10907         * lib/glthread/thread.h: Modernize comment.
10908
10909         obstack: use _Noreturn
10910         * lib/obstack.c (__attribute__): Remove macro.
10911         (print_and_abort): Use _Noreturn.
10912
10913         c-stack: use _Noreturn
10914         * lib/c-stack.c (die, overflow_handler, segv_handler):
10915         Use _Noreturn rather than __attribute__((noreturn)).
10916
10917         argmatch-tests, exclude_tests: use _Noreturn
10918         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
10919         Remove.
10920         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
10921
10922         stdlib: use _Noreturn
10923         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
10924         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
10925         * modules/stdlib (Depends-on): Add _Noreturn.
10926         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
10927
10928         stdnoreturn-tests: new module
10929         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
10930
10931         stdnoreturn: new module
10932         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
10933         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
10934
10935         _Noreturn-tests: new module
10936         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
10937
10938         _Noreturn: new module
10939         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
10940         New section, mentioning it.
10941         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
10942
10943         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
10944
10945 2011-07-11  Eric Blake  <eblake@redhat.com>
10946
10947         ffs: new module
10948         * modules/ffs: New file.
10949         * m4/ffs.m4: Likewise.
10950         * lib/ffs.c: Likewise.
10951         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
10952         * modules/strings (Makefile.am): Substitute witness.
10953         (Depends-on): Add c++defs.
10954         * lib/strings.in.h (ffs): Declare.
10955         * modules/ffs-tests: New test file.
10956         * tests/test-ffs.c: Test new module.
10957         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10958         * doc/posix-functions/ffs.texi (ffs): Likewise.
10959
10960         regex: avoid compiler warning
10961         * lib/regex.c (includes): Include <strings.h>, for use of
10962         strcasecmp in regcomp.c.
10963         Reported by Joachim Schmitz.
10964
10965 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
10966
10967         stdint: respect system's intmax_t if INTMAX_MAX
10968         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
10969         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
10970         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
10971         long but int64_t is long long, and where we will clash with the
10972         system intmax_t if we override it.  See
10973         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
10974         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
10975         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
10976         similarly for UINTMAX_C.
10977
10978 2011-07-08  Bruno Haible  <bruno@clisp.org>
10979
10980         pthread_sigmask tests: Avoid a compiler warning.
10981         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
10982         non-zero.
10983
10984         sigprocmask tests: A better way to avoid a compiler warning.
10985         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
10986         (main): Complain if system() returns non-zero.
10987         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
10988
10989 2011-07-08  Bruno Haible  <bruno@clisp.org>
10990
10991         pthread_sigmask: Work around IRIX bug.
10992         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
10993         bug.
10994         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
10995         there may be unblocked pending signals.
10996         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
10997
10998 2011-07-08  Bruno Haible  <bruno@clisp.org>
10999
11000         pthread_sigmask: Work around Cygwin bug.
11001         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11002         bug.
11003         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11004         the system's pthread_sigmask function.
11005         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11006
11007 2011-07-08  Bruno Haible  <bruno@clisp.org>
11008
11009         pthread_sigmask: Work around bug in single-threaded implementation.
11010         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11011         FreeBSD, HP-UX, Solaris bug.
11012         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11013         * lib/pthread_sigmask.c: Include <stddef.h>.
11014         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11015         the system's pthread_sigmask function.
11016         * modules/pthread_sigmask (configure.ac): Invoke
11017         gl_PREREQ_PTHREAD_SIGMASK.
11018         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11019         HP-UX, Solaris.
11020
11021 2011-07-08  Eric Blake  <eblake@redhat.com>
11022
11023         test-sigprocmask: avoid compiler warning
11024         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11025         * tests/test-sigprocmask.c (main): Use it to silence warning.
11026         Reported by Jim Meyering.
11027
11028         test-snprintf: avoid compiler warning
11029         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11030         * tests/test-vsnprintf.c (main): Likewise.
11031         Reported by Jim Meyering.
11032
11033 2011-07-08  Bruno Haible  <bruno@clisp.org>
11034
11035         Tests for module 'pthread_sigmask'.
11036         * modules/pthread_sigmask-tests: New file.
11037         * tests/test-pthread_sigmask1.c: New file, based on
11038         tests/test-sigprocmask.c.
11039         * tests/test-pthread_sigmask2.c: New file.
11040
11041 2011-07-08  Jim Meyering  <meyering@redhat.com>
11042
11043         test-getopt.h: avoid warning about an unused variable
11044         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11045
11046 2011-07-07  Jim Meyering  <meyering@redhat.com>
11047
11048         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11049         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11050         now that it no longer contains leading TABs.
11051         Remove unused "url=FIXME" statement.
11052
11053 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11054
11055         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11056         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11057         When gl_THREADLIB is not in use, assume that the POSIX sematics
11058         are desired.  This is better for Emacs, which uses POSIX semantics
11059         on GNUish and/or POSIXish platforms, and does not use threads at
11060         all otherwise.
11061
11062         pthread_sigmask: fix typo when testing for libraries
11063         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11064         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11065
11066 2011-07-08  Eric Blake  <eblake@redhat.com>
11067
11068         fts: introduce FTS_NOATIME
11069         * lib/fts_.h (FTS_NOATIME): New bit flag.
11070         (FTS_OPTIONMASK): Adjust.
11071         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11072         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11073
11074 2011-07-08  Bruno Haible  <bruno@clisp.org>
11075
11076         Tests for module 'thread'.
11077         * modules/thread-tests: New file.
11078         * tests/test-thread_self.c: New file.
11079         * tests/test-thread_create.cc: New file.
11080
11081 2011-07-08  Bruno Haible  <bruno@clisp.org>
11082
11083         thread: Avoid gcc warnings when using gl_thread_self().
11084         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11085         'void *'.
11086         (gl_thread_self_pointer): Update.
11087
11088 2011-07-07  Bruno Haible  <bruno@clisp.org>
11089
11090         signal-c++-tests: Check declaration of pthread_sigmask.
11091         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11092         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11093         $(LIB_PTHREAD_SIGMASK).
11094
11095 2011-07-07  Bruno Haible  <bruno@clisp.org>
11096
11097         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11098         * lib/signal.in.h (pthread_sigmask): Override if
11099         REPLACE_PTHREAD_SIGMASK is 1.
11100         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11101         REPLACE_PTHREAD_SIGMASK.
11102         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11103         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11104         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11105         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11106         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11107
11108 2011-07-07  Bruno Haible  <bruno@clisp.org>
11109
11110         pthread_sigmask: Ensure declaration in <signal.h>.
11111         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11112         include <pthread.h>.
11113         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11114         problem.
11115
11116 2011-07-07  Bruno Haible  <bruno@clisp.org>
11117
11118         pthread_sigmask: Document the module.
11119         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11120
11121 2011-07-07  Bruno Haible  <bruno@clisp.org>
11122
11123         pthread_sigmask: Follow gnulib conventions.
11124         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11125         gl_PTHREAD_SIGMASK.
11126         * modules/pthread_sigmask (configure.ac): Update.
11127
11128 2011-07-07  Bruno Haible  <bruno@clisp.org>
11129
11130         pthread_sigmask: Make declaration C++ safe.
11131         * lib/signal.in.h: In two special conditions, just do an #include_next.
11132         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11133         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11134         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11135         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11136         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11137         not REPLACE_PTHREAD_MASK.
11138         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11139         not REPLACE_PTHREAD_MASK.
11140         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11141
11142 2011-07-07  Bruno Haible  <bruno@clisp.org>
11143
11144         pthread_sigmask: Fix return value.
11145         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11146         * lib/pthread_sigmask.c: New file.
11147         * modules/pthread_sigmask (Files): Add it.
11148         (configure.ac): Invoke AC_LIBOBJ.
11149
11150 2011-07-07  Eric Blake  <eblake@redhat.com>
11151
11152         getopt: more portable argv creation
11153         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11154         const, use char arrays rather than strings.
11155         Suggested by Paul Eggert.
11156
11157 2011-07-07  Bruno Haible  <bruno@clisp.org>
11158
11159         Tests for module 'sigprocmask'.
11160         * modules/sigprocmask-tests: New file.
11161         * tests/test-sigprocmask.c: New file.
11162
11163 2011-07-07  Bruno Haible  <bruno@clisp.org>
11164
11165         float tests: Tweak.
11166         * tests/test-float.c (main): Tweak skip message.
11167
11168 2011-07-07  Eric Blake  <eblake@redhat.com>
11169
11170         getopt: avoid compiler warning during configure
11171         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11172         assigning string literals to non-const pointer.
11173
11174         getopt-gnu: avoid crash in glibc getopt
11175         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11176         * tests/test-getopt.h (test_getopt): Enhance test.
11177         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11178         * doc/posix-functions/getopt.texi (getopt): Document it.
11179         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11180         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11181         Likewise.
11182
11183 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11184
11185         getopt: handle W; without long options in getopt [BZ #12922]
11186         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11187         but no long options are defined, just return 'W'.
11188
11189 2011-07-07  Bruno Haible  <bruno@clisp.org>
11190
11191         Avoid literal tabs.
11192         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11193         variable containing a tab instead of a literal tab.
11194         Reported by Jim Meyering.
11195
11196 2011-07-07  Bruno Haible  <bruno@clisp.org>
11197
11198         Comments.
11199         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11200
11201 2011-07-06  Bruno Haible  <bruno@clisp.org>
11202
11203         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11204         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11205         <winsock2.h>.
11206         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11207         lib/sys_socket.in.h.
11208         (close, gethostname): Hide declarations from <winsock2.h>.
11209         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11210         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11211         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11212         (select): Don't override if gnulib's <sys/select.h> was already
11213         included.
11214         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11215         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11216         setsockopt, shutdown, select): Tweak indentation.
11217
11218 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11219
11220         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11221         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11222         in an application that does not use the sys_select module.
11223
11224 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11225
11226         poll: do not return 0 on timeout=-1
11227         * lib/poll.c: Loop with yield if no events occured
11228
11229 2011-07-06  Eric Blake  <eblake@redhat.com>
11230
11231         pthread_sigmask: always replace when not using pthread
11232         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11233         replacement when using some threading other than pthread.  Fix
11234         logic bug.
11235
11236 2011-07-06  Bruno Haible  <bruno@clisp.org>
11237
11238         Comments.
11239         * m4/printf.m4: Update comments about mingw.
11240
11241 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11242
11243         sys_select: define sigset_t more portably
11244         * lib/sys_select.in.h: Always include <sys/types.h>, since
11245         we now need sigset_t and mingw defines it there.
11246         Include <signal.h> before split inclusion guard, to avoid
11247         mishaps on Solaris, whose <signal.h> eventually includes us.
11248         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11249         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11250         which come from ...
11251         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11252         gl_CHECK_TYPE_SIGSET_T.
11253         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11254         does the real work.
11255         * modules/sys_select (Depends-on): Add 'signal'.
11256
11257         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11258         Suggested by Bruno Haible.
11259
11260         pselect: Use pthread_sigmask, not sigprocmask.
11261         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11262         multithreaded apps better than sigprocmask does.
11263         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11264         sigprocmask directly.
11265
11266 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11267
11268         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11269         Don't #undef,  since we don't need any underlying pselect.
11270         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11271         (Depends-on): Add select.
11272         (Link): Add $(LIBSOCKET).
11273         These changes suggested by Bruno Haible.
11274
11275         pselect: document better
11276         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11277         * doc/posix-functions/pselect.texi (pselect): Document new module.
11278
11279         pthread_sigmask: new module
11280         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11281         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11282         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11283         This is done only as a macro; I don't know how well that'll
11284         work for C++.  Move <sys/types.h> include before the include_next,
11285         to avoid mishap on Solaris.
11286         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11287         * modules/signal (Makefile.am): Substitute the check's results.
11288         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11289
11290         test-pselect: new module
11291         * modules/pselect-tests, tests/test-pselect.c: New files.
11292         * tests/test-select.c, tests/test-sys_select-c++.cc:
11293         If TEST_PSELECT is defined, test pselect instead of testing select.
11294
11295         * tests/test-sys_select.c (sigset_t): Test for it, too.
11296         Suggested by Bruno Haible.
11297
11298 2011-07-05  Eric Blake  <eblake@redhat.com>
11299
11300         snprintf: guarantee %1$d, for libintl
11301         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11302         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11303         * doc/posix-functions/snprintf.texi (snprintf): Update.
11304         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11305         * tests/test-snprintf.c (main): Enhance test.
11306         * tests/test-vsnprintf.c (main): Likewise.
11307
11308 2011-07-05  Jim Meyering  <meyering@redhat.com>
11309
11310         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11311         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11312         per Bruno's request, to accommodate this idiom (no space after "#")
11313         even when the function is inside an #if block:
11314         char *
11315         gets (char *s)
11316         #undef gets
11317         {
11318           ...
11319         }
11320
11321 2011-07-04  Jim Meyering  <meyering@redhat.com>
11322
11323         maint: indent with spaces, not TABs, and add a rule to check this
11324         * tests/test-userspec.c: Indent with spaces, not TABs.
11325         * tests/test-argp.c: Likewise.
11326         * tests/test-c-stack2.sh: Likewise.
11327         * tests/test-parse-duration.sh: Likewise
11328         * m4/strtod.m4: Likewise.
11329         * m4/alloca.m4: Likewise.
11330         * m4/pselect.m4: Likewise.
11331         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
11332
11333 2011-07-03  Jim Meyering  <meyering@redhat.com>
11334
11335         maint.mk: correct omissions in prohibit_argmatch_without_use check
11336         This rule would mistakenly report that argmatch.h is included without
11337         use even when both the argmatch and invalid_arg macro were used.
11338         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
11339         of argmatch and invalid_arg.
11340
11341 2011-07-03  Bruno Haible  <bruno@clisp.org>
11342
11343         Comments about EINTR.
11344         * lib/safe-read.h: Explain the purpose of this module.
11345         * lib/safe-write.h: Likewise.
11346         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
11347         module.
11348         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
11349         module.
11350         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11351
11352 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11353
11354         xnanosleep: Rewrite to use new dtotimespec module.
11355         It has the conversion code that used to be in xnanosleep.
11356         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
11357         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11358         (TIME_T_MAX): Remove.
11359         (xnanosleep): Rewrite in terms of dtotimespec.
11360         * modules/xnanosleep (Depends-on): Add dtotimespec.
11361         Remove intprops, stdbool.
11362
11363         timespec-add, timespec-sub: new modules
11364         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11365         * lib/timespec-add.c, lib/timespec-sub.c:
11366         * modules/timespec-add, modules/timespec-sub: New files.
11367
11368         dtotimespec: new module
11369         * lib/timespec.h (dtotimespec): New decl.
11370         * lib/dtotimespec.c, modules/dtotimespec: New files.
11371
11372         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11373
11374         pselect: new module
11375         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11376         (pselect): New decls.
11377         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11378         since the standard pselect decl uses 'restrict'.
11379         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11380         HAVE_PSELECT, REPLACE_PSELECT.
11381         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11382         HAVE_PSELECT, REPLACE_PSELECT.
11383         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11384
11385         sys_select: don't depend on sys_socket
11386         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11387         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11388         This fix works on GNU and GNU-like platforms, but has not been tested
11389         on native Windows.
11390         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11391         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11392         gl_HEADER_SYS_SOCKET.
11393         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11394         gl_PREREQ_SYS_H_WINSOCK2.
11395
11396 2011-06-29  Eric Blake  <eblake@redhat.com>
11397
11398         pipe2: fix C89 compile problem
11399         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
11400         Reported by Bruno Haible.
11401
11402         pipe, pipe2: don't corrupt fd on error
11403         * lib/pipe.c (pipe): Leave fd unchanged on error.
11404         * lib/pipe2.c (pipe2): Likewise.
11405         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
11406         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11407
11408 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
11409
11410         mmap-anon: do not use regular expressions inadvertently
11411         * m4/mmap-anon.m4: Remove trailing period from strings sought
11412         in the output.
11413
11414 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11415
11416         nanosleep: fix integer overflow problem
11417         * lib/nanosleep.c (my_usleep): Don't assume signed integer
11418         arithmetic wraps around on overflow.
11419
11420         nanosleep: simplify carrying
11421         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
11422         first call to the underyling nanosleep, not for the last one.
11423         This doesn't fix any bugs, but it simplifies the computation of
11424         the remaining delay.  Found while auditing integer overflow issues.
11425
11426         dup2: remove test for existence of fcntl
11427         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
11428         "#if HAVE_FCNTL", in the configure-time test program.
11429         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
11430         and therefore speeds up "configure" a bit.  Found while
11431         adding the dup2 module to Emacs.
11432
11433 2011-06-24  Eric Blake  <eblake@redhat.com>
11434
11435         maint.mk: enhance useless header checks
11436         * top/maint.mk (_sc_header_without_use): Check both include
11437         styles.
11438         (sc_prohibit_assert_without_use)
11439         (sc_prohibit_close_stream_without_use)
11440         (sc_prohibit_getopt_without_use)
11441         (sc_prohibit_quotearg_without_use)
11442         (sc_prohibit_quote_without_use)
11443         (sc_prohibit_long_options_without_use)
11444         (sc_prohibit_inttostr_without_use)
11445         (sc_prohibit_ignore_value_without_use)
11446         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
11447         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
11448         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
11449         (sc_prohibit_hash_pjw_without_use)
11450         (sc_prohibit_safe_read_without_use)
11451         (sc_prohibit_argmatch_without_use)
11452         (sc_prohibit_canonicalize_without_use)
11453         (sc_prohibit_root_dev_ino_without_use)
11454         (sc_prohibit_openat_without_use)
11455         (sc_prohibit_c_ctype_without_use)
11456         (sc_prohibit_signal_without_use)
11457         (sc_prohibit_stdio--_without_use)
11458         (sc_prohibit_stdio-safer_without_use)
11459         (sc_prohibit_strings_without_use)
11460         (sc_prohibit_intprops_without_use)
11461         (sc_prohibit_stddef_without_use)
11462         (sc_prohibit_xfreopen_without_use): Update clients.
11463
11464 2011-06-24  Jim Meyering  <meyering@redhat.com>
11465
11466         syntax-check: keep one maint.mk rule in sync with its header
11467         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
11468         of the bug Eric has just fixed, with today's commit 25e4c2ec.
11469         I prefer to avoid temporary files here, so use <(...), but that
11470         is not supported by /bin/sh, so...
11471         (SHELL): Define to /bin/bash.
11472
11473 2011-06-24  Eric Blake  <eblake@redhat.com>
11474
11475         maint.mk: update sc_prohibit_intprops_without_use
11476         * top/maint.mk (_intprops_names): Match recent changes.
11477
11478 2011-06-24  Bruno Haible  <bruno@clisp.org>
11479
11480         strerror-override: No-op tweak.
11481         * lib/strerror-override.h (strerror_override): Reorder conditions,
11482         for consistency with lib/strerror-override.c.
11483
11484 2011-06-23  Eric Blake  <eblake@redhat.com>
11485
11486         maint.mk: test further PATH_MAX issues
11487         * top/maint.mk (sc_prohibit_path_max_array): Rename...
11488         (sc_prohibit_path_max_allocation): ...and also test alloca.
11489         Suggested by Jim Meyering.
11490
11491 2011-06-22  Eric Blake  <eblake@redhat.com>
11492
11493         maint.mk: add syntax-check to avoid char[PATH_MAX]
11494         * top/maint.mk (sc_prohibit_path_max_array): New rule.
11495
11496         stat: be robust to PATH_MAX definition
11497         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
11498         * modules/stat (Depends-on): Add verify.
11499
11500         link: work around IRIX bug
11501         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
11502         * lib/link.c (rpl_link): Work around it.
11503         * tests/test-link.h (test_link): Enhance test.
11504         * doc/posix-functions/link.texi (link): Document the bug.
11505
11506         getopt: silence clang warning
11507         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11508         dereference.
11509         Reported by Gustavo Martin Domato.
11510
11511 2011-06-22  Jim Meyering  <meyering@redhat.com>
11512
11513         bootstrap: do not insert a blank line into each .gitignore file
11514         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11515
11516 2011-06-21  Eric Blake  <eblake@redhat.com>
11517
11518         perror: test for output mismatch
11519         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11520         perror on IRIX.
11521
11522         strerror_r: fix OpenBSD behavior on out-of-range
11523         * lib/strerror_r.c (strerror_r): Always use maximal string.
11524         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11525
11526         strerror_r: fix OpenBSD behavior on 0
11527         * lib/strerror-override.c (strerror_override): Also override 0
11528         when needed.
11529         * lib/strerror-override.h (strerror_override): Likewise.
11530         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11531         earlier.
11532         * lib/strerror_r.c (strerror_r): Likewise.
11533         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11534         behavior...
11535         (gl_FUNC_STRERROR_0): ...into new macro.
11536         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11537         is overridden.
11538         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11539         * modules/strerror-override (Files): Add strerror.m4.
11540         (configure.ac): Also provide override for 0 when needed.
11541         * doc/posix-functions/strerror.texi (strerror): Document this.
11542         * doc/posix-functions/perror.texi (perror): Likewise.
11543
11544         perror: adjust array size
11545         * modules/perror (Depends-on): Add strerror-override.
11546         * lib/perror.c (perror): Use it to avoid magic number.
11547
11548         strerror-override: reduce size
11549         * lib/strerror-override.c (strerror_override): Use fewer lines.
11550
11551 2011-06-20  Bruno Haible  <bruno@clisp.org>
11552
11553         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11554         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11555
11556 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11557
11558         alloca: port to compilers that can optimize like GCC 4.6.0
11559         * lib/alloca.c (find_stack_direction): New signature, taken from
11560         Autoconf git.  This works with GCC 4.6.0.  This code should never
11561         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11562         be used with other compilers that optimize as well as GCC 4.6.0 does.
11563         (alloca): Adjust to new signature.
11564         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11565         New macro, which patches Autoconf in a similar way.
11566
11567         c-stack: stop worrying about stack direction
11568         * lib/c-stack.c (find_stack_direction): Remove.
11569         (segv_handler): Don't worry about stack direction growth, as it's
11570         too much of a pain to configure this correctly, given how compilers
11571         are optimizing-away our stack-growth detection code.  Instead, assume
11572         that any access to just before or just after the stack is OK.
11573         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11574         Don't require AC_FUNC_ALLOCA; no longer needed.
11575
11576 2011-06-20  Eric Blake  <eblake@redhat.com>
11577
11578         test-stat: don't allocate PATH_MAX bytes
11579         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11580         PATH_MAX-sized buffer.
11581         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11582         * modules/stat-tests (Depends-on): Likewise.
11583         * tests/test-fstatat.c (includes): Drop pathmax.h.
11584         * tests/test-stat.c (includes): Likewise.
11585         Reported by Bruno Haible.
11586
11587 2011-06-20  Bruno Haible  <bruno@clisp.org>
11588
11589         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11590         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11591         * lib/float.c: New file.
11592         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11593         REPLACE_FLOAT_LDBL.
11594         * modules/float (Files): Add lib/float.c.
11595         (configure.ac): Invoke AC_LIBOBJ.
11596         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11597
11598 2011-06-20  Bruno Haible  <bruno@clisp.org>
11599
11600         Tests for module 'float'.
11601         * modules/float-tests: New file.
11602         * tests/test-float.c: New file.
11603
11604 2011-06-19  Bruno Haible  <bruno@clisp.org>
11605
11606         isinf: Coding style.
11607         * lib/isinf.c: Use GNU coding style.
11608
11609 2011-06-19  Bruno Haible  <bruno@clisp.org>
11610
11611         linkat test: Avoid test failure on AIX 7.1.
11612         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11613         * tests/test-link.h (test_link): Likewise.
11614
11615 2011-06-19  Bruno Haible  <bruno@clisp.org>
11616
11617         pread test: Avoid test failure on OpenBSD 4.9.
11618         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11619
11620 2011-06-19  Bruno Haible  <bruno@clisp.org>
11621
11622         sprintf-posix: Fix test failure on AIX 7.1.
11623         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11624         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11625         on AIX.
11626         * doc/posix-functions/fprintf.texi: Likewise.
11627         * doc/posix-functions/printf.texi: Likewise.
11628         * doc/posix-functions/snprintf.texi: Likewise.
11629         * doc/posix-functions/sprintf.texi: Likewise.
11630         * doc/posix-functions/vdprintf.texi: Likewise.
11631         * doc/posix-functions/vfprintf.texi: Likewise.
11632         * doc/posix-functions/vprintf.texi: Likewise.
11633         * doc/posix-functions/vsnprintf.texi: Likewise.
11634         * doc/posix-functions/vsprintf.texi: Likewise.
11635
11636 2011-06-19  Bruno Haible  <bruno@clisp.org>
11637
11638         roundl-ieee: Fix test failure on AIX 7.1.
11639         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11640         * doc/posix-functions/roundl.texi: Mention problem with negative
11641         arguments.
11642
11643 2011-06-19  Bruno Haible  <bruno@clisp.org>
11644
11645         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11646         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11647         * doc/posix-functions/round.texi: Mention problem with negative
11648         arguments.
11649         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11650
11651 2011-06-19  Bruno Haible  <bruno@clisp.org>
11652
11653         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11654         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11655         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11656         * doc/posix-functions/roundf.texi: Mention problem with negative
11657         arguments.
11658         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
11659
11660 2011-06-19  Bruno Haible  <bruno@clisp.org>
11661
11662         ceilf-ieee: Work around bug on MacOS X 10.5.
11663         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
11664
11665         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
11666         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
11667         IEEE compliant, avoid compiler optimizations.
11668         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11669         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11670         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11671         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11672         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11673         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11674         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11675         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11676         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11677         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11678
11679 2011-06-19  Bruno Haible  <bruno@clisp.org>
11680
11681         ceilf-ieee: Work around bug on AIX 7.1.
11682         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
11683         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
11684
11685 2011-06-19  Bruno Haible  <bruno@clisp.org>
11686
11687         ceil-ieee: Work around bug on AIX 7.1.
11688         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
11689         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
11690
11691 2011-06-18  Bruno Haible  <bruno@clisp.org>
11692
11693         fsync test: Avoid test failure on MacOS X and AIX.
11694         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
11695         EINVAL.
11696
11697 2011-06-18  Bruno Haible  <bruno@clisp.org>
11698
11699         openat, fdopendir tests: Fix link errors.
11700         * modules/openat-tests (Depends-on): Add progname.
11701         * modules/fdopendir-tests (Depends-on): Likewise.
11702         * tests/test-fchownat.c: Include progname.h.
11703         (main): Call set_program_name.
11704         * tests/test-fstatat.c: Include progname.h.
11705         (main): Call set_program_name.
11706         * tests/test-mkdirat.c: Include progname.h.
11707         (main): Call set_program_name.
11708         * tests/test-openat.c: Include progname.h.
11709         (main): Call set_program_name.
11710         * tests/test-unlinkat.c: Include progname.h.
11711         (main): Call set_program_name.
11712         * tests/test-fdopendir.c: Include progname.h.
11713         (main): Call set_program_name.
11714
11715 2011-06-18  Bruno Haible  <bruno@clisp.org>
11716
11717         Doc update.
11718         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
11719         HP-UX.
11720         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
11721
11722 2011-06-18  Bruno Haible  <bruno@clisp.org>
11723
11724         getcwd tests: Avoid compilation error on HP-UX 11.31.
11725         * modules/getcwd-tests (Depends-on): Add pathmax.
11726         * tests/test-getcwd.c: Include pathmax.h.
11727
11728 2011-06-18  Bruno Haible  <bruno@clisp.org>
11729
11730         isfinite, isinf: Fix link error on AIX 6 and 7.
11731         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
11732         needed, also test the macro with a 'float' argument.
11733         * m4/isinf.m4 (gl_ISINF): Likewise.
11734
11735 2011-06-18  Bruno Haible  <bruno@clisp.org>
11736
11737         getloadavg: Don't clobber LIBS. Regression from previous commit.
11738         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
11739         AC_CHECK_LIB from here...
11740         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
11741         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
11742         gl_func_getloadavg_done.
11743         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11744
11745 2011-06-18  Bruno Haible  <bruno@clisp.org>
11746
11747         clean-temp: Improve documentation.
11748         * lib/clean-temp.h: Explain better how to use this module.
11749         Reported by John Darrington <john@darrington.wattle.id.au>.
11750
11751 2011-06-17  Bruno Haible  <bruno@clisp.org>
11752
11753         pread, pwrite: Avoid cc warning on AIX.
11754         * lib/unistd.in.h (pread): Undefine before defining as a macro.
11755         (pwrite): Likewise.
11756
11757 2011-06-17  Bruno Haible  <bruno@clisp.org>
11758
11759         spawn-pipe tests: Fix link error.
11760         * tests/test-spawn-pipe-child.c: Undefine fprintf.
11761         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11762
11763 2011-06-17  Bruno Haible  <bruno@clisp.org>
11764
11765         Tests: Remove unnecessary dependency.
11766         * modules/canonicalize-tests (Depends-on): Remove progname.
11767         * modules/chown-tests (Depends-on): Likewise.
11768         * modules/dirname-tests (Depends-on): Likewise.
11769         * modules/fdopendir-tests (Depends-on): Likewise.
11770         * modules/fdutimensat-tests (Depends-on): Likewise.
11771         * modules/hash-tests (Depends-on): Likewise.
11772         * modules/lchown-tests (Depends-on): Likewise.
11773         * modules/linkat-tests (Depends-on): Likewise.
11774         * modules/renameat-tests (Depends-on): Likewise.
11775         * modules/spawn-pipe-tests (Depends-on): Likewise.
11776         * modules/utimensat-tests (Depends-on): Likewise.
11777
11778 2011-06-17  Bruno Haible  <bruno@clisp.org>
11779
11780         spawn-pipe tests: Fix link error.
11781         * tests/test-spawn-pipe-child.c: Undefine fflush.
11782
11783 2011-06-17  Bruno Haible  <bruno@clisp.org>
11784
11785         Fix tests link errors.
11786         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
11787         * modules/chown-tests (Makefile.am): Don't link test-chown with
11788         LIBINTL.
11789         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
11790         LIBINTL.
11791         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
11792         LIBINTL.
11793         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
11794         LIBINTL.
11795
11796 2011-06-16  Bruno Haible  <bruno@clisp.org>
11797
11798         crypto/gc-sha1: Fix recent regression.
11799         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
11800         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
11801
11802         crypto/gc-md5: Fix recent regression.
11803         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
11804
11805         crypto/gc-md4: Fix recent regression.
11806         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
11807         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
11808
11809         crypto/gc-arctwo: Fix recent regression.
11810         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
11811         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
11812
11813         crypto/gc-rijndael: Fix recent regression.
11814         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
11815         (configure.ac): Invoke AC_LIBOBJ here.
11816         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
11817         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11818
11819         crypto/gc-hmac-sha1: Fix recent regression.
11820         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
11821         (configure.ac): Invoke AC_LIBOBJ here.
11822         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
11823         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11824
11825         crypto/gc-hmac-md5: Fix recent regression.
11826         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
11827         (configure.ac): Invoke AC_LIBOBJ here.
11828         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
11829         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11830
11831         crypto/gc-des: Fix recent regression.
11832         * modules/crypto/gc-des (Files): Remove m4/des.m4.
11833         (configure.ac): Invoke AC_LIBOBJ here.
11834         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
11835         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11836
11837         crypto/gc-arcfour: Fix recent regression.
11838         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
11839         (configure.ac): Invoke AC_LIBOBJ here.
11840         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
11841         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11842
11843 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
11844
11845         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
11846         After the 2011-05-21 change, this macro requires
11847         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
11848         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11849
11850 2011-06-16  Bruno Haible  <bruno@clisp.org>
11851
11852         fprintftime: Move AC_LIBOBJ invocations to module description.
11853         * m4/fprintftime.m4: Remove file.
11854         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
11855         (configure.ac): Remove gl_FPRINTFTIME call.
11856         (Makefile.am): Augment lib_SOURCES.
11857         Reported by Jim Meyering.
11858
11859 2011-06-16  Bruno Haible  <bruno@clisp.org>
11860
11861         tmpfile-safer: Finish 2011-05-23 commit.
11862         * m4/stdio-safer.m4: Really remove file.
11863         Reported by Jim Meyering.
11864
11865 2011-06-16  Bruno Haible  <bruno@clisp.org>
11866
11867         syntax-check: Fix typo.
11868         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
11869         printf-posix.m4.
11870         Reported by Jim Meyering.
11871
11872 2011-06-13  Jim Meyering  <meyering@redhat.com>
11873
11874         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
11875         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
11876
11877 2011-05-23  Bruno Haible  <bruno@clisp.org>
11878
11879         yesno: Move AC_LIBOBJ invocations to module description.
11880         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
11881         * modules/yesno (Makefile.am): Augment lib_SOURCES.
11882
11883 2011-05-23  Bruno Haible  <bruno@clisp.org>
11884
11885         xstrtol: Move AC_LIBOBJ invocations to module description.
11886         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
11887         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
11888
11889 2011-05-23  Bruno Haible  <bruno@clisp.org>
11890
11891         xstrtold: Move AC_LIBOBJ invocations to module description.
11892         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
11893         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
11894
11895 2011-05-23  Bruno Haible  <bruno@clisp.org>
11896
11897         xstrtod: Move AC_LIBOBJ invocations to module description.
11898         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
11899         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
11900
11901 2011-05-23  Bruno Haible  <bruno@clisp.org>
11902
11903         xnanosleep: Move AC_LIBOBJ invocations to module description.
11904         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
11905         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
11906
11907 2011-05-23  Bruno Haible  <bruno@clisp.org>
11908
11909         xgetcwd: Move AC_LIBOBJ invocations to module description.
11910         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
11911         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
11912
11913 2011-05-23  Bruno Haible  <bruno@clisp.org>
11914
11915         xalloc: Move AC_LIBOBJ invocations to module description.
11916         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
11917         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
11918
11919 2011-05-23  Bruno Haible  <bruno@clisp.org>
11920
11921         write-any-file: Move AC_LIBOBJ invocations to module description.
11922         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
11923         invocation.
11924         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
11925
11926 2011-05-23  Bruno Haible  <bruno@clisp.org>
11927
11928         utimens: Move AC_LIBOBJ invocations to module description.
11929         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
11930         * modules/utimens (Makefile.am): Augment lib_SOURCES.
11931
11932 2011-05-23  Bruno Haible  <bruno@clisp.org>
11933
11934         utimecmp: Move AC_LIBOBJ invocations to module description.
11935         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
11936         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
11937
11938 2011-05-23  Bruno Haible  <bruno@clisp.org>
11939
11940         userspec: Move AC_LIBOBJ invocations to module description.
11941         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
11942         * modules/userspec (Makefile.am): Augment lib_SOURCES.
11943
11944 2011-05-23  Bruno Haible  <bruno@clisp.org>
11945
11946         unlinkdir: Move AC_LIBOBJ invocations to module description.
11947         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
11948         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
11949
11950 2011-05-23  Bruno Haible  <bruno@clisp.org>
11951
11952         unistd-safer: Move AC_LIBOBJ invocations to module description.
11953         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
11954         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
11955
11956 2011-05-23  Bruno Haible  <bruno@clisp.org>
11957
11958         tempname: Move AC_LIBOBJ invocations to module description.
11959         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
11960         * modules/tempname (Makefile.am): Augment lib_SOURCES.
11961
11962 2011-05-23  Bruno Haible  <bruno@clisp.org>
11963
11964         strftime: Move AC_LIBOBJ invocations to module description.
11965         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
11966         * modules/strftime (Makefile.am): Augment lib_SOURCES.
11967
11968 2011-05-23  Bruno Haible  <bruno@clisp.org>
11969
11970         stdlib-safer: Move AC_LIBOBJ invocations to module description.
11971         * m4/stdlib-safer.m4: Remove file.
11972         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
11973         (configure.ac): Remove gl_STDLIB_SAFER call.
11974         (Makefile.am): Augment lib_SOURCES.
11975
11976 2011-05-23  Bruno Haible  <bruno@clisp.org>
11977
11978         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
11979         * m4/stdio-safer.m4: Remove file.
11980         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
11981         (configure.ac): Remove gl_TMPFILE_SAFER call.
11982         (Makefile.am): Augment lib_SOURCES.
11983
11984 2011-05-23  Bruno Haible  <bruno@clisp.org>
11985
11986         popen-safer: Move AC_LIBOBJ invocations to module description.
11987         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
11988         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
11989         (configure.ac): Remove gl_POPEN_SAFER call.
11990         (Makefile.am): Augment lib_SOURCES.
11991
11992 2011-05-23  Bruno Haible  <bruno@clisp.org>
11993
11994         freopen-safer: Move AC_LIBOBJ invocations to module description.
11995         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
11996         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
11997         (configure.ac): Remove gl_FREOPEN_SAFER call.
11998         (Makefile.am): Augment lib_SOURCES.
11999
12000 2011-05-23  Bruno Haible  <bruno@clisp.org>
12001
12002         fopen-safer: Move AC_LIBOBJ invocations to module description.
12003         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12004         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12005         (configure.ac): Remove gl_FOPEN_SAFER call.
12006         (Makefile.am): Augment lib_SOURCES.
12007
12008 2011-05-23  Bruno Haible  <bruno@clisp.org>
12009
12010         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12011         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12012         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12013
12014 2011-05-23  Bruno Haible  <bruno@clisp.org>
12015
12016         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12017         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12018         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12019
12020 2011-05-23  Bruno Haible  <bruno@clisp.org>
12021
12022         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12023         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12024         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12025
12026 2011-05-23  Bruno Haible  <bruno@clisp.org>
12027
12028         settime: Move AC_LIBOBJ invocations to module description.
12029         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12030         * modules/settime (Makefile.am): Augment lib_SOURCES.
12031
12032 2011-05-23  Bruno Haible  <bruno@clisp.org>
12033
12034         savedir: Move AC_LIBOBJ invocations to module description.
12035         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12036         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12037
12038 2011-05-23  Bruno Haible  <bruno@clisp.org>
12039
12040         save-cwd: Move AC_LIBOBJ invocations to module description.
12041         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12042         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12043
12044 2011-05-23  Bruno Haible  <bruno@clisp.org>
12045
12046         same: Move AC_LIBOBJ invocations to module description.
12047         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12048         * modules/same (Makefile.am): Augment lib_SOURCES.
12049
12050 2011-05-23  Bruno Haible  <bruno@clisp.org>
12051
12052         safe-write: Move AC_LIBOBJ invocations to module description.
12053         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12054         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12055         instead of gl_SAFE_WRITE.
12056         (Makefile.am): Augment lib_SOURCES.
12057
12058 2011-05-23  Bruno Haible  <bruno@clisp.org>
12059
12060         safe-read: Move AC_LIBOBJ invocations to module description.
12061         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12062         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12063         of gl_SAFE_READ.
12064         (Makefile.am): Augment lib_SOURCES.
12065
12066 2011-05-23  Bruno Haible  <bruno@clisp.org>
12067
12068         safe-alloc: Move AC_LIBOBJ invocations to module description.
12069         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12070         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12071
12072 2011-05-23  Bruno Haible  <bruno@clisp.org>
12073
12074         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12075         * m4/rijndael.m4: Remove file.
12076         * modules/crypto/rijndael (Files): Remove it.
12077         (configure.ac): Remove gl_RIJNDAEL call.
12078         (Makefile.am): Augment lib_SOURCES.
12079
12080 2011-05-23  Bruno Haible  <bruno@clisp.org>
12081
12082         readtokens: Move AC_LIBOBJ invocations to module description.
12083         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12084         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12085
12086 2011-05-23  Bruno Haible  <bruno@clisp.org>
12087
12088         read-file: Move AC_LIBOBJ invocations to module description.
12089         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12090         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12091         of gl_FUNC_READ_FILE.
12092         (Makefile.am): Augment lib_SOURCES.
12093
12094 2011-05-23  Bruno Haible  <bruno@clisp.org>
12095
12096         quotearg: Move AC_LIBOBJ invocations to module description.
12097         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12098         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12099
12100 2011-05-23  Bruno Haible  <bruno@clisp.org>
12101
12102         quote: Move AC_LIBOBJ invocations to module description.
12103         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12104         * modules/quote (Makefile.am): Augment lib_SOURCES.
12105
12106 2011-05-23  Bruno Haible  <bruno@clisp.org>
12107
12108         posixver: Move AC_LIBOBJ invocations to module description.
12109         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12110         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12111
12112 2011-05-23  Bruno Haible  <bruno@clisp.org>
12113
12114         posixtm: Move AC_LIBOBJ invocations to module description.
12115         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12116         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12117
12118 2011-05-23  Bruno Haible  <bruno@clisp.org>
12119
12120         physmem: Move AC_LIBOBJ invocations to module description.
12121         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12122         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12123
12124 2011-05-23  Bruno Haible  <bruno@clisp.org>
12125
12126         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12127         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12128         invocation.
12129         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12130
12131 2011-05-23  Bruno Haible  <bruno@clisp.org>
12132
12133         mpsort: Move AC_LIBOBJ invocations to module description.
12134         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12135         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12136
12137 2011-05-23  Bruno Haible  <bruno@clisp.org>
12138
12139         modechange: Move AC_LIBOBJ invocations to module description.
12140         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12141         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12142
12143 2011-05-23  Bruno Haible  <bruno@clisp.org>
12144
12145         mkdir-p: Move AC_LIBOBJ invocations to module description.
12146         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12147         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12148
12149 2011-05-23  Bruno Haible  <bruno@clisp.org>
12150
12151         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12152         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12153         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12154
12155 2011-05-23  Bruno Haible  <bruno@clisp.org>
12156
12157         mgetgroups: Move AC_LIBOBJ invocations to module description.
12158         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12159         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12160
12161 2011-05-23  Bruno Haible  <bruno@clisp.org>
12162
12163         memxor: Move AC_LIBOBJ invocations to module description.
12164         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12165         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12166
12167 2011-05-23  Bruno Haible  <bruno@clisp.org>
12168
12169         memcoll: Move AC_LIBOBJ invocations to module description.
12170         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12171         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12172
12173 2011-05-23  Bruno Haible  <bruno@clisp.org>
12174
12175         memcasecmp: Move AC_LIBOBJ invocations to module description.
12176         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12177         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12178
12179 2011-05-23  Bruno Haible  <bruno@clisp.org>
12180
12181         crypto/md5: Move AC_LIBOBJ invocations to module description.
12182         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12183         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12184
12185 2011-05-23  Bruno Haible  <bruno@clisp.org>
12186
12187         crypto/md4: Move AC_LIBOBJ invocations to module description.
12188         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12189         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12190
12191 2011-05-23  Bruno Haible  <bruno@clisp.org>
12192
12193         crypto/md2: Move AC_LIBOBJ invocations to module description.
12194         * m4/md2.m4: Remove file.
12195         * modules/crypto/md2 (Files): Remove it.
12196         (configure.ac): Remove gl_MD2 call.
12197         (Makefile.am): Augment lib_SOURCES.
12198
12199 2011-05-23  Bruno Haible  <bruno@clisp.org>
12200
12201         long-options: Move AC_LIBOBJ invocations to module description.
12202         * m4/long-options.m4: Remove file.
12203         * modules/long-options (Files): Remove it.
12204         (configure.ac): Remove gl_LONG_OPTIONS call.
12205         (Makefile.am): Augment lib_SOURCES.
12206
12207 2011-05-23  Bruno Haible  <bruno@clisp.org>
12208
12209         i-ring: Move AC_LIBOBJ invocations to module description.
12210         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12211         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12212
12213 2011-05-23  Bruno Haible  <bruno@clisp.org>
12214
12215         idcache: Move AC_LIBOBJ invocations to module description.
12216         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12217         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12218
12219 2011-05-23  Bruno Haible  <bruno@clisp.org>
12220
12221         human: Move AC_LIBOBJ invocations to module description.
12222         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12223         * modules/human (Makefile.am): Augment lib_SOURCES.
12224
12225 2011-05-23  Bruno Haible  <bruno@clisp.org>
12226
12227         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12228         * m4/hmac-sha1.m4: Remove file.
12229         * modules/crypto/hmac-sha1 (Files): Remove it.
12230         (configure.ac): Remove gl_HMAC_SHA1 call.
12231         (Makefile.am): Augment lib_SOURCES.
12232
12233 2011-05-23  Bruno Haible  <bruno@clisp.org>
12234
12235         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12236         * m4/hmac-md5.m4: Remove file.
12237         * modules/crypto/hmac-md5 (Files): Remove it.
12238         (configure.ac): Remove gl_HMAC_MD5 call.
12239         (Makefile.am): Augment lib_SOURCES.
12240
12241 2011-05-23  Bruno Haible  <bruno@clisp.org>
12242
12243         hash: Move AC_LIBOBJ invocations to module description.
12244         * m4/hash.m4: Remove file.
12245         * modules/hash (Files): Remove it.
12246         (configure.ac): Remove gl_HASH call.
12247         (Makefile.am): Augment lib_SOURCES.
12248
12249 2011-05-23  Bruno Haible  <bruno@clisp.org>
12250
12251         hard-locale: Move AC_LIBOBJ invocations to module description.
12252         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12253         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12254
12255 2011-05-23  Bruno Haible  <bruno@clisp.org>
12256
12257         getugroups: Move AC_LIBOBJ invocations to module description.
12258         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12259         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12260
12261 2011-05-23  Bruno Haible  <bruno@clisp.org>
12262
12263         gettime: Move AC_LIBOBJ invocations to module description.
12264         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12265         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12266
12267 2011-05-23  Bruno Haible  <bruno@clisp.org>
12268
12269         getndelim2: Move AC_LIBOBJ invocations to module description.
12270         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12271         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12272
12273 2011-05-23  Bruno Haible  <bruno@clisp.org>
12274
12275         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12276         * m4/gc-pbkdf2-sha1.m4: Remove file.
12277         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12278         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12279         (Makefile.am): Augment lib_SOURCES.
12280
12281 2011-05-23  Bruno Haible  <bruno@clisp.org>
12282
12283         fts: Move AC_LIBOBJ invocations to module description.
12284         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12285         * modules/fts (configure.ac): ... to here.
12286
12287 2011-05-23  Bruno Haible  <bruno@clisp.org>
12288
12289         file-type: Move AC_LIBOBJ invocations to module description.
12290         * m4/file-type.m4: Remove file.
12291         * modules/file-type (Files): Remove it.
12292         (configure.ac): Remove gl_FILE_TYPE call.
12293         (Makefile.am): Augment lib_SOURCES.
12294
12295 2011-05-23  Bruno Haible  <bruno@clisp.org>
12296
12297         filenamecat*: Respect rules for use of AC_LIBOBJ.
12298         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12299         Remove AC_LIBOBJ invocation.
12300         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12301         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12302
12303 2011-05-23  Bruno Haible  <bruno@clisp.org>
12304
12305         filemode: Move AC_LIBOBJ invocations to module description.
12306         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12307         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12308
12309 2011-05-23  Bruno Haible  <bruno@clisp.org>
12310
12311         openat-safer: Move AC_LIBOBJ invocations to module description.
12312         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12313         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12314
12315 2011-05-23  Bruno Haible  <bruno@clisp.org>
12316
12317         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12318         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12319         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
12320
12321 2011-05-23  Bruno Haible  <bruno@clisp.org>
12322
12323         exclude: Move AC_LIBOBJ invocations to module description.
12324         * m4/exclude.m4: Remove file.
12325         * modules/exclude (Files): Remove it.
12326         (configure.ac): Remove gl_EXCLUDE call.
12327         (Makefile.am): Augment lib_SOURCES.
12328
12329 2011-05-23  Bruno Haible  <bruno@clisp.org>
12330
12331         dirname*: Respect rules for use of AC_LIBOBJ.
12332         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
12333         invocations.
12334         * modules/dirname (Makefile.am): Augment lib_SOURCES.
12335         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
12336
12337 2011-05-23  Bruno Haible  <bruno@clisp.org>
12338
12339         dirent-safer: Move AC_LIBOBJ invocations to module description.
12340         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
12341         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
12342
12343 2011-05-23  Bruno Haible  <bruno@clisp.org>
12344
12345         crypto/des: Move AC_LIBOBJ invocations to module description.
12346         * m4/des.m4: Remove file.
12347         * modules/crypto/des (Files): Remove it.
12348         (configure.ac): Remove gl_DES call.
12349         (Makefile.am): Augment lib_SOURCES.
12350
12351 2011-05-23  Bruno Haible  <bruno@clisp.org>
12352
12353         cycle-check: Move AC_LIBOBJ invocations to module description.
12354         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
12355         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
12356
12357 2011-05-23  Bruno Haible  <bruno@clisp.org>
12358
12359         c-strtold: Move AC_LIBOBJ invocations to module description.
12360         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12361         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12362
12363 2011-05-23  Bruno Haible  <bruno@clisp.org>
12364
12365         c-strtod: Move AC_LIBOBJ invocations to module description.
12366         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12367         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12368
12369 2011-05-23  Bruno Haible  <bruno@clisp.org>
12370
12371         crc: Move AC_LIBOBJ invocations to module description.
12372         * m4/crc.m4: Remove file.
12373         * modules/crc (Files): Remove it.
12374         (configure.ac): Remove gl_CRC call.
12375         (Makefile.am): Augment lib_SOURCES.
12376
12377 2011-05-23  Bruno Haible  <bruno@clisp.org>
12378
12379         close-stream: Move AC_LIBOBJ invocations to module description.
12380         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12381         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12382
12383 2011-05-23  Bruno Haible  <bruno@clisp.org>
12384
12385         closeout: Move AC_LIBOBJ invocations to module description.
12386         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12387         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12388
12389 2011-05-23  Bruno Haible  <bruno@clisp.org>
12390
12391         closein: Move AC_LIBOBJ invocations to module description.
12392         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12393         * modules/closein (Makefile.am): Augment lib_SOURCES.
12394
12395 2011-05-23  Bruno Haible  <bruno@clisp.org>
12396
12397         cloexec: Move AC_LIBOBJ invocations to module description.
12398         * m4/cloexec.m4: Remove file.
12399         * modules/cloexec (Files): Remove it.
12400         (configure.ac): Remove gl_CLOEXEC call.
12401         (Makefile.am): Augment lib_SOURCES.
12402
12403 2011-05-23  Bruno Haible  <bruno@clisp.org>
12404
12405         check-version: Move AC_LIBOBJ invocations to module description.
12406         * m4/check-version.m4: Remove file.
12407         * modules/check-version (Files): Remove it.
12408         (configure.ac): Remove gl_CHECK_VERSION call.
12409         (Makefile.am): Augment lib_SOURCES.
12410
12411 2011-05-23  Bruno Haible  <bruno@clisp.org>
12412
12413         chdir-safer: Move AC_LIBOBJ invocations to module description.
12414         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
12415         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
12416
12417 2011-05-23  Bruno Haible  <bruno@clisp.org>
12418
12419         canonicalize: Move AC_LIBOBJ invocations to module description.
12420         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
12421         AC_LIBOBJ invocation.
12422         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
12423
12424 2011-05-23  Bruno Haible  <bruno@clisp.org>
12425
12426         canon-host: Move AC_LIBOBJ invocations to module description.
12427         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
12428         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
12429         instead of gl_CANON_HOST.
12430         (Makefile.am): Augment lib_SOURCES.
12431
12432 2011-05-23  Bruno Haible  <bruno@clisp.org>
12433
12434         backupfile: Move AC_LIBOBJ invocations to module description.
12435         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
12436         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
12437
12438 2011-05-23  Bruno Haible  <bruno@clisp.org>
12439
12440         argmatch: Move AC_LIBOBJ invocations to module description.
12441         * m4/argmatch.m4: Remove file.
12442         * modules/argmatch (Files): Remove it.
12443         (configure.ac): Remove gl_ARGMATCH call.
12444         (Makefile.am): Augment lib_SOURCES.
12445
12446 2011-05-23  Bruno Haible  <bruno@clisp.org>
12447
12448         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
12449         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
12450         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
12451
12452 2011-05-23  Bruno Haible  <bruno@clisp.org>
12453
12454         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
12455         * m4/arcfour.m4: Remove file.
12456         * modules/crypto/arcfour (Files): Remove it.
12457         (configure.ac): Remove gl_ARCFOUR call.
12458         (Makefile.am): Augment lib_SOURCES.
12459
12460 2011-05-22  Bruno Haible  <bruno@clisp.org>
12461
12462         write: Move AC_LIBOBJ invocations to module description.
12463         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
12464         * modules/write (configure.ac): ... to here.
12465
12466 2011-05-22  Bruno Haible  <bruno@clisp.org>
12467
12468         wmemset: Move AC_LIBOBJ invocations to module description.
12469         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
12470         here...
12471         * modules/wmemset (configure.ac): ... to here.
12472
12473 2011-05-22  Bruno Haible  <bruno@clisp.org>
12474
12475         wmemmove: Move AC_LIBOBJ invocations to module description.
12476         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12477         here...
12478         * modules/wmemmove (configure.ac): ... to here.
12479
12480 2011-05-22  Bruno Haible  <bruno@clisp.org>
12481
12482         wmemcpy: Move AC_LIBOBJ invocations to module description.
12483         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
12484         here...
12485         * modules/wmemcpy (configure.ac): ... to here.
12486
12487 2011-05-22  Bruno Haible  <bruno@clisp.org>
12488
12489         wmemcmp: Move AC_LIBOBJ invocations to module description.
12490         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
12491         here...
12492         * modules/wmemcmp (configure.ac): ... to here.
12493
12494 2011-05-22  Bruno Haible  <bruno@clisp.org>
12495
12496         wmemchr: Move AC_LIBOBJ invocations to module description.
12497         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
12498         here...
12499         * modules/wmemchr (configure.ac): ... to here.
12500
12501 2011-05-22  Bruno Haible  <bruno@clisp.org>
12502
12503         wcswidth: Move AC_LIBOBJ invocations to module description.
12504         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12505         here...
12506         * modules/wcswidth (configure.ac): ... to here.
12507
12508 2011-05-22  Bruno Haible  <bruno@clisp.org>
12509
12510         wcwidth: Respect rules for use of AC_LIBOBJ.
12511         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12512         invocation from here...
12513         * modules/wcwidth (configure.ac): ... to here.
12514         (Depends-on): Update conditions.
12515
12516 2011-05-22  Bruno Haible  <bruno@clisp.org>
12517
12518         wctype: Move AC_LIBOBJ invocations to module description.
12519         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12520         invocation from here...
12521         * modules/wctype (configure.ac): ... to here.
12522         (Depends-on): Update conditions.
12523
12524 2011-05-22  Bruno Haible  <bruno@clisp.org>
12525
12526         wctrans: Move AC_LIBOBJ invocations to module description.
12527         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12528         invocation from here...
12529         * modules/wctrans (configure.ac): ... to here.
12530
12531 2011-05-22  Bruno Haible  <bruno@clisp.org>
12532
12533         wctomb: Move AC_LIBOBJ invocations to module description.
12534         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12535         invocations from here...
12536         * modules/wctomb (configure.ac): ... to here.
12537
12538 2011-05-22  Bruno Haible  <bruno@clisp.org>
12539
12540         wctob: Move AC_LIBOBJ invocations to module description.
12541         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12542         gl_PREREQ_WCTOB invocations from here...
12543         * modules/wctob (configure.ac): ... to here.
12544         (Depends-on): Update conditions.
12545
12546 2011-05-22  Bruno Haible  <bruno@clisp.org>
12547
12548         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12549         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12550         here...
12551         * modules/wcsxfrm (configure.ac): ... to here.
12552
12553 2011-05-22  Bruno Haible  <bruno@clisp.org>
12554
12555         wcstok: Move AC_LIBOBJ invocations to module description.
12556         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12557         * modules/wcstok (configure.ac): ... to here.
12558
12559 2011-05-22  Bruno Haible  <bruno@clisp.org>
12560
12561         wcsstr: Move AC_LIBOBJ invocations to module description.
12562         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12563         * modules/wcsstr (configure.ac): ... to here.
12564
12565 2011-05-22  Bruno Haible  <bruno@clisp.org>
12566
12567         wcsspn: Move AC_LIBOBJ invocations to module description.
12568         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12569         * modules/wcsspn (configure.ac): ... to here.
12570
12571 2011-05-22  Bruno Haible  <bruno@clisp.org>
12572
12573         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12574         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12575         gl_PREREQ_WCSRTOMBS invocations from here...
12576         * modules/wcsrtombs (configure.ac): ... to here.
12577
12578 2011-05-22  Bruno Haible  <bruno@clisp.org>
12579
12580         wcsrchr: Move AC_LIBOBJ invocations to module description.
12581         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12582         here...
12583         * modules/wcsrchr (configure.ac): ... to here.
12584
12585 2011-05-22  Bruno Haible  <bruno@clisp.org>
12586
12587         wcspbrk: Move AC_LIBOBJ invocations to module description.
12588         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12589         here...
12590         * modules/wcspbrk (configure.ac): ... to here.
12591
12592 2011-05-22  Bruno Haible  <bruno@clisp.org>
12593
12594         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12595         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12596         gl_PREREQ_WCSNRTOMBS invocations from here...
12597         * modules/wcsnrtombs (configure.ac): ... to here.
12598
12599 2011-05-22  Bruno Haible  <bruno@clisp.org>
12600
12601         wcsnlen: Move AC_LIBOBJ invocations to module description.
12602         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12603         here...
12604         * modules/wcsnlen (configure.ac): ... to here.
12605
12606 2011-05-22  Bruno Haible  <bruno@clisp.org>
12607
12608         wcsncpy: Move AC_LIBOBJ invocations to module description.
12609         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12610         here...
12611         * modules/wcsncpy (configure.ac): ... to here.
12612
12613 2011-05-22  Bruno Haible  <bruno@clisp.org>
12614
12615         wcsncmp: Move AC_LIBOBJ invocations to module description.
12616         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12617         here...
12618         * modules/wcsncmp (configure.ac): ... to here.
12619
12620 2011-05-22  Bruno Haible  <bruno@clisp.org>
12621
12622         wcsncat: Move AC_LIBOBJ invocations to module description.
12623         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12624         here...
12625         * modules/wcsncat (configure.ac): ... to here.
12626
12627 2011-05-22  Bruno Haible  <bruno@clisp.org>
12628
12629         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12630         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12631         from here...
12632         * modules/wcsncasecmp (configure.ac): ... to here.
12633
12634 2011-05-22  Bruno Haible  <bruno@clisp.org>
12635
12636         wcslen: Move AC_LIBOBJ invocations to module description.
12637         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12638         * modules/wcslen (configure.ac): ... to here.
12639
12640 2011-05-22  Bruno Haible  <bruno@clisp.org>
12641
12642         wcsdup: Move AC_LIBOBJ invocations to module description.
12643         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12644         * modules/wcsdup (configure.ac): ... to here.
12645
12646 2011-05-22  Bruno Haible  <bruno@clisp.org>
12647
12648         wcscspn: Move AC_LIBOBJ invocations to module description.
12649         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12650         here...
12651         * modules/wcscspn (configure.ac): ... to here.
12652
12653 2011-05-22  Bruno Haible  <bruno@clisp.org>
12654
12655         wcscpy: Move AC_LIBOBJ invocations to module description.
12656         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12657         * modules/wcscpy (configure.ac): ... to here.
12658
12659 2011-05-22  Bruno Haible  <bruno@clisp.org>
12660
12661         wcscoll: Move AC_LIBOBJ invocations to module description.
12662         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
12663         here...
12664         * modules/wcscoll (configure.ac): ... to here.
12665
12666 2011-05-22  Bruno Haible  <bruno@clisp.org>
12667
12668         wcscmp: Move AC_LIBOBJ invocations to module description.
12669         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
12670         * modules/wcscmp (configure.ac): ... to here.
12671
12672 2011-05-22  Bruno Haible  <bruno@clisp.org>
12673
12674         wcschr: Move AC_LIBOBJ invocations to module description.
12675         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
12676         * modules/wcschr (configure.ac): ... to here.
12677
12678 2011-05-22  Bruno Haible  <bruno@clisp.org>
12679
12680         wcscat: Move AC_LIBOBJ invocations to module description.
12681         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
12682         * modules/wcscat (configure.ac): ... to here.
12683
12684 2011-05-22  Bruno Haible  <bruno@clisp.org>
12685
12686         wcscasecmp: Move AC_LIBOBJ invocations to module description.
12687         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
12688         here...
12689         * modules/wcscasecmp (configure.ac): ... to here.
12690
12691 2011-05-22  Bruno Haible  <bruno@clisp.org>
12692
12693         wcrtomb: Move AC_LIBOBJ invocations to module description.
12694         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
12695         invocations from here...
12696         * modules/wcrtomb (configure.ac): ... to here.
12697
12698 2011-05-22  Bruno Haible  <bruno@clisp.org>
12699
12700         wcpncpy: Move AC_LIBOBJ invocations to module description.
12701         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
12702         here...
12703         * modules/wcpncpy (configure.ac): ... to here.
12704
12705 2011-05-22  Bruno Haible  <bruno@clisp.org>
12706
12707         wcpcpy: Move AC_LIBOBJ invocations to module description.
12708         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
12709         * modules/wcpcpy (configure.ac): ... to here.
12710
12711 2011-05-22  Bruno Haible  <bruno@clisp.org>
12712
12713         waitpid: Move AC_LIBOBJ invocations to module description.
12714         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
12715         invocation from here...
12716         * modules/waitpid (configure.ac): ... to here.
12717
12718 2011-05-22  Bruno Haible  <bruno@clisp.org>
12719
12720         utimensat: Move AC_LIBOBJ invocations to module description.
12721         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
12722         here...
12723         * modules/utimensat (configure.ac): ... to here.
12724
12725 2011-05-22  Bruno Haible  <bruno@clisp.org>
12726
12727         usleep: Move AC_LIBOBJ invocations to module description.
12728         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
12729         here...
12730         * modules/usleep (configure.ac): ... to here.
12731
12732 2011-05-22  Bruno Haible  <bruno@clisp.org>
12733
12734         unlockpt: Move AC_LIBOBJ invocations to module description.
12735         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
12736         gl_PREREQ_UNLOCKPT invocations from here...
12737         * modules/unlockpt (configure.ac): ... to here.
12738
12739 2011-05-22  Bruno Haible  <bruno@clisp.org>
12740
12741         unlink: Respect rules for use of AC_LIBOBJ.
12742         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
12743         * modules/unlink (configure.ac): ... to here.
12744
12745 2011-05-22  Bruno Haible  <bruno@clisp.org>
12746
12747         uname: Move AC_LIBOBJ invocations to module description.
12748         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
12749         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
12750         here...
12751         * modules/uname (configure.ac): ... to here.
12752
12753 2011-05-22  Bruno Haible  <bruno@clisp.org>
12754
12755         ttyname_r: Move AC_LIBOBJ invocations to module description.
12756         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
12757         gl_PREREQ_TTYNAME_R invocations from here...
12758         * modules/ttyname_r (configure.ac): ... to here.
12759
12760 2011-05-22  Bruno Haible  <bruno@clisp.org>
12761
12762         tsearch: Move AC_LIBOBJ invocations to module description.
12763         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
12764         invocations from here...
12765         * modules/tsearch (configure.ac): ... to here.
12766
12767 2011-05-22  Bruno Haible  <bruno@clisp.org>
12768
12769         towctrans: Move AC_LIBOBJ invocations to module description.
12770         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
12771         AC_LIBOBJ invocation from here...
12772         * modules/towctrans (configure.ac): ... to here.
12773
12774 2011-05-22  Bruno Haible  <bruno@clisp.org>
12775
12776         tmpfile: Move AC_LIBOBJ invocations to module description.
12777         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
12778         invocations from here...
12779         * modules/tmpfile (configure.ac): ... to here.
12780
12781 2011-05-22  Bruno Haible  <bruno@clisp.org>
12782
12783         times: Move AC_LIBOBJ invocations to module description.
12784         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
12785         * modules/times (configure.ac): ... to here.
12786
12787 2011-05-22  Bruno Haible  <bruno@clisp.org>
12788
12789         time_r: Move AC_LIBOBJ invocations to module description.
12790         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
12791         invocations from here...
12792         * modules/time_r (configure.ac): ... to here.
12793
12794 2011-05-22  Bruno Haible  <bruno@clisp.org>
12795
12796         timegm: Move AC_LIBOBJ invocations to module description.
12797         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
12798         invocations from here...
12799         * modules/timegm (configure.ac): ... to here.
12800
12801 2011-05-22  Bruno Haible  <bruno@clisp.org>
12802
12803         tcgetsid: Move AC_LIBOBJ invocations to module description.
12804         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
12805         and gl_PREREQ_TCGETSID invocations from here...
12806         * modules/tcgetsid (configure.ac): ... to here.
12807         (Depends-on): Update conditions.
12808
12809 2011-05-22  Bruno Haible  <bruno@clisp.org>
12810
12811         symlinkat: Move AC_LIBOBJ invocations to module description.
12812         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
12813         here...
12814         * modules/symlinkat (configure.ac): ... to here.
12815
12816 2011-05-22  Bruno Haible  <bruno@clisp.org>
12817
12818         symlink: Move AC_LIBOBJ invocations to module description.
12819         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
12820         here...
12821         * modules/symlink (configure.ac): ... to here.
12822
12823 2011-05-22  Bruno Haible  <bruno@clisp.org>
12824
12825         strverscmp: Move AC_LIBOBJ invocations to module description.
12826         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
12827         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
12828         from here...
12829         * modules/strverscmp (configure.ac): ... to here.
12830
12831 2011-05-22  Bruno Haible  <bruno@clisp.org>
12832
12833         strtok_r: Move AC_LIBOBJ invocations to module description.
12834         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
12835         and gl_PREREQ_STRTOK_R invocations from here...
12836         * modules/strtok_r (configure.ac): ... to here.
12837         (Depends-on): Update conditions.
12838
12839 2011-05-22  Bruno Haible  <bruno@clisp.org>
12840
12841         strtoumax: Move AC_LIBOBJ invocations to module description.
12842         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
12843         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
12844         from here...
12845         * modules/strtoumax (configure.ac): ... to here.
12846
12847 2011-05-22  Bruno Haible  <bruno@clisp.org>
12848
12849         strtoimax: Move AC_LIBOBJ invocations to module description.
12850         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
12851         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
12852         from here...
12853         * modules/strtoimax (configure.ac): ... to here.
12854
12855 2011-05-22  Bruno Haible  <bruno@clisp.org>
12856
12857         strtoull: Move AC_LIBOBJ invocations to module description.
12858         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
12859         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
12860         from here...
12861         * modules/strtoull (configure.ac): ... to here.
12862
12863 2011-05-22  Bruno Haible  <bruno@clisp.org>
12864
12865         strtoll: Move AC_LIBOBJ invocations to module description.
12866         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
12867         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
12868         here...
12869         * modules/strtoll (configure.ac): ... to here.
12870
12871 2011-05-22  Bruno Haible  <bruno@clisp.org>
12872
12873         strtoul: Move AC_LIBOBJ invocations to module description.
12874         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
12875         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12876         * modules/strtoul (configure.ac): ... to here.
12877
12878 2011-05-22  Bruno Haible  <bruno@clisp.org>
12879
12880         strtol: Move AC_LIBOBJ invocations to module description.
12881         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
12882         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12883         * modules/strtol (configure.ac): ... to here.
12884
12885 2011-05-22  Bruno Haible  <bruno@clisp.org>
12886
12887         strtod: Move AC_LIBOBJ invocations to module description.
12888         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
12889         invocations from here...
12890         * modules/strtod (configure.ac): ... to here.
12891
12892 2011-05-22  Bruno Haible  <bruno@clisp.org>
12893
12894         strstr*: Move AC_LIBOBJ invocations to module description.
12895         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
12896         invocations from here...
12897         * modules/strstr-simple (configure.ac): ... to here.
12898         * modules/strstr (configure.ac): ... and here.
12899
12900 2011-05-22  Bruno Haible  <bruno@clisp.org>
12901
12902         strsignal: Move AC_LIBOBJ invocations to module description.
12903         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
12904         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
12905         * modules/strsignal (configure.ac): ... to here.
12906         (Depends-on): Update conditions.
12907
12908 2011-05-22  Bruno Haible  <bruno@clisp.org>
12909
12910         strsep: Move AC_LIBOBJ invocations to module description.
12911         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
12912         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
12913         here...
12914         * modules/strsep (configure.ac): ... to here.
12915
12916 2011-05-22  Bruno Haible  <bruno@clisp.org>
12917
12918         strptime: Move AC_LIBOBJ invocations to module description.
12919         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
12920         gl_PREREQ_STRPTIME invocations from here...
12921         * modules/strptime (configure.ac): ... to here.
12922
12923 2011-05-22  Bruno Haible  <bruno@clisp.org>
12924
12925         strpbrk: Move AC_LIBOBJ invocations to module description.
12926         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
12927         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
12928         here...
12929         * modules/strpbrk (configure.ac): ... to here.
12930
12931 2011-05-22  Bruno Haible  <bruno@clisp.org>
12932
12933         strnlen: Move AC_LIBOBJ invocations to module description.
12934         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
12935         invocations from here...
12936         * modules/strnlen (configure.ac): ... to here.
12937
12938 2011-05-22  Bruno Haible  <bruno@clisp.org>
12939
12940         strndup: Move AC_LIBOBJ invocations to module description.
12941         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
12942         invocations from here...
12943         * modules/strndup (configure.ac): ... to here.
12944         (Depends-on): Update conditions.
12945
12946 2011-05-22  Bruno Haible  <bruno@clisp.org>
12947
12948         strncat: Move AC_LIBOBJ invocations to module description.
12949         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
12950         invocations from here...
12951         * modules/strncat (configure.ac): ... to here.
12952
12953 2011-05-22  Bruno Haible  <bruno@clisp.org>
12954
12955         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
12956         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
12957         invocations from here...
12958         * modules/strdup (configure.ac): ... to here.
12959         * modules/strdup-posix (configure.ac): ... and here.
12960
12961 2011-05-22  Bruno Haible  <bruno@clisp.org>
12962
12963         strcspn: Move AC_LIBOBJ invocations to module description.
12964         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
12965         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
12966         here...
12967         * modules/strcspn (configure.ac): ... to here.
12968
12969 2011-05-22  Bruno Haible  <bruno@clisp.org>
12970
12971         strchrnul: Move AC_LIBOBJ invocations to module description.
12972         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
12973         gl_PREREQ_STRCHRNUL invocations from here...
12974         * modules/strchrnul (configure.ac): ... to here.
12975
12976 2011-05-22  Bruno Haible  <bruno@clisp.org>
12977
12978         strcasestr*: Move AC_LIBOBJ invocations to module description.
12979         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12980         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
12981         * modules/strcasestr-simple (configure.ac): ... to here.
12982         * modules/strcasestr (configure.ac): ... and here.
12983
12984 2011-05-22  Bruno Haible  <bruno@clisp.org>
12985
12986         strcase: Move AC_LIBOBJ invocations to module description.
12987         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
12988         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
12989         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
12990         gl_PREREQ_STRNCASECMP invocations from here...
12991         * modules/strcase (configure.ac): ... to here.
12992
12993 2011-05-22  Bruno Haible  <bruno@clisp.org>
12994
12995         stpncpy: Move AC_LIBOBJ invocations to module description.
12996         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
12997         here...
12998         * modules/stpncpy (configure.ac): ... to here.
12999
13000 2011-05-22  Bruno Haible  <bruno@clisp.org>
13001
13002         stpcpy: Move AC_LIBOBJ invocations to module description.
13003         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13004         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13005         here...
13006         * modules/stpcpy (configure.ac): ... to here.
13007
13008 2011-05-21  Bruno Haible  <bruno@clisp.org>
13009
13010         stat: Move AC_LIBOBJ invocations to module description.
13011         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13012         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13013         here...
13014         * modules/stat (configure.ac): ... to here.
13015
13016 2011-05-21  Bruno Haible  <bruno@clisp.org>
13017
13018         sleep: Move AC_LIBOBJ invocations to module description.
13019         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13020         * modules/sleep (configure.ac): ... to here.
13021
13022 2011-05-21  Bruno Haible  <bruno@clisp.org>
13023
13024         signbit: Move AC_LIBOBJ invocations to module description.
13025         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13026         * modules/signbit (configure.ac): ... to here.
13027
13028 2011-05-21  Bruno Haible  <bruno@clisp.org>
13029
13030         sigprocmask: Move AC_LIBOBJ invocations to module description.
13031         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13032         gl_PREREQ_SIGPROMASK invocations from here...
13033         * modules/sigprocmask (configure.ac): ... to here.
13034
13035 2011-05-21  Bruno Haible  <bruno@clisp.org>
13036
13037         sigaction: Move AC_LIBOBJ invocations to module description.
13038         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13039         gl_PREREQ_SIGACTION invocations from here...
13040         * modules/sigaction (configure.ac): ... to here.
13041
13042 2011-05-21  Bruno Haible  <bruno@clisp.org>
13043
13044         sig2str: Move AC_LIBOBJ invocations to module description.
13045         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13046         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13047         here...
13048         * modules/sig2str (configure.ac): ... to here.
13049
13050 2011-05-21  Bruno Haible  <bruno@clisp.org>
13051
13052         setlocale: Move AC_LIBOBJ invocations to module description.
13053         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13054         gl_PREREQ_SETLOCALE invocations from here...
13055         * modules/setlocale (configure.ac): ... to here.
13056
13057 2011-05-21  Bruno Haible  <bruno@clisp.org>
13058
13059         unsetenv: Move AC_LIBOBJ invocations to module description.
13060         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13061         and gl_PREREQ_UNSETENV invocations from here...
13062         * modules/unsetenv (configure.ac): ... to here.
13063         (Depends-on): Update.
13064
13065 2011-05-21  Bruno Haible  <bruno@clisp.org>
13066
13067         setenv: Move AC_LIBOBJ invocations to module description.
13068         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13069         here...
13070         * modules/setenv (configure.ac): ... to here.
13071
13072 2011-05-21  Bruno Haible  <bruno@clisp.org>
13073
13074         selinux-h: Move AC_LIBOBJ invocations to module description.
13075         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13076         AC_LIBOBJ invocation from here...
13077         * modules/selinux-h (configure.ac): ... to here.
13078
13079 2011-05-21  Bruno Haible  <bruno@clisp.org>
13080
13081         select: Respect rules for use of AC_LIBOBJ.
13082         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13083         here...
13084         * modules/select (configure.ac): ... to here.
13085
13086 2011-05-21  Bruno Haible  <bruno@clisp.org>
13087
13088         scandir: Move AC_LIBOBJ invocations to module description.
13089         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13090         invocations from here...
13091         * modules/scandir (configure.ac): ... to here.
13092
13093 2011-05-21  Bruno Haible  <bruno@clisp.org>
13094
13095         rpmatch: Move AC_LIBOBJ invocations to module description.
13096         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13097         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13098         here...
13099         * modules/rpmatch (configure.ac): ... to here.
13100
13101 2011-05-21  Bruno Haible  <bruno@clisp.org>
13102
13103         rmdir: Respect rules for use of AC_LIBOBJ.
13104         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13105         * modules/rmdir (configure.ac): ... to here.
13106
13107 2011-05-21  Bruno Haible  <bruno@clisp.org>
13108
13109         renameat: Move AC_LIBOBJ invocations to module description.
13110         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13111         here...
13112         * modules/renameat (configure.ac): ... to here.
13113
13114 2011-05-21  Bruno Haible  <bruno@clisp.org>
13115
13116         rename: Respect rules for use of AC_LIBOBJ.
13117         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13118         here...
13119         * modules/rename (configure.ac): ... to here.
13120
13121 2011-05-21  Bruno Haible  <bruno@clisp.org>
13122
13123         remove: Move AC_LIBOBJ invocations to module description.
13124         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13125         here...
13126         * modules/remove (configure.ac): ... to here.
13127
13128 2011-05-21  Bruno Haible  <bruno@clisp.org>
13129
13130         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13131         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13132         macro.
13133         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13134         * modules/relocatable-lib (configure.ac): ... to here.
13135         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13136         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13137
13138 2011-05-21  Bruno Haible  <bruno@clisp.org>
13139
13140         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13141         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13142         here...
13143         * modules/relocatable-prog (configure.ac): ... to here.
13144
13145 2011-05-21  Bruno Haible  <bruno@clisp.org>
13146
13147         regex: Move AC_LIBOBJ invocations to module description.
13148         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13149         invocations from here...
13150         * modules/regex (configure.ac): ... to here.
13151
13152 2011-05-21  Bruno Haible  <bruno@clisp.org>
13153
13154         realloc-*: Move AC_LIBOBJ invocations to module description.
13155         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13156         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13157         AC_LIBOBJ invocations from here...
13158         * modules/realloc-gnu (configure.ac): ... to here.
13159         * modules/realloc-posix (configure.ac): ... and here.
13160
13161 2011-05-21  Bruno Haible  <bruno@clisp.org>
13162
13163         readutmp: Move AC_LIBOBJ invocations to module description.
13164         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13165         * modules/readutmp (configure.ac): ... to here.
13166
13167 2011-05-21  Bruno Haible  <bruno@clisp.org>
13168
13169         readlinkat: Move AC_LIBOBJ invocations to module description.
13170         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13171         here...
13172         * modules/readlinkat (configure.ac): ... to here.
13173
13174 2011-05-21  Bruno Haible  <bruno@clisp.org>
13175
13176         readlink: Move AC_LIBOBJ invocations to module description.
13177         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13178         gl_PREREQ_READLINK invocations from here...
13179         * modules/readlink (configure.ac): ... to here.
13180
13181 2011-05-21  Bruno Haible  <bruno@clisp.org>
13182
13183         readline: Move AC_LIBOBJ invocations to module description.
13184         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13185         gl_PREREQ_READLINE invocations from here...
13186         * modules/readline (configure.ac): ... to here.
13187
13188 2011-05-21  Bruno Haible  <bruno@clisp.org>
13189
13190         read: Move AC_LIBOBJ invocations to module description.
13191         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13192         * modules/read (configure.ac): ... to here.
13193
13194 2011-05-21  Bruno Haible  <bruno@clisp.org>
13195
13196         rawmemchr: Move AC_LIBOBJ invocations to module description.
13197         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13198         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13199         from here...
13200         * modules/rawmemchr (configure.ac): ... to here.
13201
13202 2011-05-21  Bruno Haible  <bruno@clisp.org>
13203
13204         random_r: Move AC_LIBOBJ invocations to module description.
13205         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13206         gl_PREREQ_RANDOM_R invocations from here...
13207         * modules/random_r (configure.ac): ... to here.
13208
13209 2011-05-21  Bruno Haible  <bruno@clisp.org>
13210
13211         pwrite: Move AC_LIBOBJ invocations to module description.
13212         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13213         * modules/pwrite (configure.ac): ... to here.
13214
13215 2011-05-21  Bruno Haible  <bruno@clisp.org>
13216
13217         putenv: Move AC_LIBOBJ invocations to module description.
13218         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13219         * modules/putenv (configure.ac): ... to here.
13220
13221 2011-05-21  Bruno Haible  <bruno@clisp.org>
13222
13223         login_tty: Move AC_LIBOBJ invocations to module description.
13224         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13225         * modules/login_tty (configure.ac): ... to here.
13226
13227 2011-05-21  Bruno Haible  <bruno@clisp.org>
13228
13229         openpty: Move AC_LIBOBJ invocations to module description.
13230         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13231         * modules/openpty (configure.ac): ... to here.
13232
13233 2011-05-21  Bruno Haible  <bruno@clisp.org>
13234
13235         forkpty: Move AC_LIBOBJ invocations to module description.
13236         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13237         * modules/forkpty (configure.ac): ... to here.
13238
13239 2011-05-21  Bruno Haible  <bruno@clisp.org>
13240
13241         ptsname: Move AC_LIBOBJ invocations to module description.
13242         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13243         invocations from here...
13244         * modules/ptsname (configure.ac): ... to here.
13245
13246 2011-05-21  Bruno Haible  <bruno@clisp.org>
13247
13248         pread: Move AC_LIBOBJ invocations to module description.
13249         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13250         * modules/pread (configure.ac): ... to here.
13251
13252 2011-05-21  Bruno Haible  <bruno@clisp.org>
13253
13254         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13255         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13256         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13257         * modules/posix_spawn (configure.ac): ... to here.
13258         * modules/posix_spawnp (configure.ac): ... and here.
13259
13260 2011-05-21  Bruno Haible  <bruno@clisp.org>
13261
13262         popen: Move AC_LIBOBJ invocations to module description.
13263         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13264         invocations from here...
13265         * modules/popen (configure.ac): ... to here.
13266
13267 2011-05-21  Bruno Haible  <bruno@clisp.org>
13268
13269         poll: Move AC_LIBOBJ invocations to module description.
13270         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13271         invocations from here...
13272         * modules/poll (configure.ac): ... to here.
13273
13274 2011-05-21  Bruno Haible  <bruno@clisp.org>
13275
13276         pipe-posix: Move AC_LIBOBJ invocations to module description.
13277         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13278         * modules/pipe-posix (configure.ac): ... to here.
13279
13280 2011-05-21  Bruno Haible  <bruno@clisp.org>
13281
13282         openat: Respect rules for use of AC_LIBOBJ.
13283         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13284         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13285         * modules/openat (configure.ac): ... to here.
13286
13287 2011-05-21  Bruno Haible  <bruno@clisp.org>
13288
13289         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13290         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13291         invocation from here...
13292         * modules/obstack-printf (configure.ac): ... to here.
13293         * modules/obstack-printf-posix (configure.ac): ... and here.
13294
13295 2011-05-21  Bruno Haible  <bruno@clisp.org>
13296
13297         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13298         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13299         from here...
13300         * modules/nl_langinfo (configure.ac): ... to here.
13301
13302 2011-05-21  Bruno Haible  <bruno@clisp.org>
13303
13304         nanosleep: Move AC_LIBOBJ invocations to module description.
13305         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13306         gl_PREREQ_NANOSLEEP invocations from here...
13307         * modules/nanosleep (configure.ac): ... to here.
13308
13309 2011-05-21  Bruno Haible  <bruno@clisp.org>
13310
13311         mountlist: Move AC_LIBOBJ invocations to module description.
13312         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13313         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13314         * modules/mountlist (configure.ac): ... to here.
13315
13316 2011-05-21  Bruno Haible  <bruno@clisp.org>
13317
13318         mktime: Respect rules for use of AC_LIBOBJ.
13319         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
13320         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
13321         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
13322         (gl_FUNC_MKTIME_INTERNAL): ... and here...
13323         * modules/mktime (configure.ac): ... to here.
13324         * modules/mktime-internal (configure.ac): ... and here.
13325         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
13326
13327 2011-05-21  Bruno Haible  <bruno@clisp.org>
13328
13329         mkstemps: Move AC_LIBOBJ invocations to module description.
13330         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
13331         here...
13332         * modules/mkstemps (configure.ac): ... to here.
13333
13334 2011-05-21  Bruno Haible  <bruno@clisp.org>
13335
13336         mkstemp: Move AC_LIBOBJ invocations to module description.
13337         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
13338         gl_PREREQ_MKSTEMP invocations from here...
13339         * modules/mkstemp (configure.ac): ... to here.
13340
13341 2011-05-21  Bruno Haible  <bruno@clisp.org>
13342
13343         mkostemps: Move AC_LIBOBJ invocations to module description.
13344         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
13345         here...
13346         * modules/mkostemps (configure.ac): ... to here.
13347
13348 2011-05-21  Bruno Haible  <bruno@clisp.org>
13349
13350         mkostemp: Move AC_LIBOBJ invocations to module description.
13351         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
13352         gl_PREREQ_MKOSTEMP invocations from here...
13353         * modules/mkostemp (configure.ac): ... to here.
13354
13355 2011-05-21  Bruno Haible  <bruno@clisp.org>
13356
13357         mknod: Move AC_LIBOBJ invocations to module description.
13358         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13359         * modules/mknod (configure.ac): ... to here.
13360
13361 2011-05-21  Bruno Haible  <bruno@clisp.org>
13362
13363         mkfifoat: Move AC_LIBOBJ invocations to module description.
13364         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13365         here...
13366         * modules/mkfifoat (configure.ac): ... to here.
13367
13368 2011-05-21  Bruno Haible  <bruno@clisp.org>
13369
13370         mkfifo: Respect rules for use of AC_LIBOBJ.
13371         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13372         here...
13373         * modules/mkfifo (configure.ac): ... to here.
13374
13375 2011-05-21  Bruno Haible  <bruno@clisp.org>
13376
13377         mkdtemp: Move AC_LIBOBJ invocations to module description.
13378         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13379         invocations from here...
13380         * modules/mkdtemp (configure.ac): ... to here.
13381
13382 2011-05-21  Bruno Haible  <bruno@clisp.org>
13383
13384         mkdir: Move AC_LIBOBJ invocations to module description.
13385         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13386         * modules/mkdir (configure.ac): ... to here.
13387
13388 2011-05-21  Bruno Haible  <bruno@clisp.org>
13389
13390         memset: Move AC_LIBOBJ invocations to module description.
13391         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13392         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13393         here...
13394         * modules/memset (configure.ac): ... to here.
13395
13396 2011-05-21  Bruno Haible  <bruno@clisp.org>
13397
13398         memrchr: Move AC_LIBOBJ invocations to module description.
13399         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
13400         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
13401         here...
13402         * modules/memrchr (configure.ac): ... to here.
13403
13404 2011-05-21  Bruno Haible  <bruno@clisp.org>
13405
13406         mempcpy: Move AC_LIBOBJ invocations to module description.
13407         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
13408         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
13409         here...
13410         * modules/mempcpy (configure.ac): ... to here.
13411
13412 2011-05-21  Bruno Haible  <bruno@clisp.org>
13413
13414         memmove: Move AC_LIBOBJ invocations to module description.
13415         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
13416         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
13417         here...
13418         * modules/memmove (configure.ac): ... to here.
13419
13420 2011-05-21  Bruno Haible  <bruno@clisp.org>
13421
13422         memmem*: Move AC_LIBOBJ invocations to module description.
13423         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
13424         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
13425         here...
13426         (gl_FUNC_MEMMEM): ... and here...
13427         * modules/memmem-simple (configure.ac): ... to here.
13428         * modules/memmem (configure.ac): ... and here.
13429
13430 2011-05-21  Bruno Haible  <bruno@clisp.org>
13431
13432         memcpy: Move AC_LIBOBJ invocations to module description.
13433         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
13434         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
13435         here...
13436         * modules/memcpy (configure.ac): ... to here.
13437
13438 2011-05-21  Bruno Haible  <bruno@clisp.org>
13439
13440         memcmp: Simplify autoconf macro.
13441         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
13442         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
13443         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
13444
13445 2011-05-21  Bruno Haible  <bruno@clisp.org>
13446
13447         memcmp: Move AC_LIBOBJ invocations to module description.
13448         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
13449         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
13450         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
13451         * modules/memcmp (configure.ac): ... to here.
13452         (Depends-on): Update conditions.
13453
13454 2011-05-21  Bruno Haible  <bruno@clisp.org>
13455
13456         memchr: Respect rules for use of AC_LIBOBJ.
13457         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
13458         invocations from here...
13459         * modules/memchr (configure.ac): ... to here.
13460
13461 2011-05-21  Bruno Haible  <bruno@clisp.org>
13462
13463         mbtowc: Move AC_LIBOBJ invocations to module description.
13464         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
13465         invocations from here...
13466         * modules/mbtowc (configure.ac): ... to here.
13467
13468 2011-05-21  Bruno Haible  <bruno@clisp.org>
13469
13470         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
13471         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
13472         gl_PREREQ_MBSRTOWCS invocations from here...
13473         * modules/mbsrtowcs (configure.ac): ... to here.
13474
13475 2011-05-21  Bruno Haible  <bruno@clisp.org>
13476
13477         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
13478         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
13479         gl_PREREQ_MBSNRTOWCS invocations from here...
13480         * modules/mbsnrtowcs (configure.ac): ... to here.
13481
13482 2011-05-21  Bruno Haible  <bruno@clisp.org>
13483
13484         mbsinit: Move AC_LIBOBJ invocations to module description.
13485         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
13486         invocations from here...
13487         * modules/mbsinit (configure.ac): ... to here.
13488
13489 2011-05-21  Bruno Haible  <bruno@clisp.org>
13490
13491         mbrlen: Move AC_LIBOBJ invocations to module description.
13492         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
13493         invocations from here...
13494         * modules/mbrlen (configure.ac): ... to here.
13495
13496 2011-05-21  Bruno Haible  <bruno@clisp.org>
13497
13498         mbrtowc: Respect rules for use of AC_LIBOBJ.
13499         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
13500         invocations from here...
13501         * modules/mbrtowc (configure.ac): ... to here.
13502
13503 2011-05-21  Bruno Haible  <bruno@clisp.org>
13504
13505         malloc-*: Move AC_LIBOBJ invocations to module description.
13506         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13507         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13508         AC_LIBOBJ invocations from here...
13509         * modules/malloc-gnu (configure.ac): ... to here.
13510         * modules/malloc-posix (configure.ac): ... and here.
13511
13512 2011-05-21  Bruno Haible  <bruno@clisp.org>
13513
13514         lstat, openat: Respect rules for use of AC_LIBOBJ.
13515         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13516         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13517         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13518         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13519         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13520         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13521         here.
13522         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13523
13524 2011-05-21  Bruno Haible  <bruno@clisp.org>
13525
13526         lseek: Move AC_LIBOBJ invocations to module description.
13527         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13528         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13529         * modules/lseek (configure.ac): ... to here.
13530
13531 2011-05-21  Bruno Haible  <bruno@clisp.org>
13532
13533         linkat: Move AC_LIBOBJ invocations to module description.
13534         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13535         here...
13536         * modules/linkat (configure.ac): ... to here.
13537
13538 2011-05-21  Bruno Haible  <bruno@clisp.org>
13539
13540         link: Respect rules for use of AC_LIBOBJ.
13541         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13542         * modules/link (configure.ac): ... to here.
13543
13544 2011-05-21  Bruno Haible  <bruno@clisp.org>
13545
13546         lchown: Move AC_LIBOBJ invocations to module description.
13547         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13548         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13549         * modules/lchown (configure.ac): ... to here.
13550
13551 2011-05-21  Bruno Haible  <bruno@clisp.org>
13552
13553         iswctype: Move AC_LIBOBJ invocations to module description.
13554         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13555         here...
13556         * modules/iswctype (configure.ac): ... to here.
13557
13558 2011-05-21  Bruno Haible  <bruno@clisp.org>
13559
13560         iswblank: Move AC_LIBOBJ invocations to module description.
13561         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13562         here...
13563         * modules/iswblank (configure.ac): ... to here.
13564
13565 2011-05-21  Bruno Haible  <bruno@clisp.org>
13566
13567         atanl: Move AC_LIBOBJ invocations to module description.
13568         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13569         * modules/atanl (configure.ac): ... to here.
13570
13571 2011-05-21  Bruno Haible  <bruno@clisp.org>
13572
13573         acosl: Move AC_LIBOBJ invocations to module description.
13574         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13575         * modules/acosl (configure.ac): ... to here.
13576
13577 2011-05-21  Bruno Haible  <bruno@clisp.org>
13578
13579         asinl: Respect rules for use of AC_LIBOBJ.
13580         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13581         * modules/asinl (configure.ac): ... to here.
13582
13583 2011-05-21  Bruno Haible  <bruno@clisp.org>
13584
13585         tanl: Move AC_LIBOBJ invocations to module description.
13586         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13587         * modules/tanl (configure.ac): ... to here.
13588
13589 2011-05-21  Bruno Haible  <bruno@clisp.org>
13590
13591         cosl: Move AC_LIBOBJ invocations to module description.
13592         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13593         * modules/cosl (configure.ac): ... to here.
13594
13595 2011-05-21  Bruno Haible  <bruno@clisp.org>
13596
13597         sinl: Move AC_LIBOBJ invocations to module description.
13598         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13599         * modules/sinl (configure.ac): ... to here.
13600
13601 2011-05-21  Bruno Haible  <bruno@clisp.org>
13602
13603         logl: Move AC_LIBOBJ invocations to module description.
13604         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13605         * modules/logl (configure.ac): ... to here.
13606
13607 2011-05-21  Bruno Haible  <bruno@clisp.org>
13608
13609         expl: Move AC_LIBOBJ invocations to module description.
13610         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13611         * modules/expl (configure.ac): ... to here.
13612
13613 2011-05-21  Bruno Haible  <bruno@clisp.org>
13614
13615         roundl: Move AC_LIBOBJ invocations to module description.
13616         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13617         * modules/roundl (configure.ac): ... to here.
13618
13619 2011-05-21  Bruno Haible  <bruno@clisp.org>
13620
13621         round: Move AC_LIBOBJ invocations to module description.
13622         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13623         * modules/round (configure.ac): ... to here.
13624
13625 2011-05-21  Bruno Haible  <bruno@clisp.org>
13626
13627         roundf: Move AC_LIBOBJ invocations to module description.
13628         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13629         * modules/roundf (configure.ac): ... to here.
13630
13631 2011-05-21  Bruno Haible  <bruno@clisp.org>
13632
13633         truncl: Move AC_LIBOBJ invocations to module description.
13634         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13635         * modules/truncl (configure.ac): ... to here.
13636
13637 2011-05-21  Bruno Haible  <bruno@clisp.org>
13638
13639         trunc: Move AC_LIBOBJ invocations to module description.
13640         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13641         * modules/trunc (configure.ac): ... to here.
13642
13643 2011-05-21  Bruno Haible  <bruno@clisp.org>
13644
13645         truncf: Move AC_LIBOBJ invocations to module description.
13646         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13647         * modules/truncf (configure.ac): ... to here.
13648
13649 2011-05-21  Bruno Haible  <bruno@clisp.org>
13650
13651         ceill: Move AC_LIBOBJ invocations to module description.
13652         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13653         * modules/ceill (configure.ac): ... to here.
13654
13655 2011-05-21  Bruno Haible  <bruno@clisp.org>
13656
13657         ceil: Move AC_LIBOBJ invocations to module description.
13658         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
13659         * modules/ceil (configure.ac): ... to here.
13660
13661 2011-05-21  Bruno Haible  <bruno@clisp.org>
13662
13663         ceilf: Move AC_LIBOBJ invocations to module description.
13664         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
13665         * modules/ceilf (configure.ac): ... to here.
13666
13667 2011-05-21  Bruno Haible  <bruno@clisp.org>
13668
13669         floorl: Respect rules for use of AC_LIBOBJ.
13670         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
13671         * modules/floorl (configure.ac): ... to here.
13672
13673 2011-05-21  Bruno Haible  <bruno@clisp.org>
13674
13675         floor: Respect rules for use of AC_LIBOBJ.
13676         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
13677         * modules/floor (configure.ac): ... to here.
13678
13679 2011-05-21  Bruno Haible  <bruno@clisp.org>
13680
13681         floorf: Move AC_LIBOBJ invocations to module description.
13682         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
13683         * modules/floorf (configure.ac): ... to here.
13684
13685 2011-05-20  Bruno Haible  <bruno@clisp.org>
13686
13687         sqrtl: Respect rules for use of AC_LIBOBJ.
13688         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
13689         * modules/sqrtl (configure.ac): ... to here.
13690
13691 2011-05-20  Bruno Haible  <bruno@clisp.org>
13692
13693         ldexpl: Respect rules for use of AC_LIBOBJ.
13694         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
13695         * modules/ldexpl (configure.ac): ... to here.
13696
13697 2011-05-20  Bruno Haible  <bruno@clisp.org>
13698
13699         frexpl*: Respect rules for use of AC_LIBOBJ.
13700         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
13701         invocation from here...
13702         * modules/frexpl (configure.ac): ... to here.
13703         * modules/frexpl-nolibm (configure.ac): ... and here.
13704
13705 2011-05-20  Bruno Haible  <bruno@clisp.org>
13706
13707         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
13708         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
13709         invocation from here...
13710         * modules/frexp (configure.ac): ... to here.
13711         * modules/frexp-nolibm (configure.ac): ... and here.
13712
13713 2011-05-20  Bruno Haible  <bruno@clisp.org>
13714
13715         isnan: Respect rules for use of AC_LIBOBJ.
13716         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
13717         invocations here.
13718         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
13719         REPLACE_ISNAN.
13720         * modules/isnand (configure.ac): Likewise.
13721         * modules/isnanl (configure.ac): Likewise.
13722
13723 2011-05-20  Bruno Haible  <bruno@clisp.org>
13724
13725         isnanl*: Respect rules for use of AC_LIBOBJ.
13726         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
13727         invocation from here...
13728         * modules/isnanl (configure.ac): ... to here.
13729         * modules/isnanl-nolibm (configure.ac): ... and here.
13730
13731 2011-05-20  Bruno Haible  <bruno@clisp.org>
13732
13733         isnand*: Move AC_LIBOBJ invocations to module description.
13734         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
13735         invocation from here...
13736         * modules/isnand (configure.ac): ... to here.
13737         * modules/isnand-nolibm (configure.ac): ... and here.
13738
13739 2011-05-20  Bruno Haible  <bruno@clisp.org>
13740
13741         isnanf*: Move AC_LIBOBJ invocations to module description.
13742         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
13743         invocation from here...
13744         * modules/isnanf (configure.ac): ... to here.
13745         * modules/isnanf-nolibm (configure.ac): ... and here.
13746
13747 2011-05-20  Bruno Haible  <bruno@clisp.org>
13748
13749         isnan*: Separate the AC_LIBOBJ invocations.
13750         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
13751         AC_LIBOBJ invocation.
13752         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
13753         here.
13754         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
13755         AC_LIBOBJ invocation.
13756         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
13757         here.
13758         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
13759         AC_LIBOBJ invocation.
13760         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
13761         here.
13762         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
13763
13764 2011-05-08  Bruno Haible  <bruno@clisp.org>
13765
13766         isinf: Move AC_LIBOBJ invocations to module description.
13767         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
13768         * modules/isinf (configure.ac): ... to here.
13769
13770 2011-05-08  Bruno Haible  <bruno@clisp.org>
13771
13772         isfinite: Move AC_LIBOBJ invocations to module description.
13773         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
13774         * modules/isfinite (configure.ac): ... to here.
13775
13776 2011-05-08  Bruno Haible  <bruno@clisp.org>
13777
13778         isblank: Move AC_LIBOBJ invocations to module description.
13779         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
13780         here...
13781         * modules/isblank (configure.ac): ... to here.
13782
13783 2011-05-08  Bruno Haible  <bruno@clisp.org>
13784
13785         isapipe: Move AC_LIBOBJ invocations to module description.
13786         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
13787         gl_PREREQ_ISAPIPE invocations from here...
13788         * modules/isapipe (configure.ac): ... to here.
13789         (Depends-on): Update condition.
13790
13791 2011-05-08  Bruno Haible  <bruno@clisp.org>
13792
13793         ioctl: Move AC_LIBOBJ invocations to module description.
13794         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
13795         invocations from here...
13796         * modules/ioctl (configure.ac): ... to here.
13797         (Depends-on): Update condition.
13798
13799 2011-05-08  Bruno Haible  <bruno@clisp.org>
13800
13801         imaxdiv: Move AC_LIBOBJ invocations to module description.
13802         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
13803         invocations from here...
13804         * modules/imaxdiv (configure.ac): ... to here.
13805
13806 2011-05-08  Bruno Haible  <bruno@clisp.org>
13807
13808         imaxabs: Move AC_LIBOBJ invocations to module description.
13809         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
13810         invocations from here...
13811         * modules/imaxabs (configure.ac): ... to here.
13812
13813 2011-05-08  Bruno Haible  <bruno@clisp.org>
13814
13815         getaddrinfo: Move AC_LIBOBJ invocations to module description.
13816         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
13817         AC_LIBOBJ invocations from here...
13818         * modules/getaddrinfo (configure.ac): ... to here.
13819         (Depends-on): Add conditions.
13820
13821 2011-05-08  Bruno Haible  <bruno@clisp.org>
13822
13823         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13824         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
13825         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13826         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
13827         (gl_PREREQ_INET_PTON): ... from here.
13828         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
13829         gl_PREREQ_INET_PTON here.
13830         (Depends-on): Update condition.
13831
13832 2011-05-08  Bruno Haible  <bruno@clisp.org>
13833
13834         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13835         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
13836         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13837         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
13838         (gl_PREREQ_INET_NTOP): ... from here.
13839         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
13840         gl_PREREQ_INET_NTOP here.
13841         (Depends-on): Update condition.
13842
13843 2011-05-08  Bruno Haible  <bruno@clisp.org>
13844
13845         iconv_open: Move AC_LIBOBJ invocations to module description.
13846         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
13847         AC_LIBOBJ invocations from here...
13848         * modules/iconv_open (configure.ac): ... to here.
13849
13850 2011-05-08  Bruno Haible  <bruno@clisp.org>
13851
13852         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
13853         If module 'iconv_open' is among the main modules and module
13854         'iconv_open-utf' is among the tests dependencies, then
13855         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
13856         return the special iconv_t values. Therefore iconv() and iconv_close()
13857         must support these special iconv_t values, already in lib, not only in
13858         tests.
13859         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
13860         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
13861         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
13862         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
13863         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
13864         (Depends-on): Add the dependencies of iconv_open-utf.
13865         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
13866         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
13867         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
13868
13869 2011-05-08  Bruno Haible  <bruno@clisp.org>
13870
13871         group-member: Move AC_LIBOBJ invocations to module description.
13872         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
13873         gl_PREREQ_GROUP_MEMBER invocations from here...
13874         * modules/group-member (configure.ac): ... to here.
13875
13876 2011-05-08  Bruno Haible  <bruno@clisp.org>
13877
13878         grantpt: Move AC_LIBOBJ invocations to module description.
13879         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
13880         invocations from here...
13881         * modules/grantpt (configure.ac): ... to here.
13882
13883 2011-05-08  Bruno Haible  <bruno@clisp.org>
13884
13885         glob: Move AC_LIBOBJ invocations to module description.
13886         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
13887         from here...
13888         * modules/glob (configure.ac): ... to here.
13889
13890 2011-05-08  Bruno Haible  <bruno@clisp.org>
13891
13892         getusershell: Move AC_LIBOBJ invocations to module description.
13893         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
13894         Move AC_LIBOBJ invocation from here...
13895         * modules/getusershell (configure.ac): ... to here.
13896         (Depends-on): Update condition.
13897
13898 2011-05-08  Bruno Haible  <bruno@clisp.org>
13899
13900         gettimeofday: Move AC_LIBOBJ invocations to module description.
13901         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
13902         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
13903         gl_PREREQ_GETTIMEOFDAY invocations from here...
13904         * modules/gettimeofday (configure.ac): ... to here.
13905
13906 2011-05-08  Bruno Haible  <bruno@clisp.org>
13907
13908         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
13909         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
13910         just gl_FUNC_TZSET.
13911         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
13912         (gl_FUNC_TZSET_CLOBBER): Remove actions.
13913         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
13914         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
13915
13916 2011-05-08  Bruno Haible  <bruno@clisp.org>
13917
13918         getsubopt: Move AC_LIBOBJ invocations to module description.
13919         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
13920         gl_PREREQ_GETSUBOPT invocations from here...
13921         * modules/getsubopt (configure.ac): ... to here.
13922
13923 2011-05-08  Bruno Haible  <bruno@clisp.org>
13924
13925         getpass-gnu: Move AC_LIBOBJ invocations to module description.
13926         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
13927         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
13928         * modules/getpass-gnu (configure.ac): ... to here.
13929
13930 2011-05-08  Bruno Haible  <bruno@clisp.org>
13931
13932         getpass: Move AC_LIBOBJ invocations to module description.
13933         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
13934         gl_PREREQ_GETPASS invocations from here...
13935         * modules/getpass (configure.ac): ... to here.
13936
13937 2011-05-08  Bruno Haible  <bruno@clisp.org>
13938
13939         getpagesize: Move AC_LIBOBJ invocations to module description.
13940         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
13941         from here...
13942         * modules/getpagesize (configure.ac): ... to here.
13943
13944 2011-05-08  Bruno Haible  <bruno@clisp.org>
13945
13946         getopt: Move AC_LIBOBJ invocations to module description.
13947         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
13948         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
13949         invocations from here...
13950         * modules/getopt-gnu (configure.ac): ... to here.
13951         * modules/getopt-posix (configure.ac): ... and here.
13952         (Depends-on): Update condition.
13953
13954 2011-05-08  Bruno Haible  <bruno@clisp.org>
13955
13956         getopt, argp: Respect rules for use of AC_LIBOBJ.
13957         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
13958         (gl_REPLACE_GETOPT_ALWAYS): New macro.
13959         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
13960         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
13961
13962 2011-05-08  Bruno Haible  <bruno@clisp.org>
13963
13964         getlogin_r: Move AC_LIBOBJ invocations to module description.
13965         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
13966         gl_PREREQ_GETLOGIN_R invocations from here...
13967         * modules/getlogin_r (configure.ac): ... to here.
13968
13969 2011-05-08  Bruno Haible  <bruno@clisp.org>
13970
13971         getlogin: Move AC_LIBOBJ invocations to module description.
13972         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
13973         here...
13974         * modules/getlogin (configure.ac): ... to here.
13975
13976 2011-05-08  Bruno Haible  <bruno@clisp.org>
13977
13978         getloadavg: Move AC_LIBOBJ invocations to module description.
13979         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
13980         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
13981         * modules/getloadavg (configure.ac): ... to here.
13982
13983 2011-05-08  Bruno Haible  <bruno@clisp.org>
13984
13985         gethrxtime: Move AC_LIBOBJ invocations to module description.
13986         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
13987         LIB_GETHRXTIME from here...
13988         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
13989         invocations from here...
13990         * modules/gethrxtime (configure.ac): ... to here.
13991
13992 2011-05-08  Bruno Haible  <bruno@clisp.org>
13993
13994         gethostname: Move AC_LIBOBJ invocations to module description.
13995         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
13996         gl_PREREQ_GETHOSTNAME invocations from here...
13997         * modules/gethostname (configure.ac): ... to here.
13998
13999 2011-05-08  Bruno Haible  <bruno@clisp.org>
14000
14001         getgroups: Move AC_LIBOBJ invocations to module description.
14002         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14003         here...
14004         * modules/getgroups (configure.ac): ... to here.
14005
14006 2011-05-08  Bruno Haible  <bruno@clisp.org>
14007
14008         getdtablesize: Move AC_LIBOBJ invocations to module description.
14009         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14010         invocation from here...
14011         * modules/getdtablesize (configure.ac): ... to here.
14012
14013 2011-05-08  Bruno Haible  <bruno@clisp.org>
14014
14015         getdomainname: Move AC_LIBOBJ invocations to module description.
14016         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14017         gl_PREREQ_GETDOMAINNAME invocations from here...
14018         * modules/getdomainname (configure.ac): ... to here.
14019
14020 2011-05-08  Bruno Haible  <bruno@clisp.org>
14021
14022         getline: Move AC_LIBOBJ invocations to module description.
14023         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14024         invocations from here...
14025         * modules/getline (configure.ac): ... to here.
14026
14027 2011-05-08  Bruno Haible  <bruno@clisp.org>
14028
14029         getline: Simplify.
14030         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14031         It's already handled through the module dependency.
14032
14033 2011-05-08  Bruno Haible  <bruno@clisp.org>
14034
14035         getdelim: Move AC_LIBOBJ invocations to module description.
14036         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14037         and gl_PREREQ_GETDELIM invocations from here...
14038         * modules/getdelim (configure.ac): ... to here.
14039         (Depends-on): Fix condition.
14040
14041 2011-05-08  Bruno Haible  <bruno@clisp.org>
14042
14043         getcwd: Move AC_LIBOBJ invocations to module description.
14044         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14045         invocations from here...
14046         * modules/getcwd (configure.ac): ... to here.
14047
14048 2011-05-08  Bruno Haible  <bruno@clisp.org>
14049
14050         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14051         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14052         here...
14053         * modules/getcwd-lgpl (configure.ac): ... to here.
14054
14055 2011-05-07  Bruno Haible  <bruno@clisp.org>
14056
14057         crypto/gc: Move AC_LIBOBJ invocations to module description.
14058         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14059         * modules/crypto/gc (configure.ac): ... to here.
14060
14061 2011-05-07  Bruno Haible  <bruno@clisp.org>
14062
14063         fwriting: Move AC_LIBOBJ invocations to module description.
14064         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14065         here...
14066         * modules/fwriting (configure.ac): ... to here.
14067
14068 2011-05-07  Bruno Haible  <bruno@clisp.org>
14069
14070         fwritable: Move AC_LIBOBJ invocations to module description.
14071         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14072         here...
14073         * modules/fwritable (configure.ac): ... to here.
14074
14075 2011-05-07  Bruno Haible  <bruno@clisp.org>
14076
14077         futimens: Move AC_LIBOBJ invocations to module description.
14078         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14079         here...
14080         * modules/futimens (configure.ac): ... to here.
14081
14082 2011-05-07  Bruno Haible  <bruno@clisp.org>
14083
14084         ftruncate: Move AC_LIBOBJ invocations to module description.
14085         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14086         gl_PREREQ_FTRUNCATE invocations from here...
14087         * modules/ftruncate (configure.ac): ... to here.
14088
14089 2011-05-07  Bruno Haible  <bruno@clisp.org>
14090
14091         fsync: Move AC_LIBOBJ invocations to module description.
14092         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14093         invocations from here...
14094         * modules/fsync (configure.ac): ... to here.
14095
14096 2011-05-07  Bruno Haible  <bruno@clisp.org>
14097
14098         fsusage: Move AC_LIBOBJ invocations to module description.
14099         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14100         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14101         * modules/fsusage (configure.ac): ... to here.
14102
14103 2011-05-07  Bruno Haible  <bruno@clisp.org>
14104
14105         freopen: Move AC_LIBOBJ invocations to module description.
14106         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14107         invocations from here...
14108         * modules/freopen (configure.ac): ... to here.
14109
14110 2011-05-07  Bruno Haible  <bruno@clisp.org>
14111
14112         free: Move AC_LIBOBJ invocations to module description.
14113         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14114         invocations from here...
14115         * modules/free (configure.ac): ... to here.
14116
14117 2011-05-07  Bruno Haible  <bruno@clisp.org>
14118
14119         freadable: Move AC_LIBOBJ invocations to module description.
14120         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14121         here...
14122         * modules/freadable (configure.ac): ... to here.
14123
14124 2011-05-07  Bruno Haible  <bruno@clisp.org>
14125
14126         fpurge: Move AC_LIBOBJ invocations to module description.
14127         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14128         invocations from here...
14129         * modules/fpurge (configure.ac): ... to here.
14130
14131 2011-05-07  Bruno Haible  <bruno@clisp.org>
14132
14133         fpending: Move AC_LIBOBJ invocations to module description.
14134         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14135         gl_FUNC_FPENDING.
14136         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14137         invocations from here...
14138         * modules/fpending (configure.ac): ... to here.
14139
14140 2011-05-07  Bruno Haible  <bruno@clisp.org>
14141
14142         fopen: Move AC_LIBOBJ invocations to module description.
14143         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14144         invocations from here...
14145         * modules/fopen (configure.ac): ... to here.
14146
14147 2011-05-07  Bruno Haible  <bruno@clisp.org>
14148
14149         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14150         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14151         gl_FUNC_FNMATCH_POSIX.
14152         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14153         invocations from here...
14154         * modules/fnmatch (configure.ac): ... to here.
14155         * modules/fnmatch-gnu (configure.ac): ... and here.
14156
14157 2011-05-07  Bruno Haible  <bruno@clisp.org>
14158
14159         flock: Move AC_LIBOBJ invocations to module description.
14160         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14161         invocations from here...
14162         * modules/flock (configure.ac): ... to here.
14163
14164 2011-05-07  Bruno Haible  <bruno@clisp.org>
14165
14166         fileblocks: Move AC_LIBOBJ invocations to module description.
14167         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14168         gl_PREREQ_FILEBLOCKS invocations from here...
14169         * modules/fileblocks (configure.ac): ... to here.
14170
14171 2011-05-06  Bruno Haible  <bruno@clisp.org>
14172
14173         fflush: Move AC_LIBOBJ invocations to module description.
14174         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14175         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14176         invocations from here...
14177         * modules/fflush (configure.ac): ... to here.
14178
14179 2011-05-06  Bruno Haible  <bruno@clisp.org>
14180
14181         fdopendir: Move AC_LIBOBJ invocations to module description.
14182         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14183         here...
14184         * modules/fdopendir (configure.ac): ... to here.
14185         (Depends-on): Improve conditions.
14186
14187 2011-05-06  Bruno Haible  <bruno@clisp.org>
14188
14189         _Exit: Move AC_LIBOBJ invocations to module description.
14190         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14191         invocations from here...
14192         * modules/_Exit (configure.ac): ... to here.
14193
14194 2011-05-21  Bruno Haible  <bruno@clisp.org>
14195
14196         euidaccess: Respect rules for use of AC_LIBOBJ.
14197         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14198         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14199         from here...
14200         * modules/euidaccess (configure.ac): ... to here.
14201
14202 2011-05-06  Bruno Haible  <bruno@clisp.org>
14203
14204         error: Move AC_LIBOBJ invocations to module description.
14205         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14206         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14207         invocations from here...
14208         * modules/error (configure.ac): ... to here.
14209
14210 2011-05-06  Bruno Haible  <bruno@clisp.org>
14211
14212         duplocale: Move AC_LIBOBJ invocations to module description.
14213         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14214         gl_PREREQ_DUPLOCALE invocations from here...
14215         * modules/duplocale (configure.ac): ... to here.
14216
14217 2011-05-05  Bruno Haible  <bruno@clisp.org>
14218
14219         dirfd: Move AC_LIBOBJ invocations to module description.
14220         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14221         gl_FUNC_DIRFD.
14222         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14223         here...
14224         * modules/dirfd (configure.ac): ... to here.
14225         (Depends-on): Fix condition.
14226
14227 2011-05-05  Bruno Haible  <bruno@clisp.org>
14228
14229         chown: Respect rules for use of AC_LIBOBJ.
14230         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14231         * modules/chown (configure.ac): ... to here.
14232
14233 2011-05-05  Bruno Haible  <bruno@clisp.org>
14234
14235         chdir-long: Move AC_LIBOBJ invocations to module description.
14236         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14237         gl_PREREQ_CHDIR_LONG invocations from here...
14238         * modules/chdir-long (configure.ac): ... to here.
14239
14240 2011-05-05  Bruno Haible  <bruno@clisp.org>
14241
14242         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14243         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14244         from here...
14245         * modules/canonicalize-lgpl (configure.ac): ... to here.
14246
14247 2011-05-05  Bruno Haible  <bruno@clisp.org>
14248
14249         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14250         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14251         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14252         REPLACE_CALLOC.
14253         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14254         * modules/calloc-gnu (configure.ac): Likewise.
14255
14256 2011-05-05  Bruno Haible  <bruno@clisp.org>
14257
14258         btowc: Move AC_LIBOBJ invocations to module description.
14259         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14260         invocations from here...
14261         * modules/btowc (configure.ac): ... to here.
14262
14263 2011-05-21  Bruno Haible  <bruno@clisp.org>
14264
14265         atexit: Move AC_LIBOBJ invocations to module description.
14266         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14267         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14268         here...
14269         * modules/atexit (configure.ac): ... to here.
14270
14271 2011-05-05  Bruno Haible  <bruno@clisp.org>
14272
14273         atoll: Move AC_LIBOBJ invocations to module description.
14274         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14275         invocations from here...
14276         * modules/atoll (configure.ac): ... to here.
14277
14278 2011-05-05  Bruno Haible  <bruno@clisp.org>
14279
14280         argz: Move AC_LIBOBJ invocations to module description.
14281         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14282         * modules/argz (configure.ac): ... to here.
14283
14284 2011-05-05  Bruno Haible  <bruno@clisp.org>
14285
14286         alphasort: Move AC_LIBOBJ invocations to module description.
14287         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14288         gl_PREREQ_ALPHASORT invocations from here...
14289         * modules/alphasort (configure.ac): ... to here.
14290
14291 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14292
14293         verify: new macro verify_expr; verify_true deprecated
14294         * NEWS: Mention this.
14295         * doc/verify.texi (Compile-time Assertions): Document this.
14296         * lib/verify.h (verify_true): Deprecate.
14297         (verify_expr): New macro.
14298         * tests/test-verify.c (function): Test verify_expr.
14299
14300 2011-06-14  Jim Meyering  <meyering@redhat.com>
14301
14302         init.sh: give more portable redirection-related advice in a comment
14303         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14304         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14305         for lots of discussion.  Stefano Lattarini suggested the solution
14306         of putting "9>&2" after the command.  Reported by Bruno Haible.
14307
14308 2011-06-13  Bruno Haible  <bruno@clisp.org>
14309
14310         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14311         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14312         'none'.
14313
14314 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14315
14316         ftoastr: use strtof only if HAVE_STRTOF
14317         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14318         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14319         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
14320         * modules/ftoastr (configure.ac): Check for strtof.
14321
14322 2011-06-13  Bruno Haible  <bruno@clisp.org>
14323
14324         gnulib-tool: Addendum to 2011-06-08 commit.
14325         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
14326         and --witness-c-macro have been given, augment AM_CPPFLAGS.
14327
14328 2011-06-13  Bruno Haible  <bruno@clisp.org>
14329
14330         fseeko: Provide a non-inline replacement of fseek().
14331         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
14332         * modules/fseeko (Depends-on): Add fseek.
14333         * modules/fseek (License): Change to LGPLv2+.
14334
14335 2011-06-13  Bruno Haible  <bruno@clisp.org>
14336
14337         ftello: Provide a non-inline replacement of ftell().
14338         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
14339         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
14340         not have ftello() (such as on mingw).
14341         * modules/ftello (Depends-on): Add ftell.
14342         * modules/ftell (License): Change to LGPLv2+.
14343
14344 2011-05-07  Bruno Haible  <bruno@clisp.org>
14345
14346         ftell: Move AC_LIBOBJ invocations to module description.
14347         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
14348         * modules/ftell (configure.ac): ... to here.
14349
14350 2011-05-07  Bruno Haible  <bruno@clisp.org>
14351
14352         ftello: Respect rules for use of AC_LIBOBJ.
14353         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
14354         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
14355         here...
14356         * modules/ftello (configure.ac): ... to here.
14357
14358 2011-05-07  Bruno Haible  <bruno@clisp.org>
14359
14360         fseeko: Simplify.
14361         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14362         (gl_FUNC_FSEEKO): Inline it here.
14363
14364 2011-05-07  Bruno Haible  <bruno@clisp.org>
14365
14366         fseek: Move AC_LIBOBJ invocations to module description.
14367         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14368         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14369         * modules/fseek (configure.ac): ... to here.
14370
14371 2011-05-07  Bruno Haible  <bruno@clisp.org>
14372
14373         fseek: Respect rules for use of AC_LIBOBJ.
14374         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14375         here...
14376         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14377
14378 2011-05-07  Bruno Haible  <bruno@clisp.org>
14379
14380         fseeko: Respect rules for use of AC_LIBOBJ.
14381         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14382         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14383         here...
14384         * modules/fseeko (configure.ac): ... to here.
14385
14386 2011-06-13  Bruno Haible  <bruno@clisp.org>
14387
14388         gnulib-tool: Allow comments in the 'Depends-on' section.
14389         * doc/gnulib.texi (Module description): Mention comment syntax in the
14390         Depends-on section.
14391         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14392
14393 2011-06-13  Bruno Haible  <bruno@clisp.org>
14394
14395         file-set.h: guard __attibute__ use, now that it's not always defined
14396         * lib/file-set.h (record_file): Use __attribute__ only with compiler
14397         versions that support it.  This fixes a coreutils build failure with
14398         the vendor cc on HP-UX 11.31.
14399
14400 2011-06-12  Bruno Haible  <bruno@clisp.org>
14401
14402         acl: Add support for HP-UX >= 11.11 JFS ACLs.
14403         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
14404         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
14405         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
14406         (acl, aclsort): New declarations.
14407         (aclv_nontrivial): New declaration.
14408         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
14409         (file_has_acl): Read also the second kind of HP-UX ACLs.
14410         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
14411         kind of HP-UX ACLs if the first kind fails.
14412         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
14413         second kind of HP-UX ACLs.
14414         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
14415         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
14416         agree.
14417         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14418         hpuxjfs.
14419         Handle hpuxjfs.
14420         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14421         hpuxjfs.
14422         Handle hpuxjfs.
14423         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14424         (func_test_same_acls): Use both lsacl and getacl.
14425         Handle hpuxjfs.
14426         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14427         (func_test_same_acls): Use both lsacl and getacl.
14428         Handle hpuxjfs.
14429
14430 2011-06-12  Bruno Haible  <bruno@clisp.org>
14431
14432         acl: Complete the 2010-08-10 fix.
14433         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
14434         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
14435         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
14436         explicitly.
14437         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
14438         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
14439
14440 2011-06-12  Bruno Haible  <bruno@clisp.org>
14441
14442         spawn-pipe tests: Comments.
14443         * tests/test-spawn-pipe-child.c (main): Update comment.
14444         Reported by James Youngman <jay@gnu.org>.
14445
14446 2011-06-11  James Youngman  <jay@gnu.org>
14447
14448         New module 'stat-size'.
14449         * modules/stat-size: New module.  Provides macros for accessing
14450         file size information in instances of struct stat.  Depends on the
14451         fileblocks module because it calls st_blocks.
14452         * lib/stat-size.h: New file, adapted from coreutils' system.h.
14453         * doc/gnulib.texi: Include stat-size.texi.
14454         * doc/stat-size.texi: Documentation for this module.
14455         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
14456         * m4/fileblocks.m4: Mention that stat-size depends on the call to
14457         AC_STRUCT_ST_BLOCKS.
14458
14459 2011-06-09  Bruno Haible  <bruno@clisp.org>
14460
14461         thread: Support pthreads-win32.
14462         * lib/glthread/thread.h (gl_thread_self): Define differently on
14463         pthreads-win32.
14464         (gl_null_thread): New declaration.
14465         (gl_thread_self_pointer): New macro.
14466         * lib/glthread/thread.c (gl_null_thread): New constant.
14467         * tests/test-lock.c: Use gl_thread_self_pointer instead of
14468         gl_thread_self.
14469         * tests/test-tls.c: Likewise.
14470         Suggested by Paul Eggert. Reported by Eric Blake.
14471
14472 2011-06-09  Bruno Haible  <bruno@clisp.org>
14473
14474         thread: Fix confusion between NULL and 0.
14475         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
14476         Reported by Paul Eggert.
14477
14478 2011-06-09  Bruno Haible  <bruno@clisp.org>
14479
14480         spawn-pipe tests: Avoid test failure on HP-UX 11.
14481         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
14482         is closed.
14483
14484 2011-06-09  Bruno Haible  <bruno@clisp.org>
14485
14486         acl tests: Fix compilation error on HP-UX 11.
14487         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
14488
14489 2011-06-09  Bruno Haible  <bruno@clisp.org>
14490
14491         rmdir: Avoid test failure on HP-UX 10.20.
14492         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
14493         EEXIST.
14494
14495 2011-06-08  Eric Blake  <eblake@redhat.com>
14496
14497         perror: fix test on mingw
14498         * modules/perror-tests (Depends-on): Add dup2.
14499
14500         strerror_r-posix: fix on MacOS
14501         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14502         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
14503         logic bug.
14504         * lib/strerror_r.c (strerror_r): Fix the bug.
14505         * lib/strerror.c (strerror): Likewise.
14506         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14507         problem.
14508         * doc/posix-functions/strerror.texi (strerror): Likewise.
14509         * doc/posix-functions/perror.texi (perror): Likewise.
14510         * tests/test-strerror.c (main): Enhance test.
14511         * tests/test-strerror_r.c (main): Likewise.
14512
14513 2011-06-08  Bruno Haible  <bruno@clisp.org>
14514
14515         gnulib-tool: Better isolation between different gnulib-tool invocations.
14516         * gnulib-tool: New option --witness-c-macro.
14517         (witness_c_macro): New variable.
14518         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14519         AM_CPPFLAGS define it as a C macro.
14520         (func_emit_tests_Makefile_am): Likewise.
14521         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14522         read it from there.
14523         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14524         m4_define, not AC_DEFUN.
14525         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14526         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14527         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14528         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14529         s|...|...|, to substitute the values of the GNULIB_* module indicator
14530         variables.
14531         * modules/dirent (Makefile.am): Likewise.
14532         * modules/fcntl-h (Makefile.am): Likewise.
14533         * modules/iconv-h (Makefile.am): Likewise.
14534         * modules/langinfo (Makefile.am): Likewise.
14535         * modules/locale (Makefile.am): Likewise.
14536         * modules/math (Makefile.am): Likewise.
14537         * modules/netdb (Makefile.am): Likewise.
14538         * modules/poll-h (Makefile.am): Likewise.
14539         * modules/pty (Makefile.am): Likewise.
14540         * modules/search (Makefile.am): Likewise.
14541         * modules/signal (Makefile.am): Likewise.
14542         * modules/spawn (Makefile.am): Likewise.
14543         * modules/stdio (Makefile.am): Likewise.
14544         * modules/stdlib (Makefile.am): Likewise.
14545         * modules/string (Makefile.am): Likewise.
14546         * modules/sys_ioctl (Makefile.am): Likewise.
14547         * modules/sys_select (Makefile.am): Likewise.
14548         * modules/sys_socket (Makefile.am): Likewise.
14549         * modules/sys_stat (Makefile.am): Likewise.
14550         * modules/sys_times (Makefile.am): Likewise.
14551         * modules/sys_utsname (Makefile.am): Likewise.
14552         * modules/sys_wait (Makefile.am): Likewise.
14553         * modules/termios (Makefile.am): Likewise.
14554         * modules/time (Makefile.am): Likewise.
14555         * modules/unistd (Makefile.am): Likewise.
14556         * modules/wchar (Makefile.am): Likewise.
14557
14558 2011-06-08  Eric Blake  <eblake@redhat.com>
14559
14560         strerror: simplify replacement
14561         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14562         * modules/strerror (configure.ac): No prereqs needed here...
14563         * modules/strerror-override (configure.ac): ...but this needs it.
14564         (Files): Add file for needed prereq macro.
14565
14566 2011-06-08  Bruno Haible  <bruno@clisp.org>
14567
14568         strerror_r-posix: Tweaks.
14569         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14570         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14571         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14572         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14573         (gl_FUNC_STRERROR_R): ... to here.
14574         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14575
14576 2011-06-07  Eric Blake  <eblake@redhat.com>
14577
14578         perror: document fixed bugs
14579         * doc/posix-functions/perror.texi (perror): Document recent
14580         patches.
14581
14582 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14583
14584         stat-time: get_stat_birthtime failure is better-defined
14585         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14586         return a timestamp whose tv_sec and tv_nsec values are both -1.
14587         Previously, the spec said only that the tv_nsec value was negative.
14588         This upward-compatible change simplifies GNU tar a bit.
14589
14590 2011-06-07  Eric Blake  <eblake@redhat.com>
14591
14592         strerror_r-posix: work around cygwin 1.7.9
14593         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14594         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14595         bug without replacing strerror_r.
14596         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14597         strerror_r is buggy, but without requiring strerror_r compilation.
14598         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14599
14600         test-perror: relax test to ignore cygwin bug
14601         * tests/test-perror2.c (main): Relax test on requiring detection
14602         of stream errors, and use unbuffered stream.
14603         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14604         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14605         * doc/posix-functions/fputc.texi (fputc): Likewise.
14606         * doc/posix-functions/fputs.texi (fputs): Likewise.
14607         * doc/posix-functions/fputws.texi (fputws): Likewise.
14608         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14609         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14610         * doc/posix-functions/getopt.texi (getopt): Likewise.
14611         * doc/posix-functions/perror.texi (perror): Likewise.
14612         * doc/posix-functions/printf.texi (printf): Likewise.
14613         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14614         * doc/posix-functions/psignal.texi (psignal): Likewise.
14615         * doc/posix-functions/putc.texi (putc): Likewise.
14616         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14617         Likewise.
14618         * doc/posix-functions/putchar.texi (putchar): Likewise.
14619         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14620         Likewise.
14621         * doc/posix-functions/puts.texi (puts): Likewise.
14622         * doc/posix-functions/putwc.texi (putwc): Likewise.
14623         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14624         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14625         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14626         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14627         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14628         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14629         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14630         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14631
14632 2011-05-22  Bruno Haible  <bruno@clisp.org>
14633
14634         strerror: Move AC_LIBOBJ invocations to module description.
14635         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14636         gl_PREREQ_STRERROR invocations from here...
14637         * modules/strerror (configure.ac): ... to here.
14638
14639 2011-05-21  Bruno Haible  <bruno@clisp.org>
14640
14641         perror: Use common idiom.
14642         * modules/perror (configure.ac): Reorder statements.
14643
14644 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14645
14646         tests: fix usage message in 'mktempd_'
14647         * tests/init.sh (mktempd_): In the usage message, use literal
14648         'mktempd_', not '$ME' (which is even undefined), as the name of
14649         the subroutine.
14650
14651 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14652
14653         tests init: new function 'fatal_', for hard errors
14654         Before this patch, the only way offered by tests/init.sh to
14655         properly signal a hard error was the `framework_failure_'
14656         function.  But the error message issued by that function,
14657         as its name would suggest, refers to a set-up failure in the
14658         testsuite, while hard errors can obviously also be due to
14659         other reasons.  The best way to fix this inconsistency is to
14660         introduce a new function with a more general error message.
14661         * tests/init.sh (fatal_): New function.
14662
14663 2011-06-06  Eric Blake  <eblake@redhat.com>
14664
14665         canonicalize-lgpl: use common idiom
14666         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
14667         over newer POSIX -Rf.
14668         Reported by Bruno Haible.
14669
14670         canonicalize-lgpl: work around AIX realpath bug
14671         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
14672         * doc/posix-functions/realpath.texi (realpath): Document it.
14673         Reported by Bruno Haible.
14674
14675         strerror: work around FreeBSD bug
14676         * lib/strerror.c (strerror): Special case 0.
14677         Reported by Bruno Haible.
14678
14679         strerror-override: avoid bloating errno module
14680         * modules/errno (Files, configure.ac): Move replacement strings...
14681         * modules/strerror-override: ...to new module.
14682         * modules/strerror (Depends-on): Add strerror-override.
14683         * modules/strerror_r-posix (Depends-on): Likewise.
14684         * MODULES.html.sh: Document new module.
14685         Reported by Bruno Haible.
14686
14687 2011-06-06  Bruno Haible  <bruno@clisp.org>
14688
14689         spawn-pipe tests: Rename program.
14690         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
14691         * tests/test-spawn-pipe-child.c: Update comment.
14692         * tests/test-spawn-pipe.sh: Update.
14693         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
14694
14695         spawn-pipe tests: Link the child program only against libc.
14696         * tests/test-spawn-pipe-child.c: New file, extracted from
14697         tests/test-spawn-pipe.c.
14698         (main): Expect only one argument.
14699         (is_open): New function, copied from tests/test-pipe.c.
14700         * tests/test-spawn-pipe.c: Don't include <errno.h>.
14701         (child_main): Remove function.
14702         (test_pipe): Pass only one argument to the child program.
14703         (main): Remove child process code. Expect the child program's name as
14704         first argument.
14705         * tests/test-spawn-pipe.sh: Pass the child program's name as first
14706         argument.
14707         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
14708         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
14709         test-spawn-pipe-child against no libraries.
14710
14711 2011-06-06  Bruno Haible  <bruno@clisp.org>
14712
14713         careadlinkat: Avoid mismatch between ssize_t and int.
14714         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
14715         * lib/careadlinkat.c (careadlinkatcwd): Define always.
14716
14717 2011-06-06  Jim Meyering  <meyering@redhat.com>
14718
14719         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
14720         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
14721         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
14722
14723 2011-06-05  Bruno Haible  <bruno@clisp.org>
14724
14725         ansi-c++-opt: Interoperability with libtool.
14726         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
14727         set the variable to "no", not to ":".
14728         * NEWS: Mention the change.
14729
14730 2011-06-05  Bruno Haible  <bruno@clisp.org>
14731
14732         acl: Fix test failure on AIX 7.
14733         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
14734         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
14735
14736 2011-06-05  Bruno Haible  <bruno@clisp.org>
14737
14738         pipe-filter-ii: Fix test failure on AIX and IRIX.
14739         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
14740         with EAGAIN, retry with a smaller buffer size.
14741
14742 2011-06-05  Bruno Haible  <bruno@clisp.org>
14743
14744         localename: Fix link dependencies.
14745         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
14746         * modules/localename-tests (Makefile.am): Link test-localename with
14747         $(LIBTHREAD).
14748
14749 2011-06-05  Bruno Haible  <bruno@clisp.org>
14750
14751         error: Avoid gcc warning.
14752         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
14753
14754 2011-06-05  Bruno Haible  <bruno@clisp.org>
14755
14756         unsetenv: Avoid gcc warning.
14757         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
14758
14759 2011-06-05  Bruno Haible  <bruno@clisp.org>
14760
14761         setenv: Avoid gcc warning.
14762         * lib/setenv.c (setenv): Provide declaration if system lacks it.
14763
14764 2011-06-05  Bruno Haible  <bruno@clisp.org>
14765
14766         sys_select: Ensure memset is declared also on AIX 7.
14767         * lib/sys_select.in.h: Include <string.h> also on AIX.
14768         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
14769         self-contained also on AIX 7.1.
14770
14771 2011-06-04  Jim Meyering  <meyering@redhat.com>
14772
14773         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
14774         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
14775         function name, "error".
14776         (_gl_translatable_diag_func_re): New configurable variable.
14777
14778 2011-06-04  Bruno Haible  <bruno@clisp.org>
14779
14780         getopt: Avoid gcc warning.
14781         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
14782
14783 2011-06-04  Bruno Haible  <bruno@clisp.org>
14784
14785         strerror_r: Fix comments.
14786         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
14787         commit.
14788
14789 2011-06-04  Bruno Haible  <bruno@clisp.org>
14790
14791         perror: Fix compilation error.
14792         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
14793         Undefine fprintf, not sprintf.
14794         * modules/perror (Depends-on): Remove intprops, verify.
14795
14796 2011-06-04  Bruno Haible  <bruno@clisp.org>
14797
14798         setlocale: Enable replacement on Cygwin 1.5.
14799         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
14800         Cygwin 1.5.x.
14801         * doc/posix-functions/setlocale.texi: Mention that the problem with the
14802         LC_CTYPE category also exists on Cygwin 1.5.x.
14803
14804 2011-06-04  Bruno Haible  <bruno@clisp.org>
14805
14806         strerror-override: Don't disable symbol renamings.
14807         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
14808         * lib/strerror-override.c: Include config.h.
14809         (strerror_override): Don't undefine.
14810
14811 2011-06-03  Bruno Haible  <bruno@clisp.org>
14812
14813         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
14814         * lib/localename.h: Update copyright header.
14815         * lib/localename.c: Likewise.
14816         * lib/relocatable.h: Likewise.
14817         * lib/relocatable.c: Likewise.
14818
14819 2011-06-02  Bruno Haible  <bruno@clisp.org>
14820
14821         doc: Fix a module name.
14822         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
14823
14824 2011-06-02  Bruno Haible  <bruno@clisp.org>
14825
14826         pipe2: Remove dependency on 'nonblocking' module.
14827         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
14828         O_NONBLOCK is defined by gnulib.
14829         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
14830         is zero.
14831         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
14832         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
14833         defined by gnulib.
14834         (get_nonblocking_flag): New function.
14835         (main): Test O_NONBLOCK flag only if it is nonzero.
14836         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
14837
14838 2011-06-03  Jim Meyering  <meyering@redhat.com>
14839
14840         maint: three new prohibit-header-without-use rules
14841         Prohibit use of cloexec.h, posixver.h, same.h without use.
14842         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
14843         (sc_prohibit_posixver_without_use): Likewise.
14844         (sc_prohibit_same_without_use): Likewise.
14845
14846 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14847
14848         allocator: 'die' routine is now given requested size
14849         * lib/allocator.h (struct allocator.die): New size arg.
14850         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
14851         If the actual problem is an ssize_t limitation, not a size_t or
14852         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
14853
14854 2011-06-01  Eric Blake  <eblake@redhat.com>
14855
14856         strerror: drop strerror_r dependency
14857         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
14858         * lib/strerror-override.c (strerror_override): ...to new file.
14859         * lib/strerror-override.h: Add prototype.
14860         * lib/strerror-impl.h: Delete.
14861         * lib/strerror.c (strerror): New implementation.
14862         * modules/errno (Files): Add new files.
14863         (configure.ac): Compile new file as appropriate.
14864         * modules/strerror (Files): Drop unused file.
14865         (Depends-on): Drop strerror_r-posix.
14866         * MODULES.html.sh: Document strerror_r-posix.
14867         Requested by Sam Steingold.
14868
14869         perror: call strerror_r directly
14870         * modules/perror (Files): Drop strerror-impl.h.
14871         * lib/perror.c (perror): Use our own stack buffer, rather than
14872         calling a wrapper that uses static storage.
14873         * doc/posix-functions/perror.texi (perror): Document a limitation
14874         of our replacement.
14875
14876         strerror_r: fix includes for FreeBSD
14877         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
14878         since we use abort on some platforms.
14879         Reported by Matthias Bolte.
14880
14881 2011-05-31  Bruno Haible  <bruno@clisp.org>
14882
14883         Fix link errors in tests: openat-die uses gettext-h.
14884         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
14885         against $(LIBINTL).
14886         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
14887         against $(LIBINTL).
14888         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
14889         $(LIBINTL).
14890         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
14891         against $(LIBINTL).
14892         * modules/linkat-tests (Makefile.am): Link test-linkat against
14893         $(LIBINTL).
14894         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
14895         $(LIBINTL).
14896         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
14897         against $(LIBINTL).
14898         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
14899         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
14900         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
14901         $(LIBINTL).
14902         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
14903         $(LIBINTL).
14904         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
14905         $(LIBINTL).
14906         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14907
14908 2011-05-31  Bruno Haible  <bruno@clisp.org>
14909
14910         Fix link errors in tests: wait-process uses gettext-h.
14911         * modules/nonblocking-pipe-tests (Makefile.am): Set
14912         test_nonblocking_pipe_main_LDADD.
14913         * modules/nonblocking-socket-tests (Makefile.am): Link
14914         test-nonblocking-socket-main against $(LIBINTL).
14915         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14916
14917 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14918
14919         assert-h: work around 'verify' incompatibility
14920         * lib/verify.h: Use @...@ directives, not ifdef.
14921         * modules/assert-h (assert.h): Implement the directives.
14922         (assert.h): Substitute the symbol-prefix more consistently.
14923
14924 2011-05-29  Jim Meyering  <meyering@redhat.com>
14925
14926         trim: remove three superfluous assignments
14927         * lib/trim.c (trim2): Remove three superfluous assignments
14928         and correct brace positioning.
14929
14930 2011-05-29  Bruno Haible  <bruno@clisp.org>
14931
14932         wctype-h: Avoid namespace pollution on Solaris 2.6.
14933         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
14934         identifiers.
14935         * doc/posix-headers/wctype.texi: Mention the problem.
14936         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14937
14938 2011-05-28  Jim Meyering  <meyering@redhat.com>
14939
14940         parse-datetime.y: accommodate -Wstrict-overflow
14941         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
14942         placate -Wstrict-overflow.
14943
14944         trim: avoid a warning from -O2 -Wstrict-overflow
14945         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
14946
14947 2011-05-29  Bruno Haible  <bruno@clisp.org>
14948
14949         gnulib-tool: Fix bug in yesterday's commit.
14950         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
14951         twice.
14952
14953 2011-05-29  Bruno Haible  <bruno@clisp.org>
14954
14955         Allow multiple gnulib generated include files to be combined.
14956         * gnulib-tool (func_compute_include_guard_prefix): New function.
14957         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
14958         ${gl_include_guard_prefix} references.
14959         (func_import, func_create_testdir): Invoke
14960         func_compute_include_guard_prefix.
14961         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
14962         * lib/ctype.in.h: Likewise.
14963         * lib/dirent.in.h: Likewise.
14964         * lib/errno.in.h: Likewise.
14965         * lib/fcntl.in.h: Likewise.
14966         * lib/float.in.h: Likewise.
14967         * lib/getopt.in.h: Likewise.
14968         * lib/iconv.in.h: Likewise.
14969         * lib/langinfo.in.h: Likewise.
14970         * lib/locale.in.h: Likewise.
14971         * lib/math.in.h: Likewise.
14972         * lib/netdb.in.h: Likewise.
14973         * lib/netinet_in.in.h: Likewise.
14974         * lib/poll.in.h: Likewise.
14975         * lib/pthread.in.h: Likewise.
14976         * lib/pty.in.h: Likewise.
14977         * lib/sched.in.h: Likewise.
14978         * lib/se-selinux.in.h: Likewise.
14979         * lib/search.in.h: Likewise.
14980         * lib/signal.in.h: Likewise.
14981         * lib/spawn.in.h: Likewise.
14982         * lib/stdarg.in.h: Likewise.
14983         * lib/stddef.in.h: Likewise.
14984         * lib/stdint.in.h: Likewise.
14985         * lib/stdio.in.h: Likewise.
14986         * lib/stdlib.in.h: Likewise.
14987         * lib/string.in.h: Likewise.
14988         * lib/strings.in.h: Likewise.
14989         * lib/sys_file.in.h: Likewise.
14990         * lib/sys_ioctl.in.h: Likewise.
14991         * lib/sys_select.in.h: Likewise.
14992         * lib/sys_socket.in.h: Likewise.
14993         * lib/sys_stat.in.h: Likewise.
14994         * lib/sys_time.in.h: Likewise.
14995         * lib/sys_times.in.h: Likewise.
14996         * lib/sys_uio.in.h: Likewise.
14997         * lib/sys_utsname.in.h: Likewise.
14998         * lib/sys_wait.in.h: Likewise.
14999         * lib/sysexits.in.h: Likewise.
15000         * lib/termios.in.h: Likewise.
15001         * lib/time.in.h: Likewise.
15002         * lib/unistd.in.h: Likewise.
15003         * lib/wchar.in.h: Likewise.
15004         * lib/wctype.in.h: Likewise.
15005         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15006         * modules/ctype (Makefile.am): Likewise.
15007         * modules/dirent (Makefile.am): Likewise.
15008         * modules/errno (Makefile.am): Likewise.
15009         * modules/fcntl-h (Makefile.am): Likewise.
15010         * modules/float (Makefile.am): Likewise.
15011         * modules/getopt-posix (Makefile.am): Likewise.
15012         * modules/iconv-h (Makefile.am): Likewise.
15013         * modules/langinfo (Makefile.am): Likewise.
15014         * modules/locale (Makefile.am): Likewise.
15015         * modules/math (Makefile.am): Likewise.
15016         * modules/netdb (Makefile.am): Likewise.
15017         * modules/netinet_in (Makefile.am): Likewise.
15018         * modules/poll-h (Makefile.am): Likewise.
15019         * modules/pthread (Makefile.am): Likewise.
15020         * modules/pty (Makefile.am): Likewise.
15021         * modules/sched (Makefile.am): Likewise.
15022         * modules/search (Makefile.am): Likewise.
15023         * modules/selinux-h (Makefile.am): Likewise.
15024         * modules/signal (Makefile.am): Likewise.
15025         * modules/spawn (Makefile.am): Likewise.
15026         * modules/stdarg (Makefile.am): Likewise.
15027         * modules/stddef (Makefile.am): Likewise.
15028         * modules/stdint (Makefile.am): Likewise.
15029         * modules/stdio (Makefile.am): Likewise.
15030         * modules/stdlib (Makefile.am): Likewise.
15031         * modules/string (Makefile.am): Likewise.
15032         * modules/strings (Makefile.am): Likewise.
15033         * modules/sys_file (Makefile.am): Likewise.
15034         * modules/sys_ioctl (Makefile.am): Likewise.
15035         * modules/sys_select (Makefile.am): Likewise.
15036         * modules/sys_socket (Makefile.am): Likewise.
15037         * modules/sys_stat (Makefile.am): Likewise.
15038         * modules/sys_time (Makefile.am): Likewise.
15039         * modules/sys_times (Makefile.am): Likewise.
15040         * modules/sys_uio (Makefile.am): Likewise.
15041         * modules/sys_utsname (Makefile.am): Likewise.
15042         * modules/sys_wait (Makefile.am): Likewise.
15043         * modules/sysexits (Makefile.am): Likewise.
15044         * modules/termios (Makefile.am): Likewise.
15045         * modules/time (Makefile.am): Likewise.
15046         * modules/unistd (Makefile.am): Likewise.
15047         * modules/wchar (Makefile.am): Likewise.
15048         * modules/wctype-h (Makefile.am): Likewise.
15049         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15050
15051 2011-05-29  Bruno Haible  <bruno@clisp.org>
15052
15053         assert-h: Allow multiple gnulib generated replacements to coexist.
15054         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15055
15056 2011-05-29  Bruno Haible  <bruno@clisp.org>
15057
15058         argp: Allow coexistence with strerror_r-posix module.
15059         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15060         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15061         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15062         not the glibc signature.
15063
15064 2011-05-28  Bruno Haible  <bruno@clisp.org>
15065
15066         gnulib-tool: Alternative structure of testdirs, similar to --import.
15067         * gnulib-tool: New option --single-configure.
15068         (func_usage): Document it.
15069         (single_configure): New variable.
15070         (func_modules_transitive_closure_separately,
15071         func_modules_transitive_closure_separately,
15072         func_determine_use_libtests, func_modules_add_dummy_separately,
15073         func_modules_to_filelist_separately): New functions, extracted from
15074         func_import.
15075         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15076         (func_import): Use the new functions.
15077         (func_create_testdir): Set final_modules. Handle $single_configure =
15078         true case.
15079
15080 2011-05-28  Bruno Haible  <bruno@clisp.org>
15081
15082         getloadavg: Remove an unreliable safety check.
15083         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15084         getloadavg.c is in place.
15085         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15086         Reported by Sam Steingold <sds@gnu.org>.
15087
15088 2011-05-28  Bruno Haible  <bruno@clisp.org>
15089
15090         doc: Cleanup yet another file produced by texinfo.tex.
15091         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15092
15093 2011-05-28  Bruno Haible  <bruno@clisp.org>
15094
15095         Finish the conditional dependencies mechanism.
15096         * gnulib-tool: New option --no-conditional-dependencies.
15097         (func_usage): Document it. Don't mark --conditional-dependencies as
15098         experimental.
15099         (cond_dependencies): The possible values can now be true, false, empty.
15100         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15101         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15102         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15103
15104 2011-05-28  Bruno Haible  <bruno@clisp.org>
15105
15106         doc: Use a recent texinfo.tex.
15107         * doc/Makefile (tex_opts): New variable.
15108         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15109
15110 2011-05-28  Jim Meyering  <meyering@redhat.com>
15111
15112         intprops.h: adjust comment to match code change
15113         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15114         only once, it *may* have side effects.  Also fix an unrelated typo.
15115         (_GL_INT_SIGNED): Likewise.
15116
15117 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15118
15119         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15120
15121 2011-05-26  Bruno Haible  <bruno@clisp.org>
15122
15123         mbsrchr: Avoid collision with system function on Interix.
15124         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15125         Reported by Markus Duft <mduft@gentoo.org>.
15126
15127 2011-05-15  James Youngman  <jay@gnu.org>
15128
15129         getopt: for ambiguous options, enumerate the possibilities.
15130         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15131         the ambiguous options when an ambiguous prefix is given. This was
15132         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15133         glibc change was
15134         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15135
15136 2011-05-25  Eric Blake  <eblake@redhat.com>
15137
15138         getcwd: work around mingw bug
15139         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15140         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15141         Reported by Matthias Bolte.
15142
15143 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15144
15145         test-intprops: disable -Wtype-limits diagnostics
15146         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15147         diagnostics.  Otherwise, the integer overflow macros generate many
15148         diagnostics.  Reported by Jim Meyering in
15149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15150
15151         intprops: shorten, to pacify gcc -Woverlength-strings
15152         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15153         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15154         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15155         likely to run afoul of C compiler limits for string constant lengths.
15156         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15157
15158 2011-05-24  Eric Blake  <eblake@redhat.com>
15159
15160         docs: document recently fixed glibc printf bug
15161         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15162         * doc/posix-functions/printf.texi (printf): Likewise.
15163         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15164         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15165
15166         closein-tests: convert to init.sh
15167         * modules/closein-tests (Files): Add init.sh
15168         * tests/test-closein.sh Use it.
15169
15170         yesno-tests: convert to init.sh
15171         * modules/yesno-tests (Files): Add init.sh.
15172         * tests/test-yesno.sh: Use it.
15173
15174         atexit-tests: ensure reliable exit status
15175         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15176         Reported by Bruno Haible.
15177
15178 2011-05-24  Bruno Haible  <bruno@clisp.org>
15179
15180         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15181         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15182         gl_PREREQ_STRERROR_R invocations from here...
15183         * modules/strerror_r-posix (configure.ac): ... to here.
15184
15185 2011-05-24  Eric Blake  <eblake@redhat.com>
15186
15187         strerror_r: fix missing header
15188         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15189
15190         strerror_r: fix AIX test failures
15191         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15192         ERANGE failure.
15193
15194         strerror_r: fix Solaris test failures
15195         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15196         failures.
15197         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15198
15199         strerror_r: enforce POSIX recommendations
15200         * lib/strerror_r.c (safe_copy): New helper method.
15201         (strerror_r): Guarantee a non-empty string.
15202         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15203         recent POSIX rulings and to match our strerror guarantees.
15204         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15205
15206 2011-05-24  Jim Meyering  <meyering@redhat.com>
15207
15208         test-perror2.c: avoid warning about unused variable
15209         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15210
15211 2011-05-24  Eric Blake  <eblake@redhat.com>
15212
15213         perror: avoid spurious test failure on HP-UX
15214         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15215
15216         tests: fix logic bug in init.sh
15217         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15218         shell.
15219
15220 2011-05-24  Jim Meyering  <meyering@redhat.com>
15221
15222         utimensat: do not reference an out-of-scope buffer
15223         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15224         declared in an inner scope, yet "times" would be dereferenced outside
15225         the scope in which "ts" was valid.
15226         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15227         of ts[2] "out/up", so that the use of aliased "times" (via
15228         "times = ts;") does not end up referencing an out-of-scope "ts"
15229
15230         opendir-safer.c: don't clobber errno; don't close negative FD
15231         * lib/opendir-safer.c (opendir_safer):
15232         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15233         file descriptor, and more importantly, don't clobber the
15234         offending errno value with EINVAL.  Before, upon failure
15235         of dup_safer, we would pass the negative file descriptor to
15236         fdopendir, which would clobber errno.
15237
15238 2011-05-23  Bruno Haible  <bruno@clisp.org>
15239
15240         idcache: Fix module description.
15241         * modules/idcache (Include): Set to "idcache.h".
15242
15243 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15244
15245         gnulib-tool: fix portability problem with MacOS sed
15246         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15247         before the "}".  Problem reported by Leo in
15248         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15249         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15250         sed_extract_condition1, sed_extract_condition2.
15251
15252 2011-05-23  Bruno Haible  <bruno@clisp.org>
15253
15254         hash: Simplify autoconf macro.
15255         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15256
15257 2011-05-23  Bruno Haible  <bruno@clisp.org>
15258
15259         getugroups: Fix module description.
15260         * modules/getugroups (Include): Set to "getugroups.h".
15261
15262 2011-05-23  Bruno Haible  <bruno@clisp.org>
15263
15264         linkat: Simplify autoconf macro.
15265         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15266
15267 2011-05-23  Bruno Haible  <bruno@clisp.org>
15268             Eric Blake  <eblake@redhat.com>
15269
15270         linkat, renameat: Update dependencies.
15271         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15272         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15273         symlinkat.
15274
15275 2011-05-23  Jim Meyering  <meyering@redhat.com>
15276
15277         maint.mk: more tight_scope improvements
15278         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15279         (_gl_TS_headers): Define only in if-0'd block.
15280         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15281         sometimes we must *not* use it.  Adjust uses accordingly.
15282         (sc_tight_scope): Use much simpler grep-based test to determine
15283         whether we skip this rule.
15284
15285         maint.mk: generalize/improve the tight-scope rule
15286         * top/maint.mk: Emit a warning when the test is skipped.
15287         (_gl_TS_dir): Add $(srcdir)/ prefix.
15288         (_gl_TS_function_match): Simplify, rather than trying
15289         to enumerate common types.  Otherwise, it would fail to match an
15290         "extern unsigned char const *" declaration in idutils.
15291         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15292         a way to support use of that type of macro.
15293         (_gl_TS_var_match): Simplify regexp.
15294         (_gl_TS_obj_files): New configurable variable.
15295         (_gl_TS_headers): Likewise.
15296
15297 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15298
15299         verify: fix bug when gnulib <assert.h> is also included
15300         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15301         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15302         Perhaps there's a better way, but this fixes the immediate problem.
15303         Problem reported by Bruno Haible in
15304         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15305
15306 2011-05-22  Bruno Haible  <bruno@clisp.org>
15307
15308         xgetcwd: Simplify autoconf macro.
15309         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15310
15311 2011-05-22  Bruno Haible  <bruno@clisp.org>
15312
15313         New module 'mktime-internal'.
15314         * modules/mktime-internal: New file.
15315         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15316         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15317         mktime_internal as a C macro if libc has __mktime_internal.
15318         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15319         conditions.
15320         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
15321
15322 2011-05-22  Bruno Haible  <bruno@clisp.org>
15323
15324         timegm: Correct mktime replacement statements.
15325         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
15326         defining mktime as a C macro. This completes a 2009-07-28 commit.
15327
15328 2011-05-22  Bruno Haible  <bruno@clisp.org>
15329
15330         timegm: Simplify autoconf macro.
15331         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
15332
15333 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15334
15335         clock-time: change to LGPLv2+.
15336         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
15337         BSD-like but we have no mark for that; this is good enough for now.
15338
15339 2011-05-21  Bruno Haible  <bruno@clisp.org>
15340
15341         strerror_r: Fix comments.
15342         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
15343
15344 2011-05-21  Bruno Haible  <bruno@clisp.org>
15345
15346         relocatable-prog-wrapper: Fix possible link error.
15347         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
15348         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
15349         (gl_FUNC_SETENV): ... to here.
15350         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
15351         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
15352
15353 2011-05-21  Bruno Haible  <bruno@clisp.org>
15354
15355         relocatable-prog-wrapper: Assume strerror() exists.
15356         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
15357         m4/strerror.m4.
15358         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15359         * lib/relocwrapper.c: Remove mention of strerror module.
15360         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15361         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15362         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15363         C macro.
15364
15365 2011-05-21  Bruno Haible  <bruno@clisp.org>
15366
15367         select: Simplify replacement idiom.
15368         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15369         Win32 platforms.
15370         * lib/sys_select.in.h (select): Simplify accordingly.
15371         * modules/select (Depends-on): Likewise.
15372
15373 2011-05-21  Bruno Haible  <bruno@clisp.org>
15374
15375         mkdir-p: Simplify autoconf macro.
15376         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15377         gl_FUNC_LCHOWN.
15378
15379 2011-05-21  Eric Blake  <eblake@redhat.com>
15380
15381         strerror_r: avoid clobbering strerror on cygwin
15382         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15383         fall back instead to sys_errlist.
15384         * modules/strerror (configure.ac): Add witness.
15385         * tests/test-strerror_r.c (main): Enhance test.
15386         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15387         * tests/test-perror2.c (main): Free memory before exit.
15388
15389 2011-05-21  Bruno Haible  <bruno@clisp.org>
15390
15391         mkdtemp: Use gnulib naming conventions.
15392         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15393         * modules/mkdtemp (configure.ac): Update.
15394
15395 2011-05-20  Eric Blake  <eblake@redhat.com>
15396
15397         strerror_r: avoid corrupting errno on Solaris
15398         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
15399         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15400
15401         strerror_r: avoid compiler warning
15402         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15403
15404         strerror_r: simplify AIX code
15405         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
15406
15407         test-perror: avoid spurious failure on FreeBSD
15408         * modules/perror-tests (Depends-on): Add strerror, now that
15409         strerror_r no longer pulls it in.
15410
15411 2011-05-20  Bruno Haible  <bruno@clisp.org>
15412
15413         strerror_r-posix: Remove unused dependencies.
15414         * modules/strerror_r-posix (Depends-on): Remove strerror.
15415         Reported by Eric Blake.
15416
15417 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15418
15419         intprops: remove assumption about A|B representation
15420         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
15421         is a valid integer if both A and B are.  Although this is true for
15422         all known practical hosts, the C standard doesn't guarantee it,
15423         and the code need not assume it.  Also, this change may work around
15424         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
15425         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
15426
15427 2011-05-20  Eric Blake  <eblake@redhat.com>
15428
15429         perror: work around FreeBSD bug
15430         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
15431         is broken.  Move AC_LIBOBJ...
15432         * modules/perror (configure.ac): Here.
15433         * doc/posix-functions/perror.texi (perror): Document this.
15434         * tests/test-perror2.c (main): Enhance test.
15435
15436         test-perror: check for strerror interactions
15437         * tests/macros.h (STREQ): Add macro.
15438         * modules/perror-tests (Files): Add second test.
15439         * tests/test-perror2.c (main): New file.
15440         * doc/posix-functions/perror.texi (perror): Document glibc bug.
15441
15442         test-perror: rewrite to use init script
15443         * modules/perror-tests (Files): Add init.sh.
15444         * tests/test-perror.sh: Use temporary directory.
15445
15446 2011-05-20  Jim Meyering  <meyering@redhat.com>
15447
15448         maint: replace misused "a" with "an"
15449         * doc/intprops.texi: "a integer"
15450         * doc/regex.texi: "a explanation"
15451         * lib/alignof.h: "a object"
15452         * lib/argmatch.h: "a explanation"
15453         * lib/argp-help.c: "a option" and "a OPTION_DOC"
15454         * lib/stdint.in.h: "a integer"
15455         * lib/userspec.c: "a owner"
15456         * doc/gnulib.texi: Fix "a idea", and reword.
15457
15458 2011-05-19  Jim Meyering  <meyering@redhat.com>
15459
15460         maint: correct misuse of "a" and "an"
15461         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
15462         * lib/argp-help.c: "an docum...": s/an/a/
15463         * lib/argp-parse.c: "An vector": s/An/A/
15464         * lib/execute.c: "an native": s/an/a/
15465         * lib/spawn-pipe.c: Likewise.
15466         * lib/gc.h: "an Gc_rc": s/an/a/
15467         * lib/unigbrk.in.h: "an grapheme": s/an/a/
15468         * lib/fts.c: "an stat.st_dev": s/an/a/
15469
15470 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15471
15472         intprops-tests: work around HP-UX 11.23 cc bug with constants
15473         * tests/test-intprops.c (VERIFY): New macro.
15474         (main): Use it, instead of verify, to work around the compiler bug; see
15475         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15476
15477         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
15478         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
15479         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
15480         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
15481         (_GL_REMAINDER_OVERFLOW): Use it.
15482
15483         intprops-tests: revert unsigned part of previous change
15484         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
15485         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
15486         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
15487         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
15488
15489 2011-05-19  Bruno Haible  <bruno@clisp.org>
15490
15491         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
15492         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
15493         strerror_r() returned without filling the buffer.
15494         Reported by Eric Blake.
15495
15496 2011-05-19  Eric Blake  <eblake@redhat.com>
15497
15498         strerror_r: guarantee unchanged errno
15499         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
15500         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
15501         failure.
15502         * tests/test-strerror_r.c (main): Enhance test.
15503
15504 2011-05-19  Bruno Haible  <bruno@clisp.org>
15505
15506         strerror_r: Reorder #if blocks.
15507         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15508         for consistency with the previous commit.
15509
15510 2011-05-19  Bruno Haible  <bruno@clisp.org>
15511
15512         perror: Avoid clobbering the strerror buffer when possible.
15513         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15514         * lib/strerror.c: Include it.
15515         * modules/strerror (Files): Add lib/strerror-impl.h.
15516         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15517         (my_strerror): New function, defined through lib/strerror-impl.h.
15518         (perror): Use it instead of strerror.
15519         * modules/perror (Files): Add lib/strerror-impl.h.
15520         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15521
15522 2011-05-19  Eric Blake  <eblake@redhat.com>
15523
15524         strerror_r: fix on newer cygwin
15525         * lib/strerror_r.c (strerror_r): Cygwin now has
15526         __xpg_strerror_r, use it.
15527
15528 2011-05-19  Bruno Haible  <bruno@clisp.org>
15529
15530         strerror_r: Avoid clobbering the strerror buffer when possible.
15531         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15532         (sys_nerr, sys_errlist): New declarations.
15533         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15534         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15535         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15536
15537 2011-05-19  Bruno Haible  <bruno@clisp.org>
15538
15539         strerror_r: Fix test failure on mingw.
15540         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15541         EXTEND_STRERROR_R.
15542         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15543         macros from errno.in.h instead.
15544
15545 2011-05-19  Eric Blake  <eblake@redhat.com>
15546
15547         strerror: relax test for Solaris
15548         * tests/test-strerror.c (main): Permit Solaris behavior.
15549         * tests/test-strerror_r.c (main): Likewise.
15550
15551         strerror: enforce POSIX ruling on strerror(0)
15552         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15553         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15554         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15555         * doc/posix-functions/strerror.texi (strerror): Document it.
15556         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15557         * tests/test-strerror.c (main): Strengthen test.
15558         * tests/test-strerror_r.c (main): Likewise.
15559
15560 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15561
15562         intprop-tests: port to older and more-pedantic compilers
15563         * modules/intprops-tests (Files): Add tests/macros.h.
15564         * tests/test-intprops.c: Include macros.h.
15565         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15566         it's no longer documented to expand to an integer constant expression.
15567         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15568         argument is floating point, as it's no longer documented to expand
15569         to an integer constant expression in that case.
15570         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15571         compiler bugs reported by Bruno Haible.  See
15572         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15573         (U0, U1): New constants, to work around the same bugs.  Also,
15574         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15575
15576         intprops: work around C compiler bugs
15577         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15578         bug in Sun C 5.11 2010/08/13 and other compilers; see
15579         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15580
15581         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15582         * doc/intprops.texi (Integer Type Determination): Fix
15583         documentation for TYPE_IS_INTEGER: it returns an constant
15584         expression, not an integer constant expression.  Fix doc for
15585         TYPE_SIGNED: it returns an integer constant expression only if its
15586         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15587         hardly worth documented that way....)
15588
15589 2011-05-18  Bruno Haible  <bruno@clisp.org>
15590
15591         strerror_r: Avoid clobbering the strerror buffer when possible.
15592         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15593         Handle gnulib defined errno values here. When strerror() returns NULL
15594         or an empty string, return EINVAL.
15595         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15596         gnulib defined errno values here.
15597         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15598
15599 2011-05-18  Eric Blake  <eblake@redhat.com>
15600
15601         fnmatch: avoid compiler warning
15602         * lib/fnmatch_loop.c (FCT): Use correct type.
15603         Reported by Matthias Bolte.
15604
15605 2011-05-13  Jim Meyering  <meyering@redhat.com>
15606
15607         maint.mk: three new prohibit_<HDR>_without_use rules
15608         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15609         (sc_prohibit_stdio-safer_without_use): Likewise.
15610         (sc_prohibit_xfreopen_without_use): Likewise.
15611
15612 2011-05-17  Jim Meyering  <meyering@redhat.com>
15613
15614         announce-gen: fail if the NEWS delta is empty
15615         If there's nothing noteworthy in NEWS, then either you forgot
15616         or you shouldn't be releasing.
15617         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15618
15619 2011-05-17  Pádraig Brady <P@draigBrady.com>
15620
15621         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15622         reserved symbols starting with double underscore from the check.
15623
15624 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15625
15626         intprops: add doc
15627         * doc/intprops.texi: New file, documenting intprops.
15628         * doc/gnulib.texi (Particular Modules): Include it.
15629
15630         verify: add doc to gnulib manual and fix example
15631         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15632         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15633         (Compile-time Assertions): Fix example so it can't overflow.
15634
15635 2011-05-17  Jim Meyering  <meyering@redhat.com>
15636
15637         warnings.m4: don't usurp save_CPPFLAGS variable name
15638         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15639
15640         doc: fix typo
15641         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15642
15643 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15644             Bruno Haible  <bruno@clisp.org>
15645
15646         doc: Tweak recent change.
15647         * README (Portability guidelines): Tweak new text.
15648         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15649         Interix 6.1.
15650
15651 2011-05-16  Eric Blake  <eblake@redhat.com>
15652
15653         inttypes: avoid autoconf warning
15654         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15655         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15656
15657 2011-05-16  Sam Steingold <sds@gnu.org>
15658         and Eric Blake  <eblake@redhat.com>
15659
15660         vc-list-files: accept multiple directory operands
15661         * build-aux/vc-list-files: Iterate over all remaining operands.
15662
15663 2011-05-16  Bruno Haible  <bruno@clisp.org>
15664
15665         Fix confusion regarding deprecated modules.
15666         * modules/calloc (Status, Notice): Mark module as deprecated, not
15667         obsolete.
15668         * modules/fnmatch-posix (Status, Notice): Likewise.
15669         * modules/getdate (Status, Notice): Likewise.
15670         * modules/getopt (Status, Notice): Likewise.
15671         * modules/malloc (Status, Notice): Likewise.
15672         * modules/pipe (Status, Notice): Likewise.
15673         * modules/realloc (Status, Notice): Likewise.
15674         * modules/rename-dest-slash (Status, Notice): Likewise.
15675         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
15676         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
15677         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
15678         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
15679         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
15680
15681 2011-05-16  Bruno Haible  <bruno@clisp.org>
15682
15683         doc: List the target platforms.
15684         * doc/gnulib-intro.texi (Target Platforms): New section.
15685         * doc/gnulib.texi (Introduction): Update menu.
15686         * README (Portability guidelines): Refer to the new section. Update
15687         statement about oldest supported environment. Remove rationale why
15688         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
15689         unportable C89 function.
15690         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
15691         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
15692
15693 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15694
15695         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
15696
15697 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15698
15699         intprops-tests: new module
15700         * modules/intprops-tests, tests/test-intprops.c: New files.
15701
15702         intprops: add safe, portable integer overflow checking
15703         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
15704         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
15705         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
15706         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
15707         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
15708         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
15709         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
15710         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
15711         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
15712         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
15713         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
15714
15715 2011-05-12  James Youngman  <jay@gnu.org>
15716
15717         Add a test for glibc's Bugzilla bug #12378.
15718         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
15719         doesn't allow the literal matching of a lone "[" (which is
15720         required by POSIX).
15721         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
15722
15723 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15724
15725         Sync glibc change fixing Bugzilla bug #12378.
15726         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
15727         beginning and fall back to matching as normal character if the
15728         string ends before the matching ']' is found.  This is what POSIX
15729         requires.
15730
15731 2011-05-13  Eric Blake  <eblake@redhat.com>
15732
15733         getcwd-lgpl: relax test for FreeBSD
15734         * doc/posix-functions/getcwd.texi (getcwd): Document portability
15735         issue.
15736         * tests/test-getcwd-lgpl.c (main): Relax test.
15737         Reported by Matthias Bolte.
15738
15739 2011-05-11  Eric Blake  <eblake@redhat.com>
15740
15741         test-fflush: silence compiler warning
15742         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
15743
15744 2011-05-11  Bruno Haible  <bruno@clisp.org>
15745
15746         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
15747         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
15748         * modules/canonicalize (Depends-on): Add 'nocrash'.
15749         * modules/canonicalize-lgpl (Depends-on): Likewise.
15750         * doc/posix-functions/realpath.texi: Update platforms list.
15751         Reported by Ryan Schmidt <ryandesign@macports.org>.
15752
15753 2011-05-11  Bruno Haible  <bruno@clisp.org>
15754
15755         group-member: Declare function in <unistd.h>.
15756         * lib/unistd.in.h (group_member): New declaration.
15757         * lib/group-member.h: Remove file.
15758         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
15759         * tests/test-unistd-c++.cc: Check signature of group_member.
15760         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
15761         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
15762         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
15763         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
15764         HAVE_GROUP_MEMBER.
15765         * modules/group-member (Files): Remove lib/group-member.h.
15766         (Depends-on): Add unistd. Specify conditions.
15767         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15768         (Include): Change to <unistd.h>.
15769         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
15770         HAVE_GROUP_MEMBER.
15771         * NEWS: Mention the change.
15772         * lib/euidaccess.c: Don't include group-member.h.
15773
15774 2011-05-11  Bruno Haible  <bruno@clisp.org>
15775
15776         group-member: Document module.
15777         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
15778         module.
15779
15780 2011-05-11  Bruno Haible  <bruno@clisp.org>
15781
15782         fclose: Fix mistake earlier today.
15783         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
15784
15785 2011-05-11  Eric Blake  <eblake@redhat.com>
15786
15787         fclose: preserve fflush errors
15788         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
15789         Reported by Jim Meyering.
15790
15791         bootstrap: support a prereq of 'rpcgen -' on RHEL5
15792         * build-aux/bootstrap (check_versions): When no specific version
15793         is required, merely check that the app produces an exit status
15794         that indicates its existence.
15795
15796         maint.mk: drop redundant check
15797         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
15798         the same but better.
15799
15800 2011-05-11  Bruno Haible  <bruno@clisp.org>
15801
15802         fclose: Fix possible link error.
15803         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
15804         unregister_shadow_fd. Improve comments.
15805         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
15806         Eric Blake.
15807
15808 2011-05-11  Jim Meyering  <meyering@redhat.com>
15809
15810         maint.mk: improve "can not" detection and generalize rule name
15811         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
15812         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
15813         Use the same technique as in sc_prohibit_doubled_word, so that
15814         we recognize "can not" also when the words are separated by a newline.
15815         Suggested by Eric Blake.
15816         (perl_filename_lineno_text_): Define.  Factored out of...
15817         (prohibit_doubled_word_): ...here.  Use the new definition.
15818         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
15819         (prohibit_undesirable_word_seq_RE_): New overridable variable.
15820         (ignore_undesirable_word_sequence_RE_): New overridable variable.
15821
15822 2011-05-10  Eric Blake  <eblake@redhat.com>
15823
15824         fclose: avoid double close race when possible
15825         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
15826         all but WINDOWS_SOCKETS.
15827
15828 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
15829
15830         openat: correct new comment
15831         * lib/openat-proc.c (openat_proc_name): Correct the comment.
15832
15833 2011-05-10  Jim Meyering  <meyering@redhat.com>
15834
15835         openat: add comments
15836         * lib/openat-proc.c (openat_proc_name): Add comments,
15837         mostly from Eric Blake.
15838
15839 2011-05-09  Eric Blake  <eblake@redhat.com>
15840
15841         openat: reduce syscalls in first probe of /proc
15842         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
15843         be a directory.  Simplify the probe for .. bugs.
15844         * modules/openat (Depends-on): Drop same-inode.
15845         Reported by Bastien ROUCARIES.
15846
15847 2011-05-09  Jim Meyering  <meyering@redhat.com>
15848
15849         maint.mk: change semantics/name of tight_scope variables
15850         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
15851         Rename variables to align with semantics that make them more useful.
15852
15853         maint.mk: tweak new rule's name not to impinge
15854         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
15855         (sc_tight_scope): Use new rule name rather than $@-0.
15856
15857         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
15858         * top/maint.mk (sc_tight_scope): New rule.
15859         (sc_tight_scope-0): New rule, ifdef'd out.
15860         (_gl_TS_dir): Default.
15861         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
15862         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
15863
15864 2011-05-09  Simon Josefsson  <simon@josefsson.org>
15865
15866         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
15867         Haible <bruno@clisp.org>.
15868
15869 2011-05-08  Bruno Haible  <bruno@clisp.org>
15870
15871         Comments.
15872         * m4/isnanf.m4: Add comment.
15873         * m4/isnanl.m4: Likewise.
15874
15875 2011-05-08  Bruno Haible  <bruno@clisp.org>
15876
15877         glob: Remove obsolete macro.
15878         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
15879
15880 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15881
15882         intprops: Sun C 5.11 supports __typeof__
15883         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
15884         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
15885         which is new.
15886         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
15887
15888         intprops: switch to usual gnulib indenting and naming
15889         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
15890         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
15891
15892         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
15893
15894 2011-05-08  Jim Meyering  <meyering@redhat.com>
15895
15896         maint.mk: suppress "Entering/Leaving directory" diag in announcement
15897         * top/maint.mk (release-prep): Use make's --no-print-directory
15898         option when generating the announcement.  This eliminates the
15899         pesky "make[2]: Entering/Leaving directory" diagnostics in the
15900         generated announcement template.
15901
15902 2011-05-08  Bruno Haible  <bruno@clisp.org>
15903
15904         tzset: Fix gettimeofday wrapper on Solaris 2.6.
15905         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
15906         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
15907
15908 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15909
15910         ignore-value, verify: Omit include files from lib_SOURCES.
15911         * modules/ignore-value, modules/verify (Makefile.am):
15912         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
15913         that leads Automake to duplicate use of am__objects_... variables
15914         in Makefile.in.  See
15915         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
15916
15917 2011-05-07  Bruno Haible  <bruno@clisp.org>
15918
15919         fclose: Simplify autoconf macro.
15920         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
15921         defined.
15922
15923 2011-05-07  Bruno Haible  <bruno@clisp.org>
15924
15925         canonicalize-lgpl: Fix autoconf macro ordering bug.
15926         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
15927         gl_STDLIB_H_DEFAULTS.
15928
15929 2011-05-06  Eric Blake  <eblake@redhat.com>
15930
15931         maintainer-makefile: make sc_po_check easier to tune
15932         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
15933         to probe for strings, such as an alternate location for gnulib.
15934
15935         fclose: guarantee behavior on seekable stdin
15936         * modules/fclose (Depends-on): Add fflush.
15937         * doc/posix-functions/fclose.texi (fclose): Document this.
15938         * tests/test-fclose.c (main): Make test for this unconditional.
15939
15940 2011-05-06  Bruno Haible  <bruno@clisp.org>
15941
15942         fflush, fpurge: Relicense under LGPLv2+.
15943         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
15944         * modules/fpurge (License): Likewise.
15945         With permission from Eric Blake and Jim Meyering.
15946         Suggested by Eric Blake.
15947
15948 2011-05-06  Karl Berry  <karl@gnu.org>
15949
15950         * MODULES.html.sh (func_all_modules): remove exit.
15951
15952 2011-05-06  Jim Meyering  <meyering@redhat.com>
15953
15954         maint.mk: use info-gnu@ as the default only for a stable release
15955         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
15956         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
15957         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
15958         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
15959
15960 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15961
15962         assert-h: new module, which supports C1X-style static_assert
15963         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
15964         * lib/verify.h: Revamp so that this can be copied into assert.h,
15965         while retaining the ability to use it standalone as before.
15966         Rename private identifiers so as not to encroach on the
15967         standard C namespace, since this is now used by assert.h.
15968         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
15969         the old verify_true.
15970         (_GL_VERIFY_TRUE): New macro, with much of the contents of
15971         the old verify_true.  Use _GL_VERIFY_TYPE.
15972         (_GL_VERIFY): New macro, with much of the contents of the old verify.
15973         (static_assert): New macro, if _GL_STATIC_ASSERT_H
15974         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
15975         defined when this file is copied into the replacement assert.h.
15976         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
15977         and _Static_assert is not built in.
15978         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
15979         defined, and use the new macros mentioned above.
15980         * doc/posix-headers/assert.texi: Document this.
15981
15982 2011-05-05  Bruno Haible  <bruno@clisp.org>
15983
15984         fclose, fflush: Respect rules for use of AC_LIBOBJ.
15985         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
15986         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
15987         gl_REPLACE_FCLOSE here.
15988         * modules/fflush (Depends-on): Remove fclose.
15989         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
15990         combination with module 'fclose'.
15991
15992 2011-05-05  Bruno Haible  <bruno@clisp.org>
15993
15994         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
15995         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
15996         gl_FUNC_FFLUSH.
15997         (gl_FUNC_FFLUSH): Use it.
15998         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
15999         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16000         gl_REPLACE_FSEEKO here.
16001
16002 2011-05-05  Bruno Haible  <bruno@clisp.org>
16003
16004         tzset: Relicense under LGPL.
16005         * modules/tzset (License): Change to LGPL.
16006         No agreement needed; it's a no-op.
16007
16008         strtoimax, strtoumax: Relicense under LGPL.
16009         * modules/strtoimax (License): Change to LGPL.
16010         * modules/strtoumax (License): Likewise.
16011         With permission from Jim Meyering, Paul Eggert:
16012         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16014
16015         getgroups: Relicense under LGPL.
16016         * modules/getgroups (License): Change to LGPL.
16017         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16018         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16019         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16021
16022         nanosleep: Relicense under LGPL.
16023         * modules/nanosleep (License): Change to LGPL.
16024         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16025         Haible:
16026         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16027         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16028         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16030
16031         futimens: Relicense under LGPL.
16032         * modules/futimens (License): Change to LGPL.
16033         With permission from Eric Blake:
16034         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16035
16036         fflush: Relicense under LGPL.
16037         * modules/fflush (License): Change to LGPL.
16038         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16039         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16040         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16041         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16042
16043         tmpfile: Relicense under LGPL.
16044         * modules/tmpfile (License): Change to LGPL.
16045         With permission from Ben Pfaff:
16046         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16047
16048         isfinite: Relicense under LGPL.
16049         * modules/isfinite (License): Change to LGPL.
16050         With permission from Ben Pfaff, Bruno Haible:
16051         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16052         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16053
16054         acosl..tanl: Relicense under LGPL.
16055         * modules/acosl (License): Change to LGPL.
16056         * modules/asinl (License): Likewise.
16057         * modules/atanl (License): Likewise.
16058         * modules/cosl (License): Likewise.
16059         * modules/expl (License): Likewise.
16060         * modules/logl (License): Likewise.
16061         * modules/sinl (License): Likewise.
16062         * modules/sqrtl (License): Likewise.
16063         * modules/tanl (License): Likewise.
16064         Source code originally from glibc and Paolo Bonzini. Agreements:
16065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16066         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16067
16068 2011-05-05  Bruno Haible  <bruno@clisp.org>
16069
16070         signal: Define sighandler_t.
16071         * lib/signal.in.h (sighandler_t): New type.
16072         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16073         whether sighandler_t is defined.
16074         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16075         * modules/signal (Depends-on): Add extensions.
16076         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16077         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16078         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16079
16080 2011-05-05  Eric Blake  <eblake@redhat.com>
16081
16082         maint: remove useless REPLACE_*_H macros
16083         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16084         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16085         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16086         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16087         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16088         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16089         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16090         * m4/btowc.m4: Update callers.
16091         * m4/dirfd.m4: Likewise.
16092         * m4/duplocale.m4: Likewise.
16093         * m4/fchdir.m4: Likewise.
16094         * m4/fdopendir.m4: Likewise.
16095         * m4/inet_ntop.m4: Likewise.
16096         * m4/inet_pton.m4: Likewise.
16097         * m4/ioctl.m4: Likewise.
16098         * m4/mbrlen.m4: Likewise.
16099         * m4/mbrtowc.m4: Likewise.
16100         * m4/mbsinit.m4: Likewise.
16101         * m4/mbsnrtowcs.m4: Likewise.
16102         * m4/mbsrtowcs.m4: Likewise.
16103         * m4/poll.m4: Likewise.
16104         * m4/setlocale.m4: Likewise.
16105         * m4/wcrtomb.m4: Likewise.
16106         * m4/wcsnrtombs.m4: Likewise.
16107         * m4/wcsrtombs.m4: Likewise.
16108         * m4/wctob.m4: Likewise.
16109         * m4/wcwidth.m4: Likewise.
16110         * modules/posix_spawn: Likewise.
16111         * modules/posix_spawn_file_actions_addclose: Likewise.
16112         * modules/posix_spawn_file_actions_adddup2: Likewise.
16113         * modules/posix_spawn_file_actions_addopen: Likewise.
16114         * modules/posix_spawn_file_actions_destroy: Likewise.
16115         * modules/posix_spawn_file_actions_init: Likewise.
16116         * modules/posix_spawnattr_destroy: Likewise.
16117         * modules/posix_spawnattr_getflags: Likewise.
16118         * modules/posix_spawnattr_getpgroup: Likewise.
16119         * modules/posix_spawnattr_getschedparam: Likewise.
16120         * modules/posix_spawnattr_getschedpolicy: Likewise.
16121         * modules/posix_spawnattr_getsigdefault: Likewise.
16122         * modules/posix_spawnattr_getsigmask: Likewise.
16123         * modules/posix_spawnattr_init: Likewise.
16124         * modules/posix_spawnattr_setflags: Likewise.
16125         * modules/posix_spawnattr_setpgroup: Likewise.
16126         * modules/posix_spawnattr_setschedparam: Likewise.
16127         * modules/posix_spawnattr_setschedpolicy: Likewise.
16128         * modules/posix_spawnattr_setsigdefault: Likewise.
16129         * modules/posix_spawnattr_setsigmask: Likewise.
16130         * modules/posix_spawnp: Likewise.
16131
16132 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16133
16134         Add option to do-release-commit-and-tag to specify branch.
16135         * build-aux/do-release-commit-and-tag: Add --branch.
16136
16137 2011-05-03  Bruno Haible  <bruno@clisp.org>
16138
16139         Avoid unnecessary compilation units, through conditional dependencies.
16140         * modules/accept (Depends-on): Add conditions to the dependencies.
16141         * modules/acosl (Depends-on): Likewise.
16142         * modules/argz (Depends-on): Likewise.
16143         * modules/asinl (Depends-on): Likewise.
16144         * modules/atanl (Depends-on): Likewise.
16145         * modules/atoll (Depends-on): Likewise.
16146         * modules/bind (Depends-on): Likewise.
16147         * modules/btowc (Depends-on): Likewise.
16148         * modules/canonicalize-lgpl (Depends-on): Likewise.
16149         * modules/ceil (Depends-on): Likewise.
16150         * modules/ceilf (Depends-on): Likewise.
16151         * modules/ceill (Depends-on): Likewise.
16152         * modules/chdir-long (Depends-on): Likewise.
16153         * modules/chown (Depends-on): Likewise.
16154         * modules/close (Depends-on): Likewise.
16155         * modules/connect (Depends-on): Likewise.
16156         * modules/cosl (Depends-on): Likewise.
16157         * modules/dirfd (Depends-on): Likewise.
16158         * modules/dprintf (Depends-on): Likewise.
16159         * modules/dprintf-posix (Depends-on): Likewise.
16160         * modules/error (Depends-on): Likewise.
16161         * modules/euidaccess (Depends-on): Likewise.
16162         * modules/expl (Depends-on): Likewise.
16163         * modules/faccessat (Depends-on): Likewise.
16164         * modules/fchdir (Depends-on): Likewise.
16165         * modules/fclose (Depends-on): Likewise.
16166         * modules/fcntl (Depends-on): Likewise.
16167         * modules/fdopendir (Depends-on): Likewise.
16168         * modules/fflush (Depends-on): Likewise.
16169         * modules/floor (Depends-on): Likewise.
16170         * modules/floorf (Depends-on): Likewise.
16171         * modules/floorl (Depends-on): Likewise.
16172         * modules/fnmatch (Depends-on): Likewise.
16173         * modules/fopen (Depends-on): Likewise.
16174         * modules/fprintf-posix (Depends-on): Likewise.
16175         * modules/frexp (Depends-on): Likewise.
16176         * modules/frexp-nolibm (Depends-on): Likewise.
16177         * modules/frexpl (Depends-on): Likewise.
16178         * modules/frexpl-nolibm (Depends-on): Likewise.
16179         * modules/fseek (Depends-on): Likewise.
16180         * modules/fsusage (Depends-on): Likewise.
16181         * modules/ftell (Depends-on): Likewise.
16182         * modules/ftello (Depends-on): Likewise.
16183         * modules/futimens (Depends-on): Likewise.
16184         * modules/getcwd (Depends-on): Likewise.
16185         * modules/getcwd-lgpl (Depends-on): Likewise.
16186         * modules/getdelim (Depends-on): Likewise.
16187         * modules/getdomainname (Depends-on): Likewise.
16188         * modules/getgroups (Depends-on): Likewise.
16189         * modules/gethostname (Depends-on): Likewise.
16190         * modules/getline (Depends-on): Likewise.
16191         * modules/getlogin_r (Depends-on): Likewise.
16192         * modules/getopt-posix (Depends-on): Likewise.
16193         * modules/getpeername (Depends-on): Likewise.
16194         * modules/getsockname (Depends-on): Likewise.
16195         * modules/getsockopt (Depends-on): Likewise.
16196         * modules/getsubopt (Depends-on): Likewise.
16197         * modules/getusershell (Depends-on): Likewise.
16198         * modules/glob (Depends-on): Likewise.
16199         * modules/grantpt (Depends-on): Likewise.
16200         * modules/iconv_open (Depends-on): Likewise.
16201         * modules/iconv_open-utf (Depends-on): Likewise.
16202         * modules/inet_ntop (Depends-on): Likewise.
16203         * modules/inet_pton (Depends-on): Likewise.
16204         * modules/ioctl (Depends-on): Likewise.
16205         * modules/isapipe (Depends-on): Likewise.
16206         * modules/isfinite (Depends-on): Likewise.
16207         * modules/isinf (Depends-on): Likewise.
16208         * modules/lchown (Depends-on): Likewise.
16209         * modules/ldexpl (Depends-on): Likewise.
16210         * modules/link (Depends-on): Likewise.
16211         * modules/linkat (Depends-on): Likewise.
16212         * modules/listen (Depends-on): Likewise.
16213         * modules/logl (Depends-on): Likewise.
16214         * modules/lstat (Depends-on): Likewise.
16215         * modules/mbrlen (Depends-on): Likewise.
16216         * modules/mbrtowc (Depends-on): Likewise.
16217         * modules/mbsinit (Depends-on): Likewise.
16218         * modules/mbsnrtowcs (Depends-on): Likewise.
16219         * modules/mbsrtowcs (Depends-on): Likewise.
16220         * modules/mbtowc (Depends-on): Likewise.
16221         * modules/memcmp (Depends-on): Likewise.
16222         * modules/mkdir (Depends-on): Likewise.
16223         * modules/mkdtemp (Depends-on): Likewise.
16224         * modules/mkfifo (Depends-on): Likewise.
16225         * modules/mkfifoat (Depends-on): Likewise.
16226         * modules/mknod (Depends-on): Likewise.
16227         * modules/mkostemp (Depends-on): Likewise.
16228         * modules/mkostemps (Depends-on): Likewise.
16229         * modules/mkstemp (Depends-on): Likewise.
16230         * modules/mkstemps (Depends-on): Likewise.
16231         * modules/mktime (Depends-on): Likewise.
16232         * modules/nanosleep (Depends-on): Likewise.
16233         * modules/open (Depends-on): Likewise.
16234         * modules/openat (Depends-on): Likewise.
16235         * modules/perror (Depends-on): Likewise.
16236         * modules/poll (Depends-on): Likewise.
16237         * modules/popen (Depends-on): Likewise.
16238         * modules/posix_spawn (Depends-on): Likewise.
16239         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16240         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16241         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16242         * modules/posix_spawnp (Depends-on): Likewise.
16243         * modules/pread (Depends-on): Likewise.
16244         * modules/printf-posix (Depends-on): Likewise.
16245         * modules/ptsname (Depends-on): Likewise.
16246         * modules/putenv (Depends-on): Likewise.
16247         * modules/pwrite (Depends-on): Likewise.
16248         * modules/readline (Depends-on): Likewise.
16249         * modules/readlink (Depends-on): Likewise.
16250         * modules/readlinkat (Depends-on): Likewise.
16251         * modules/recv (Depends-on): Likewise.
16252         * modules/recvfrom (Depends-on): Likewise.
16253         * modules/regex (Depends-on): Likewise.
16254         * modules/remove (Depends-on): Likewise.
16255         * modules/rename (Depends-on): Likewise.
16256         * modules/renameat (Depends-on): Likewise.
16257         * modules/rmdir (Depends-on): Likewise.
16258         * modules/round (Depends-on): Likewise.
16259         * modules/roundf (Depends-on): Likewise.
16260         * modules/roundl (Depends-on): Likewise.
16261         * modules/rpmatch (Depends-on): Likewise.
16262         * modules/select (Depends-on): Likewise.
16263         * modules/send (Depends-on): Likewise.
16264         * modules/sendto (Depends-on): Likewise.
16265         * modules/setenv (Depends-on): Likewise.
16266         * modules/setlocale (Depends-on): Likewise.
16267         * modules/setsockopt (Depends-on): Likewise.
16268         * modules/shutdown (Depends-on): Likewise.
16269         * modules/sigaction (Depends-on): Likewise.
16270         * modules/signbit (Depends-on): Likewise.
16271         * modules/sigprocmask (Depends-on): Likewise.
16272         * modules/sinl (Depends-on): Likewise.
16273         * modules/sleep (Depends-on): Likewise.
16274         * modules/snprintf (Depends-on): Likewise.
16275         * modules/snprintf-posix (Depends-on): Likewise.
16276         * modules/socket (Depends-on): Likewise.
16277         * modules/sprintf-posix (Depends-on): Likewise.
16278         * modules/sqrtl (Depends-on): Likewise.
16279         * modules/stat (Depends-on): Likewise.
16280         * modules/strchrnul (Depends-on): Likewise.
16281         * modules/strdup-posix (Depends-on): Likewise.
16282         * modules/strerror (Depends-on): Likewise.
16283         * modules/strerror_r-posix (Depends-on): Likewise.
16284         * modules/strndup (Depends-on): Likewise.
16285         * modules/strnlen (Depends-on): Likewise.
16286         * modules/strptime (Depends-on): Likewise.
16287         * modules/strsep (Depends-on): Likewise.
16288         * modules/strsignal (Depends-on): Likewise.
16289         * modules/strstr-simple (Depends-on): Likewise.
16290         * modules/strtod (Depends-on): Likewise.
16291         * modules/strtoimax (Depends-on): Likewise.
16292         * modules/strtok_r (Depends-on): Likewise.
16293         * modules/strtoumax (Depends-on): Likewise.
16294         * modules/symlink (Depends-on): Likewise.
16295         * modules/symlinkat (Depends-on): Likewise.
16296         * modules/tanl (Depends-on): Likewise.
16297         * modules/tcgetsid (Depends-on): Likewise.
16298         * modules/tmpfile (Depends-on): Likewise.
16299         * modules/trunc (Depends-on): Likewise.
16300         * modules/truncf (Depends-on): Likewise.
16301         * modules/truncl (Depends-on): Likewise.
16302         * modules/uname (Depends-on): Likewise.
16303         * modules/unlink (Depends-on): Likewise.
16304         * modules/unlockpt (Depends-on): Likewise.
16305         * modules/unsetenv (Depends-on): Likewise.
16306         * modules/usleep (Depends-on): Likewise.
16307         * modules/utimensat (Depends-on): Likewise.
16308         * modules/vasprintf (Depends-on): Likewise.
16309         * modules/vdprintf (Depends-on): Likewise.
16310         * modules/vdprintf-posix (Depends-on): Likewise.
16311         * modules/vfprintf-posix (Depends-on): Likewise.
16312         * modules/vprintf-posix (Depends-on): Likewise.
16313         * modules/vsnprintf (Depends-on): Likewise.
16314         * modules/vsnprintf-posix (Depends-on): Likewise.
16315         * modules/vsprintf-posix (Depends-on): Likewise.
16316         * modules/wcrtomb (Depends-on): Likewise.
16317         * modules/wcscasecmp (Depends-on): Likewise.
16318         * modules/wcscspn (Depends-on): Likewise.
16319         * modules/wcsdup (Depends-on): Likewise.
16320         * modules/wcsncasecmp (Depends-on): Likewise.
16321         * modules/wcsnrtombs (Depends-on): Likewise.
16322         * modules/wcspbrk (Depends-on): Likewise.
16323         * modules/wcsrtombs (Depends-on): Likewise.
16324         * modules/wcsspn (Depends-on): Likewise.
16325         * modules/wcsstr (Depends-on): Likewise.
16326         * modules/wcstok (Depends-on): Likewise.
16327         * modules/wcswidth (Depends-on): Likewise.
16328         * modules/wctob (Depends-on): Likewise.
16329         * modules/wctomb (Depends-on): Likewise.
16330         * modules/wctype (Depends-on): Likewise.
16331         * modules/wcwidth (Depends-on): Likewise.
16332         * modules/write (Depends-on): Likewise.
16333
16334 2011-05-03  Bruno Haible  <bruno@clisp.org>
16335
16336         Support for conditional dependencies.
16337         * doc/gnulib.texi (Module description): Document the syntax of
16338         conditional dependencies.
16339         * gnulib-tool: New option --conditional-dependencies.
16340         (func_usage): Document it.
16341         (cond_dependencies): New variable.
16342         (func_get_automake_snippet_conditional,
16343         func_get_automake_snippet_unconditional): New functions, extracted from
16344         func_get_automake_snippet.
16345         (func_get_automake_snippet): Use them.
16346         (sed_first_32_chars): New variable.
16347         (func_module_shellfunc_name): New function.
16348         (func_module_shellvar_name): New function.
16349         (func_module_conditional_name): New function.
16350         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
16351         func_cond_module_condition): New functions.
16352         (func_modules_transitive_closure): Add support for conditional
16353         dependencies.
16354         (func_emit_lib_Makefile_am): For a conditional module, enclose the
16355         conditional automake snippet in an automake conditional.
16356         (func_emit_autoconf_snippets): Emit shell functions that contain the
16357         code for conditional modules.
16358         (func_import, func_create_testdir): Update specification.
16359
16360 2011-05-03  Eric Blake  <eblake@redhat.com>
16361
16362         test-getaddrinfo: report error information
16363         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16364
16365 2011-05-03  Jim Meyering  <meyering@redhat.com>
16366
16367         bootstrap: avoid build failure when $GZIP is set
16368         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16369         program name.  If defined at all, it is supposed to list gzip options.
16370         Reported by Alan Curry in http://debbugs.gnu.org/8609
16371
16372 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16373
16374         readme-release: new module with release instructions
16375         * modules/readme-release: New module.
16376         * top/README-release: New file, from coreutils, grep, diffutils.
16377         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16378
16379 2011-05-02  Eric Blake  <eblake@redhat.com>
16380
16381         fflush: also replace fclose when fixing fflush
16382         * modules/fflush (Depends-on): Add fclose.
16383         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16384         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16385         memstreams with no backing fd.
16386         * doc/posix-functions/fclose.texi (fclose): Document the use of
16387         fflush module to fix the bug.
16388         * tests/test-fclose.c (main): Relax test when fclose is used in
16389         isolation.
16390
16391         fclose: add some tests
16392         * modules/fclose-tests: New test module.
16393         * tests/test-fclose.c: New file.
16394         * doc/posix-functions/fclose.texi (fclose): Document the bug.
16395
16396         fclose: reduced dependencies
16397         * modules/fclose (Depends-on): Switch from fflush/fseeko to
16398         simpler lseek.
16399         * lib/fclose.c (rpl_fclose): Likewise.
16400         Reported by Simon Josefsson.
16401
16402         exit: drop remaining clients
16403         * modules/argmatch (Depends-on): Replace exit with stdlib.
16404         * modules/copy-file (Depends-on): Likewise.
16405         * modules/execute (Depends-on): Likewise.
16406         * modules/exitfail (Depends-on): Likewise.
16407         * modules/obstack (Depends-on): Likewise.
16408         * modules/pagealign_alloc (Depends-on): Likewise.
16409         * modules/pipe-filter-gi (Depends-on): Likewise.
16410         * modules/pipe-filter-ii (Depends-on): Likewise.
16411         * modules/savewd (Depends-on): Likewise.
16412         * modules/spawn-pipe (Depends-on): Likewise.
16413         * modules/wait-process (Depends-on): Likewise.
16414         * modules/xsetenv (Depends-on): Likewise.
16415         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
16416         * modules/git-merge-changelog (Depends-on): Likewise.
16417         * modules/long-options (Depends-on): Likewise.
16418         * modules/pt_chown (Depends-on): Likewise.
16419         * modules/sysexits (Depends-on): Likewise.
16420
16421         freading: relax license from LGPLv3+ to LGPLv2+
16422         * modules/freading (License): Relax LGPL version.
16423
16424 2011-05-02  Bruno Haible  <bruno@clisp.org>
16425
16426         fchdir: Remove unused dependencies.
16427         * modules/fchdir (Depends-on): Remove include_next.
16428
16429 2011-05-02  Bruno Haible  <bruno@clisp.org>
16430
16431         gnulib-tool: Refactor.
16432         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
16433         from func_emit_autoconf_snippets.
16434         (func_emit_autoconf_snippets): Use it.
16435
16436 2011-05-02  Simon Josefsson  <simon@josefsson.org>
16437
16438         * NEWS: Document removal of 'exit'.
16439         * modules/exit: Remove file.
16440
16441 2011-05-01  Bruno Haible  <bruno@clisp.org>
16442
16443         Update DEPENDENCIES.
16444         * DEPENDENCIES (gettext): Recommend the newest release.
16445         Reported by Simon Josefsson.
16446
16447 2011-05-01  Bruno Haible  <bruno@clisp.org>
16448
16449         gnulib-tool: Reduce code duplication.
16450         * gnulib-tool (func_emit_autoconf_snippets): New function.
16451         (func_import, func_create_testdir): Use it.
16452
16453 2011-04-30  Eric Blake  <eblake@redhat.com>
16454
16455         fclose: don't fail on non-seekable input stream
16456         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
16457         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
16458         since fflush is allowed to fail in that case.
16459
16460 2011-04-30  Bruno Haible  <bruno@clisp.org>
16461
16462         dup3: cleanup
16463         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
16464
16465 2011-04-30  Bruno Haible  <bruno@clisp.org>
16466
16467         netdb: Make it work in C++ mode.
16468         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
16469         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
16470         module.
16471         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
16472         gl_MODULE_INDICATOR_FOR_TESTS.
16473         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
16474         * modules/netdb-c++-tests: New file.
16475         * tests/test-netdb-c++.cc: New file.
16476
16477 2011-04-30  Bruno Haible  <bruno@clisp.org>
16478
16479         New modules 'vfscanf', 'vscanf'.
16480         * modules/vfscanf: New file.
16481         * modules/vscanf: New file.
16482         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
16483         here.
16484         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
16485         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
16486
16487 2011-04-30  Bruno Haible  <bruno@clisp.org>
16488
16489         passfd: Add comments.
16490         * lib/passfd.c: Add comments about platforms.
16491
16492 2011-04-30  Bruno Haible  <bruno@clisp.org>
16493
16494         sys_uio: Make <sys/uio.h> self-contained.
16495         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
16496         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
16497
16498 2011-04-30  Bruno Haible  <bruno@clisp.org>
16499
16500         sys_socket: Ensure 'struct iovec' definition.
16501         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
16502         <sys/socket.h>.
16503         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
16504
16505 2011-04-30  Bruno Haible  <bruno@clisp.org>
16506
16507         sys_uio: Protect definition of 'struct iovec'.
16508         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16509         it as a C struct.
16510
16511 2011-04-30  Bruno Haible  <bruno@clisp.org>
16512
16513         manywarnings: fix indentation
16514         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16515
16516 2011-04-30  Pádraig Brady <P@draigBrady.com>
16517
16518         manywarnings: add -Wno-missing-field-initializers if needed.
16519         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16520         option if it's needed to allow initialization with { 0, }
16521
16522 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16523
16524         announce-gen: cosmetic improvement
16525         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16526
16527 2011-04-29  Jim Meyering  <meyering@redhat.com>
16528
16529         vc-list-files: indent with spaces, not TABs
16530         * build-aux/vc-list-files: Convert leading TABs to spaces,
16531         to match the style of most other files in gnulib.
16532
16533         announce-gen: indent with spaces, not TABs
16534         * build-aux/announce-gen: Convert all TABs to spaces, to match
16535         the style of most other files in gnulib.
16536
16537 2011-04-29  Eric Blake  <eblake@redhat.com>
16538
16539         quotearg: avoid uninitialized variable use
16540         * lib/quotearg.c (quoting_options_from_style): Initialize
16541         remaining fields, and ensure that custom styles are only used via
16542         quoting_options rather than quoting_style.
16543
16544 2011-04-29  Jim Meyering  <meyering@redhat.com>
16545
16546         maint.mk: remove unused VC-tag variable
16547         * top/maint.mk (VC-tag): Remove unused variable.
16548
16549 2011-04-29  Bruno Haible  <bruno@clisp.org>
16550
16551         netdb: fix gai_strerror replacements
16552         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16553         * modules/netdb: Substitute it.
16554
16555 2011-04-29  Jim Meyering  <meyering@redhat.com>
16556
16557         test-getcwd.c: avoid new set-but-not-used warning
16558         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16559         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16560         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16561         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16562
16563         test-hash.c: avoid a new shadowing warning
16564         * tests/test-hash.c (main): Don't shadow "dup".
16565
16566 2011-04-28  Eric Blake  <eblake@redhat.com>
16567
16568         getaddrinfo: fix gai_strerror signature
16569         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16570         and work around mingw with UNICODE defined.
16571         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16572         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16573         * modules/netdb (Makefile.am): Substitute it.
16574         * lib/netdb.in.h (gai_strerror): Declare replacement.
16575         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16576         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16577         the fix.
16578
16579         getsockopt: avoid compiler warning
16580         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16581         Reported by Matthias Bolte.
16582
16583         tests: drop unused link dependency
16584         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16585         * modules/dirent-safer-tests (Makefile.am): Likewise.
16586         * modules/fdopendir-tests (Makefile.am): Likewise.
16587         * modules/mkfifoat-tests (Makefile.am): Likewise.
16588         * modules/openat-safer-tests (Makefile.am): Likewise.
16589         * modules/openat-tests (Makefile.am): Likewise.
16590         * modules/readlinkat-tests (Makefile.am): Likewise.
16591         * modules/symlinkat-tests (Makefile.am): Likewise.
16592         * modules/linkat-tests (Makefile.am): Likewise.
16593         (Depends-on): Switch to filenamecat-lgpl.
16594         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16595         LIBINTL.
16596         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16597         * tests/test-linkat.c (main): Don't require xalloc.
16598
16599         hash, mgetgroups: drop xalloc dependency
16600         * lib/hash.c (includes): Adjust includes.
16601         * lib/mgetgroups.c (includes): Likewise.
16602         (xgetgroups): Move...
16603         * lib/xgetgroups.c: ...to new file.
16604         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16605         * modules/xgetgroups: New file, split from...
16606         * modules/mgetgroups: ...here.
16607         (Depends-on): Add xalloc-oversized.
16608         * modules/hash (Depends-on): Likewise.
16609         * modules/hash-tests (Depends-on): Drop xalloc.
16610         (test_hash_LDADD): Drop unused library.
16611         * tests/test-hash.c (main): Break xalloc dependency.
16612         (includes): Drop unused include.
16613
16614         xalloc-oversized: new module
16615         * modules/xalloc-oversized: New module.
16616         * modules/xalloc (Depends-on): Add it.
16617         * lib/xalloc.h (xalloc_oversized): Move...
16618         * lib/xalloc-oversized.h: ...into new file.
16619
16620         utimecmp: drop dependency on xmalloc
16621         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16622         due to memory pressure.
16623         * modules/utimecmp (Depends-on): Drop xalloc.
16624
16625 2011-04-27  Eric Blake  <eblake@redhat.com>
16626
16627         getcwd: fix mingw bugs
16628         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16629         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16630         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16631
16632 2011-04-27  Bruno Haible  <bruno@clisp.org>
16633
16634         mkstemps: Ensure declaration on MacOS X 10.5.
16635         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16636         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16637         MacOS X.
16638
16639 2011-04-27  Bruno Haible  <bruno@clisp.org>
16640
16641         mkstemp: More documentation.
16642         * doc/posix-functions/mkstemp.texi: Document header file problem on
16643         MacOS X.
16644
16645 2011-04-27  Bruno Haible  <bruno@clisp.org>
16646
16647         mkstemp: Tweak configure message when cross-compiling.
16648         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16649         result as a guess.
16650
16651 2011-04-27  Bruno Haible  <bruno@clisp.org>
16652
16653         clean-temp: Clarify what it does.
16654         * lib/clean-temp.h: Add more comments.
16655         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16656         module.
16657         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
16658         * doc/glibc-functions/mkstemps.texi: Likewise.
16659         * doc/glibc-functions/mkostemps.texi: Likewise.
16660
16661 2011-04-27  Eric Blake  <eblake@redhat.com>
16662
16663         fchdir: avoid extra chdir and fix test
16664         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
16665         getcwd-lgpl.
16666         * lib/fchdir.c (get_name): Any absolute name will do; it does not
16667         have to be canonical.
16668         (canonicalize_file_name): Drop unused macro.
16669         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
16670
16671         filenamecat-lgpl: fix licence
16672         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
16673         when it was first created.
16674
16675         linkat, renameat: add missing dependency
16676         * modules/linkat (Depends-on): Require getcwd-lgpl.
16677         * modules/renameat (Depends-on): Likewise.
16678
16679         tests: reduce dependencies
16680         * tests/test-linkat.c (main): Use lighter-weight getcwd.
16681         * tests/test-renameat.c (main): Likewise.
16682         * modules/linkat-tests (Depends-on): Relax dependency.
16683         * modules/renameat-tests (Depends-on): Likewise.
16684         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
16685         dependency explicit.
16686
16687         save-cwd: reduce default dependency
16688         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
16689         * lib/save-cwd.c: Update comments.
16690         * NEWS: Document the semantic change.
16691
16692         getcwd: enhance tests
16693         * tests/test-getcwd-lgpl.c: New file, taken from...
16694         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
16695         repeat long path stress tests from m4 probe.
16696         * modules/getcwd-lgpl-tests: New module.
16697         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
16698         * m4/getcwd-abort-bug.m4: Update comment.
16699         * m4/getcwd-path-max.m4: Likewise.
16700
16701         getcwd-lgpl: new module
16702         * modules/getcwd-lgpl: New module.
16703         * lib/getcwd-lgpl.c: New file.
16704         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16705         * MODULES.html.sh (lacking POSIX:2008): Likewise.
16706         * modules/getcwd (configure.ac): Set C witness.
16707         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
16708
16709         getcwd: tweak comments
16710         * m4/getcwd-abort-bug.m4: Fix comments.
16711         * m4/getcwd-path-max.m4: Likewise.
16712         * m4/getcwd.m4: Likewise.
16713
16714 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16715         and Eric Blake  <eblake@redhat.com>
16716
16717         mkstemp: replace if system version uses wrong permissions
16718         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
16719         read/write mode bits set in file created by mkstemp.
16720         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
16721
16722 2011-04-27  Eric Blake  <eblake@redhat.com>
16723
16724         passfd: avoid compiler warning
16725         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
16726         Reported by Laine Stump.
16727
16728 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
16729
16730         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
16731         required by the NetBSD (and perhaps other 4.4BSD derived) join.
16732
16733 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16734         and Eric Blake  <eblake@redhat.com>
16735
16736         mkstemp: mention clean-temp module
16737         * lib/mkstemp.c: Add comment.
16738         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
16739
16740 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
16741
16742         inttypes: also provide default values for 32-bit tests
16743         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
16744         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
16745
16746 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16747
16748         strtoumax: remove dependency on strtoimax
16749         This is like the strtoull change of yesterday.
16750         * modules/strtoumax (Files): Add lib/strtoimax.c.
16751         (Depends-on): Remove strtoimax and add verify.
16752
16753         inttypes-incomplete: new module
16754         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
16755         all but the PRI* and SCN* parts of gl_INTTYPES_H.
16756         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
16757         of gl_INTTYPES_H.
16758         (gl_INTTYPES_H): Rewrite in terms of these new macros.
16759         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
16760         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
16761         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
16762         * modules/strtoumax, modules/xstrtol (Depends-on):
16763         Depend on inttypes-incomplete, not inttypes.
16764         * modules/inttypes-incomplete: New module, containing the contents
16765         of the old modules/inttypes module, except that the Files: section
16766         omits m4/inttypes-pri.m4, and the configure.ac section invokes
16767         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
16768         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
16769         (Depends-on): Depend only on inttypes-incomplete.
16770         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
16771
16772         inttypes: omit now-redundant strtoimax and strtoumax work
16773         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
16774         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
16775
16776         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
16777         This supports apps that need pointers to strtoimax and strtoumax,
16778         and ports to HP-UX 11.00 64.bit, which has macros that expand to
16779         nonexistent functions.  See
16780         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
16781         et seq.
16782         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
16783         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
16784         a macro.
16785         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16786
16787 2011-04-25  Simon Josefsson  <simon@josefsson.org>
16788
16789         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
16790
16791 2011-04-25  Bruno Haible  <bruno@clisp.org>
16792
16793         strtol, strtoul: Mark modules as obsolete.
16794         * modules/strtol (Status, Notice): New sections.
16795         * modules/strtoul (Status, Notice): New sections.
16796
16797 2011-04-25  Bruno Haible  <bruno@clisp.org>
16798
16799         strtod: Remove check for strtod, unless supporting old platforms.
16800         * modules/strtod-obsolete: New file.
16801         * m4/strtod-obsolete.m4: New file.
16802         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
16803         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
16804         * modules/strtod (Depends-on): Add strtod-obsolete.
16805         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
16806
16807 2011-04-25  Bruno Haible  <bruno@clisp.org>
16808
16809         strcase: Make module obsolete.
16810         * modules/strcase (Status, Notice): New sections.
16811
16812 2011-04-25  Bruno Haible  <bruno@clisp.org>
16813
16814         dup2: Remove check for dup2, unless supporting old obsolete platforms.
16815         * modules/dup2-obsolete: New file.
16816         * m4/dup2-obsolete.m4: New file.
16817         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
16818         gl_FUNC_DUP2_OBSOLETE is not also defined.
16819         * modules/dup2 (Depends-on): Add dup2-obsolete.
16820         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
16821
16822 2011-04-25  Bruno Haible  <bruno@clisp.org>
16823
16824         strnlen: Avoid memchr related link error on old obsolete platforms.
16825         * modules/memchr-obsolete: New file.
16826         * m4/memchr-obsolete.m4: New file.
16827         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
16828         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
16829         * modules/memchr (Depends-on): Add memchr-obsolete.
16830         * modules/strnlen (Depends-on): Likewise.
16831         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
16832
16833 2011-04-25  Jim Meyering  <meyering@redhat.com>
16834
16835         maint.mk: makefile_at_at_check extend and clean up
16836         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
16837         in addition to */Makefile.am.
16838         Exempt legitimate uses of @VAR@ notation, e.g.,
16839         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
16840         Remove obsolete coreutils-specific comment.
16841         Prompted by discussion here:
16842         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
16843
16844 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16845
16846         strtoul: remove dependency on strtol
16847         This is so that 'configure' need not check for strtol merely because
16848         the application needs strtoul.
16849         * modules/strtoul (Files): Add lib/strtol.c.
16850         (Depends-on): Remove strtol.
16851
16852         strtoull: remove dependency on strtoul
16853         This is like the strtoll change.
16854         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
16855         (Depends-on): Remove strtoul.
16856
16857         strtoll: remove dependency on strtol
16858         This is so that 'configure' need not check for strtol merely because
16859         the application needs strtoll.
16860         * modules/strtoll (Files): Add lib/strtol.c.
16861         (Depends-on): Remove strtol.
16862
16863 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16864
16865         inttypes: Move some configure check to module 'imaxdiv'.
16866         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
16867         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
16868         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
16869
16870 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16871
16872         inttypes: Move some configure check to module 'imaxabs'.
16873         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
16874         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
16875         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
16876
16877 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16878
16879         inttypes: Remove configure tests that are not needed since 2009-12-31.
16880         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
16881         gl_cv_header_working_inttypes_h.
16882
16883 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16884
16885         * modules/strnlen (Depends-on): Remove memchr.
16886         The strnlen implementation doesn't need the memchr module's fixes; see
16887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
16888
16889         strtol: remove dependency on wchar
16890         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
16891         * modules/strtol (Depends-on): Remove wchar.
16892
16893 2011-04-21  Eric Blake  <eblake@redhat.com>
16894
16895         passfd: fix test regression on Linux
16896         * modules/passfd-tests (configure.ac): Correct socketpair check.
16897
16898         passfd: speed up configure and drop unused code
16899         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
16900         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
16901         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
16902         Instead of probing at configure for unix_scm_rights_bsd44_way,
16903         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
16904         check to a struct member probe.
16905         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
16906         (sendfd, recvfd): Update preprocessor checks.
16907         * modules/passfd (Files): Reflect rename, and drop unused file.
16908         (Depends-on): Drop unused dependency.
16909
16910         passfd: allow compilation on mingw
16911         * modules/sys_socket (Depends-on): Add sys_uio.
16912         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
16913         iovec and a minimal struct msghdr.
16914         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
16915         * tests/test-sys_socket.c (main): Enhance test.
16916         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
16917         guaranteed to provide what we need.
16918         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
16919         * modules/passfd-tests (Depends-on): Add sys_wait.
16920         * tests/test-passfd.c (main): Skip test on mingw, for now.
16921         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
16922         partial 'struct msghdr' implementation.
16923
16924         sys_uio: new module
16925         * modules/sys_uio: New module.
16926         * modules/sys_uio-tests: Likewise.
16927         * lib/sys_uio.in.h: New file.
16928         * m4/sys_uio_h.m4: Likewise.
16929         * tests/test-sys_uio.c: Likewise.
16930         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
16931         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
16932
16933 2011-04-20  Jim Meyering  <meyering@redhat.com>
16934
16935         useless-if-before-free: avoid false-positive
16936         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
16937         disjunct so that it too requires a terminating ";".  Without that,
16938         this script would identify as useless one statement from gcc that
16939         was not:
16940           if (aligned_ptr)
16941             free (((void **) aligned_ptr) [-1]);
16942
16943 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
16944
16945         doc: update users.txt.
16946         * users.txt: Add barcode.
16947
16948 2011-04-19  Bruno Haible  <bruno@clisp.org>
16949
16950         ioctl: Remove link dependency on native Windows.
16951         * lib/fd-hook.h: Renamed from lib/close-hook.h.
16952         (gl_close_fn, gl_ioctl_fn): New types.
16953         (struct fd_hook): Renamed from struct close_hook. Change type of
16954         private_close_fn field. Add private_ioctl_fn field.
16955         (close_hook_fn): Add parameter for primary close method.
16956         (execute_close_hooks, execute_all_close_hooks): Likewise.
16957         (ioctl_hook_fn): New type.
16958         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
16959         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16960         argument.
16961         (unregister_fd_hook): Renamed from unregister_close_hook.
16962         * lib/fd-hook.c: Renamed from lib/close-hook.c.
16963         Don't include <unistd.h>.
16964         (close): Remove undef.
16965         (anchor): Update.
16966         (execute_close_hooks): Add argument for primary close method.
16967         (execute_all_close_hooks): Likewise.
16968         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
16969         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16970         argument. Allow each argument to be NULL.
16971         (unregister_fd_hook): Renamed from unregister_close_hook.
16972         * lib/close.c (rpl_close): Pass 'close' function pointer to
16973         execute_all_close_hooks.
16974         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
16975         (primary_ioctl): New function.
16976         (ioctl): Don't call ioctlsocket here. Instead, call
16977         execute_all_ioctl_hooks.
16978         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
16979         close method.
16980         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
16981         (fd_sockets_hook): Renamed from close_sockets_hook.
16982         (gl_sockets_startup, gl_sockets_cleanup): Update.
16983         * modules/fd-hook: Renamed from modules/close-hook. Update.
16984         * modules/close (Depends-on): Add fd-hook, remove close-hook.
16985         * modules/sockets (Depends-on): Likewise.
16986         * modules/ioctl (Depends-on): Add fd-hook.
16987         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
16988         GNULIB_SOCKET.
16989
16990 2011-04-19  Bruno Haible  <bruno@clisp.org>
16991
16992         Move the support of O_NONBLOCK in open() to the 'open' module.
16993         * modules/nonblocking (Depends-on): Remove 'open'.
16994         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
16995         gl_cv_have_open_O_NONBLOCK.
16996         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
16997         O_NONBLOCK support.
16998         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
16999
17000 2011-04-17  Bruno Haible  <bruno@clisp.org>
17001
17002         pipe2: Simplify code.
17003         * lib/pipe2.c (pipe2): Reduce code duplication.
17004
17005 2011-04-17  Bruno Haible  <bruno@clisp.org>
17006
17007         nonblocking: Add comment.
17008         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17009
17010 2011-04-17  Bruno Haible  <bruno@clisp.org>
17011
17012         nonblocking: Add tests for sockets.
17013         * tests/test-nonblocking-socket.sh: New file.
17014         * tests/test-nonblocking-socket-main.c: New file.
17015         * tests/test-nonblocking-socket-child.c: New file.
17016         * tests/test-nonblocking-socket.h: New file.
17017         * tests/socket-server.h: New file.
17018         * tests/socket-client.h: New file.
17019         * modules/nonblocking-socket-tests: New file.
17020         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17021
17022 2011-04-17  Bruno Haible  <bruno@clisp.org>
17023
17024         nonblocking: Add tests for pipes.
17025         * tests/test-nonblocking-pipe.sh: New file.
17026         * tests/test-nonblocking-pipe-main.c: New file.
17027         * tests/test-nonblocking-pipe-child.c: New file.
17028         * tests/test-nonblocking-pipe.h: New file.
17029         * tests/test-nonblocking-writer.h: New file.
17030         * tests/test-nonblocking-reader.h: New file.
17031         * tests/test-nonblocking-misc.h: New file.
17032         * modules/nonblocking-pipe-tests: New file.
17033         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17034
17035 2011-04-16  Bruno Haible  <bruno@clisp.org>
17036
17037         gettext: Clarify the needed programmer actions.
17038         * modules/gettext (Notice): New field.
17039         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17040
17041 2011-04-16  Bruno Haible  <bruno@clisp.org>
17042
17043         strchrnul: Tweak last commit.
17044         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17045         bug.
17046         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17047         as in _GL_FUNCDECL_SYS.
17048         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17049         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17050
17051 2011-04-15  Eric Blake  <eblake@redhat.com>
17052
17053         strchrnul: work around cygwin bug
17054         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17055         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17056         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17057         * modules/string (Makefile.am): Substitute it.
17058         * lib/string.in.h (strchrnul): Use it.
17059
17060 2011-04-15  Bruno Haible  <bruno@clisp.org>
17061
17062         Don't require lib/stdio-write.c when only module 'stdio' is used.
17063         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17064         invocation.
17065         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17066
17067 2011-04-14  Bruno Haible  <bruno@clisp.org>
17068
17069         Support non-blocking pipe I/O in read() on native Windows.
17070         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17071         (read): New declaration.
17072         * lib/read.c: New file.
17073         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17074         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17075         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17076         vscanf): New declarations.
17077         * lib/stdio-read.c: New file.
17078         * m4/read.m4: New file.
17079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17080         REPLACE_READ.
17081         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17082         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17083         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17084         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17085         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17086         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17087         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17088         * modules/read: New file.
17089         * modules/nonblocking (Files): Add lib/stdio-read.c.
17090         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17091         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17092         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17093         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17094         * modules/pread (Depends-on): Add read.
17095         * modules/safe-read (Depends-on): Likewise.
17096         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17097         gets, scanf, vfscanf, vscanf): Verify signatures.
17098         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17099         problem with non-blocking pipes.
17100         * doc/posix-functions/fgetc.texi: Likewise.
17101         * doc/posix-functions/fgets.texi: Likewise.
17102         * doc/posix-functions/fread.texi: Likewise.
17103         * doc/posix-functions/fscanf.texi: Likewise.
17104         * doc/posix-functions/getc.texi: Likewise.
17105         * doc/posix-functions/getchar.texi: Likewise.
17106         * doc/posix-functions/gets.texi: Likewise.
17107         * doc/posix-functions/scanf.texi: Likewise.
17108         * doc/posix-functions/vfscanf.texi: Likewise.
17109         * doc/posix-functions/vscanf.texi: Likewise.
17110
17111 2011-04-14  Bruno Haible  <bruno@clisp.org>
17112
17113         Support non-blocking pipe I/O in write() on native Windows.
17114         * lib/write.c (rpl_write): Split a write request that failed merely
17115         because the byte count was larger than the pipe buffer's size.
17116         * doc/posix-functions/write.texi: Mention the problem with large byte
17117         counts.
17118
17119 2011-04-14  Bruno Haible  <bruno@clisp.org>
17120
17121         wchar: Ensure that wchar_t gets defined on uClibc.
17122         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17123         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17124
17125 2011-04-13  Bruno Haible  <bruno@clisp.org>
17126
17127         safe-write, full-read: Avoid unnecessary compilation units.
17128         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17129         (Depends-on): Remove safe-read. Add ssize_t.
17130         * modules/full-read (Files): Add lib/full-write.c.
17131         (Depends-on): Add full-write.
17132
17133 2011-04-13  Bruno Haible  <bruno@clisp.org>
17134
17135         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17136         * modules/pwrite (Depends-on): Add 'write'.
17137
17138 2011-04-13  Bruno Haible  <bruno@clisp.org>
17139
17140         Support non-blocking pipe I/O in write() on native Windows.
17141         * lib/unistd.in.h (write): Enable replacement also if
17142         GNULIB_UNISTD_H_NONBLOCKING is 1.
17143         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17144         (rpl_write): When failing to write on a non-blocking pipe, change
17145         errno from ENOSPC to EAGAIN.
17146         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17147         putchar, puts, vfprintf, vprintf): Enable replacement also if
17148         GNULIB_STDIO_H_NONBLOCKING is 1.
17149         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17150         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17151         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17152         CALL_WITH_SIGPIPE_EMULATION.
17153         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17154         * m4/nonblocking.m4: New file.
17155         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17156         for non-blocking I/O support.
17157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17158         GNULIB_UNISTD_H_NONBLOCKING.
17159         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17160         required for non-blocking I/O support.
17161         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17162         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17163         lib/stdio-write.c, m4/asm-underscore.m4.
17164         (Depends-on): Add stdio, unistd.
17165         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17166         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17167         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17168         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17169         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17170         problem with non-blocking pipes.
17171         * doc/posix-functions/fputc.texi: Likewise.
17172         * doc/posix-functions/fputs.texi: Likewise.
17173         * doc/posix-functions/fwrite.texi: Likewise.
17174         * doc/posix-functions/printf.texi: Likewise.
17175         * doc/posix-functions/putc.texi: Likewise.
17176         * doc/posix-functions/putchar.texi: Likewise.
17177         * doc/posix-functions/puts.texi: Likewise.
17178         * doc/posix-functions/vfprintf.texi: Likewise.
17179         * doc/posix-functions/vprintf.texi: Likewise.
17180         * doc/posix-functions/write.texi: Likewise.
17181
17182 2011-04-10  Jim Meyering  <meyering@redhat.com>
17183
17184         maint.mk: prohibit doubled words
17185         Detect them also when they're separated by a newline.
17186         There are 3 ways to customize it:
17187           - disable the test on a per file basis, as usual with rules using
17188             $(VC_LIST_EXCEPT)
17189           - replace the default doubled-word-selecting regexp (affects all files)
17190           - ignore a particular file-vs-doubled-word match
17191         I nearly used that last one to ignore the "is is" match in
17192         coreutils' NEWS file, since the text was "ls -is is ..."
17193         To do that, I would have added this line to cfg.mk:
17194           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17195         but it would have ignored any "is is" match in NEWS.
17196         Low probability, but still...
17197         Instead, I changed the text, slightly:
17198           -  ls -is is now consistent with ls -lis in ignoring values returned
17199           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17200         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17201         (prohibit_doubled_word_): Define.
17202         (sc_prohibit_doubled_word): New rule.
17203         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17204
17205 2011-04-10  Jim Meyering  <meyering@redhat.com>
17206
17207         maint: fix doubled-word typo in comment
17208         * m4/gethostname.m4: s/is is/it is/
17209         * m4/getdomainname.m4: Likewise.
17210
17211 2011-04-10  Jim Meyering  <meyering@redhat.com>
17212
17213         maint: remove doubled word: s/it it/it/
17214         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17215
17216 2011-04-10  Jim Meyering  <meyering@redhat.com>
17217
17218         maint.mk: remove useless semicolon and backslash
17219         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17220         semicolon and backslash.
17221
17222 2011-04-10  Bruno Haible  <bruno@clisp.org>
17223
17224         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17225         * modules/stdint-tests (Depends-on): Add wchar.
17226
17227 2011-04-10  Jim Meyering  <meyering@redhat.com>
17228
17229         maint: remove doubled words in comments, e.g., s/a a/a/
17230         * lib/strptime.c (day_of_the_week): s/the the/the/
17231         * tests/test-chown.h (test_chown): s/a a/a/
17232
17233         test-chown.h: correct a cast
17234         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17235         when the destination is a stat.st_gid.
17236
17237 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17238
17239         getaddrinfo: Fix test for sa_len member.
17240         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17241         include <sys/types.h> before <sys/socket.h>.
17242
17243 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17244
17245         maint: change "can not" to "cannot"
17246         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17247         boundaries.
17248
17249 2011-04-09  Jim Meyering  <meyering@redhat.com>
17250
17251         maint: change "a a" to "a"
17252         * tests/test-lchown.h (test_lchown): s/a a/a/
17253
17254         maint.mk: prohibit \<the the\>
17255         * top/maint.mk (sc_prohibit_the_the): New rule.
17256
17257         maint: fix "the the" in comment
17258         * lib/count-one-bits.h: s/the the/the/
17259
17260         maint: change "can not" to "cannot"
17261         But do not change the occurrences in maintain.texi or in
17262         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17263         * doc/gnulib-tool.texi: s/can not/cannot/
17264         * doc/posix-functions/accept.texi (accept): Likewise.
17265         * doc/posix-functions/socket.texi (socket): Likewise.
17266         * lib/mbrtowc.c: Likewise.
17267
17268         maint.mk: prohibit use of "can not"
17269         * top/maint.mk (sc_prohibit_can_not): New rule.
17270         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17271
17272 2011-04-09  Bruno Haible  <bruno@clisp.org>
17273
17274         careadlinkat: Guard against misuse of careadlinkatcwd.
17275         * lib/careadlinkat.c: Include <stdlib.h>.
17276         (careadlinkatcwd): Check that the fd argument is as expected.
17277
17278 2011-04-09  Bruno Haible  <bruno@clisp.org>
17279
17280         careadlinkat: Use common coding style.
17281         * lib/careadlinkat.c: Move gnulib includes after system includes.
17282
17283 2011-04-09  Bruno Haible  <bruno@clisp.org>
17284
17285         careadlinkat: Clarify specification.
17286         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17287         (careadlinkatcwd): Add comment.
17288         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17289
17290 2011-04-09  Bruno Haible  <bruno@clisp.org>
17291
17292         areadlinkat: Avoid link error on many platforms.
17293         * modules/areadlinkat (Depends-on): Add areadlink.
17294
17295 2011-04-09  Bruno Haible  <bruno@clisp.org>
17296
17297         allocator, careadlinkat: Fix double-inclusion guard.
17298         * lib/allocator.h: Fix double-inclusion guard.
17299         * lib/careadlinkat.h: Likewise.
17300
17301 2011-04-09  Bruno Haible  <bruno@clisp.org>
17302
17303         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17304         * lib/relocwrapper.c: Update dependencies hierarchy.
17305         * build-aux/install-reloc: Update list of files to be compiled.
17306         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17307         lib/allocator.[hc].
17308
17309 2011-04-08  Eric Blake  <eblake@redhat.com>
17310
17311         strftime: silence gnulib-tool warning
17312         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17313
17314 2011-04-08  Bruno Haible  <bruno@clisp.org>
17315
17316         verify: Fix syntax error with GCC 4.6 in C++ mode.
17317         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17318         (HAVE_STATIC_ASSERT): New macro.
17319         (verify_true, verify): Use 'static_assert' if it is supported and
17320         '_Static_assert' is not supported.
17321
17322 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
17323
17324         allocator: New module.
17325         * modules/allocator, lib/allocator.c: New files.
17326         * lib/allocator.h (stdlib_allocator): New decl.
17327         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
17328         Remove.  Do not include <stdlib.h>.
17329         (careadlinkat): Use stdlib_allocator instead of rolling our own.
17330         * modules/careadlinkat (Files): Remove lib/allocator.h.
17331         (Depends-on): Add allocator.
17332
17333         stdlib: let modules use system malloc, realloc
17334         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
17335         if !_GL_USE_STDLIB_ALLOC.
17336         (malloc, realloc): Limit this change to a smaller scope.
17337
17338         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
17339         (malloc, realloc): Don't #undef; no longer needed.
17340         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17341         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17342         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17343         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17344         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17345         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17346         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17347         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17348
17349         careadlinkat: rename members to avoid problem
17350         * lib/allocator.h (struct allocator): Rename members from
17351         malloc/realloc to allocate/reallocate, to avoid problems if malloc
17352         and realloc are #define'd.  Reported by Eric Blake in
17353         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
17354         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
17355
17356 2011-04-08  Eric Blake  <eblake@redhat.com>
17357
17358         nonblocking: reduce dependency
17359         * tests/test-nonblocking.c: Only test sockets when in use.
17360         * modules/nonblocking-tests (Depends-on): Drop socket.
17361         (Makefile.am): Link even if sockets are not present.
17362         * modules/pipe2-tests (Makefile.am): Likewise.
17363         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17364
17365         pipe2: fix O_NONBLOCK support on mingw
17366         * modules/pipe2 (Depends-on): Add nonblocking.
17367         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17368         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17369         * tests/test-nonblocking.c (main): Likewise.
17370         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17371
17372         fcntl-h: fix O_ACCMODE on cygwin
17373         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17374         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17375
17376         pipe-filter: drop O_NONBLOCK workarounds
17377         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17378         * modules/pipe-filter-ii (Depends-on): Likewise.
17379         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17380
17381         nonblocking: provide O_NONBLOCK for mingw
17382         * modules/nonblocking (Depends-on): Add open.
17383         (configure.ac): Set new witness macro.
17384         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17385         * modules/fcntl-h (Makefile.am): Substitute it.
17386         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17387         nonblocking module is in use.
17388         * lib/nonblocking.c: Adjust portability test.
17389         * lib/open.c (open): Don't let native open see gnulib flag.
17390         * tests/test-fcntl-h.c (main): Enhance test.
17391         * tests/test-open.h (test_open): Likewise.
17392         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17393
17394         careadlinkat: fix compilation error on mingw
17395         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
17396         within struct allocator.
17397
17398 2011-04-06  Eric Blake  <eblake@redhat.com>
17399
17400         binary-io: relicense under LGPLv2+
17401         * modules/binary-io (License): Relax to LGPLv2+.
17402         Requested for libvirt, and required by pipe2.
17403
17404 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
17405
17406         verify: use _Static_assert if available
17407         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
17408         (verify_true, verify): Use it if available.  This generates better
17409         diagnostics with GCC 4.6.0 and later.
17410
17411 2011-04-05  Bruno Haible  <bruno@clisp.org>
17412
17413         Remove leftover generated .h files after config.status changed.
17414
17415         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
17416         GL_GENERATE_ALLOCA_H.
17417         * modules/alloca-opt (Makefile.am): Remove alloca.h if
17418         GL_GENERATE_ALLOCA_H evaluates to false.
17419
17420         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
17421         GL_GENERATE_ARGZ_H.
17422         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
17423         evaluates to false.
17424
17425         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
17426         GL_GENERATE_BYTESWAP_H.
17427         * modules/byteswap (Makefile.am): Remove byteswap.h if
17428         GL_GENERATE_BYTESWAP_H evaluates to false.
17429
17430         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
17431         GL_GENERATE_ERRNO_H.
17432         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
17433         evaluates to false.
17434
17435         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
17436         GL_GENERATE_FLOAT_H.
17437         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
17438         evaluates to false.
17439
17440         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
17441         GL_GENERATE_FNMATCH_H.
17442         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
17443         GL_GENERATE_FNMATCH_H evaluates to false.
17444
17445         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
17446         GL_GENERATE_GLOB_H.
17447         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
17448         evaluates to false.
17449
17450         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
17451         automake conditional GL_GENERATE_ICONV_H.
17452         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
17453         evaluates to false.
17454
17455         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
17456         GL_GENERATE_NETINET_IN_H.
17457         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
17458         GL_GENERATE_NETINET_IN_H evaluates to false.
17459
17460         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
17461         conditional GL_GENERATE_PTHREAD_H.
17462         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
17463         * modules/pthread (Makefile.am): Remove pthread.h if
17464         GL_GENERATE_PTHREAD_H evaluates to false.
17465
17466         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
17467         GL_GENERATE_SCHED_H.
17468         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
17469         evaluates to false.
17470
17471         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
17472         conditional GL_GENERATE_SELINUX_CONTEXT_H.
17473         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
17474         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
17475
17476         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
17477         GL_GENERATE_STDARG_H.
17478         * modules/stdarg (Makefile.am): Remove stdarg.h if
17479         GL_GENERATE_STDARG_H evaluates to false.
17480
17481         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
17482         GL_GENERATE_STDBOOL_H.
17483         * modules/stdbool (Makefile.am): Remove stdbool.h if
17484         GL_GENERATE_STDBOOL_H evaluates to false.
17485
17486         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
17487         conditional GL_GENERATE_STDDEF_H.
17488         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
17489         * modules/stddef (Makefile.am): Remove stddef.h if
17490         GL_GENERATE_STDDEF_H evaluates to false.
17491
17492         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
17493         GL_GENERATE_STDINT_H.
17494         * modules/stdint (Makefile.am): Remove stdint.h if
17495         GL_GENERATE_STDINT_H evaluates to false.
17496
17497         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
17498         GL_GENERATE_SYSEXITS_H.
17499         * modules/sysexits (Makefile.am): Remove sysexits.h if
17500         GL_GENERATE_SYSEXITS_H evaluates to false.
17501
17502         Reported by Karl Berry and Ralf Wildenhues.
17503
17504 2011-04-05  Bruno Haible  <bruno@clisp.org>
17505
17506         Ensure to rebuild generated .h files when config.status has changed.
17507         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17508         config.status.
17509         * modules/ctype (Makefile.am): Likewise.
17510         * modules/dirent (Makefile.am): Likewise.
17511         * modules/errno (Makefile.am): Likewise.
17512         * modules/fcntl-h (Makefile.am): Likewise.
17513         * modules/float (Makefile.am): Likewise.
17514         * modules/getopt-posix (Makefile.am): Likewise.
17515         * modules/glob (Makefile.am): Likewise.
17516         * modules/iconv-h (Makefile.am): Likewise.
17517         * modules/inttypes (Makefile.am): Likewise.
17518         * modules/langinfo (Makefile.am): Likewise.
17519         * modules/locale (Makefile.am): Likewise.
17520         * modules/math (Makefile.am): Likewise.
17521         * modules/netdb (Makefile.am): Likewise.
17522         * modules/netinet_in (Makefile.am): Likewise.
17523         * modules/poll-h (Makefile.am): Likewise.
17524         * modules/pthread (Makefile.am): Likewise.
17525         * modules/pty (Makefile.am): Likewise.
17526         * modules/sched (Makefile.am): Likewise.
17527         * modules/search (Makefile.am): Likewise.
17528         * modules/selinux-h (Makefile.am): Likewise.
17529         * modules/signal (Makefile.am): Likewise.
17530         * modules/spawn (Makefile.am): Likewise.
17531         * modules/stdarg (Makefile.am): Likewise.
17532         * modules/stdbool (Makefile.am): Likewise.
17533         * modules/stddef (Makefile.am): Likewise.
17534         * modules/stdint (Makefile.am): Likewise.
17535         * modules/stdio (Makefile.am): Likewise.
17536         * modules/stdlib (Makefile.am): Likewise.
17537         * modules/string (Makefile.am): Likewise.
17538         * modules/strings (Makefile.am): Likewise.
17539         * modules/sys_file (Makefile.am): Likewise.
17540         * modules/sys_ioctl (Makefile.am): Likewise.
17541         * modules/sys_select (Makefile.am): Likewise.
17542         * modules/sys_socket (Makefile.am): Likewise.
17543         * modules/sys_stat (Makefile.am): Likewise.
17544         * modules/sys_time (Makefile.am): Likewise.
17545         * modules/sys_times (Makefile.am): Likewise.
17546         * modules/sys_utsname (Makefile.am): Likewise.
17547         * modules/sys_wait (Makefile.am): Likewise.
17548         * modules/sysexits (Makefile.am): Likewise.
17549         * modules/termios (Makefile.am): Likewise.
17550         * modules/time (Makefile.am): Likewise.
17551         * modules/unistd (Makefile.am): Likewise.
17552         * modules/wchar (Makefile.am): Likewise.
17553         * modules/wctype-h (Makefile.am): Likewise.
17554         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17555
17556 2011-04-05  Bruno Haible  <bruno@clisp.org>
17557
17558         pipe2: Relicense under LGPLv2+.
17559         * modules/pipe2 (License): Change to LGPLv2+.
17560         Requested by Eric Blake, for libvirt.
17561
17562 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17563
17564         bootstrap: compute gnulib_extra_files after updating build_aux
17565         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17566         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17567
17568 2011-04-05  Eric Blake  <eblake@redhat.com>
17569
17570         bootstrap: preserve git whitelist item sorting
17571         * build-aux/bootstrap (sort_patterns): New function.
17572         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17573
17574 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17575
17576         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17577         sc_space_tab check.
17578
17579 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17580
17581         areadlink, areadlinkat: rewrite in terms of careadlinkat
17582         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17583         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17584         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17585         (malloc, realloc): Remove #undefs.
17586         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17587         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17588         readlink, ssize_t, stdint, unistd.
17589         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17590         areadlink, stdint.
17591
17592         careadlinkat: new module
17593         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17594         * modules/careadlinkat: New files, written by me with
17595         a review and feedback from Ben Pfaff in
17596         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17597
17598 2011-04-01  Bruno Haible  <bruno@clisp.org>
17599
17600         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17601         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17602         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17603         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17604         Reported by Bruce Korb <bruce.korb@gmail.com>.
17605
17606 2011-04-01  Bruno Haible  <bruno@clisp.org>
17607
17608         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17609         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17610         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17611         * modules/wcpcpy (Depends-on): Add extensions.
17612         * modules/wcpncpy (Depends-on): Likewise.
17613         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17614         systems.
17615         * doc/posix-functions/wcpncpy.texi: Likewise.
17616         * doc/posix-functions/wcwidth.texi: Likewise.
17617
17618 2011-03-31  Eric Blake  <eblake@redhat.com>
17619
17620         nonblocking: fix mingw test failures
17621         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17622         non-blocking flag on regular file.
17623         (get_nonblocking_flag): Set errno on invalid fd.
17624         * tests/test-nonblocking.c (main): Avoid test failure on
17625         directories if fchdir is not active.
17626         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17627
17628 2011-03-31  Bruno Haible  <bruno@clisp.org>
17629
17630         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17631         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17632         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17633         Reported by Simon Josefsson <simon@josefsson.org>.
17634
17635 2011-03-31  Bruno Haible  <bruno@clisp.org>
17636         and Eric Blake  <eblake@redhat.com>
17637
17638         nonblocking: new module
17639         * modules/nonblocking: New module.
17640         * modules/nonblocking-tests: Likewise.
17641         * lib/nonblocking.h: New file.
17642         * lib/nonblocking.c: Likewise.
17643         * tests/test-nonblocking.c: New test.
17644         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17645
17646 2011-03-30  Bruno Haible  <bruno@clisp.org>
17647
17648         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17649         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17650         instead of 'printf' format for GCC >= 4.4.
17651         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17652         (fprintf, printf, vfprintf, vprintf): Declare with
17653         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17654         the system's vfprintf() function.
17655         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17656
17657 2011-03-30  Eric Blake  <eblake@redhat.com>
17658
17659         passfd: fix scoping bug
17660         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
17661         before sendmsg/recvmsg.
17662
17663         passfd: standardize coding conventions
17664         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
17665         can be learned at compile time.
17666         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
17667         ifdefs.
17668         (sendfd, recvfd): Follow gnulib code conventions.
17669
17670         passfd: fix incorrect sendmsg arguments
17671         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
17672         incorrect msg_controllen value.
17673         * modules/passfd-tests (Depends-on): Check for alarm.
17674         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
17675         Reported by Bastien ROUCARIES.
17676
17677 2011-03-30  Bruno Haible  <bruno@clisp.org>
17678
17679         c-strcasestr: Relicense under LGPLv2+.
17680         * modules/c-strcasestr (License): Change to LGPLv2+.
17681         Requested by Eric Blake, for libvirt.
17682
17683 2011-03-30  Simon Josefsson  <simon@josefsson.org>
17684
17685         * users.txt: Add libidn2.  Fix libtasn1 link.
17686
17687 2011-03-30  Jim Meyering  <meyering@redhat.com>
17688
17689         tests: readlink* ("",... fails with EINVAL on newer kernels
17690         readlink and readlinkat have typically failed with ENOENT for
17691         the invalid, empty file name,  "".  However, with the advent
17692         of linux-2.6.39, they fail with EINVAL.
17693         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
17694         when operating on the empty file name.
17695         * tests/test-readlink.h (test_readlink): Likewise.
17696
17697 2011-03-29  Bruno Haible  <bruno@clisp.org>
17698
17699         Relicense some modules under LGPLv2+, for libidn2.
17700         * modules/array-mergesort (License): Change to LGPLv2+.
17701         * modules/c-strcaseeq (License): Likewise.
17702         * modules/striconveh (License): Likewise.
17703         * modules/striconveha (License): Likewise.
17704         * modules/uniconv/base (License): Likewise.
17705         * modules/uniconv/u8-conv-from-enc (License): Likewise.
17706         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
17707         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
17708         * modules/unictype/base (License): Likewise.
17709         * modules/unictype/bidiclass-of (License): Likewise.
17710         * modules/unictype/category-M (License): Likewise.
17711         * modules/unictype/category-none (License): Likewise.
17712         * modules/unictype/category-of (License): Likewise.
17713         * modules/unictype/category-test (License): Likewise.
17714         * modules/unictype/category-test-withtable (License): Likewise.
17715         * modules/unictype/combining-class (License): Likewise.
17716         * modules/unictype/joiningtype-of (License): Likewise.
17717         * modules/unictype/scripts (License): Likewise.
17718         * modules/uninorm/base (License): Likewise.
17719         * modules/uninorm/canonical-decomposition (License): Likewise.
17720         * modules/uninorm/composition (License): Likewise.
17721         * modules/uninorm/decompose-internal (License): Likewise.
17722         * modules/uninorm/decomposition-table (License): Likewise.
17723         * modules/uninorm/nfc (License): Likewise.
17724         * modules/uninorm/nfd (License): Likewise.
17725         * modules/uninorm/u32-normalize (License): Likewise.
17726         * modules/unistr/base (License): Likewise.
17727         * modules/unistr/u32-cpy (License): Likewise.
17728         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
17729         * modules/unistr/u32-to-u8 (License): Likewise.
17730         * modules/unistr/u32-uctomb (License): Likewise.
17731         * modules/unistr/u8-check (License): Likewise.
17732         * modules/unistr/u8-mblen (License): Likewise.
17733         * modules/unistr/u8-mbtouc (License): Likewise.
17734         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
17735         * modules/unistr/u8-mbtoucr (License): Likewise.
17736         * modules/unistr/u8-prev (License): Likewise.
17737         * modules/unistr/u8-strlen (License): Likewise.
17738         * modules/unistr/u8-to-u32 (License): Likewise.
17739         * modules/unistr/u8-uctomb (License): Likewise.
17740         * modules/unitypes (License): Likewise.
17741         Requested by Simon Josefsson.
17742
17743 2011-03-29  Simon Josefsson  <simon@josefsson.org>
17744
17745         lib-symbol-visibility: Add a notice.
17746         * modules/lib-symbol-visibility (Notice): New field.
17747
17748 2011-03-29  Bruno Haible  <bruno@clisp.org>
17749
17750         getaddrinfo: Doc fix.
17751         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
17752         section "fixed in Gnulib".
17753
17754 2011-03-28  Simon Josefsson  <simon@josefsson.org>
17755
17756         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
17757         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
17758
17759 2011-03-26  Bruno Haible  <bruno@clisp.org>
17760
17761         unictype/property-byname: Reduce the number of load-time relocations.
17762         * lib/unictype/pr_byname.c: Include <stdlib.h>.
17763         (UC_PROPERTY_INDEX_*): New enumeration values.
17764         (uc_property_byname): Convert an index from the lookup table to an
17765         uc_property_t.
17766         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
17767         values.
17768
17769 2011-03-26  Bruno Haible  <bruno@clisp.org>
17770
17771         unictype/property-byname: Allow omitted word separators and aliases.
17772         * lib/unictype/pr_byname.gperf: Add property names without word
17773         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
17774         for 'space'.
17775
17776 2011-03-26  Bruno Haible  <bruno@clisp.org>
17777
17778         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
17779         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
17780         also hyphens to space.
17781         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
17782         without spaces.
17783         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
17784
17785 2011-03-26  Bruno Haible  <bruno@clisp.org>
17786
17787         unictype/joiningtype-byname: Recognize long names as well.
17788         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
17789         a long name.
17790         * lib/unictype/joiningtype_byname.c: Include <string.h>,
17791         unictype/joiningtype_byname.h.
17792         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
17793         * lib/unictype/joiningtype_byname.gperf: New file.
17794         * modules/unictype/joiningtype-byname (Files): Add
17795         lib/unictype/joiningtype_byname.gperf.
17796         (Depends-on): Add gperf.
17797         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
17798         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
17799         long names.
17800
17801         Tests for module 'unictype/joiningtype-longname'.
17802         * modules/unictype/joiningtype-longname-tests: New file.
17803         * tests/unictype/test-joiningtype_longname.c: New file.
17804
17805         New module 'unictype/joiningtype-longname'.
17806         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
17807         * lib/unictype/joiningtype_longname.c: New file.
17808         * modules/unictype/joiningtype-longname: New file.
17809         * modules/unictype/joiningtype-all (Depends-on): Add
17810         unictype/joiningtype-longname.
17811
17812 2011-03-26  Bruno Haible  <bruno@clisp.org>
17813
17814         unictype/bidiclass-byname: Recognize long names as well.
17815         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
17816         name.
17817         * lib/unictype/bidi_byname.c: Include <string.h>,
17818         unictype/bidi_byname.h.
17819         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
17820         * lib/unictype/bidi_byname.gperf: New file.
17821         * modules/unictype/bidiclass-byname (Files): Add
17822         lib/unictype/bidi_byname.gperf.
17823         (Depends-on): Add gperf.
17824         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
17825         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
17826         long names.
17827
17828         Tests for module 'unictype/bidiclass-longname'.
17829         * modules/unictype/bidiclass-longname-tests: New file.
17830         * tests/unictype/test-bidi_longname.c: New file.
17831
17832         New module 'unictype/bidiclass-longname'.
17833         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
17834         * lib/unictype/bidi_longname.c: New file.
17835         * modules/unictype/bidiclass-longname: New file.
17836         * modules/unictype/bidiclass-all (Depends-on): Add
17837         unictype/bidiclass-longname.
17838
17839 2011-03-26  Bruno Haible  <bruno@clisp.org>
17840
17841         unictype/bidi*: Rename modules.
17842         * modules/unictype/bidiclass-all: Renamed from
17843         modules/unictype/bidicategory-all.
17844         * modules/unictype/bidiclass-name: Renamed from
17845         modules/unictype/bidiclass-name.
17846         (Description): Update.
17847         * modules/unictype/bidiclass-name-tests: Renamed from
17848         modules/unictype/bidicategory-name-tests.
17849         * modules/unictype/bidiclass-byname: Renamed from
17850         modules/unictype/bidicategory-byname.
17851         (Description): Update.
17852         * modules/unictype/bidiclass-byname-tests: Renamed from
17853         modules/unictype/bidicategory-byname-tests.
17854         * modules/unictype/bidiclass-of: Renamed from
17855         modules/unictype/bidicategory-of.
17856         (Description): Update.
17857         * modules/unictype/bidiclass-of-tests: Renamed from
17858         modules/unictype/bidicategory-of-tests.
17859         * modules/unictype/bidiclass-test: Renamed from
17860         modules/unictype/bidicategory-test.
17861         (Description): Update.
17862         * modules/unictype/bidiclass-test-tests: Renamed from
17863         modules/unictype/bidicategory-test-tests.
17864         * modules/unictype/bidicategory-all: New file, a simple redirection.
17865         * modules/unictype/bidicategory-name: Likewise.
17866         * modules/unictype/bidicategory-byname: Likewise.
17867         * modules/unictype/bidicategory-of: Likewise.
17868         * modules/unictype/bidicategory-test: Likewise.
17869         * modules/unictype/property-bidi-* (Dependencies): Update.
17870         * lib/unictype/bidi_*.c: Update comment.
17871
17872 2011-03-26  Bruno Haible  <bruno@clisp.org>
17873
17874         unictype/bidi*: Rename functions, part 2.
17875         * modules/unictype/bidicategory-name (configure.ac): Update required
17876         libunistring version.
17877         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
17878
17879 2011-03-25  Bruno Haible  <bruno@clisp.org>
17880
17881         New module 'unictype/combining-class-all'.
17882         * modules/unictype/combining-class-all: New file.
17883
17884         Tests for module 'unictype/combining-class-byname'.
17885         * modules/unictype/combining-class-byname-tests: New file.
17886         * tests/unictype/test-combiningclass_byname.c: New file.
17887
17888         New module 'unictype/combining-class-byname'.
17889         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
17890         * lib/unictype/combiningclass_byname.c: New file.
17891         * lib/unictype/combiningclass_byname.gperf: New file.
17892         * modules/unictype/combining-class-byname: New file.
17893
17894         Tests for module 'unictype/combining-class-longname'.
17895         * modules/unictype/combining-class-longname-tests: New file.
17896         * tests/unictype/test-combiningclass_longname.c: New file.
17897
17898         New module 'unictype/combining-class-longname'.
17899         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
17900         * lib/unictype/combiningclass_longname.c: New file.
17901         * modules/unictype/combining-class-longname: New file.
17902
17903         Tests for module 'unictype/combining-class-name'.
17904         * modules/unictype/combining-class-name-tests: New file.
17905         * tests/unictype/test-combiningclass_name.c: New file.
17906
17907         New module 'unictype/combining-class-name'.
17908         * lib/unictype.in.h (uc_combining_class_name): New declaration.
17909         * lib/unictype/combiningclass_name.c: New file.
17910         * modules/unictype/combining-class-name: New file.
17911
17912 2011-03-25  Bruno Haible  <bruno@clisp.org>
17913
17914         unictype/combining-class: Rename source files.
17915         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
17916         of unictype/combining.h.
17917         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
17918         Update.
17919         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
17920         * modules/unictype/combining-class (Description): Fix.
17921         (Files, Makefile.am): Update.
17922         * tests/unictype/test-combiningclass.c: Renamed from
17923         tests/unictype/test-combining.c.
17924         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
17925
17926 2011-03-25  Bruno Haible  <bruno@clisp.org>
17927
17928         unictype: Update list of canonical combining classes.
17929         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
17930
17931 2011-03-25  Bruno Haible  <bruno@clisp.org>
17932
17933         unictype/category-byname: Recognize long names as well.
17934         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
17935         a long name.
17936         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
17937         unictype/categ_byname.h.
17938         (UC_CATEGORY_INDEX_*): New enumeration values.
17939         (uc_general_category_byname): Use uc_general_category_lookup and
17940         convert from index to value.
17941         * lib/unictype/categ_byname.gperf: New file.
17942         * modules/unictype/category-byname (Files): Add
17943         lib/unictype/categ_byname.gperf.
17944         (Depends-on): Add gperf.
17945         (Makefile.am): Add rule for generating unictype/categ_byname.h.
17946         * tests/unictype/test-categ_byname.c (main): Test the recognition of
17947         long names.
17948
17949         Tests for module 'unictype/category-longname'.
17950         * modules/unictype/category-longname-tests: New file.
17951         * tests/unictype/test-categ_longname.c: New file.
17952
17953         New module 'unictype/category-longname'.
17954         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
17955         * lib/unictype/categ_longname.c: New file.
17956         * modules/unictype/category-longname: New file.
17957         * modules/unictype/category-all (Depends-on): Add it.
17958
17959 2011-03-25  Bruno Haible  <bruno@clisp.org>
17960
17961         Tests for module 'unictype/category-LC'.
17962         * modules/unictype/category-LC-tests: New file.
17963         * tests/unictype/test-categ_LC.c: New file, automatically generated.
17964
17965         New module 'unictype/category-LC'.
17966         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
17967         (UC_CATEGORY_LC): New declaration.
17968         (UC_CASED_LETTER): New macro.
17969         * lib/gen-uni-tables.c (is_category_LC): New function.
17970         (output_categories): Also handle category LC.
17971         (UC_CATEGORY_MASK_LC): New enumeration value.
17972         (general_category_byname): Also handle category LC.
17973         * lib/unictype/categ_LC.c: New file.
17974         * lib/unictype/categ_LC.h: New file, automatically generated.
17975         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
17976         category LC.
17977         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
17978         * modules/unictype/category-LC: New file.
17979         * modules/unictype/category-byname (Depends-on): Add
17980         unictype/category-LC.
17981         * modules/unictype/category-all (Depends-on): Likewise.
17982
17983 2011-03-25  Eric Blake  <eblake@redhat.com>
17984
17985         xmalloc: revert yesterday's regression
17986         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
17987         realloc's underlying behavior (allowing allocation of zero-size
17988         objects, especially if malloc-gnu is also in use).
17989
17990 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
17991
17992         maint.mk: add missing version to VC-tag
17993         * top/maint.mk: git tag was missing actual tag name; add it.
17994
17995         valgrind: do leak checking, and exit with code 1 on error (not 0)
17996         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
17997         to VALGRIND.
17998
17999 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18000
18001         posix-modules: say what it does.
18002         * posix-modules: Add a line to the --help output saying what it does.
18003
18004 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18005
18006         xmalloc: Do not leak if underlying realloc is C99 compatible.
18007         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18008         This avoids a leak on C99-based systems.  See
18009         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18010
18011 2011-03-24  Eric Blake  <eblake@redhat.com>
18012
18013         realloc: document portability problem
18014         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18015         passing 0 size to realloc.
18016
18017 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18018
18019         doc: update users.txt
18020         * users.txt: Add cvsps, tmpwatch
18021
18022 2011-03-23  Matt Rice  <ratmice@gmail.com>
18023
18024         doc: update users.txt
18025         * users.txt: Add gdb.
18026
18027 2011-03-23  Jim Meyering  <meyering@redhat.com>
18028
18029         doc: update users.txt
18030         Looking through matches up to the following URL (there are still
18031         several more pages), I found several projects that use gnulib:
18032         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18033         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18034         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18035
18036 2011-03-22  Bruno Haible  <bruno@clisp.org>
18037
18038         unictype/bidi*: Rename functions.
18039         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18040         uc_bidi_class, uc_is_bidi_class): New declarations.
18041         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18042         uc_bidi_category_byname.
18043         (uc_bidi_category_byname): New function.
18044         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18045         u_bidi_category_name.
18046         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18047         (uc_bidi_category_name): New function.
18048         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18049         uc_bidi_category.
18050         (uc_bidi_category): New function.
18051         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18052         uc_is_bidi_category. Invoke uc_bidi_class.
18053         (uc_is_bidi_category): New function.
18054         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18055         instead of uc_bidi_category_byname.
18056         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18057         instead of uc_bidi_category_name.
18058         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18059         uc_bidi_category.
18060         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18061         instead of uc_is_bidi_category.
18062
18063 2011-03-21  Bruno Haible  <bruno@clisp.org>
18064
18065         New module 'unictype/joininggroup-all'.
18066         * modules/unictype/joininggroup-all: New file.
18067
18068         Tests for module 'unictype/joininggroup-of'.
18069         * modules/unictype/joininggroup-of-tests: New file.
18070         * tests/unictype/test-joininggroup_of.c: New file.
18071         * tests/unictype/test-joininggroup_of.h: New file, automatically
18072         generated by gen-uni-tables.
18073
18074         New module 'unictype/joininggroup-of'.
18075         * modules/unictype/joininggroup-of: New file.
18076         * lib/unictype/joininggroup_of.c: New file.
18077         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18078         gen-uni-tables.
18079
18080         Tests for module 'unictype/joininggroup-byname'.
18081         * modules/unictype/joininggroup-byname-tests: New file.
18082         * tests/unictype/test-joininggroup_byname.c: New file.
18083
18084         New module 'unictype/joininggroup-byname'.
18085         * modules/unictype/joininggroup-byname: New file.
18086         * lib/unictype/joininggroup_byname.c: New file.
18087         * lib/unictype/joininggroup_byname.gperf: New file.
18088
18089         Tests for module 'unictype/joininggroup-name'.
18090         * modules/unictype/joininggroup-name-tests: New file.
18091         * tests/unictype/test-joininggroup_name.c: New file.
18092
18093         New module 'unictype/joininggroup-name'.
18094         * modules/unictype/joininggroup-name: New file.
18095         * lib/unictype/joininggroup_name.c: New file.
18096         * lib/unictype/joininggroup_name.h: New file.
18097
18098         New module 'unictype/joiningtype-all'.
18099         * modules/unictype/joiningtype-all: New file.
18100
18101         Tests for module 'unictype/joiningtype-of'.
18102         * modules/unictype/joiningtype-of-tests: New file.
18103         * tests/unictype/test-joiningtype_of.c: New file.
18104         * tests/unictype/test-joiningtype_of.h: New file, automatically
18105         generated by gen-uni-tables.
18106
18107         New module 'unictype/joiningtype-of'.
18108         * modules/unictype/joiningtype-of: New file.
18109         * lib/unictype/joiningtype_of.c: New file.
18110         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18111         gen-uni-tables.
18112
18113         Tests for module 'unictype/joiningtype-byname'.
18114         * modules/unictype/joiningtype-byname-tests: New file.
18115         * tests/unictype/test-joiningtype_byname.c: New file.
18116
18117         New module 'unictype/joiningtype-byname'.
18118         * modules/unictype/joiningtype-byname: New file.
18119         * lib/unictype/joiningtype_byname.c: New file.
18120
18121         Tests for module 'unictype/joiningtype-name'.
18122         * modules/unictype/joiningtype-name-tests: New file.
18123         * tests/unictype/test-joiningtype_name.c: New file.
18124
18125         New module 'unictype/joiningtype-name'.
18126         * modules/unictype/joiningtype-name: New file.
18127         * lib/unictype/joiningtype_name.c: New file.
18128
18129         unictype: Add support for Arabic shaping properties.
18130         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18131         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18132         declarations.
18133         (UC_JOINING_GROUP_*): New enumeration values.
18134         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18135         declarations.
18136         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18137         (unicode_joining_type): New variable.
18138         (UC_JOINING_GROUP_*): New enumeration values.
18139         (unicode_joining_group): New variable.
18140         (fill_arabicshaping, joining_type_as_c_identifier,
18141         output_joining_type_test, output_joining_type,
18142         joining_group_as_c_identifier, output_joining_group_test,
18143         output_joining_group): New functions.
18144         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18145         fill_arabicshaping and output_joining_type_test, output_joining_type,
18146         output_joining_group_test, output_joining_group.
18147         Reported by Simon Josefsson.
18148
18149 2011-03-21  Jim Meyering  <meyering@redhat.com>
18150
18151         strftime: fix a bug in yesterday's change
18152         * lib/strftime.c (add): Accommodate width's initial value of -1.
18153         Otherwise, nstrftime would copy uninitialized data into
18154         the result buffer.
18155
18156 2011-03-21  Jim Meyering  <meyering@redhat.com>
18157
18158         tests: add strftime-tests module
18159         * tests/test-strftime.c: New file.
18160         * modules/strftime-tests: New module.
18161
18162 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18163
18164         strftime: don't assume a byte count fits in 'int'
18165         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18166         found this problem by static analysis, using gcc -Wstrict-overflow
18167         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18168         on an integer overflow having undefined behavior, but it turns out
18169         that the argument is a size, which might not fit in 'int' anyway,
18170
18171 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18172
18173         stdio: don't require ignore_value around fwrite
18174
18175         This patch works around libc bug 11959
18176         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18177         Without this patch, applications must often write
18178         ignore_value (fwrite (...)) even though the ignore_value is
18179         not helpful here.  It's common to write many objects, using
18180         fwrite/printf/etc., and then use ferror to detect output error.
18181
18182         I considered making this patch optional, but decided against it,
18183         because libc is obviously being inconsistent here: there is no
18184         reason libc should insist that user code must inspect fwrite
18185         return's value without also insisting that it inspect printf's,
18186         putchar's, etc.  If user code wants to have a strict style where
18187         all these functions' values are checked (so that ferror need not
18188         be checked), we could add support for that style in a new gnulib
18189         module, but in the meantime it's better to be consistent and to
18190         support common usage.
18191
18192         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18193         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18194         that we are compiling in checking mode, and if not C++, and
18195         if not already wrapping fwrite for some other reason.
18196         (fwrite): #define to rpl_fwrite if the latter is defined.
18197
18198 2011-03-20  Bruno Haible  <bruno@clisp.org>
18199
18200         verror: Fix compilation error introduced on 2011-02-13.
18201         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18202         instead of __attribute__.
18203         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18204
18205 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18206             Bruno Haible  <bruno@clisp.org>
18207
18208         socklen: do not depend on sys_socket
18209         While trying to modify Emacs to use gnulib's socklen module,
18210         I discovered a circular dependency: socklen depends on sys_socket
18211         and vice versa.  Emacs can use socklen, but it does not need
18212         sys_socket because it has its own substitute for sys/socket.h.
18213         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18214         gl_TYPE_SOCKLEN_T.
18215         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18216         gl_PREREQ_SYS_H_SOCKET.
18217         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18218         gl_PREREQ_SYS_H_SOCKET.
18219         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18220         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18221         * modules/socklen (Depends-on): Do not depend on sys_socket.
18222         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18223
18224 2011-03-20  Jim Meyering  <meyering@redhat.com>
18225
18226         maint.mk: sort file names *after* new transformation
18227         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18228         prefix would have led to an unwarranted failure in GNU parted.
18229         Sort after that transformation.
18230
18231 2011-03-19  Jim Meyering  <meyering@redhat.com>
18232
18233         maint.mk: fix po-file syntax-check rule
18234         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18235         Patch by Bruno Haible.
18236
18237 2011-03-19  Bruno Haible  <bruno@clisp.org>
18238
18239         socklen: Update comment.
18240         * m4/socklen.m4: Update comment about platforms.
18241
18242 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18243             Bruno Haible  <bruno@clisp.org>
18244
18245         inet_ntop, inet_pton: Simplify.
18246         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18247         documented to provide socklen_t and we already depend on sys_socket.
18248         * modules/inet_pton (Depends-on): Likewise.
18249         * lib/arpa_inet.in.h: Adjust comment.
18250
18251 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18252             Bruno Haible  <bruno@clisp.org>
18253
18254         netdb: Simplify.
18255         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18256         documented to provide socklen_t and we already depend on sys_socket.
18257         * lib/netdb.in.h: Adjust comment.
18258
18259 2011-03-19  Bruno Haible  <bruno@clisp.org>
18260
18261         sys_socket, netdb: Document problem with socklen_t.
18262         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18263         platforms.
18264         * doc/posix-headers/netdb.texi: Likewise.
18265
18266 2011-03-18  Eric Blake  <eblake@redhat.com>
18267
18268         maint.mk: let po check work in VPATH build
18269         * top/maint.mk (po_file): Allow cfg.mk override.
18270         (sc_po_check): Allow VPATH use.
18271         Reported by Jiri Denemark.
18272
18273 2011-03-16  Jim Meyering  <meyering@redhat.com>
18274
18275         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18276         Before, you would have had to create one .x-sc_ file per rule in order
18277         to exempt offending files.  Now, you may instead use a Make variable --
18278         usually defined in cfg.mk -- whose name identifies the affected rule.
18279         * top/maint.mk (_sc_excl): Define.
18280         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18281         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18282
18283 2011-03-13  Bruno Haible  <bruno@clisp.org>
18284
18285         ignore-value tests: Avoid warnings.
18286         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18287         empty for gcc < 3.4.
18288
18289 2011-03-13  Bruno Haible  <bruno@clisp.org>
18290
18291         passfd: Fix link error on Solaris.
18292         * modules/passfd (Description): Correct.
18293         (Depends-on): Add socketlib.
18294         (Link): New section.
18295         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18296
18297 2011-03-13  Bruno Haible  <bruno@clisp.org>
18298
18299         passfd: Fix link error on AIX 5.2.
18300         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18301
18302 2011-03-13  Bruno Haible  <bruno@clisp.org>
18303
18304         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18305         * lib/sys_socket.in.h: Include <stddef.h>.
18306         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18307         CMSG_FIRSTHDR. Remove unused variable.
18308
18309 2011-03-13  Bruno Haible  <bruno@clisp.org>
18310
18311         passfd: Fix compilation error on OpenBSD.
18312         * lib/passfd.c: Include <sys/uio.h>.
18313
18314 2011-03-13  Bruno Haible  <bruno@clisp.org>
18315
18316         passfd test: Fix warnings.
18317         * tests/test-passfd.c: Include <sys/wait.h>.
18318         (main): Fix typo.
18319
18320 2011-03-13  Bruno Haible  <bruno@clisp.org>
18321
18322         passfd module, part 4, tweaks.
18323         * tests/test-passfd.c: Reorder includes.
18324         (main): Fix perror and printf calls.
18325
18326 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18327
18328         passfd module, part 4.
18329         * modules/passfd-tests: New file.
18330         * tests/test-passfd.c: New file.
18331
18332 2011-03-13  Jim Meyering  <meyering@redhat.com>
18333
18334         Makefile: rely on GNU make; derive syntax-check rule names
18335         Rather than requiring that each sc_ rule be listed as a dependent
18336         of "check", use features of GNU make to derive the list.
18337         * Makefile (syntax-check-rules): Define.
18338         (check): Depend on the new variable, not the hard-coded list.
18339
18340 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
18341             Bruno Haible  <bruno@clisp.org>
18342
18343         passfd module, part 3.
18344         * lib/passfd.h (recvfd): Add a flags argument.
18345         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
18346         (recvfd): Add a flags argument.
18347         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
18348         exists.
18349         * modules/passfd (Depends-on): Add cloexec.
18350         Suggested by Eric Blake.
18351
18352 2011-03-13  Bruno Haible  <bruno@clisp.org>
18353
18354         passfd module, part 2, tweaks.
18355         * modules/passfd (Files): Reorder.
18356         (Depends-on): Remove errno.
18357         (Include): Remove <sys/socket.h>, <sys/un.h>.
18358         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18359         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18360         specification header. Include <sys/socket.h> always. Don't include
18361         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18362         (sendfd): Clarify that it sets errno when it fails.
18363         (recvfd): Fix specification.
18364
18365 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18366
18367         passfd module, part 2.
18368         * modules/passfd: New file.
18369         * lib/passfd.h: New file.
18370         * lib/passfd.c: New file.
18371
18372 2011-03-12  Bruno Haible  <bruno@clisp.org>
18373
18374         wcswidth, mbswidth: Avoid integer overflow.
18375         * lib/wcswidth.c: Include <limits.h>.
18376         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18377         * lib/mbswidth.c: Include <limits.h>.
18378         (mbsnwidth): Avoid 'int' overflow.
18379         Reported by Jim Meyering.
18380
18381 2011-03-12  Bruno Haible  <bruno@clisp.org>
18382
18383         futimens, utimensat: Avoid endless recursion on Solaris 10.
18384         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18385         Solaris.
18386         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18387         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18388
18389 2011-03-11  Jim Meyering  <meyering@redhat.com>
18390
18391         maint.mk: relax a regexp to accommodate other formatting styles
18392         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18393         between "ngettext" and the following "(".
18394
18395 2011-03-11  Pádraig Brady <P@draigBrady.com>
18396
18397         maint.mk: suppress a false positive warning
18398         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
18399         diagnostics are marked with ngettext.
18400
18401 2011-03-10  Eric Blake  <eblake@redhat.com>
18402
18403         wchar: add explicit dependencies, for Tru64
18404         * modules/mbmemcasecoll (Depends-on): Add wchar.
18405         * modules/mbtowc (Depends-on): Likewise.
18406         * modules/vasnprintf (Depends-on): Likewise.
18407         * modules/unistdio/u-printf-args (Depends-on): Likewise.
18408         * modules/wctomb (Depends-on): Likewise.
18409         Reported by Peter O'Gorman.
18410
18411 2011-03-08  Bruno Haible  <bruno@clisp.org>
18412
18413         passfd module, part 1, tweaks.
18414         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
18415         Improve indentation. Improve AC_MSG_CHECKING messages.
18416         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
18417         gl_SOCKET_FAMILIES.
18418
18419 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18420
18421         passfd module, part 1.
18422         * m4/afunix.m4: New file.
18423         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
18424         sockets.
18425
18426 2011-03-08  Bruno Haible  <bruno@clisp.org>
18427
18428         regex-quote: New API.
18429         * lib/regex-quote.h: Include <stdbool.h>.
18430         (struct regex_quote_spec): New type.
18431         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18432         New declarations.
18433         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18434         'const struct regex_quote_spec *' argument.
18435         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
18436         (pcre_special): New constant.
18437         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18438         New functions.
18439         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18440         'const struct regex_quote_spec *' argument.
18441         * modules/regex-quote (Depends-on): Add stdbool.
18442         * tests/test-regex-quote.c (check): Update for new API. Add test for
18443         anchored results.
18444         * NEWS: Mention the API change.
18445         Reported by Reuben Thomas and Eric Blake.
18446
18447 2011-03-06  Bruno Haible  <bruno@clisp.org>
18448
18449         regex-quote: Fix creation of POSIX extended regular expressions.
18450         * lib/regex-quote.c (ere_special): Add grouping and alternation
18451         operators.
18452
18453 2011-03-05  Bruno Haible  <bruno@clisp.org>
18454
18455         doc: Improve doc regarding autopoint vs. gnulib.
18456         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
18457         disable autopoint while running autoreconf.
18458         Suggested by Ralf Wildenhues.
18459
18460 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18461
18462         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
18463         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
18464
18465 2011-03-03  Bruce Korb  <bkorb@gnu.org>
18466
18467         parse-duration: remove xalloc.h dependency
18468         * lib/parse-duration.c (parse_period): handle NULL return from
18469         strdup instead of calling xstrdup().
18470         * modules/parse-duration: remove "xalloc" dependency
18471
18472 2011-03-03  Matthew Booth  <mbooth@redhat.com>
18473
18474         bootstrap: honor m4_base when running aclocal
18475         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
18476
18477 2011-03-02  Jim Meyering  <meyering@redhat.com>
18478
18479         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
18480         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
18481         on request from Matt Booth.
18482
18483 2011-03-01  Eric Blake  <eblake@redhat.com>
18484
18485         test-link: work on Hurd
18486         * tests/test-link.h (test_link): Hurd rejects linking directories
18487         with EISDIR instead of the POSIX-mandated EPERM.
18488
18489 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
18490
18491         stdio: simplify by moving files to printf-posix, sigpipe
18492         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
18493         since this symbol is needed only if printf is replaced.
18494         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
18495         Require gl_ASM_SYMBOL_PREFIX.
18496         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
18497         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
18498         (Depends-on): Add 'raise'.
18499         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
18500         * modules/stdio (Files): Remove lib/stdio-write.c,
18501         m4/asm-underscore.m4.
18502         (Depends-on): Remove 'raise'.
18503
18504         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18505         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18506         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18507         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18508
18509 2011-02-28  Bruno Haible  <bruno@clisp.org>
18510
18511         localcharset: Assume ANSI C behaviour of free().
18512         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18513         calling free().
18514         Suggested by Simon Josefsson <simon@josefsson.org>.
18515
18516 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18517             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18518             Bruno Haible  <bruno@clisp.org>  (tiny change)
18519
18520         On Cygwin, use /proc file system instead of win32 API.
18521         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18522         Win32 file names.
18523         (DllMain): Simplify by removing Cygwin specific code.
18524         (find_shared_library_fullname): Use Linux specific implementation also
18525         for Cygwin.
18526         (get_shared_library_fullname): Update accordingly.
18527         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18528         Win32 file names.
18529         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18530         Cygwin specific code.
18531
18532 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18533             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18534
18535         Fix OpenMP flag detection for various Fortran compilers.
18536         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18537         OpenMP-conditional compilation construct, to force compile
18538         failure with missing OpenMP flag.
18539         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18540
18541 2011-02-25  Eric Blake  <eblake@redhat.com>
18542
18543         strstr: expand test coverage
18544         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18545         compilation.
18546         * tests/test-memmem.c (main): Duplicate tests.
18547         * tests/test-strcasestr.c (main): Likewise.
18548         * tests/test-c-strcasestr.c (main): Likewise.
18549
18550 2011-02-25  Jim Meyering  <meyering@redhat.com>
18551
18552         maint.mk: detect missing-NL-at-EOF, too
18553         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18554         it also detects when a file lacks a newline at EOF.
18555         (require_exactly_one_NL_at_EOF_): Renamed from
18556         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18557         since people may well have .x-sc_... file names tied to the
18558         existing name.  Suggested by Eric Blake.
18559
18560 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18561
18562         dirname: move m4/dos.m4 functionality into lib/dosname.h
18563
18564         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18565         extracts symbols from it, puts them into config.h; but it's much
18566         easier to use the symbols directly.  filename.h already does this,
18567         but it disagrees with dos.m4 in some respects.  This patch
18568         introduces a different include file dosname.h that packages up
18569         dos.m4, and then later we can work on merging filename.h and
18570         dosname.h.  Applications that need only the easy-to-configure
18571         symbols should consider including dosname.h rather than dirname.h.
18572         * NEWS: Mention incompatible changes.
18573         * m4/dos.m4: Remove.
18574         * lib/dosname.h, modules/dosname: New files.
18575         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18576         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18577         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18578         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18579         Include dosname.h, not dirname.h.
18580         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18581         Include dosname.h, for definitions of symbols like ISSLASH
18582         that used to be in config.h.
18583         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18584         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18585         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18586         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18587         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18588         * modules/rmdir (Files): Likewise.
18589         * modules/stat (Files): Likewise.
18590         * modules/unlink (Files): Likewise.
18591         * modules/dirname-lgpl (Depends-on): Add dosname.
18592         * modules/lstat (Depends-on): Likewise.
18593         * modules/openat (Depends-on): Likewise.
18594         * modules/rmdir (Depends-on): Likewise.
18595         * modules/savewd (Depends-on): Likewise.
18596         * modules/stat (Depends-on): Likewise.
18597         * modules/unlink (Depends-on): Likewise.
18598         * modules/openat (Depends-on): Remove dirname-lgpl.
18599         * modules/savewd (Depends-on): Likewise.
18600         * tests/test-dirname.c: Do not use removed symbols like
18601         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18602         the remaining symbols, e.g., ISSLASH ('\\').
18603
18604 2011-02-25  Eric Blake  <eblake@redhat.com>
18605
18606         strstr: revert patches that introduced bug and pessimization
18607         * lib/str-two-way.h: Add another reference.
18608         (two_way_short_needle, two_way_long_needle): Revert changes from
18609         2011-02-24; they pessimize search speed.
18610         (critical_factorization): Partially revert changes from
18611         2010-06-22; they violate the requirement that the left half of the
18612         needle be smaller than the period of the needle.
18613
18614 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18615
18616         filenamecat: remove unnecessary dependency on dirname-lgpl
18617         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18618         is no direct dependency, just an indirect one via filenamecat-lgpl.
18619
18620         remove: remove unnecessary use of m4/dos.m4
18621         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18622         * modules/remove (FILES): Remove m4/dos.m4.
18623
18624         * lib/openat-proc.c: Don't include dirname.h; not needed.
18625
18626         backupfile: remove unnecessary use of m4/dos.m4
18627         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18628         of its symbols are used by the backupfile code.  backupfile.c does
18629         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18630         for the rare case of programs that want all their backup file
18631         names to live within 8+3 limits, and dos.m4 doesn't address that.
18632         * modules/backupfile (Files): Remove m4/dos.m4.
18633
18634 2011-02-24  Jim Meyering  <meyering@redhat.com>
18635
18636         strstr: fix a bug whereby strstr would mistakenly return NULL
18637         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18638         in period calculation.
18639         (two_way_long_needle): Likewise.
18640         The original problem was reported by Mike Stump in
18641         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18642         Ralf Wildenhues provided the short needle and haystack.
18643         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18644         Add a more involved test to trigger the bug in two_way_long_needle.
18645
18646 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18647
18648         gnulib-tool: remove use of bold display in help screen
18649         * gnulib-tool (func_usage): Do not use bold display anymore in the
18650         help screen.  That was just meant to be a temporary emphasis for a
18651         backward-incompatible change.
18652
18653 2011-02-23  Bruno Haible  <bruno@clisp.org>
18654
18655         Fix misindentation of preprocessor directives.
18656         * lib/argp-namefrob.h: Reindent preprocessor directives.
18657         * lib/getopt_int.h (struct _getopt_data): Likewise.
18658         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
18659         * lib/vasnprintf.c (decode_long_double): Likewise.
18660         * tests/test-argmatch.c: Insert blank lines, for clarity.
18661         * tests/test-exclude.c: Likewise.
18662
18663 2011-02-22  Bruno Haible  <bruno@clisp.org>
18664
18665         ioctl: Fix for MacOS X in 64-bit mode.
18666         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
18667         value.
18668         Suggested by Eric Blake.
18669         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
18670
18671 2011-02-22  Jim Meyering  <meyering@redhat.com>
18672
18673         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
18674         * Makefile (sc_cpp_indent_check): Don't limit the check to files
18675         in lib/.
18676
18677 2011-02-22  Eric Blake  <eblake@redhat.com>
18678
18679         maint: avoid any CDPATH issue
18680         * Makefile (sc_cpp_indent_check): Anchor cd argument.
18681
18682         maint: adjust cpp indentation for my modules, as well
18683         * Makefile (sc_cpp_indent_check): Add my name.
18684         * lib/fbufmode.c: Filter through cppi.
18685         * lib/fpurge.c: Likewise.
18686         * lib/freadable.c: Likewise.
18687         * lib/freading.c: Likewise.
18688         * lib/fwritable.c: Likewise.
18689         * lib/fwriting.c: Likewise.
18690         * lib/sigaction.c: Likewise.
18691
18692 2011-02-22  Jim Meyering  <meyering@redhat.com>
18693
18694         maint: adjust cpp indentation to reflect nesting depth
18695         I.e., in a block of code that begins with an unnested "#if",
18696         put one space between the "#" in column 1 and following token.
18697         For example,
18698         -#include <sys/vfs.h>
18699         +# include <sys/vfs.h>
18700         Do this only in .c files that are part of a module I maintain.
18701         * lib/linkat.c: Filter through cppi.
18702         * lib/nanosleep.c: Likewise.
18703         * lib/openat.c: Likewise.
18704         * lib/openat-die.c: Likewise.
18705         * lib/dup3.c: Likewise.
18706         * lib/fchownat.c: Likewise.
18707         * lib/flock.c: Likewise.
18708         * lib/fsync.c: Likewise.
18709         * lib/fts.c: Likewise.
18710         * lib/getpass.c: Likewise.
18711         * lib/gettimeofday.c: Likewise.
18712         * lib/userspec.c: Likewise.
18713         * Makefile (sc_cpp_indent_check): New rule, to check this.
18714
18715 2011-02-22  Bruno Haible  <bruno@clisp.org>
18716
18717         New module 'wctomb'.
18718         * lib/stdlib.in.h (wctomb): New declaration.
18719         * lib/wctomb.c: New file.
18720         * lib/wctomb-impl.h: New file.
18721         * m4/wctomb.m4: New file.
18722         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
18723         REPLACE_WCTOMB.
18724         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
18725         REPLACE_WCTOMB.
18726         * modules/wctomb: New file.
18727         * tests/test-stdlib-c++.cc: Test signature of wctomb.
18728         * doc/posix-functions/wctomb.texi: Mention the new module.
18729         * modules/wctob (Depends-on): Add wctomb.
18730
18731 2011-02-22  Bruno Haible  <bruno@clisp.org>
18732
18733         New module 'mbtowc'.
18734         * lib/stdlib.in.h (mbtowc): New declaration.
18735         * lib/mbtowc.c: New file.
18736         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
18737         * m4/mbtowc.m4: New file.
18738         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
18739         REPLACE_MBTOWC.
18740         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
18741         REPLACE_MBTOWC.
18742         * modules/mbtowc: New file.
18743         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
18744         * doc/posix-functions/mbtowc.texi: Mention the new module.
18745         * modules/btowc (Depends-on): Add mbtowc.
18746
18747 2011-02-22  Bruno Haible  <bruno@clisp.org>
18748
18749         wcrtomb: Add more tests for native Windows platforms.
18750         * tests/test-wcrtomb-w32-1.sh: New file.
18751         * tests/test-wcrtomb-w32-2.sh: New file.
18752         * tests/test-wcrtomb-w32-3.sh: New file.
18753         * tests/test-wcrtomb-w32-4.sh: New file.
18754         * tests/test-wcrtomb-w32-5.sh: New file.
18755         * tests/test-wcrtomb-w32.c: New file.
18756         * modules/wcrtomb-tests (Files): Add them.
18757         (Makefile.am): Arrange to run these tests.
18758         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
18759         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
18760
18761 2011-02-20  Bruno Haible  <bruno@clisp.org>
18762
18763         wcrtomb: Enhance test.
18764         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
18765
18766 2011-02-20  Bruno Haible  <bruno@clisp.org>
18767
18768         mbrtowc: Tiny optimization.
18769         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
18770
18771 2011-02-20  Jim Meyering  <meyering@redhat.com>
18772
18773         test-exclude.c: remove unmatched #endif
18774         * tests/test-exclude.c: Remove stray #endif, left over from
18775         the change of a week ago.
18776
18777 2011-02-19  Jim Meyering  <meyering@redhat.com>
18778
18779         git-version-gen: skip "-dirty" check when appropriate
18780         * build-aux/git-version-gen: Don't run any git commands when the
18781         version string comes from .tarball-version.  Prior to this, we
18782         would run git update-index --refresh even from a just-unpacked
18783         tarball directory, and that could affect a .git/ directory in a
18784         parent of the build directory.  Reported by Mike Frysinger.
18785
18786 2011-02-19  Bruno Haible  <bruno@clisp.org>
18787
18788         unictype/property-byname: Reduce the size of the 'data' segment.
18789         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
18790
18791 2011-02-19  Bruno Haible  <bruno@clisp.org>
18792
18793         unictype/scripts: Reduce the size of the 'data' segment.
18794         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
18795         '%pic'.
18796         * lib/unictype/scripts_byname.gperf: Regenerated.
18797
18798 2011-02-19  Bruno Haible  <bruno@clisp.org>
18799
18800         stdint: Update documentation.
18801         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
18802
18803 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
18804
18805         stdint: omit redundant check for wchar.h
18806         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
18807         always tests whether wchar.h exists, so remove the now-redundant test.
18808
18809 2011-02-18  Bruno Haible  <bruno@clisp.org>
18810
18811         stdint: Cut dependency to module 'wchar'.
18812         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
18813         include the necessary prerequisites.
18814         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
18815         * modules/stdint (Depends-on): Remove wchar.
18816         (Makefile.am): Substitute HAVE_WCHAR_H.
18817         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
18818
18819 2011-02-18  Eric Blake  <eblake@redhat.com>
18820
18821         longlong: skip, rather than fail, on cross-compilation
18822         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
18823         when cross-compiling; regression from 2011-02-16.
18824
18825 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18826
18827         * NEWS: Mention 2011-02-08 change to stdlib.
18828
18829 2011-02-17  Bruno Haible  <bruno@clisp.org>
18830
18831         getloadavg: Add comments about platforms.
18832         * m4/getloadavg.m4: Add comment.
18833         * lib/getloadavg.c: Likewise.
18834
18835 2011-02-17  Bruno Haible  <bruno@clisp.org>
18836
18837         getloadavg: Fix link error on Solaris 2.6.
18838         * modules/getloadavg (Link): New section.
18839         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
18840         linking test-getloadavg.
18841         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
18842         getloadavg.
18843
18844 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18845
18846         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
18847         It was 'int', but this doesn't match the IRIX 6.5 manual.
18848         Suggested by Bruno Haible in
18849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
18850
18851 2011-02-17  Bruno Haible  <bruno@clisp.org>
18852
18853         havelib: Fix comments.
18854         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
18855         change.
18856
18857 2011-02-17  Bruno Haible  <bruno@clisp.org>
18858
18859         havelib: Update config.rpath.
18860         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
18861
18862 2011-02-17  Bruno Haible  <bruno@clisp.org>
18863
18864         getloadavg test: Add some plausibility checks.
18865         * tests/test-getloadavg.c (check_avg): Print a warning when the value
18866         is improbable.
18867
18868 2011-02-16  Eric Blake  <eblake@redhat.com>
18869
18870         maintainer-makefile: make syntax-check a no-op from tarballs
18871         * top/maint.mk (no-vc-detected): New rule.
18872         (local-checks-available): Use it to avoid hanging if someone tries
18873         'make syntax-check' from a tarball.  Also append to any non-syntax
18874         checks already defined in cfg.mk.
18875
18876 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
18877
18878         longlong: tune, particularly for common case of c99
18879
18880         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
18881         or running anything if c99, or if unsigned long long int does not
18882         work.  In either case, we know the answer without further tests.
18883         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
18884         it at most once, and use its results for both long long int and
18885         unsigned long long int.  This is more likely to be efficient in
18886         the common case where the program wants to check for both long
18887         long int and unsigned long long int.
18888         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
18889         since the answer is already known.
18890
18891 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
18892
18893         getloadavg: set errno
18894         * lib/getloadavg.c: Set errno when returning -1.  If no other
18895         error number looks appropriate, set it to ENOSYS if the getloadavg
18896         looks like it can't possibly ever work, ENOTSUP otherwise.
18897         Suggested by Bruno Haible in
18898         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
18899
18900         getloadavg: trim unused parts and speed up 'configure'
18901         * NEWS: Document this.
18902         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
18903         always compiled if getloadavg is absent.
18904         Move test code to ...
18905         * tests/test-getloadavg.c: New file, containing previous
18906         contents of test from lib/getloadavg.c.  It also contains
18907         suggestions by Bruno Haible in
18908         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
18909         * modules/getloadavg-tests: New file.
18910         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
18911         Do tests in the same order as they're needed for getloadavg.c.
18912         Omit setgid-related tests that generate symbols KMEM_GROUP,
18913         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
18914         Do only the tests that are needed to see whether the system has
18915         getloadavg, moving the other tests into ...
18916         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
18917         NLIST_NAME_UNION; nobody should be using it.  Do not define
18918         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
18919         relevant, as the user of this module shouldn't care how getloadavg
18920         is implemented.
18921
18922         getloadavg: omit unused var
18923         * lib/getloadavg.c (getloadavg): Omit unused local variable.
18924
18925 2011-02-15  Jim Meyering  <meyering@redhat.com>
18926
18927         doc: update users.txt
18928         * users.txt: Update iwhd's URL.
18929
18930 2011-02-13  Bruno Haible  <bruno@clisp.org>
18931
18932         Consistent macro naming for macros that use GCC __attribute__.
18933         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
18934         _ATTRIBUTE_NONNULL_.
18935         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
18936         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
18937         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
18938         ATTRIBUTE_DEPRECATED.
18939         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
18940         ATTRIBUTE_NORETURN.
18941         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18942         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18943         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18944         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18945         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
18946         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
18947         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
18948         ATTRIBUTE_SENTINEL.
18949         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
18950         ATTRIBUTE_RETURN_CHECK.
18951         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
18952         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
18953         ATTRIBUTE_NORETURN.
18954         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
18955         Reported by Paul Eggert.
18956
18957 2011-02-13  Bruno Haible  <bruno@clisp.org>
18958
18959         Don't interfere with a program's definition of __attribute__.
18960         * lib/argp.h (__attribute__): Remove definition.
18961         (_GL_ATTRIBUTE_FORMAT): New macro.
18962         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
18963         * lib/argp-fmtstream.h (__attribute__): Remove definition.
18964         (_GL_ATTRIBUTE_FORMAT): New macro.
18965         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
18966         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
18967         GCC 3 or newer.
18968         * lib/error.h (__attribute__): Remove definition.
18969         (_GL_ATTRIBUTE_FORMAT): New macro.
18970         (error, error_at_line): Use it.
18971         * lib/hash.h (__attribute__): Remove definition.
18972         (ATTRIBUTE_WUR): Update definition. Define always.
18973         * lib/openat.h (__attribute__): Remove definition.
18974         (ATTRIBUTE_NORETURN): Update definition. Define always.
18975         * lib/sigpipe-die.h (__attribute__): Remove definition.
18976         (ATTRIBUTE_NORETURN): Update definition. Define always.
18977         * lib/vasnprintf.h (__attribute__): Remove definition.
18978         (_GL_ATTRIBUTE_FORMAT): New macro.
18979         (asnprintf, vasnprintf): Use it.
18980         * lib/xalloc.h (__attribute__): Remove definition.
18981         (ATTRIBUTE_NORETURN): Update definition. Define always.
18982         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
18983         * lib/xmemdup0.h (__attribute__): Remove definition.
18984         (ATTRIBUTE_NORETURN): Update definition. Define always.
18985         * lib/xprintf.h (__attribute__): Remove definition.
18986         (_GL_ATTRIBUTE_FORMAT): New macro.
18987         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
18988         * lib/xstrtol.h (__attribute__): Remove definition.
18989         (ATTRIBUTE_NORETURN): Update definition. Define always.
18990         * lib/xvasprintf.h (__attribute__): Remove definition.
18991         (_GL_ATTRIBUTE_FORMAT): New macro.
18992         (xasprintf, xvasprintf): Use it.
18993         * tests/test-argmatch.c (__attribute__): Remove definition.
18994         (ATTRIBUTE_NORETURN): Update definition. Define always.
18995         * tests/test-exclude.c (__attribute__): Remove definition.
18996         (ATTRIBUTE_NORETURN): Update definition. Define always.
18997         Reported by Paul Eggert.
18998
18999 2011-02-13  Bruno Haible  <bruno@clisp.org>
19000
19001         mbrtowc: Add more tests for native Windows platforms.
19002         * tests/test-mbrtowc-w32-1.sh: New file.
19003         * tests/test-mbrtowc-w32-2.sh: New file.
19004         * tests/test-mbrtowc-w32-3.sh: New file.
19005         * tests/test-mbrtowc-w32-4.sh: New file.
19006         * tests/test-mbrtowc-w32-5.sh: New file.
19007         * tests/test-mbrtowc-w32.c: New file.
19008         * modules/mbrtowc-tests (Files): Add them.
19009         (Makefile.am): Arrange to run these tests.
19010         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19011         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19012
19013 2011-02-13  Bruno Haible  <bruno@clisp.org>
19014
19015         mbrtowc: Work around native Windows bug.
19016         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19017         guess when no suitable locale for testing was found.
19018         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19019
19020 2011-02-13  Bruno Haible  <bruno@clisp.org>
19021
19022         mbsinit: Work around mingw bug.
19023         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19024         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19025         Windows.
19026         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19027
19028 2011-02-13  Bruno Haible  <bruno@clisp.org>
19029
19030         mbsinit: Don't crash for a NULL argument.
19031         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19032         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19033
19034 2011-02-13  Bruno Haible  <bruno@clisp.org>
19035
19036         Don't interfere with a program's definition of __attribute__.
19037         * lib/stdio.in.h (__attribute__): Remove definition.
19038         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19039         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19040         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19041         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19042         * lib/string.in.h (__attribute__): Remove definition.
19043         Reported by Paul Eggert.
19044
19045 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19046
19047         stdlib: don't get in the way of non-GCC __attribute__
19048         See thread starting at
19049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19050         Revert previous stdlib change, installing the following instead:
19051         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19052         to get in the way of a non-GCC compiler that supports __attribute__.
19053         (_GL_ATTRIBUTE_RETURN): New macro.
19054         (_Exit): Use it instead of __attribute__.
19055
19056 2011-02-12  Bruno Haible  <bruno@clisp.org>
19057
19058         quotearg test: Avoid test failure on mingw.
19059         * tests/test-quotearg.sh: Convert the locale identifier from native
19060         Windows syntax to Unix syntax.
19061
19062 2011-02-12  Bruno Haible  <bruno@clisp.org>
19063
19064         setlocale: Prefer gnulib's override over libintl's override.
19065         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19066         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19067         GNULIB_defined_setlocale is set.
19068
19069 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19070
19071         stdlib: support non-GCC __attribute__
19072
19073         Fix a serious and tricky problem encountered when attempting to
19074         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19075         5.5, but it crashed due to memory corruption on Solaris 10 with
19076         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19077         bits that are otherwise zero.  This tagging is optional inside
19078         Emacs but is preferred and is used when __attribute__ ((__aligned
19079         (8))) works, as it does with both recent-enough GCC and with Sun C
19080         5.11.  However, Sun C 5.11 is not GCC and does not #define
19081         __GNUC__ and __GNUC_MINOR__.
19082
19083         When I added the getloadavg module to Emacs, it brought in
19084         stdlib.in.h, which contained this fragment:
19085
19086            #ifndef __attribute__
19087            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19088            #  define __attribute__(Spec)   /* empty */
19089            # endif
19090            #endif
19091
19092         When files that include <stdlib.h> were compiled with Sun C 5.11,
19093         the above code disabled __attribute__ ((__aligned (8))), which
19094         caused variables to not be properly aligned, which eventually led
19095         to the pointer corruption mentioned above.  (This was a bit hard
19096         to diagnose, unfortunately.)
19097
19098         Several "#define __attribute__(X) /* empty */" code snippets need
19099         to be eradicated from Gnulib to work with non-GCC compilers that
19100         support __attribute__.  The Autoconf way to do this is to test for
19101         each kind of attribute that we want support for, and selectively
19102         enable that in source code.
19103
19104         Fix this problem just for stdlib.h, by adding a test for the
19105         __noreturn__ attribute, and change stdlib.in.h to use that test
19106         when needed.  This technique can be easily generalized to the
19107         other *.in.h files and attributes, and a similar technique can be
19108         used for *.h and *.c files.  This patch is enough to solve the
19109         problem for Emacs + getloadavg, and I thought I'd publish it for
19110         feedback before undertaking further, similar fixes in other
19111         modules.
19112
19113         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19114         because it's not needed for stdlib.h.  It merely substitutes the
19115         value directly into stdlib.h.  We may well need to #define it, or
19116         similar symbols, for other modules, but it's nice to also have an
19117         option to not #define it for applications like Emacs that do not
19118         need it.
19119
19120         * lib/stdlib.in.h (__attribute__): Do not #define.
19121         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19122         be defined only if the _Exit module is also used.
19123         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19124         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19125         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19126         platforms.
19127         * modules/_Exit (Files): Add m4/attribute.m4.
19128         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19129         * m4/attribute.m4: New file.
19130
19131 2011-02-12  Bruno Haible  <bruno@clisp.org>
19132
19133         wcsrtombs: Work around bug on native Windows.
19134         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19135         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19136         instead of len.
19137         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19138
19139 2011-02-12  Bruno Haible  <bruno@clisp.org>
19140
19141         mbsrtowcs: Work around bug on native Windows.
19142         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19143         against mingw bug.
19144         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19145
19146 2011-02-12  Bruno Haible  <bruno@clisp.org>
19147
19148         Avoid setlocale bugs in tests.
19149         * modules/btowc (Dependencies): Add setlocale.
19150         * modules/c-strcase (Dependencies): Likewise.
19151         * modules/mbmemcasecmp (Dependencies): Likewise.
19152         * modules/mbmemcasecoll (Dependencies): Likewise.
19153         * modules/mbrtowc (Dependencies): Likewise.
19154         * modules/mbscasecmp (Dependencies): Likewise.
19155         * modules/mbscasestr (Dependencies): Likewise.
19156         * modules/mbschr (Dependencies): Likewise.
19157         * modules/mbscspn (Dependencies): Likewise.
19158         * modules/mbsinit (Dependencies): Likewise.
19159         * modules/mbsncasecmp (Dependencies): Likewise.
19160         * modules/mbsnrtowcs (Dependencies): Likewise.
19161         * modules/mbspbrk (Dependencies): Likewise.
19162         * modules/mbspcasecmp (Dependencies): Likewise.
19163         * modules/mbsrchr (Dependencies): Likewise.
19164         * modules/mbsrtowcs (Dependencies): Likewise.
19165         * modules/mbsspn (Dependencies): Likewise.
19166         * modules/mbsstr (Dependencies): Likewise.
19167         * modules/nl_langinfo (Dependencies): Likewise.
19168         * modules/quotearg (Dependencies): Likewise.
19169         * modules/unicase/locale-language (Dependencies): Likewise.
19170         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19171         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19172         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19173         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19174         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19175         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19176         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19177         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19178         * modules/vasnprintf-posix (Dependencies): Likewise.
19179         * modules/wcrtomb (Dependencies): Likewise.
19180         * modules/wcsnrtombs (Dependencies): Likewise.
19181         * modules/wcsrtombs (Dependencies): Likewise.
19182
19183 2011-02-12  Bruno Haible  <bruno@clisp.org>
19184
19185         setlocale: Workaround native Windows bug.
19186         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19187         succeeds but sets LC_CTYPE to "C", report a failure.
19188         * tests/test-setlocale2.sh: New file.
19189         * tests/test-setlocale2.c: New file.
19190         * modules/setlocale-tests (Files): Add the new files.
19191         (Makefile.am): Enable test-setlocale2.sh test.
19192         * doc/posix-functions/setlocale.texi: Mention workaround.
19193
19194 2011-02-11  Bruno Haible  <bruno@clisp.org>
19195
19196         Tests for module 'setlocale'.
19197         * modules/setlocale-tests: New file.
19198         * tests/test-setlocale1.sh: New file.
19199         * tests/test-setlocale1.c: New file.
19200
19201         New module 'setlocale'.
19202         * lib/locale.in.h (setlocale): New declaration.
19203         * lib/setlocale.c: New file, based on
19204         gettext/gettext-runtime/intl/setlocale.c.
19205         * m4/setlocale.m4: New file.
19206         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19207         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19208         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19209         REPLACE_SETLOCALE.
19210         * modules/setlocale: New file.
19211         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19212         * doc/posix-functions/setlocale.texi: Mention the new module.
19213
19214 2011-02-11  Bruno Haible  <bruno@clisp.org>
19215
19216         Prepare for locale dependent tests on mingw.
19217         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19218         because it has the wrong locale encoding.
19219         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19220         French_France.1252 instead of "fr".
19221         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19222         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19223         because it has the wrong locale encoding.
19224         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19225         native Windows, try Turkish_Turkey.65001.
19226         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19227         Chinese_China.54936.
19228
19229         Prepare for locale dependent tests on mingw.
19230         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19231         differently.
19232         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19233         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19234         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19235         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19236
19237 2011-02-11  Eric Blake  <eblake@redhat.com>
19238
19239         strptime: avoid compiler warnings
19240         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19241         compiler warnings about dead code.
19242         Reported by Daniel P. Berrange.
19243
19244 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19245
19246         doc: update users.txt
19247         * users.txt: Add rcs.
19248
19249 2011-02-10  John W. Eaton  <jwe@gnu.org>
19250
19251         doc: update users.txt
19252         * users.txt: Add octave.
19253
19254 2011-02-10  Jim Meyering  <meyering@redhat.com>
19255
19256         doc: update users.txt
19257         * users.txt: Add iwhd.
19258
19259 2011-02-09  Bruno Haible  <bruno@clisp.org>
19260
19261         gnulib-tool: Make copyright notice adjustment more robust.
19262         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19263         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19264         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19265         License".
19266         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19267
19268 2011-02-06  Bruno Haible  <bruno@clisp.org>
19269
19270         New module 'towctrans'.
19271         * modules/towctrans: New file.
19272         * lib/wctype.in.h (towctrans): New declaration.
19273         * lib/towctrans.c: New file.
19274         * lib/towctrans-impl.h: New file.
19275         * m4/towctrans.m4: New file.
19276         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19277         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19278         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19279         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19280         * doc/posix-functions/towctrans.texi: Mention the new module.
19281
19282 2011-02-06  Bruno Haible  <bruno@clisp.org>
19283
19284         New module 'wctrans'.
19285         * modules/wctrans: New file.
19286         * lib/wctype.in.h (wctrans): New declaration.
19287         * lib/wctrans.c: New file.
19288         * lib/wctrans-impl.h: New file.
19289         * m4/wctrans.m4: New file.
19290         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19291         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19292         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19293         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19294         * doc/posix-functions/wctrans.texi: Mention the new module.
19295
19296 2011-02-06  Bruno Haible  <bruno@clisp.org>
19297
19298         New module 'iswctype'.
19299         * modules/iswctype: New file.
19300         * lib/wctype.in.h (iswctype): New declaration.
19301         * lib/iswctype.c: New file.
19302         * lib/iswctype-impl.h: New file.
19303         * m4/iswctype.m4: New file.
19304         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19305         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19306         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19307         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19308         * doc/posix-functions/iswctype.texi: Mention the new module and the
19309         HP-UX 11.00 problem.
19310
19311 2011-02-06  Bruno Haible  <bruno@clisp.org>
19312
19313         New module 'wctype'.
19314         * modules/wctype: Change to represent the wctype() substitute.
19315         * lib/wctype.in.h (wctype): New declaration.
19316         * lib/wctype.c: New file.
19317         * lib/wctype-impl.h: New file.
19318         * m4/wctype.m4: New file.
19319         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
19320         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
19321         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
19322         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
19323         * doc/posix-functions/wctype.texi: Mention the new module and the
19324         HP-UX 11.00 problem.
19325
19326 2011-02-06  Bruno Haible  <bruno@clisp.org>
19327
19328         wctype-h: Ensure wctype_t and wctrans_t are defined.
19329         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
19330         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19331         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19332         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
19333         HAVE_WCTRANS_T.
19334         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
19335
19336 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19337
19338         flock: fix license typo
19339
19340         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
19341         omitted.
19342
19343 2011-02-08  Bruno Haible  <bruno@clisp.org>
19344
19345         Split large sed scripts, for HP-UX sed.
19346         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
19347         to avoid HP-UX limit of 99 commands, in the near future.
19348         * modules/stdlib (Makefile.am): Likewise.
19349         * modules/unistd (Makefile.am): Likewise.
19350         * modules/wchar (Makefile.am): Likewise.
19351         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19352         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
19353         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
19354
19355 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19356             Bruno Haible  <bruno@clisp.org>
19357
19358         stdlib: improve random_r modularization
19359         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19360         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19361         you also need the random_r module to get this material right.
19362         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19363         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19364         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19365
19366 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19367
19368         stdlib: don't depend on stdint
19369         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19370         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19371         be independent of whether stdint.h is needed.
19372         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19373         here, instead of ...
19374         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19375         struct random_data should be using the random_r module, not just
19376         the stdlib module (which wouldn't make sense: what package needs
19377         just struct random_data without also needing random_r?).
19378         * modules/stdlib (Depends-on): Remove stdint.
19379
19380         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19381         See the thread rooted at
19382         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19383         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19384         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19385         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19386         __VMS)); previously it was always included (via fcntl--.h).
19387         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19388         hand; this is good enough for load averages.  Also, do not use
19389         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19390         flags directly if available and don't bother otherwise.  (Packages
19391         that need the extra reliability should use the modules that define
19392         these flags on older platforms that lack them.)
19393         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19394         fcntl-safer.
19395
19396 2011-02-08  Jim Meyering  <meyering@redhat.com>
19397
19398         di-set.h, ino-map.h: add multiple-inclusion guard
19399         Technically, the guard is required only for ino-map.h, due to its
19400         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
19401         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
19402         * lib/ino-map.h: Likewise.
19403
19404 2011-02-06  Bruno Haible  <bruno@clisp.org>
19405
19406         iswblank: Ensure declaration on glibc systems.
19407         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
19408         * modules/iswblank (Dependencies): Add 'extensions'.
19409         * doc/posix-functions/iswblank.texi: Document the glibc problem.
19410
19411 2011-02-06  Bruno Haible  <bruno@clisp.org>
19412
19413         New module 'iswblank'.
19414         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
19415         * modules/iswblank: New file.
19416         * modules/wctype-h (Files): Remove lib/iswblank.c.
19417         (Makefile.am): Substitute GNULIB_ISWBLANK.
19418         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
19419         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
19420         (gl_WCTYPE_H_DEFAULTS): New macro.
19421         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19422         * modules/iswblank-tests: New file.
19423         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
19424         * tests/test-wctype-h.c (main): Remove iswblank tests.
19425         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
19426         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
19427         of 'wctype-h'.
19428         * NEWS: Mention the change.
19429         * modules/mbchar (Depends-on): Add iswblank.
19430
19431 2011-02-08  Bruno Haible  <bruno@clisp.org>
19432
19433         di-set tests: Refactor.
19434         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
19435         unnecessary includes.
19436         (ASSERT): Remove macro.
19437         (main): Make C90 compliant by avoiding variable declaration after
19438         statement.
19439         * modules/di-set-tests (Files): Add tests/macros.h.
19440
19441 2011-02-08  Bruno Haible  <bruno@clisp.org>
19442
19443         ino-map tests: Refactor.
19444         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
19445         unnecessary includes.
19446         (ASSERT): Remove macro.
19447         (main): Make C90 compliant by avoiding variable declaration after
19448         statement.
19449         * modules/ino-map-tests (Files): Add tests/macros.h.
19450
19451 2011-02-08  Jim Meyering  <meyering@redhat.com>
19452
19453         di-set: add "const" to a cast
19454         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
19455         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
19456
19457 2011-02-06  Bruno Haible  <bruno@clisp.org>
19458
19459         Rename module 'wctype' to 'wctype-h'.
19460         * modules/wctype-h: Renamed from modules/wctype.
19461         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
19462         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
19463         (Files, Depends-on, Makefile.am): Update.
19464         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
19465         (Files, Makefile.am): Update.
19466         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
19467         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
19468         * doc/posix-headers/wctype.texi: Update.
19469         * doc/posix-functions/iswalnum.texi: Update.
19470         * doc/posix-functions/iswalpha.texi: Update.
19471         * doc/posix-functions/iswblank.texi: Update.
19472         * doc/posix-functions/iswcntrl.texi: Update.
19473         * doc/posix-functions/iswdigit.texi: Update.
19474         * doc/posix-functions/iswgraph.texi: Update.
19475         * doc/posix-functions/iswlower.texi: Update.
19476         * doc/posix-functions/iswprint.texi: Update.
19477         * doc/posix-functions/iswpunct.texi: Update.
19478         * doc/posix-functions/iswspace.texi: Update.
19479         * doc/posix-functions/iswupper.texi: Update.
19480         * doc/posix-functions/iswxdigit.texi: Update.
19481         * doc/posix-functions/towlower.texi: Update.
19482         * doc/posix-functions/towupper.texi: Update.
19483         * NEWS: Mention the change.
19484         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
19485         * modules/mbchar (Dependencies): Likewise.
19486         * modules/mbswidth (Dependencies): Likewise.
19487         * modules/quotearg (Dependencies): Likewise.
19488         * modules/regex (Dependencies): Likewise.
19489         * modules/wcscasecmp (Dependencies): Likewise.
19490         * modules/wcsncasecmp (Dependencies): Likewise.
19491         * modules/wcwidth (Dependencies): Likewise.
19492
19493 2011-02-06  Bruno Haible  <bruno@clisp.org>
19494
19495         New module 'wcswidth'.
19496         * modules/wcswidth: New file.
19497         * lib/wchar.in.h (wcswidth): New declaration.
19498         * lib/wcswidth.c: New file.
19499         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
19500         * m4/wcswidth.m4: New file.
19501         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
19502         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
19503         REPLACE_WCSWIDTH.
19504         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19505         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19506         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19507         * doc/posix-functions/wcswidth.texi: Mention the new module.
19508
19509 2011-02-06  Bruno Haible  <bruno@clisp.org>
19510
19511         New module 'wcstok'.
19512         * modules/wcstok: New file.
19513         * lib/wchar.in.h (wcstok): New declaration.
19514         * lib/wcstok.c: New file.
19515         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19516         * m4/wcstok.m4: New file.
19517         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19518         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19519         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19520         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19521         * doc/posix-functions/wcstok.texi: Mention the new module.
19522
19523 2011-02-06  Bruno Haible  <bruno@clisp.org>
19524
19525         New module 'wcsstr'.
19526         * modules/wcsstr: New file.
19527         * lib/wchar.in.h (wcsstr): New declaration.
19528         * lib/wcsstr.c: New file.
19529         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19530         * m4/wcsstr.m4: New file.
19531         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19532         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19533         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19534         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19535         * doc/posix-functions/wcsstr.texi: Mention the new module.
19536
19537 2011-02-06  Bruno Haible  <bruno@clisp.org>
19538
19539         New module 'wcspbrk'.
19540         * modules/wcspbrk: New file.
19541         * lib/wchar.in.h (wcspbrk): New declaration.
19542         * lib/wcspbrk.c: New file.
19543         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19544         * m4/wcspbrk.m4: New file.
19545         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19546         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19547         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19548         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19549         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19550
19551 2011-02-06  Bruno Haible  <bruno@clisp.org>
19552
19553         New module 'wcsspn'.
19554         * modules/wcsspn: New file.
19555         * lib/wchar.in.h (wcsspn): New declaration.
19556         * lib/wcsspn.c: New file.
19557         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19558         * m4/wcsspn.m4: New file.
19559         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19560         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19561         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19562         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19563         * doc/posix-functions/wcsspn.texi: Mention the new module.
19564
19565 2011-02-06  Bruno Haible  <bruno@clisp.org>
19566
19567         New module 'wcscspn'.
19568         * modules/wcscspn: New file.
19569         * lib/wchar.in.h (wcscspn): New declaration.
19570         * lib/wcscspn.c: New file.
19571         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19572         * m4/wcscspn.m4: New file.
19573         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19574         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19575         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19576         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19577         * doc/posix-functions/wcscspn.texi: Mention the new module.
19578
19579 2011-02-06  Bruno Haible  <bruno@clisp.org>
19580
19581         New module 'wcsrchr'.
19582         * modules/wcsrchr: New file.
19583         * lib/wchar.in.h (wcsrchr): New declaration.
19584         * lib/wcsrchr.c: New file.
19585         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19586         * m4/wcsrchr.m4: New file.
19587         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19588         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19589         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19590         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19591         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19592
19593 2011-02-06  Bruno Haible  <bruno@clisp.org>
19594
19595         New module 'wcschr'.
19596         * modules/wcschr: New file.
19597         * lib/wchar.in.h (wcschr): New declaration.
19598         * lib/wcschr.c: New file.
19599         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19600         * m4/wcschr.m4: New file.
19601         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19602         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19603         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19604         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19605         * doc/posix-functions/wcschr.texi: Mention the new module.
19606
19607 2011-02-06  Bruno Haible  <bruno@clisp.org>
19608
19609         New module 'wcsdup'.
19610         * modules/wcsdup: New file.
19611         * lib/wchar.in.h (wcsdup): New declaration.
19612         * lib/wcsdup.c: New file.
19613         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19614         * m4/wcsdup.m4: New file.
19615         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19616         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19617         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19618         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19619         * doc/posix-functions/wcsdup.texi: Mention the new module.
19620
19621 2011-02-06  Bruno Haible  <bruno@clisp.org>
19622
19623         New module 'wcsxfrm'.
19624         * modules/wcsxfrm: New file.
19625         * lib/wchar.in.h (wcsxfrm): New declaration.
19626         * lib/wcsxfrm.c: New file.
19627         * lib/wcsxfrm-impl.h: New file.
19628         * m4/wcsxfrm.m4: New file.
19629         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19630         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19631         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19632         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19633         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19634
19635 2011-02-06  Bruno Haible  <bruno@clisp.org>
19636
19637         New module 'wcscoll'.
19638         * modules/wcscoll: New file.
19639         * lib/wchar.in.h (wcscoll): New declaration.
19640         * lib/wcscoll.c: New file.
19641         * lib/wcscoll-impl.h: New file.
19642         * m4/wcscoll.m4: New file.
19643         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19644         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19645         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19646         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19647         * doc/posix-functions/wcscoll.texi: Mention the new module.
19648
19649 2011-02-06  Bruno Haible  <bruno@clisp.org>
19650
19651         New module 'wcsncasecmp'.
19652         * modules/wcsncasecmp: New file.
19653         * lib/wchar.in.h (wcsncasecmp): New declaration.
19654         * lib/wcsncasecmp.c: New file.
19655         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19656         * m4/wcsncasecmp.m4: New file.
19657         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
19658         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
19659         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
19660         HAVE_WCSNCASECMP.
19661         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
19662         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
19663
19664 2011-02-06  Bruno Haible  <bruno@clisp.org>
19665
19666         New module 'wcscasecmp'.
19667         * modules/wcscasecmp: New file.
19668         * lib/wchar.in.h (wcscasecmp): New declaration.
19669         * lib/wcscasecmp.c: New file.
19670         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
19671         * m4/wcscasecmp.m4: New file.
19672         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
19673         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
19674         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
19675         HAVE_WCSCASECMP.
19676         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
19677         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
19678
19679 2011-02-05  Bruno Haible  <bruno@clisp.org>
19680
19681         New module 'wcsncmp'.
19682         * modules/wcsncmp: New file.
19683         * lib/wchar.in.h (wcsncmp): New declaration.
19684         * lib/wcsncmp.c: New file.
19685         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
19686         * m4/wcsncmp.m4: New file.
19687         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
19688         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
19689         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
19690         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
19691         * doc/posix-functions/wcsncmp.texi: Mention the new module.
19692
19693 2011-02-05  Bruno Haible  <bruno@clisp.org>
19694
19695         New module 'wcscmp'.
19696         * modules/wcscmp: New file.
19697         * lib/wchar.in.h (wcscmp): New declaration.
19698         * lib/wcscmp.c: New file.
19699         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
19700         * m4/wcscmp.m4: New file.
19701         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
19702         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
19703         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
19704         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
19705         * doc/posix-functions/wcscmp.texi: Mention the new module.
19706
19707 2011-02-05  Bruno Haible  <bruno@clisp.org>
19708
19709         New module 'wcsncat'.
19710         * modules/wcsncat: New file.
19711         * lib/wchar.in.h (wcsncat): New declaration.
19712         * lib/wcsncat.c: New file.
19713         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
19714         * m4/wcsncat.m4: New file.
19715         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
19716         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
19717         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
19718         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
19719         * doc/posix-functions/wcsncat.texi: Mention the new module.
19720
19721 2011-02-05  Bruno Haible  <bruno@clisp.org>
19722
19723         New module 'wcscat'.
19724         * modules/wcscat: New file.
19725         * lib/wchar.in.h (wcscat): New declaration.
19726         * lib/wcscat.c: New file.
19727         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
19728         * m4/wcscat.m4: New file.
19729         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
19730         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
19731         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
19732         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
19733         * doc/posix-functions/wcscat.texi: Mention the new module.
19734
19735 2011-02-05  Bruno Haible  <bruno@clisp.org>
19736
19737         New module 'wcpncpy'.
19738         * modules/wcpncpy: New file.
19739         * lib/wchar.in.h (wcpncpy): New declaration.
19740         * lib/wcpncpy.c: New file.
19741         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
19742         * m4/wcpncpy.m4: New file.
19743         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
19744         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
19745         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
19746         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
19747         * doc/posix-functions/wcpncpy.texi: Mention the new module.
19748
19749 2011-02-05  Bruno Haible  <bruno@clisp.org>
19750
19751         New module 'wcsncpy'.
19752         * modules/wcsncpy: New file.
19753         * lib/wchar.in.h (wcsncpy): New declaration.
19754         * lib/wcsncpy.c: New file.
19755         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
19756         * m4/wcsncpy.m4: New file.
19757         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
19758         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
19759         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
19760         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
19761         * doc/posix-functions/wcsncpy.texi: Mention the new module.
19762
19763 2011-02-05  Bruno Haible  <bruno@clisp.org>
19764
19765         New module 'wcpcpy'.
19766         * modules/wcpcpy: New file.
19767         * lib/wchar.in.h (wcpcpy): New declaration.
19768         * lib/wcpcpy.c: New file.
19769         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
19770         * m4/wcpcpy.m4: New file.
19771         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
19772         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
19773         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
19774         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
19775         * doc/posix-functions/wcpcpy.texi: Mention the new module.
19776
19777 2011-02-05  Bruno Haible  <bruno@clisp.org>
19778
19779         New module 'wcscpy'.
19780         * modules/wcscpy: New file.
19781         * lib/wchar.in.h (wcscpy): New declaration.
19782         * lib/wcscpy.c: New file.
19783         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
19784         * m4/wcscpy.m4: New file.
19785         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
19786         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
19787         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
19788         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
19789         * doc/posix-functions/wcscpy.texi: Mention the new module.
19790
19791 2011-02-05  Bruno Haible  <bruno@clisp.org>
19792
19793         New module 'wcsnlen'.
19794         * modules/wcsnlen: New file.
19795         * lib/wchar.in.h (wcsnlen): New declaration.
19796         * lib/wcsnlen.c: New file.
19797         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
19798         * m4/wcsnlen.m4: New file.
19799         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
19800         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
19801         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
19802         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
19803         * doc/posix-functions/wcsnlen.texi: Mention the new module.
19804
19805 2011-02-05  Bruno Haible  <bruno@clisp.org>
19806
19807         New module 'wcslen'.
19808         * modules/wcslen: New file.
19809         * lib/wchar.in.h (wcslen): New declaration.
19810         * lib/wcslen.c: New file.
19811         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
19812         * m4/wcslen.m4: New file.
19813         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
19814         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
19815         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
19816         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
19817         * doc/posix-functions/wcslen.texi: Mention the new module.
19818
19819 2011-02-05  Bruno Haible  <bruno@clisp.org>
19820
19821         New module 'wmemset'.
19822         * modules/wmemset: New file.
19823         * lib/wchar.in.h (wmemset): New declaration.
19824         * lib/wmemset.c: New file.
19825         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
19826         * m4/wmemset.m4: New file.
19827         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
19828         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
19829         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
19830         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
19831         * doc/posix-functions/wmemset.texi: Mention the new module.
19832
19833 2011-02-05  Bruno Haible  <bruno@clisp.org>
19834
19835         New module 'wmemmove'.
19836         * modules/wmemmove: New file.
19837         * lib/wchar.in.h (wmemmove): New declaration.
19838         * lib/wmemmove.c: New file.
19839         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
19840         * m4/wmemmove.m4: New file.
19841         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
19842         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
19843         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
19844         HAVE_WMEMMOVE.
19845         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
19846         * doc/posix-functions/wmemmove.texi: Mention the new module.
19847
19848 2011-02-05  Bruno Haible  <bruno@clisp.org>
19849
19850         New module 'wmemcpy'.
19851         * modules/wmemcpy: New file.
19852         * lib/wchar.in.h (wmemcpy): New declaration.
19853         * lib/wmemcpy.c: New file.
19854         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
19855         * m4/wmemcpy.m4: New file.
19856         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
19857         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
19858         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
19859         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
19860         * doc/posix-functions/wmemcpy.texi: Mention the new module.
19861
19862 2011-02-05  Bruno Haible  <bruno@clisp.org>
19863
19864         New module 'wmemcmp'.
19865         * modules/wmemcmp: New file.
19866         * lib/wchar.in.h (wmemcmp): New declaration.
19867         * lib/wmemcmp.c: New file.
19868         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
19869         * m4/wmemcmp.m4: New file.
19870         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
19871         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
19872         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
19873         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
19874         * doc/posix-functions/wmemcmp.texi: Mention the new module.
19875
19876 2011-02-07  Jim Meyering  <meyering@redhat.com>
19877
19878         di-set, ino-map: new modules, from coreutils
19879         * lib/di-set.c: New file.
19880         * lib/di-set.h: Likewise.
19881         * lib/ino-map.c: Likewise.
19882         * lib/ino-map.h: Likewise.
19883         * modules/di-set: Likewise.
19884         * modules/di-set-tests: Likewise.
19885         * modules/ino-map: Likewise.
19886         * modules/ino-map-tests: Likewise.
19887         * tests/test-di-set.c: Likewise.
19888         * tests/test-ino-map.c: Likewise.
19889
19890 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19891
19892         getloadavg: merge minor changes from Emacs
19893
19894         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
19895         (getloadavg): Use memset, not bzero.
19896
19897         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
19898         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
19899         clash (bug#86).
19900
19901 2010-11-14  Bruno Haible  <bruno@clisp.org>
19902
19903         Allow multiple gnulib generated replacements to coexist.
19904         * lib/getopt.in.h (struct option): Avoid identical redefinition.
19905         * lib/inttypes.in.h (imaxdiv_t): Likewise.
19906         * lib/langinfo.in.h (nl_item): Likewise.
19907         * lib/math.in.h (_NaN, NAN): Likewise.
19908         * lib/netdb.in.h (struct addrinfo): Likewise.
19909         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
19910         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
19911         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
19912         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
19913         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
19914         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
19915         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
19916         pthread_mutexattr_init, pthread_mutexattr_settype,
19917         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
19918         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
19919         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
19920         pthread_spin_trylock, pthread_spin_unlock): Likewise.
19921         * lib/sched.in.h (struct sched_param): Likewise.
19922         * lib/se-selinux.in.h (security_class_t, security_context_t,
19923         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
19924         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
19925         lsetfilecon, fsetfilecon, security_check_context,
19926         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
19927         Likewise.
19928         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
19929         Likewise.
19930         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
19931         _gl_function_taking_int_returning_void_t, union sigval,
19932         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
19933         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
19934         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19935         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
19936         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
19937         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
19938         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
19939         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
19940         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
19941         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
19942         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
19943         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
19944         socklen_t, rpl_fd_isset): Likewise.
19945         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
19946         * lib/sys_time.in.h (struct timeval): Likewise.
19947         * lib/sys_times.in.h (struct tms): Likewise.
19948         * lib/sys_utsname.in.h (struct utsname):
19949         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
19950         * lib/unistd.in.h (getpagesize): Likewise.
19951         * lib/wchar.in.h (mbstate_t): Likewise.
19952         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19953         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
19954         towlower, towupper): Likewise.
19955         Reported by Sam Steingold <sds@gnu.org>.
19956
19957 2011-02-05  Eric Blake  <eblake@redhat.com>
19958
19959         unsetenv: work around Haiku issues
19960         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
19961         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
19962
19963 2010-12-30  Bruce Korb  <bkorb@gnu.org>
19964
19965         libposix: avoid calling error() within libposix
19966         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
19967         is defined.
19968
19969 2011-02-05  Eric Blake  <eblake@redhat.com>
19970
19971         strerror_r-posix: port to cygwin
19972         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
19973         implementation.
19974         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
19975         * tests/test-strerror_r.c (main): Fix test.
19976         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19977         issue.
19978
19979 2011-02-05  Bruno Haible  <bruno@clisp.org>
19980
19981         New module 'wmemchr'.
19982         * modules/wmemchr: New file.
19983         * lib/wchar.in.h (wmemchr): New declaration.
19984         * lib/wmemchr.c: New file.
19985         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
19986         * m4/wmemchr.m4: New file.
19987         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
19988         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
19989         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
19990         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
19991         * doc/posix-functions/wmemchr.texi: Mention the new module.
19992
19993 2011-02-04  Eric Blake  <eblake@redhat.com>
19994
19995         fdopendir: detect FreeBSD bug
19996         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
19997         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
19998
19999 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20000
20001         stdbool: do not define HAVE_STDBOOL_H
20002         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20003         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20004         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20005         imported from the latest Autoconf git.  It was motivated by Emacs,
20006         which uses gnulib but does not need HAVE_STDBOOL_H.
20007
20008 2011-02-04  Bruno Haible  <bruno@clisp.org>
20009
20010         wcsnrtombs: Prepare for new module wwcsnrtombs.
20011         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20012         * lib/wcsnrtombs.c: Include it.
20013         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20014
20015         wcsrtombs: Prepare for new module wwcsrtombs.
20016         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20017         * lib/wcsrtombs.c: Include it.
20018         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20019
20020         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20021         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20022         * lib/mbsnrtowcs.c: Include it.
20023         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20024
20025         mbsrtowcs: Prepare for new module mbsrtowwcs.
20026         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20027         * lib/mbsrtowcs.c: Include it.
20028         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20029
20030 2011-02-04  Bruno Haible  <bruno@clisp.org>
20031
20032         vasnprintf: Reduce use of malloc for small format strings.
20033         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20034         (arguments): Add room for the first 7 arguments.
20035         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20036         (char_directives, u8_directives, u16_directives, u32_directives): Add
20037         room for the first 7 directives.
20038         * lib/printf-parse.c: Include <string.h>.
20039         (PRINTF_PARSE): Change memory handling code so that it uses the first
20040         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20041         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20042         Reported by Pádraig Brady <P@draigbrady.com>.
20043
20044 2011-01-31  Eric Blake  <eblake@redhat.com>
20045
20046         dup2: work around Haiku bug
20047         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20048         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20049         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20050         * tests/test-dup2.c (main): Enhance test.
20051
20052 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20053
20054         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20055         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20056         declared by eglibc 2.11.2.
20057         * lib/stdio.in.h: Likewise.
20058
20059 2011-01-31  Eric Blake  <eblake@redhat.com>
20060
20061         ignore-value: add missing test dependency
20062         * tests/test-ignore-value.c: Revert previous change; stdio.h
20063         provides off_t.
20064         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20065
20066 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20067
20068         mktime: clarify long_int width checking
20069         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20070         the top level, to make it clearer that the assumption about
20071         long_int width is being checked.  See
20072         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20073
20074 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20075
20076         ignore-value: Fix self-test.
20077         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20078
20079 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20080
20081         TYPE_MAXIMUM: avoid theoretically undefined behavior
20082         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20083         negative number, which the C Standard says has undefined behavior.
20084         In practice this is not a problem, but might as well do it by the book.
20085         Reported by Rich Felker and Eric Blake; see
20086         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20087         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20088         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20089         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20090         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20091         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20092         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20093
20094         mktime: #undef mktime before #defining it
20095         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20096
20097         mktime: systematically normalize tm_isdst comparisons
20098         * lib/mktime.c (isdst_differ): New function.
20099         (__mktime_internal): Use it systematically for all isdst comparisons.
20100         This completes the fix for libc BZ #6723, and removes the need for
20101         normalizing tm_isdst.  See
20102         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20103         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20104
20105         mktime: fix some integer overflow issues and sidestep the rest
20106
20107         This was prompted by a bug report by Benjamin Lindner for MinGW
20108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20109         His bug is due to signed integer overflow (0 - INT_MIN), and I
20110         I scanned through mktime.c looking for other integer overflow
20111         problems, fixing all the bugs I found.
20112
20113         Although the C Standard says the resulting code is still not safe
20114         in the presence of integer overflow, in practice it should be good
20115         enough for all real-world two's-complement implementations, except
20116         for debugging environments that deliberately trap on integer
20117         overflow (e.g., gcc -ftrapv).
20118
20119         * lib/mktime.c (WRAPV): New macro.
20120         (SHR): Also check that long_int and time_t shift right in the
20121         usual way, before using the fast-but-unportable method.
20122         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20123         used.  The code already assumed two's complement, so there's
20124         no need to test for alternatives.  All uses removed.
20125         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20126         the C standard.  Problem reported by Rich Felker in
20127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20128         (twos_complement_arithmetic): Also check long_int and time_t.
20129         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20130         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20131         (__mktime_internal): Avoid integer overflow with unary subtraction
20132         in two instances where -1 - X is an adequate replacement for -X,
20133         since the calculations are approximate.
20134
20135 2011-01-29  Eric Blake  <eblake@redhat.com>
20136
20137         mktime: avoid infinite loop
20138         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20139         type; behavior is still undefined but portable to all known targets.
20140         Reported by Rich Felker.
20141
20142 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20143
20144         rename, unlink, same-inode: Relicense.
20145         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20146         * modules/unlink (License): Likewise.
20147         * modules/same-inode (License): Likewise.
20148
20149 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20150
20151         mktime: avoid problems on NetBSD 5 / i386
20152         * lib/mktime.c (long_int): New type.  This works around a problem
20153         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20154         but time_t is 64 bits, and where I expect the existing code is
20155         wrong in some cases.
20156         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20157         (ydhms_diff): Bring back the compile-time check for wide-enough
20158         year and yday.
20159
20160         mktime: fix misspelling in comment
20161         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20162         This merges all recent glibc changes of importance.
20163
20164 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20165
20166         move-if-change: cope with concurrent mv of identical file.
20167         * build-aux/move-if-change (CMPPROG): Accept environment
20168         variable as an override for `cmp'.
20169         (usage): Document CMPPROG.
20170         Adjust comparison to drop stdout.  Cope with failure of mv if
20171         the target file exists and is identical to the source, for
20172         parallel builds.
20173         Report from H.J. Lu against binutils in PR binutils/12283.
20174
20175 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20176
20177         * users.txt: Mention sharutils.
20178
20179 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20180
20181         * users.txt: Mention OATH Toolkit.
20182
20183 2011-01-27  Bruno Haible  <bruno@clisp.org>
20184
20185         Prepare for supporting FreeBSD 10.
20186         * build-aux/config.libpath: Remove handling of freebsd1*.
20187
20188 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20189
20190         Prepare for supporting FreeBSD 10.
20191         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20192         match FreeBSD 10.0.
20193
20194 2011-01-27  Bruno Haible  <bruno@clisp.org>
20195
20196         vma-iter, get-rusage-as: Add OpenBSD support.
20197         * modules/vma-iter (configure.ac): Test for mquery.
20198         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20199         * lib/vma-iter.c: Include <sys/mman.h>.
20200         (vma_iterate): Add an implementation based on mquery().
20201         * lib/resource-ext.h (get_rusage_as): Update comments.
20202         * lib/get-rusage-as.c: Likewise.
20203         * lib/get-rusage-data.c: Likewise.
20204
20205 2011-01-26  Karl Berry  <karl@gnu.org>
20206
20207         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20208         variables to make it easier to override the makeinfo program used.
20209
20210 2011-01-26  Eric Blake  <eblake@redhat.com>
20211
20212         fcntl: work around Haiku F_DUPFD bugs
20213         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20214         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20215         cloexec bit on duplication.
20216         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20217
20218 2011-01-26  Bruno Haible  <bruno@clisp.org>
20219
20220         Enable memory leak tests on AIX.
20221         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20222         * tests/test-fprintf-posix3.c (main): Likewise.
20223
20224 2011-01-26  Bruno Haible  <bruno@clisp.org>
20225
20226         Tests for module 'get-rusage-data'.
20227         * modules/get-rusage-data-tests: New file.
20228         * tests/test-get-rusage-data.c: New file.
20229
20230         New module 'get-rusage-data'.
20231         * lib/resource-ext.h (get_rusage_data): New declaration.
20232         * lib/get-rusage-data.c: New file.
20233         * modules/get-rusage-data: New file.
20234
20235 2011-01-25  Bruno Haible  <bruno@clisp.org>
20236
20237         get-rusage-as: Allow for easier testing.
20238         * lib/resource-ext.h (get_rusage_as): Add comment.
20239         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20240         (main): New function for interactive testing.
20241
20242 2011-01-25  Bruno Haible  <bruno@clisp.org>
20243
20244         vma-iter: Treat Haiku like BeOS.
20245         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20246         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20247
20248 2011-01-25  Eric Blake  <eblake@redhat.com>
20249
20250         c-stack: fix regression on cygwin when libsigsegv is present
20251         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20252
20253 2011-01-24  Bruno Haible  <bruno@clisp.org>
20254
20255         vma-iter: Avoid empty intervals.
20256         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20257         on an empty interval.
20258
20259 2011-01-24  Jim Meyering  <meyering@redhat.com>
20260
20261         u64: remove unnecessary #include
20262         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20263
20264 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20265
20266         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20267         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20268
20269 2011-01-23  Bruno Haible  <bruno@clisp.org>
20270
20271         New module 'vma-iter'.
20272         * lib/vma-iter.h: New file.
20273         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20274         * modules/vma-iter: New file.
20275         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20276         for get_rusage_as_via_iterator.
20277         (vma_iterate_callback): New function.
20278         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20279         * modules/get-rusage-as (Depends-on): Add vma-iter.
20280
20281 2011-01-23  Bruno Haible  <bruno@clisp.org>
20282
20283         uninorm: Tweak includes.
20284         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20285         Reported by Jim Meyering.
20286
20287 2011-01-23  Bruno Haible  <bruno@clisp.org>
20288
20289         get-rusage-as: Improve on NetBSD.
20290         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20291         /proc, like on FreeBSD.
20292
20293 2011-01-23  Jim Meyering  <meyering@redhat.com>
20294
20295         xreadlink.h: remove unnecessary #include
20296         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20297
20298         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20299         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20300
20301 2011-01-23  Bruno Haible  <bruno@clisp.org>
20302
20303         get-rusage-as: Fix bug.
20304         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20305         original limit when aborting the first loop.
20306
20307 2011-01-23  Bruno Haible  <bruno@clisp.org>
20308
20309         wctype: Ensure valid C syntax.
20310         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20311         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20312
20313 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20314
20315         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20316         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20317         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20318         as they are needed only for configure's test case.
20319         This removes two unnecessary symbols from config.h.
20320
20321         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
20322         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
20323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
20324         AC_CHECK_HEADERS_ONCE on a header that we also invoke
20325         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
20326         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
20327         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
20328         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
20329         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20330         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20331         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20332         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20333         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20334         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20335         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
20336         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20337         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20338         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20339
20340 2011-01-21  Eric Blake  <eblake@redhat.com>
20341
20342         maintainer-makefile: work with older git for submodule check
20343         * top/maint.mk (public-submodule-commit): Rewrite to avoid
20344         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
20345         Reported by Matthias Bolte.
20346
20347         bootstrap: minor portability fixes
20348         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
20349         (usage): Omit leading capital and trailing . on help phrases, per
20350         GNU Coding Standards.
20351         (check_versions, top level): Prefix messages with script name.
20352
20353 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
20354
20355         bootstrap: support --no-git option
20356         * build-aux/bootstrap: Add --no-git option, to be used when
20357         --gnulib-srcdir points to the exact desired checkout.
20358
20359 2011-01-21  Eric Blake  <eblake@redhat.com>
20360
20361         strerror_r-posix: work with glibc 2.13
20362         * lib/strerror_r.c (strerror_r): Fix return type.
20363
20364 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20365             Bruno Haible  <bruno@clisp.org>
20366
20367         uN_strstr: New unit tests.
20368         * modules/unistr/u8-strstr-tests: New file.
20369         * modules/unistr/u16-strstr-tests: New file.
20370         * modules/unistr/u32-strstr-tests: New file.
20371         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20372         * tests/unistr/test-u8-strstr.c: New file.
20373         * tests/unistr/test-u16-strstr.c: New file.
20374         * tests/unistr/test-u32-strstr.c: New file.
20375
20376 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20377             Bruno Haible  <bruno@clisp.org>
20378
20379         Make uN_strstr functions O(n) worst-case.
20380         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20381         16-bit and 32-bit unit cases, use the unibyte algorithm from
20382         lib/mbsstr.c.
20383         * lib/unistr/u8-strstr.c: Include <string.h>.
20384         (UNIT_IS_UINT8_T): New macro.
20385         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20386         (U_STRLEN, U_STRNLEN): New macros.
20387         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20388         (U_STRLEN, U_STRNLEN): New macros.
20389         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20390         (configure.ac): Update required libunistring version.
20391         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20392         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20393         malloca.
20394         (configure.ac): Update required libunistring version.
20395         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
20396         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
20397         malloca.
20398         (configure.ac): Update required libunistring version.
20399
20400 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20401             Bruno Haible  <bruno@clisp.org>
20402
20403         Prepare for faster uN_strstr functions.
20404         * lib/str-kmp.h: Support definable UNITs.
20405         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
20406         needle_len argument.
20407         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
20408         * lib/mbscasestr.c (mbscasestr): Likewise.
20409
20410 2011-01-21  Pádraig Brady <P@draigBrady.com>
20411
20412         malloca-tests: make faster by unsetting MALLOC_PERTURB_
20413         * tests/test-malloca.c (main): Unset the environment variable
20414         to greatly speed up the test.
20415         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
20416         * modules/malloca-tests: Depend on unsetenv.
20417
20418 2011-01-21  Pádraig Brady <P@draigBrady.com>
20419
20420         ignore-value: remove stdint dependency
20421         * lib/ignore-value.h: Remove <stdint.h>
20422         * modules/ignore-value: Remove stdint dependency.
20423
20424 2011-01-21  Jim Meyering  <meyering@redhat.com>
20425
20426         maint.mk: adjust variable name to be consistent with other gl_ vars
20427         * top/maint.mk (gl_public_submodule_commit): Rename the variable
20428         to be lower case.
20429
20430 2011-01-20  Jim Meyering  <meyering@redhat.com>
20431
20432         maint.mk: make "check" depend on public-submodule-commit by default
20433         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
20434
20435 2011-01-20  Bruno Haible  <bruno@clisp.org>
20436
20437         mbfile, mbiter: Complete change from 2008-12-21.
20438         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
20439         * m4/mbiter.m4 (gl_MBITER): Likewise.
20440
20441 2011-01-20  Jim Meyering  <meyering@redhat.com>
20442
20443         init.sh: insert space between each function name and "()"
20444         * tests/init.sh: Make it a little easier to see that a function's
20445         name is "warn_", and not "warn" when looking at the first part of
20446         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
20447
20448 2011-01-20  Jim Meyering  <meyering@redhat.com>
20449
20450         mountlist: clean up code formatting
20451         * lib/mountlist.c (read_file_system_list): Split a long line,
20452         correct bracing style, use NULL in place of "(struct statfs *)0",
20453         don't parenthesize return value, add spaces around "=" and after
20454         ";-in-for-stmt".
20455
20456 2011-01-14  Markus Duft <mduft@gentoo.org>
20457
20458         mountlist: add support for Interix
20459         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
20460         Apply statvfs to all entries of /dev/fs.
20461         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
20462         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
20463
20464 2011-01-20  Jim Meyering  <meyering@redhat.com>
20465
20466         maint.mk: improve the public-submodule-commit rule
20467         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
20468         to suppress printing of its commands... unless V=1.
20469         Add git submodule's --quiet option to suppress printing of e.g.,
20470         "Entering gnulib" output.
20471         "cd" into $(srcdir) before running git submodule.
20472
20473 2011-01-20  Bruno Haible  <bruno@clisp.org>
20474
20475         include_next: Fix bug introduced on 2011-01-18.
20476         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
20477         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
20478         ac_cv_header_... variable if the second argument is not 'check'.
20479         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
20480         gl_NEXT_HEADERS_INTERNAL.
20481
20482 2011-01-20  Bruno Haible  <bruno@clisp.org>
20483
20484         Allow the user to avoid the GNULIB_TEST_* macros.
20485         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
20486         Suggested by Paul Eggert.
20487
20488 2011-01-14  Jim Meyering  <meyering@redhat.com>
20489
20490         bootstrap: avoid failure when there is no .gitmodules file
20491         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
20492         has been assigned to, even when its value is the empty string.
20493         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
20494         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
20495         Reported by John W. Eaton <jwe@gnu.org>.
20496
20497 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20498
20499         assume <ctype.h>, ..., <time.h> exist
20500         For years gnulib has been assuming the existence of the headers
20501         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
20502         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
20503         them, since they don't appear to be needed.
20504         * README (Portability guidelines): Document this.
20505         * lib/flock.c: Assume <fcntl.h> exists.
20506         * lib/regex_internal.h: Assume <locale.h> exists.
20507         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20508         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20509         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20510         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20511         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20512         * m4/regex.m4 (gl_REGEX): Likewise.
20513         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20514         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20515         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20516         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20517         * tests/test-argp.c: Likewise.
20518         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20519
20520         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20521         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20522         AA_APPLE_UNIVERSAL_BUILD.  See
20523         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20524         * NEWS: Document this.
20525
20526 2011-01-19  Eric Blake  <eblake@redhat.com>
20527
20528         c-stack: assume stack overflow if SA_SIGINFO unsupported
20529         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20530         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20531         sigaction will work.
20532         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20533         behavior match Linux.
20534         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20535
20536         stdbool-tests: accomodate Haiku
20537         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20538
20539         binary-io: fix O_TEXT on Haiku
20540         * modules/binary-io (Depends-on): Add fcntl-h.
20541         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20542         than blindly undefining O_TEXT.
20543         Reported by Scott McCreary.
20544
20545 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20546
20547         include_next: do not check for standard headers like stddef.h
20548
20549         I found this problem when modifying Emacs to use gnulib.
20550         I noticed that it added HAVE_STDDEF_H to config.h, even though
20551         gnulib always assumes <stddef.h> exists as per README and this
20552         symbol is unnecessary.
20553         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20554         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20555         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20556         faster for headers like stddef.h that are known to exist.
20557         (gl_CHECK_NEXT_HEADERS): Use it.
20558         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20559         rather than gl_CHECK_NEXT_HEADERS.
20560         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20561         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20562
20563 2011-01-18  Eric Blake  <eblake@redhat.com>
20564
20565         ansi-c++-opt: skip C++ dependency style if C++ is unused
20566         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20567         tests when we know C++ compilation is not desired.
20568         Reported by Scott McCreary.
20569
20570 2011-01-18  Bruno Haible  <bruno@clisp.org>
20571
20572         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20573         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20574         (main): Perform test also when getrlimit and setrlimit don't exist or
20575         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20576         limiting the address space size using setrlimit, compare the address
20577         space size before and after the the test.
20578         * tests/test-dprintf-posix2.c: Likewise.
20579         * tests/test-fprintf-posix3.sh: Update skip messages.
20580         * tests/test-dprintf-posix2.sh: Likewise.
20581         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20582         * modules/dprintf-posix-tests (Depends-on): Likewise.
20583         Reported by Bruce Korb <bkorb@gnu.org> and
20584         Gary V. Vaughan <gary@gnu.org>.
20585
20586 2011-01-18  Bruno Haible  <bruno@clisp.org>
20587
20588         get-rusage-as: Improvement for Cygwin.
20589         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20590         areas that are merely reserved.
20591
20592 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20593
20594         strftime: remove dependencies on multibyte modules
20595
20596         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20597         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20598         only if __osf__ is defined, and I suspect OSF doesn't need these
20599         other modules.  If my guess is wrong, we'll need to come up with a
20600         variant of strftime that doesn't need the multibyte modules.
20601
20602         I discovered this problem when attempting modify Emacs to use the
20603         strftime module.  With the previous gnulib, this caused Emacs to
20604         need 31 new files, ranging from lib/config.charset to
20605         m4/wint_t.m4.  This was overkill and I expect would be offputting
20606         to the Emacs maintainers.  After this change, only 6 new files are
20607         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20608         stdbool.m4, and tm_gmtoff.m4.
20609
20610         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20611         Suggested by Bruno Haible in
20612         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20613         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20614         and do not check for wchar.h.
20615         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20616         (Depends-on): Remove mbrlen, mbsinit, wchar.
20617
20618 2011-01-18  Bruno Haible  <bruno@clisp.org>
20619
20620         Tests for module 'get-rusage-as'.
20621         * modules/get-rusage-as-tests: New file.
20622         * tests/test-get-rusage-as.c: New file.
20623
20624         New module 'get-rusage-as'.
20625         * modules/get-rusage-as: New file.
20626         * lib/resource-ext.h: New file.
20627         * lib/get-rusage-as.c: New file.
20628
20629 2011-01-17  Eric Blake  <eblake@redhat.com>
20630
20631         sigaction: relax license from LGPLv3+ to LGPLv2+
20632         * modules/sigaction (License): Relax to LGPLv2+.
20633
20634 2011-01-14  Bruno Haible  <bruno@clisp.org>
20635
20636         filemode: Make function declarations usable in C++ mode.
20637         * lib/filemode.h: Enclose function declarations in extern "C" block.
20638         Reported by John W. Eaton <jwe@gnu.org>.
20639
20640 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20641
20642         save-cwd: no longer include "xgetcwd.h"
20643         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20644         This avoids a compilation failure in projects that use save-cwd
20645         without also using the xgetcwd module.
20646
20647 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20648
20649         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20650         This is so that a program like Emacs, which needs only dtoastr,
20651         does not have to bother with distributing and compiling ftoastr
20652         and ldtoastr.
20653         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20654         * modules/dtoastr, modules/ldtoastr: New files.
20655         * modules/ftoastr: Now works just for 'float'.
20656         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20657         (Makefile.am): Remove ftoastr.h (not needed and no effect),
20658         dtoastr.c, ldtoastr.c.
20659
20660 2011-01-11  Jim Meyering  <meyering@redhat.com>
20661
20662         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
20663         There is no need to work around the lack of the fchdir function,
20664         since gnulib can now provide a replacement when required.
20665         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
20666         * modules/save-cwd (Depends-on): Add fchdir.
20667
20668 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20669
20670         openat, save-cwd: avoid xmalloc
20671
20672         This removes a direct (but undocumented) dependency of openat on
20673         xalloc, along with an indirect dependency via save-cwd.  It also
20674         removes a dependency of save-cwd on xgetcwd, and thereby
20675         indirectly on xalloc.  This change causes the openat substitute
20676         to fall back on save_cwd when memory is tight, and for save_cwd to
20677         fail instead of dying when memory is tight, but that's good enough.
20678         Problem and initial idea for fix reported by Bastien Roucaries in
20679         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
20680
20681         * lib/openat-proc.c: Include stdlib.h (for malloc), not
20682         xalloc.h (for xmalloc).
20683         (openat_proc_name): Use malloc, not xmalloc.
20684         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
20685         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
20686
20687         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
20688         This avoids heap allocation for file names whose lengths are in
20689         the range 512..1023, with the upper bound increasing to at most
20690         4031 depending on the platform's PATH_MAX.  (We do not want
20691         pathmax.h here as it might supply a non-constant PATH_MAX.)
20692         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
20693         Perhaps they should be moved to malloca.h?
20694         (OPENAT_BUFFER_SIZE): Use them.
20695
20696 2011-01-10  Bruno Haible  <bruno@clisp.org>
20697
20698         doc: Update users.txt.
20699         * users.txt: Add recutils.
20700
20701 2011-01-09  Karl Berry  <karl@gnu.org>
20702
20703         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
20704
20705         * doc/configmake.texi: New file.
20706         * doc/gnulib.texi: Include it.
20707         * modules/configmake: Move documentation from here.
20708
20709 2011-01-09  Bruno Haible  <bruno@clisp.org>
20710
20711         Update to Unicode 6.0.0.
20712         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
20713         (get_lbp): Update for Unicode 6.0.0.
20714         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
20715         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
20716         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
20717         U+11001, U+11038..U+11046. Remove U+06DE.
20718         (uc_width): Fix bounds of planes.
20719         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20720         lib/uniwidth/width.c.
20721         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
20722         trailing whitespace removed.
20723         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
20724         without comments, but with the original copyright notice.
20725         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
20726         * lib/unicase/ignorable.h: Likewise.
20727         * lib/unicase/tocasefold.h: Likewise.
20728         * lib/unicase/tolower.h: Likewise.
20729         * lib/unicase/totitle.h: Likewise.
20730         * lib/unicase/toupper.h: Likewise.
20731         * lib/unictype/bidi_of.h: Likewise.
20732         * lib/unictype/blocks.h: Likewise.
20733         * lib/unictype/categ_C.h: Likewise.
20734         * lib/unictype/categ_Cn.h: Likewise.
20735         * lib/unictype/categ_L.h: Likewise.
20736         * lib/unictype/categ_Ll.h: Likewise.
20737         * lib/unictype/categ_Lm.h: Likewise.
20738         * lib/unictype/categ_Lo.h: Likewise.
20739         * lib/unictype/categ_Lu.h: Likewise.
20740         * lib/unictype/categ_M.h: Likewise.
20741         * lib/unictype/categ_Mc.h: Likewise.
20742         * lib/unictype/categ_Me.h: Likewise.
20743         * lib/unictype/categ_Mn.h: Likewise.
20744         * lib/unictype/categ_N.h: Likewise.
20745         * lib/unictype/categ_Nd.h: Likewise.
20746         * lib/unictype/categ_No.h: Likewise.
20747         * lib/unictype/categ_P.h: Likewise.
20748         * lib/unictype/categ_Po.h: Likewise.
20749         * lib/unictype/categ_S.h: Likewise.
20750         * lib/unictype/categ_Sc.h: Likewise.
20751         * lib/unictype/categ_Sk.h: Likewise.
20752         * lib/unictype/categ_Sm.h: Likewise.
20753         * lib/unictype/categ_So.h: Likewise.
20754         * lib/unictype/categ_of.h: Likewise.
20755         * lib/unictype/combining.h: Likewise.
20756         * lib/unictype/ctype_alnum.h: Likewise.
20757         * lib/unictype/ctype_alpha.h: Likewise.
20758         * lib/unictype/ctype_graph.h: Likewise.
20759         * lib/unictype/ctype_lower.h: Likewise.
20760         * lib/unictype/ctype_print.h: Likewise.
20761         * lib/unictype/ctype_punct.h: Likewise.
20762         * lib/unictype/ctype_upper.h: Likewise.
20763         * lib/unictype/decdigit.h: Likewise.
20764         * lib/unictype/digit.h: Likewise.
20765         * lib/unictype/numeric.h: Likewise.
20766         * lib/unictype/pr_alphabetic.h: Likewise.
20767         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20768         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20769         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20770         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20771         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20772         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20773         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20774         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20775         * lib/unictype/pr_case_ignorable.h: Likewise.
20776         * lib/unictype/pr_cased.h: Likewise.
20777         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
20778         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
20779         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
20780         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
20781         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
20782         * lib/unictype/pr_combining.h: Likewise.
20783         * lib/unictype/pr_composite.h: Likewise.
20784         * lib/unictype/pr_currency_symbol.h: Likewise.
20785         * lib/unictype/pr_decimal_digit.h: Likewise.
20786         * lib/unictype/pr_deprecated.h: Likewise.
20787         * lib/unictype/pr_format_control.h: Likewise.
20788         * lib/unictype/pr_grapheme_base.h: Likewise.
20789         * lib/unictype/pr_grapheme_extend.h: Likewise.
20790         * lib/unictype/pr_grapheme_link.h: Likewise.
20791         * lib/unictype/pr_id_continue.h: Likewise.
20792         * lib/unictype/pr_id_start.h: Likewise.
20793         * lib/unictype/pr_ideographic.h: Likewise.
20794         * lib/unictype/pr_lowercase.h: Likewise.
20795         * lib/unictype/pr_math.h: Likewise.
20796         * lib/unictype/pr_numeric.h: Likewise.
20797         * lib/unictype/pr_other_alphabetic.h: Likewise.
20798         * lib/unictype/pr_other_id_continue.h: Likewise.
20799         * lib/unictype/pr_other_math.h: Likewise.
20800         * lib/unictype/pr_punctuation.h: Likewise.
20801         * lib/unictype/pr_sentence_terminal.h: Likewise.
20802         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20803         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20804         * lib/unictype/pr_unified_ideograph.h: Likewise.
20805         * lib/unictype/pr_uppercase.h: Likewise.
20806         * lib/unictype/pr_xid_continue.h: Likewise.
20807         * lib/unictype/pr_xid_start.h: Likewise.
20808         * lib/unictype/scripts.h: Likewise.
20809         * lib/unictype/scripts_byname.gperf: Likewise.
20810         * lib/unictype/sy_java_ident.h: Likewise.
20811         * lib/unigbrk/gbrkprop.h: Likewise.
20812         * lib/unilbrk/lbrkprop1.h: Likewise.
20813         * lib/unilbrk/lbrkprop2.h: Likewise.
20814         * lib/uninorm/decomposition-table2.h: Likewise.
20815         * lib/uniwbrk/wbrkprop.h: Likewise.
20816         * tests/unicase/test-cased.c: Likewise.
20817         * tests/unicase/test-ignorable.c: Likewise.
20818         * tests/unicase/test-uc_tolower.c: Likewise.
20819         * tests/unicase/test-uc_totitle.c: Likewise.
20820         * tests/unicase/test-uc_toupper.c: Likewise.
20821         * tests/unictype/test-categ_C.c: Likewise.
20822         * tests/unictype/test-categ_Cn.c: Likewise.
20823         * tests/unictype/test-categ_L.c: Likewise.
20824         * tests/unictype/test-categ_Ll.c: Likewise.
20825         * tests/unictype/test-categ_Lm.c: Likewise.
20826         * tests/unictype/test-categ_Lo.c: Likewise.
20827         * tests/unictype/test-categ_Lu.c: Likewise.
20828         * tests/unictype/test-categ_M.c: Likewise.
20829         * tests/unictype/test-categ_Mc.c: Likewise.
20830         * tests/unictype/test-categ_Me.c: Likewise.
20831         * tests/unictype/test-categ_Mn.c: Likewise.
20832         * tests/unictype/test-categ_N.c: Likewise.
20833         * tests/unictype/test-categ_Nd.c: Likewise.
20834         * tests/unictype/test-categ_No.c: Likewise.
20835         * tests/unictype/test-categ_P.c: Likewise.
20836         * tests/unictype/test-categ_Po.c: Likewise.
20837         * tests/unictype/test-categ_S.c: Likewise.
20838         * tests/unictype/test-categ_Sc.c: Likewise.
20839         * tests/unictype/test-categ_Sk.c: Likewise.
20840         * tests/unictype/test-categ_Sm.c: Likewise.
20841         * tests/unictype/test-categ_So.c: Likewise.
20842         * tests/unictype/test-ctype_alnum.c: Likewise.
20843         * tests/unictype/test-ctype_alpha.c: Likewise.
20844         * tests/unictype/test-ctype_graph.c: Likewise.
20845         * tests/unictype/test-ctype_lower.c: Likewise.
20846         * tests/unictype/test-ctype_print.c: Likewise.
20847         * tests/unictype/test-ctype_punct.c: Likewise.
20848         * tests/unictype/test-ctype_upper.c: Likewise.
20849         * tests/unictype/test-decdigit.h: Likewise.
20850         * tests/unictype/test-digit.h: Likewise.
20851         * tests/unictype/test-numeric.h: Likewise.
20852         * tests/unictype/test-pr_alphabetic.c: Likewise.
20853         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20854         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
20855         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
20856         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20857         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20858         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20859         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20860         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20861         * tests/unictype/test-pr_case_ignorable.c: Likewise.
20862         * tests/unictype/test-pr_cased.c: Likewise.
20863         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
20864         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
20865         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
20866         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
20867         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
20868         * tests/unictype/test-pr_combining.c: Likewise.
20869         * tests/unictype/test-pr_composite.c: Likewise.
20870         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20871         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20872         * tests/unictype/test-pr_deprecated.c: Likewise.
20873         * tests/unictype/test-pr_format_control.c: Likewise.
20874         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20875         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20876         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20877         * tests/unictype/test-pr_id_continue.c: Likewise.
20878         * tests/unictype/test-pr_id_start.c: Likewise.
20879         * tests/unictype/test-pr_ideographic.c: Likewise.
20880         * tests/unictype/test-pr_lowercase.c: Likewise.
20881         * tests/unictype/test-pr_math.c: Likewise.
20882         * tests/unictype/test-pr_numeric.c: Likewise.
20883         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20884         * tests/unictype/test-pr_other_id_continue.c: Likewise.
20885         * tests/unictype/test-pr_other_math.c: Likewise.
20886         * tests/unictype/test-pr_punctuation.c: Likewise.
20887         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20888         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20889         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20890         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20891         * tests/unictype/test-pr_uppercase.c: Likewise.
20892         * tests/unictype/test-pr_xid_continue.c: Likewise.
20893         * tests/unictype/test-pr_xid_start.c: Likewise.
20894         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20895         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20896         changes.
20897         * lib/unictype/categ_Cc.h: Likewise.
20898         * lib/unictype/categ_Cf.h: Likewise.
20899         * lib/unictype/categ_Co.h: Likewise.
20900         * lib/unictype/categ_Cs.h: Likewise.
20901         * lib/unictype/categ_Lt.h: Likewise.
20902         * lib/unictype/categ_Nl.h: Likewise.
20903         * lib/unictype/categ_Pc.h: Likewise.
20904         * lib/unictype/categ_Pd.h: Likewise.
20905         * lib/unictype/categ_Pe.h: Likewise.
20906         * lib/unictype/categ_Pf.h: Likewise.
20907         * lib/unictype/categ_Pi.h: Likewise.
20908         * lib/unictype/categ_Ps.h: Likewise.
20909         * lib/unictype/categ_Z.h: Likewise.
20910         * lib/unictype/categ_Zl.h: Likewise.
20911         * lib/unictype/categ_Zp.h: Likewise.
20912         * lib/unictype/categ_Zs.h: Likewise.
20913         * lib/unictype/ctype_blank.h: Likewise.
20914         * lib/unictype/ctype_cntrl.h: Likewise.
20915         * lib/unictype/ctype_digit.h: Likewise.
20916         * lib/unictype/ctype_space.h: Likewise.
20917         * lib/unictype/ctype_xdigit.h: Likewise.
20918         * lib/unictype/mirror.h: Likewise.
20919         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20920         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20921         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20922         * lib/unictype/pr_bidi_control.h: Likewise.
20923         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20924         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20925         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20926         * lib/unictype/pr_bidi_pdf.h: Likewise.
20927         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20928         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20929         * lib/unictype/pr_dash.h: Likewise.
20930         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20931         * lib/unictype/pr_diacritic.h: Likewise.
20932         * lib/unictype/pr_extender.h: Likewise.
20933         * lib/unictype/pr_hex_digit.h: Likewise.
20934         * lib/unictype/pr_hyphen.h: Likewise.
20935         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20936         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20937         * lib/unictype/pr_ignorable_control.h: Likewise.
20938         * lib/unictype/pr_iso_control.h: Likewise.
20939         * lib/unictype/pr_join_control.h: Likewise.
20940         * lib/unictype/pr_left_of_pair.h: Likewise.
20941         * lib/unictype/pr_line_separator.h: Likewise.
20942         * lib/unictype/pr_logical_order_exception.h: Likewise.
20943         * lib/unictype/pr_non_break.h: Likewise.
20944         * lib/unictype/pr_not_a_character.h: Likewise.
20945         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20946         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20947         * lib/unictype/pr_other_id_start.h: Likewise.
20948         * lib/unictype/pr_other_lowercase.h: Likewise.
20949         * lib/unictype/pr_other_uppercase.h: Likewise.
20950         * lib/unictype/pr_paired_punctuation.h: Likewise.
20951         * lib/unictype/pr_paragraph_separator.h: Likewise.
20952         * lib/unictype/pr_pattern_syntax.h: Likewise.
20953         * lib/unictype/pr_pattern_white_space.h: Likewise.
20954         * lib/unictype/pr_private_use.h: Likewise.
20955         * lib/unictype/pr_quotation_mark.h: Likewise.
20956         * lib/unictype/pr_radical.h: Likewise.
20957         * lib/unictype/pr_soft_dotted.h: Likewise.
20958         * lib/unictype/pr_space.h: Likewise.
20959         * lib/unictype/pr_titlecase.h: Likewise.
20960         * lib/unictype/pr_variation_selector.h: Likewise.
20961         * lib/unictype/pr_white_space.h: Likewise.
20962         * lib/unictype/pr_zero_width.h: Likewise.
20963         * lib/unictype/sy_c_ident.h: Likewise.
20964         * lib/unictype/sy_c_whitespace.h: Likewise.
20965         * lib/unictype/sy_java_whitespace.h: Likewise.
20966         * lib/uninorm/composition-table.gperf: Likewise.
20967         * lib/uninorm/decomposition-table1.h: Likewise.
20968         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
20969         LB8.
20970         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20971         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20972         * modules/unictype/*: Bump version number of expected libunistring
20973         version.
20974
20975 2011-01-09  Bruno Haible  <bruno@clisp.org>
20976
20977         Update to Unicode 5.2.0.
20978         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
20979         trailing whitespace removed.
20980
20981 2011-01-09  Bruno Haible  <bruno@clisp.org>
20982
20983         New Unicode character properties, from Unicode 5.2.0.
20984         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
20985         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
20986         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
20987         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
20988         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
20989         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
20990         uc_is_property_cased, uc_is_property_case_ignorable,
20991         uc_is_property_changes_when_lowercased,
20992         uc_is_property_changes_when_uppercased,
20993         uc_is_property_changes_when_titlecased,
20994         uc_is_property_changes_when_casefolded,
20995         uc_is_property_changes_when_casemapped): New declarations.
20996         * lib/unictype/pr_byname.gperf: Add the new properties.
20997         * modules/unictype/property-byname (Depends-on): Depend on the new
20998         properties modules.
20999         * modules/unictype/property-all (Depends-on): Likewise.
21000         * MODULES.html.sh (Unicode string functions): Add
21001         unictype/property-case-ignorable, unictype/property-cased,
21002         unictype/property-changes-when-casefolded,
21003         unictype/property-changes-when-casemapped,
21004         unictype/property-changes-when-lowercased,
21005         unictype/property-changes-when-titlecased,
21006         unictype/property-changes-when-uppercased.
21007
21008         New module 'unictype/property-changes-when-casemapped'.
21009         * modules/unictype/property-changes-when-casemapped: New file.
21010         * lib/unictype/pr_changes_when_casemapped.c: New file.
21011         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21012         generated by gen-uni-tables.
21013         * modules/unictype/property-changes-when-casemapped-tests: New file.
21014         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21015         automatically generated by gen-uni-tables.
21016
21017         New module 'unictype/property-changes-when-casefolded'.
21018         * modules/unictype/property-changes-when-casefolded: New file.
21019         * lib/unictype/pr_changes_when_casefolded.c: New file.
21020         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21021         generated by gen-uni-tables.
21022         * modules/unictype/property-changes-when-casefolded-tests: New file.
21023         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21024         automatically generated by gen-uni-tables.
21025
21026         New module 'unictype/property-changes-when-titlecased'.
21027         * modules/unictype/property-changes-when-titlecased: New file.
21028         * lib/unictype/pr_changes_when_titlecased.c: New file.
21029         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21030         generated by gen-uni-tables.
21031         * modules/unictype/property-changes-when-titlecased-tests: New file.
21032         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21033         automatically generated by gen-uni-tables.
21034
21035         New module 'unictype/property-changes-when-uppercased'.
21036         * modules/unictype/property-changes-when-uppercased: New file.
21037         * lib/unictype/pr_changes_when_uppercased.c: New file.
21038         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21039         generated by gen-uni-tables.
21040         * modules/unictype/property-changes-when-uppercased-tests: New file.
21041         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21042         automatically generated by gen-uni-tables.
21043
21044         New module 'unictype/property-changes-when-lowercased'.
21045         * modules/unictype/property-changes-when-lowercased: New file.
21046         * lib/unictype/pr_changes_when_lowercased.c: New file.
21047         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21048         generated by gen-uni-tables.
21049         * modules/unictype/property-changes-when-lowercased-tests: New file.
21050         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21051         automatically generated by gen-uni-tables.
21052
21053         New module 'unictype/property-case-ignorable'.
21054         * modules/unictype/property-case-ignorable: New file.
21055         * lib/unictype/pr_case_ignorable.c: New file.
21056         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21057         by gen-uni-tables.
21058         * modules/unictype/property-case-ignorable-tests: New file.
21059         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21060         generated by gen-uni-tables.
21061
21062         New module 'unictype/property-cased'.
21063         * modules/unictype/property-cased: New file.
21064         * lib/unictype/pr_cased.c: New file.
21065         * lib/unictype/pr_cased.h: New file, automatically generated by
21066         gen-uni-tables.
21067         * modules/unictype/property-cased-tests: New file.
21068         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21069         gen-uni-tables.
21070
21071 2011-01-09  Bruno Haible  <bruno@clisp.org>
21072
21073         Update to Unicode 5.2.0.
21074         * lib/gen-uni-tables.c (output_predicate, output_category,
21075         output_combclass, output_bidi_category, output_decimal_digit_test,
21076         output_decimal_digit, output_digit_test, output_digit,
21077         output_numeric_test, output_numeric, output_mirror, output_scripts,
21078         output_scripts_byname, output_blocks, output_ident_category): Fix
21079         comment header.
21080         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21081         get_wbp.
21082         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21083         items.
21084         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21085         Changes_When_Lowercased, Changes_When_Uppercased,
21086         Changes_When_Titlecased, Changes_When_Casefolded,
21087         Changes_When_Casemapped.
21088         (is_property_alphabetic, is_property_default_ignorable_code_point):
21089         Update for Unicode 5.2.0.
21090         (is_property_cased, is_property_case_ignorable,
21091         is_property_changes_when_lowercased,
21092         is_property_changes_when_uppercased,
21093         is_property_changes_when_titlecased,
21094         is_property_changes_when_casefolded,
21095         is_property_changes_when_casemapped): New functions.
21096         (output_properties): Output also the properties cased, case_ignorable,
21097         changes_when_lowercased, changes_when_uppercased,
21098         changes_when_titlecased, changes_when_casefolded,
21099         changes_when_casemapped.
21100         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21101         Unicode TR#11 revision 17 -> 19.
21102         (LBP_CP): New enumeration value.
21103         (LBP_*): Adjust values accordingly.
21104         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21105         TR#14 revision 22 -> 24.
21106         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21107         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21108         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21109         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21110         is_WBP_MIDLETTER.
21111         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21112         the code1 and code2 of each composition rule.
21113         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21114         * lib/unicase/ignorable.h: Likewise.
21115         * lib/unicase/tocasefold.h: Likewise.
21116         * lib/unicase/tolower.h: Likewise.
21117         * lib/unicase/totitle.h: Likewise.
21118         * lib/unicase/toupper.h: Likewise.
21119         * lib/unictype/bidi_of.h: Likewise.
21120         * lib/unictype/blocks.h: Likewise.
21121         * lib/unictype/categ_C.h: Likewise.
21122         * lib/unictype/categ_Cf.h: Likewise.
21123         * lib/unictype/categ_Cn.h: Likewise.
21124         * lib/unictype/categ_L.h: Likewise.
21125         * lib/unictype/categ_Ll.h: Likewise.
21126         * lib/unictype/categ_Lm.h: Likewise.
21127         * lib/unictype/categ_Lo.h: Likewise.
21128         * lib/unictype/categ_Lu.h: Likewise.
21129         * lib/unictype/categ_M.h: Likewise.
21130         * lib/unictype/categ_Mc.h: Likewise.
21131         * lib/unictype/categ_Mn.h: Likewise.
21132         * lib/unictype/categ_N.h: Likewise.
21133         * lib/unictype/categ_Nd.h: Likewise.
21134         * lib/unictype/categ_Nl.h: Likewise.
21135         * lib/unictype/categ_No.h: Likewise.
21136         * lib/unictype/categ_P.h: Likewise.
21137         * lib/unictype/categ_Pd.h: Likewise.
21138         * lib/unictype/categ_Po.h: Likewise.
21139         * lib/unictype/categ_S.h: Likewise.
21140         * lib/unictype/categ_Sc.h: Likewise.
21141         * lib/unictype/categ_So.h: Likewise.
21142         * lib/unictype/categ_of.h: Likewise.
21143         * lib/unictype/combining.h: Likewise.
21144         * lib/unictype/ctype_alnum.h: Likewise.
21145         * lib/unictype/ctype_alpha.h: Likewise.
21146         * lib/unictype/ctype_graph.h: Likewise.
21147         * lib/unictype/ctype_lower.h: Likewise.
21148         * lib/unictype/ctype_print.h: Likewise.
21149         * lib/unictype/ctype_punct.h: Likewise.
21150         * lib/unictype/ctype_upper.h: Likewise.
21151         * lib/unictype/decdigit.h: Likewise.
21152         * lib/unictype/digit.h: Likewise.
21153         * lib/unictype/numeric.h: Likewise.
21154         * lib/unictype/pr_alphabetic.h: Likewise.
21155         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21156         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21157         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21158         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21159         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21160         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21161         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21162         * lib/unictype/pr_combining.h: Likewise.
21163         * lib/unictype/pr_composite.h: Likewise.
21164         * lib/unictype/pr_currency_symbol.h: Likewise.
21165         * lib/unictype/pr_dash.h: Likewise.
21166         * lib/unictype/pr_decimal_digit.h: Likewise.
21167         * lib/unictype/pr_deprecated.h: Likewise.
21168         * lib/unictype/pr_diacritic.h: Likewise.
21169         * lib/unictype/pr_extender.h: Likewise.
21170         * lib/unictype/pr_grapheme_base.h: Likewise.
21171         * lib/unictype/pr_grapheme_extend.h: Likewise.
21172         * lib/unictype/pr_grapheme_link.h: Likewise.
21173         * lib/unictype/pr_id_continue.h: Likewise.
21174         * lib/unictype/pr_id_start.h: Likewise.
21175         * lib/unictype/pr_ideographic.h: Likewise.
21176         * lib/unictype/pr_ignorable_control.h: Likewise.
21177         * lib/unictype/pr_logical_order_exception.h: Likewise.
21178         * lib/unictype/pr_lowercase.h: Likewise.
21179         * lib/unictype/pr_numeric.h: Likewise.
21180         * lib/unictype/pr_other_alphabetic.h: Likewise.
21181         * lib/unictype/pr_punctuation.h: Likewise.
21182         * lib/unictype/pr_sentence_terminal.h: Likewise.
21183         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21184         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21185         * lib/unictype/pr_unified_ideograph.h: Likewise.
21186         * lib/unictype/pr_uppercase.h: Likewise.
21187         * lib/unictype/pr_xid_continue.h: Likewise.
21188         * lib/unictype/pr_xid_start.h: Likewise.
21189         * lib/unictype/pr_zero_width.h: Likewise.
21190         * lib/unictype/scripts.h: Likewise.
21191         * lib/unictype/scripts_byname.gperf: Likewise.
21192         * lib/unictype/sy_java_ident.h: Likewise.
21193         * lib/unigbrk/gbrkprop.h: Likewise.
21194         * lib/unilbrk/lbrkprop1.h: Likewise.
21195         * lib/unilbrk/lbrkprop2.h: Likewise.
21196         * lib/unilbrk/lbrktables.h: Likewise.
21197         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21198         LBP_CP. Implement rule LB30.
21199         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21200         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21201         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21202         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21203         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21204         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21205         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21206         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21207         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21208         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21209         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21210         bits instead of 16 bits in the code1 and code2 of each composition
21211         rule.
21212         (uc_composition): Update for Unicode 5.2.0.
21213         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21214         * lib/uninorm/decomposition-table2.h: Likewise.
21215         * lib/uniwbrk/wbrkprop.h: Likewise.
21216         * tests/unicase/test-cased.c: Likewise.
21217         * tests/unicase/test-ignorable.c: Likewise.
21218         * tests/unicase/test-uc_tolower.c: Likewise.
21219         * tests/unicase/test-uc_totitle.c: Likewise.
21220         * tests/unicase/test-uc_toupper.c: Likewise.
21221         * tests/unictype/test-categ_C.c: Likewise.
21222         * tests/unictype/test-categ_Cf.c: Likewise.
21223         * tests/unictype/test-categ_Cn.c: Likewise.
21224         * tests/unictype/test-categ_L.c: Likewise.
21225         * tests/unictype/test-categ_Ll.c: Likewise.
21226         * tests/unictype/test-categ_Lm.c: Likewise.
21227         * tests/unictype/test-categ_Lo.c: Likewise.
21228         * tests/unictype/test-categ_Lu.c: Likewise.
21229         * tests/unictype/test-categ_M.c: Likewise.
21230         * tests/unictype/test-categ_Mc.c: Likewise.
21231         * tests/unictype/test-categ_Mn.c: Likewise.
21232         * tests/unictype/test-categ_N.c: Likewise.
21233         * tests/unictype/test-categ_Nd.c: Likewise.
21234         * tests/unictype/test-categ_Nl.c: Likewise.
21235         * tests/unictype/test-categ_No.c: Likewise.
21236         * tests/unictype/test-categ_P.c: Likewise.
21237         * tests/unictype/test-categ_Pd.c: Likewise.
21238         * tests/unictype/test-categ_Po.c: Likewise.
21239         * tests/unictype/test-categ_S.c: Likewise.
21240         * tests/unictype/test-categ_Sc.c: Likewise.
21241         * tests/unictype/test-categ_So.c: Likewise.
21242         * tests/unictype/test-ctype_alnum.c: Likewise.
21243         * tests/unictype/test-ctype_alpha.c: Likewise.
21244         * tests/unictype/test-ctype_graph.c: Likewise.
21245         * tests/unictype/test-ctype_lower.c: Likewise.
21246         * tests/unictype/test-ctype_print.c: Likewise.
21247         * tests/unictype/test-ctype_punct.c: Likewise.
21248         * tests/unictype/test-ctype_upper.c: Likewise.
21249         * tests/unictype/test-decdigit.h: Likewise.
21250         * tests/unictype/test-digit.h: Likewise.
21251         * tests/unictype/test-numeric.h: Likewise.
21252         * tests/unictype/test-pr_alphabetic.c: Likewise.
21253         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21254         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21255         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21256         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21257         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21258         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21259         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21260         * tests/unictype/test-pr_combining.c: Likewise.
21261         * tests/unictype/test-pr_composite.c: Likewise.
21262         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21263         * tests/unictype/test-pr_dash.c: Likewise.
21264         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21265         * tests/unictype/test-pr_deprecated.c: Likewise.
21266         * tests/unictype/test-pr_diacritic.c: Likewise.
21267         * tests/unictype/test-pr_extender.c: Likewise.
21268         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21269         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21270         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21271         * tests/unictype/test-pr_id_continue.c: Likewise.
21272         * tests/unictype/test-pr_id_start.c: Likewise.
21273         * tests/unictype/test-pr_ideographic.c: Likewise.
21274         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21275         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21276         * tests/unictype/test-pr_lowercase.c: Likewise.
21277         * tests/unictype/test-pr_numeric.c: Likewise.
21278         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21279         * tests/unictype/test-pr_punctuation.c: Likewise.
21280         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21281         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21282         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21283         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21284         * tests/unictype/test-pr_uppercase.c: Likewise.
21285         * tests/unictype/test-pr_xid_continue.c: Likewise.
21286         * tests/unictype/test-pr_xid_start.c: Likewise.
21287         * tests/unictype/test-pr_zero_width.c: Likewise.
21288         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21289         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21290         changed behaviour: line breaking is now disallowed between a letter
21291         or '=' and '('.
21292         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21293         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21294         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21295         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21296         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21297         lib/uniwidth/width.c.
21298         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21299         without comments, but with the original copyright notice.
21300         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21301         changes.
21302         * lib/unictype/categ_Cc.h: Likewise.
21303         * lib/unictype/categ_Co.h: Likewise.
21304         * lib/unictype/categ_Cs.h: Likewise.
21305         * lib/unictype/categ_Lt.h: Likewise.
21306         * lib/unictype/categ_Me.h: Likewise.
21307         * lib/unictype/categ_Pc.h: Likewise.
21308         * lib/unictype/categ_Pe.h: Likewise.
21309         * lib/unictype/categ_Pf.h: Likewise.
21310         * lib/unictype/categ_Pi.h: Likewise.
21311         * lib/unictype/categ_Ps.h: Likewise.
21312         * lib/unictype/categ_Sk.h: Likewise.
21313         * lib/unictype/categ_Sm.h: Likewise.
21314         * lib/unictype/categ_Z.h: Likewise.
21315         * lib/unictype/categ_Zl.h: Likewise.
21316         * lib/unictype/categ_Zp.h: Likewise.
21317         * lib/unictype/categ_Zs.h: Likewise.
21318         * lib/unictype/ctype_blank.h: Likewise.
21319         * lib/unictype/ctype_cntrl.h: Likewise.
21320         * lib/unictype/ctype_digit.h: Likewise.
21321         * lib/unictype/ctype_space.h: Likewise.
21322         * lib/unictype/ctype_xdigit.h: Likewise.
21323         * lib/unictype/mirror.h: Likewise.
21324         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21325         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21326         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21327         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21328         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21329         * lib/unictype/pr_bidi_control.h: Likewise.
21330         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21331         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21332         * lib/unictype/pr_bidi_pdf.h: Likewise.
21333         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21334         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21335         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21336         * lib/unictype/pr_format_control.h: Likewise.
21337         * lib/unictype/pr_hex_digit.h: Likewise.
21338         * lib/unictype/pr_hyphen.h: Likewise.
21339         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21340         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21341         * lib/unictype/pr_iso_control.h: Likewise.
21342         * lib/unictype/pr_join_control.h: Likewise.
21343         * lib/unictype/pr_left_of_pair.h: Likewise.
21344         * lib/unictype/pr_line_separator.h: Likewise.
21345         * lib/unictype/pr_math.h: Likewise.
21346         * lib/unictype/pr_non_break.h: Likewise.
21347         * lib/unictype/pr_not_a_character.h: Likewise.
21348         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21349         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21350         * lib/unictype/pr_other_id_continue.h: Likewise.
21351         * lib/unictype/pr_other_id_start.h: Likewise.
21352         * lib/unictype/pr_other_lowercase.h: Likewise.
21353         * lib/unictype/pr_other_math.h: Likewise.
21354         * lib/unictype/pr_other_uppercase.h: Likewise.
21355         * lib/unictype/pr_paired_punctuation.h: Likewise.
21356         * lib/unictype/pr_paragraph_separator.h: Likewise.
21357         * lib/unictype/pr_pattern_syntax.h: Likewise.
21358         * lib/unictype/pr_pattern_white_space.h: Likewise.
21359         * lib/unictype/pr_private_use.h: Likewise.
21360         * lib/unictype/pr_quotation_mark.h: Likewise.
21361         * lib/unictype/pr_radical.h: Likewise.
21362         * lib/unictype/pr_soft_dotted.h: Likewise.
21363         * lib/unictype/pr_space.h: Likewise.
21364         * lib/unictype/pr_titlecase.h: Likewise.
21365         * lib/unictype/pr_variation_selector.h: Likewise.
21366         * lib/unictype/pr_white_space.h: Likewise.
21367         * lib/unictype/sy_c_ident.h: Likewise.
21368         * lib/unictype/sy_c_whitespace.h: Likewise.
21369         * lib/unictype/sy_java_whitespace.h: Likewise.
21370         * modules/uni*/*: Bump version number of expected libunistring version.
21371         Reported by Simon Josefsson.
21372
21373 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21374
21375         useless-if-before-free: fix typo in --help and make the internal,
21376         automatic version date update process work once again.
21377         --help output contained a NUL character instead of the
21378         backslash-zero that was intended.  Also, the "must lie within
21379         the first 8 lines" line is on line 9, and hence not getting
21380         automatically updated.
21381         * build-aux/useless-if-before-free: Fix the former by adding a
21382         backslash, and the latter by condensing the three lines of what-it-does
21383         to a single line, leaving one line of slack for the future.
21384
21385 2011-01-09  Bruno Haible  <bruno@clisp.org>
21386
21387         uniwidth/width: Fix width of U+1D173..U+1D17A.
21388         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21389         symbolic_width, output_width_property_test): New functions.
21390         (main): Invoke output_nonspacing_property, output_width_property_test.
21391         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21392         U+1D173..U+1D17A.
21393         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21394         1.
21395         * modules/uniwidth/*: Bump version number of expected libunistring
21396         version.
21397         * modules/unilbrk/*: Likewise.
21398
21399 2011-01-08  Bruno Haible  <bruno@clisp.org>
21400
21401         uninorm tests: Preserve copyright of Unicode data file.
21402         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
21403         Mention modifications.
21404
21405 2011-01-08  Bruno Haible  <bruno@clisp.org>
21406
21407         gen-uni-tables: Prepare for Unicode 5.2.0.
21408         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
21409         (debug_output_lbp, output_lbp): Update.
21410
21411 2011-01-08  Bruno Haible  <bruno@clisp.org>
21412
21413         unilbrk: Clarify gen-uni-tables.c code.
21414         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
21415         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
21416         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
21417
21418 2011-01-07  Bruno Haible  <bruno@clisp.org>
21419
21420         strtod: Restore errno when successfully parsing Infinity or NaN.
21421         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
21422         restore the original errno.
21423
21424 2011-01-07  Bruno Haible  <bruno@clisp.org>
21425
21426         remove test: Avoid failure on HP-UX 11.
21427         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
21428
21429 2011-01-07  Bruno Haible  <bruno@clisp.org>
21430
21431         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
21432         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
21433         error code.
21434
21435 2011-01-07  Pádraig Brady <P@draigBrady.com>
21436
21437         ignore-value: fixup comments, and add Eric Blake
21438         as an author since he rewrote the macros.
21439         * lib/ignore-value.h (ignore_value):  State that
21440         we now support aggregates.  Also specify exactly
21441         when the GCC warn_unused_result feature was added.
21442
21443 2011-01-06  Eric Blake  <eblake@redhat.com>
21444
21445         ignore-value: support aggregate types
21446         * lib/ignore-value.h (ignore_value): Provide separate gcc
21447         definition.
21448         * modules/ignore-value-tests: New test module.
21449         * tests/test-ignore-value.c: New test.
21450
21451         maint.mk: improve sc_prohibit_strcmp regex
21452         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
21453         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
21454         definition of STRNEQ.
21455
21456         signal: work around Haiku issue with SIGBUS
21457         * lib/siglist.h: Add comment.
21458         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
21459         strsignal's favoring of SIGSEGV.
21460         * tests/test-signal.c (main): Avoid test failure.
21461         * doc/posix-headers/signal.texi (signal.h): Document the issue.
21462         Reported by Scott McCreary.
21463
21464         maint.mk: add pre-release check to ensure submodule commits are public
21465         * top/maint.mk (public-submodule-commit): New rule.
21466         (submodule-checks): New variable.
21467         (alpha beta stable): Depend on the variable.
21468
21469 2011-01-05  Pádraig Brady <P@draigBrady.com>
21470         and Jim Meyering  <meyering@redhat.com>
21471
21472         ignore-value: make ignore_value more generic; deprecate ignore_ptr
21473         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
21474         (ATTRIBUTE_DEPRECATED): Define.
21475         (_ignore_case): New function.
21476         (ignore_value): New macro, to replace the old function.
21477         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
21478         * modules/ignore-value (Depends-on): Add stdint.
21479
21480 2011-01-04  Eric Blake  <eblake@redhat.com>
21481
21482         doc: regenerate INSTALL
21483         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
21484         @firstparagraphindent support, now that autoconf dropped it.
21485         (INSTALL_PRELUDE): Reinstate old macro.
21486         * doc/install.texi: Resync from autoconf.
21487         * doc/INSTALL: Reflect recent autoconf update.
21488         * doc/INSTALL.ISO: Likewise.
21489         * doc/INSTALL.UTF-8: Likewise.
21490         Reported by Karl Berry.
21491
21492 2011-01-04  Bruce Korb  <address@hidden>
21493
21494         git-version-gen: avoid a sub-shell
21495         * build-aux/git-version-gen: Redirect stderr in `...` via
21496         "exec 2>...", rather than via an added sub-shell.
21497
21498 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
21499
21500         git-version-gen: use (...) rather than sh -c '...'
21501         * build-aux/git-version-gen: Rather than hard-coding a shell's name
21502         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
21503
21504 2011-01-03  Jim Meyering  <meyering@redhat.com>
21505
21506         git-version-gen: convert leading TABs to spaces
21507         * build-aux/git-version-gen: Expand leading TABs.
21508
21509         git-version-gen: handle failed "git rev-list"
21510         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21511         from git and proceeding as if it had succeeded but printed no SHA1
21512         checksums, suppress the diagnostic and handle the failure.
21513         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21514
21515         git-version-gen: include command name in one more diagnostic
21516         * build-aux/git-version-gen: When the required .tarball-version file
21517         was missing or unreadable, you might see the diagnostic from "cat",
21518         but no trace of the name of the invoking script.  Now, you still see
21519         the diagnostic from cat, but also get one from "git-version-gen: ".
21520         Inspired by a patch from Bruce Korb.
21521
21522         update-copyright: adjust test to match changed code
21523         * tests/test-update-copyright.sh: Change test's expected output
21524         to match new actual output.
21525
21526 2011-01-02  Bruno Haible  <bruno@clisp.org>
21527
21528         getlogin_r: Avoid test failure on HP-UX 11.
21529         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21530         ERANGE when the second argument is zero.
21531         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21532         portability problem.
21533
21534 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21535
21536         * build-aux/update-copyright: doc Simon's changes
21537
21538 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21539
21540         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21541         environment variable.
21542
21543 2011-01-02  Bruno Haible  <bruno@clisp.org>
21544
21545         unigbrk: Avoid gcc warnings.
21546         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21547         unused variable.
21548         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21549         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21550         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21551         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21552         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21553         Change type of first argument to 'const char *'.
21554         (main): Remove unused variable.
21555         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21556         type of first argument to 'const char *'.
21557         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21558         Likewise.
21559         (main): Change type of variable 's'.
21560         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21561         to 'int'.
21562
21563 2011-01-02  Bruno Haible  <bruno@clisp.org>
21564
21565         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21566         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21567         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21568         bug.
21569         * lib/pwrite.c: Undo 2010-12-31 patch.
21570         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21571
21572 2011-01-02  Bruno Haible  <bruno@clisp.org>
21573
21574         pread: Fix test whether it works.
21575         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21576
21577 2011-01-02  Bruno Haible  <bruno@clisp.org>
21578
21579         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21580         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21581         ends in "6". Don't require a specific month name. Try also the locale
21582         names found on HP-UX 11 and Solaris 7.
21583
21584 2011-01-02  Bruno Haible  <bruno@clisp.org>
21585
21586         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21587         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21588         C linkage.
21589         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21590
21591 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21592
21593         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21594         for consistency, since the "cluster" term is not used elsewhere.
21595         * lib/unigbrk.in.h: Update name.
21596         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21597         * lib/unigbrk/u16-grapheme-next.c: Update name.
21598         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21599         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21600         * lib/unigbrk/u32-grapheme-next.c: Update name.
21601         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21602         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21603         * lib/unigbrk/u8-grapheme-next.c: Update name.
21604         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21605         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21606         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21607         Suggested by Bruno Haible.
21608
21609 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21610
21611         Remove module 'u8-grapheme-len' as too redundant with
21612         'u8-grapheme-next'.
21613         * modules/unigbrk/u8-grapheme-len: Delete file.
21614         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21615         * lib/unigbrk.in.h: Remove prototype for deleted function.
21616         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21617         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21618
21619         Remove module 'u16-grapheme-len' as too redundant with
21620         'u16-grapheme-next'.
21621         * modules/unigbrk/u16-grapheme-len: Delete file.
21622         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21623         * lib/unigbrk.in.h: Remove prototype for deleted function.
21624         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21625         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21626
21627         Remove module 'u32-grapheme-len' as too redundant with
21628         'u32-grapheme-next'.
21629         * modules/unigbrk/u32-grapheme-len: Delete file.
21630         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21631         * lib/unigbrk.in.h: Remove prototype for deleted function.
21632         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21633         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21634
21635         Suggested by Bruno Haible.
21636
21637 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21638
21639         * unigbrk.in.h: Fix typo: "ben" => "been".
21640         Reported by Bruno Haible.
21641
21642 2011-01-01  Jim Meyering  <meyering@redhat.com>
21643
21644         maint: update almost all copyright ranges to include 2011
21645         Run the new "make update-copyright" rule.
21646
21647 2011-01-01  Jim Meyering  <meyering@redhat.com>
21648
21649         maint: update-copyright: exempt doc/INSTALL*
21650         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21651         since they are generated.  Suggested by Bruno Haible.
21652
21653 2011-01-01  Jim Meyering  <meyering@redhat.com>
21654
21655         maint: refine the update-copyright rule
21656         * Makefile (update-copyright): Also exclude any file that includes
21657         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
21658         code that merely generates the comment.
21659
21660 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21661
21662         New module 'u8-grapheme-len'.
21663         * modules/unigbrk/u8-grapheme-len: New file.
21664         * modules/unigbrk/u8-grapheme-len-tests: New file.
21665         * lib/unigbrk.in.h: Add prototype for new function.
21666         * lib/unigbrk/u8-grapheme-len.c: New file.
21667         * tests/unigbrk/test-u8-grapheme-len.c: New file.
21668
21669         New module 'u16-grapheme-len'.
21670         * modules/unigbrk/u16-grapheme-len: New file.
21671         * modules/unigbrk/u16-grapheme-len-tests: New file.
21672         * lib/unigbrk.in.h: Add prototype for new function.
21673         * lib/unigbrk/u16-grapheme-len.c: New file.
21674         * tests/unigbrk/test-u16-grapheme-len.c: New file.
21675
21676         New module 'u32-grapheme-len'.
21677         * modules/unigbrk/u32-grapheme-len: New file.
21678         * modules/unigbrk/u32-grapheme-len-tests: New file.
21679         * lib/unigbrk.in.h: Add prototype for new function.
21680         * lib/unigbrk/u32-grapheme-len.c: New file.
21681         * tests/unigbrk/test-u32-grapheme-len.c: New file.
21682
21683         New module 'u8-grapheme-next'.
21684         * modules/unigbrk/u8-grapheme-next: New file.
21685         * modules/unigbrk/u8-grapheme-next-tests: New file.
21686         * lib/unigbrk.in.h: Add prototype for new function.
21687         * lib/unigbrk/u8-grapheme-next.c: New file.
21688         * tests/unigbrk/test-u8-grapheme-next.c: New file.
21689
21690         New module 'u16-grapheme-next'.
21691         * modules/unigbrk/u16-grapheme-next: New file.
21692         * modules/unigbrk/u16-grapheme-next-tests: New file.
21693         * lib/unigbrk.in.h: Add prototype for new function.
21694         * lib/unigbrk/u16-grapheme-next.c: New file.
21695         * tests/unigbrk/test-u16-grapheme-next.c: New file.
21696
21697         New module 'u32-grapheme-next'.
21698         * modules/unigbrk/u32-grapheme-next: New file.
21699         * modules/unigbrk/u32-grapheme-next-tests: New file.
21700         * lib/unigbrk.in.h: Add prototype for new function.
21701         * lib/unigbrk/u32-grapheme-next.c: New file.
21702         * tests/unigbrk/test-u32-grapheme-next.c: New file.
21703
21704         New module 'u8-grapheme-prev'.
21705         * modules/unigbrk/u8-grapheme-prev: New file.
21706         * modules/unigbrk/u8-grapheme-prev-tests: New file.
21707         * lib/unigbrk.in.h: Add prototype for new function.
21708         * lib/unigbrk/u8-grapheme-prev.c: New file.
21709         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
21710
21711         New module 'u16-grapheme-prev'.
21712         * modules/unigbrk/u16-grapheme-prev: New file.
21713         * modules/unigbrk/u16-grapheme-prev-tests: New file.
21714         * lib/unigbrk.in.h: Add prototype for new function.
21715         * lib/unigbrk/u16-grapheme-prev.c: New file.
21716         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
21717
21718         New module 'u32-grapheme-prev'.
21719         * modules/unigbrk/u32-grapheme-prev: New file.
21720         * modules/unigbrk/u32-grapheme-prev-tests: New file.
21721         * lib/unigbrk.in.h: Add prototype for new function.
21722         * lib/unigbrk/u32-grapheme-prev.c: New file.
21723         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
21724
21725         New module 'u8-grapheme-breaks'.
21726         * modules/unigbrk/u8-grapheme-breaks: New file.
21727         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
21728         * lib/unigbrk.in.h: Add prototype for new function.
21729         * lib/unigbrk/u8-grapheme-breaks.c: New file.
21730         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
21731
21732         New module 'u16-grapheme-breaks'.
21733         * modules/unigbrk/u16-grapheme-breaks: New file.
21734         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
21735         * lib/unigbrk.in.h: Add prototype for new function.
21736         * lib/unigbrk/u16-grapheme-breaks.c: New file.
21737         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
21738
21739         New module 'u32-grapheme-breaks'.
21740         * modules/unigbrk/u32-grapheme-breaks: New file.
21741         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
21742         * lib/unigbrk.in.h: Add prototype for new function.
21743         * lib/unigbrk/u32-grapheme-breaks.c: New file.
21744         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
21745
21746         New module 'ulc-grapheme-breaks'.
21747         * modules/unigbrk/ulc-grapheme-breaks: New file.
21748         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
21749         * m4/locale-ar.m4: New file.
21750         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
21751         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
21752         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
21753
21754 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21755
21756         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
21757         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
21758         modified how this file was generated before I initially submitted
21759         the module, but failed to regenerate it.  This meant that several
21760         of the level2 entries were wrong.
21761         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
21762         Remove the division-by-2 that is folded into the table now that
21763         gbrkprop.h has been regenerated properly.  Now -1 entries are
21764         handled correctly.
21765
21766         New module 'unigbrk/uc-gbrk-prop-tests'.
21767         * modules/unigbrk/uc-gbrk-prop-tests: New file.
21768         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
21769         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
21770         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
21771
21772 2011-01-01  Bruno Haible  <bruno@clisp.org>
21773
21774         Avoid use of hexadecimal escapes.
21775         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
21776         instead of hexadecimal escapes.
21777
21778 2011-01-01  Jim Meyering  <meyering@redhat.com>
21779
21780         maint: new rule to update copyright year ranges
21781         * Makefile (update-copyright): New rule.
21782
21783         maint: indent with TABs in Makefile
21784         * Makefile: Expand leading sequences of spaces to TABs
21785
21786         version-etc: update the copyright year it reports
21787         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
21788
21789 2010-12-31  Bruno Haible  <bruno@clisp.org>
21790
21791         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
21792         * lib/isfinite.c (zerof, zerod, zerol): New variables.
21793         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
21794         zero.
21795
21796 2010-12-31  Bruno Haible  <bruno@clisp.org>
21797
21798         pwrite: Work around HP-UX 11.11 bug.
21799         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
21800         works and set REPLACE_PWRITE if not.
21801         * lib/pwrite.c (pwrite): Add an implementation that uses the system
21802         function.
21803         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
21804
21805 2010-12-31  Bruno Haible  <bruno@clisp.org>
21806
21807         pread: Work around HP-UX 11 bugs.
21808         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
21809         and set REPLACE_PREAD if not.
21810         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
21811
21812 2010-12-31  Eric Blake  <eblake@redhat.com>
21813
21814         nl_langinfo: fix YESEXPR on Irix 6.5
21815         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
21816         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
21817         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
21818         it.
21819
21820 2010-12-31  Bruno Haible  <bruno@clisp.org>
21821
21822         iconv: Document HP-UX 11 bug.
21823         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
21824
21825 2010-12-31  Bruno Haible  <bruno@clisp.org>
21826
21827         ldexpl: Fix link error on HP-UX 11.
21828         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
21829         LDEXPL_LIBM, using $ISNANL_LIBM.
21830
21831 2010-12-31  Eric Blake  <eblake@redhat.com>
21832
21833         ftello: avoid compilation failure with SunStudio c89
21834         * lib/ftello.c (ftello): Use lseek, not llseek.
21835
21836         tests: avoid failing coreutils tests on cygwin
21837         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
21838         (create_exe_shims_): Return 0 when skipping.
21839
21840 2010-12-31  Bruno Haible  <bruno@clisp.org>
21841
21842         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
21843         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
21844
21845 2010-12-31  Bruno Haible  <bruno@clisp.org>
21846
21847         waitpid: Fix link error in C++ mode.
21848         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
21849
21850 2010-12-31  Bruno Haible  <bruno@clisp.org>
21851
21852         isnan: Use GCC built-ins when possible.
21853         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
21854         __builtin_isnan.
21855         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
21856         (isnan): Define using GCC built-ins for GCC >= 4.0.
21857
21858 2010-12-31  Bruno Haible  <bruno@clisp.org>
21859
21860         isnand: Fix mistake.
21861         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
21862         __builtin_isnand.
21863
21864 2010-12-31  Bruno Haible  <bruno@clisp.org>
21865
21866         open: Avoid C++ error on HP-UX 11.
21867         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
21868
21869 2010-12-31  Bruno Haible  <bruno@clisp.org>
21870
21871         time_r: Add missing declarations on HP-UX 11.
21872         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
21873         instead of HAVE_LOCALTIME_R.
21874         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
21875         HAVE_LOCALTIME_R always.
21876         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
21877         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
21878         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
21879         HAVE_LOCALTIME_R.
21880         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
21881         * doc/posix-functions/localtime_r.texi: Likewise.
21882
21883 2010-12-29  Eric Blake  <eblake@redhat.com>
21884
21885         mountlist: tweak previous commit
21886         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
21887         Reported by Paul Eggert.
21888
21889         mountlist: fix local drive detection on cygwin
21890         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
21891         that works for cygwin.
21892
21893 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21894
21895         ftoastr, snprintf: ftoastr + snprintf module
21896         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
21897         since the snprintf module now should be good enough here.
21898         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
21899         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
21900         and gl_MODULE_INDICATOR([snprintf]), but the former enables
21901         GNULIB_SNPRINTF only for the test directory, and the latter
21902         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
21903         seems to suffice by itself.
21904
21905 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21906
21907         alloca: one step towards thread-safety
21908         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
21909         need for a static variable.  All callers changed.  This does not
21910         make the alloca replacement thread-safe, but it's one step.
21911
21912         tests: minor indenting change
21913         * tests/init.sh: Sync from coreutils housekeeping patch
21914         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
21915         to keep lines within 80 columns.
21916
21917 2010-12-28  Jim Meyering  <meyering@redhat.com>
21918
21919         regex: don't infloop on persistent failing calloc
21920         * lib/regexec.c (build_trtable): Return failure indication upon
21921         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21922         In glibc, this was fixed for version 2.13:
21923         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
21924
21925 2010-12-28  Bruno Haible  <bruno@clisp.org>
21926             Paul Eggert <eggert@cs.ucla.edu>
21927
21928         linkat: Make implementation robust against system behaviour variations.
21929         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
21930         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
21931         way, and to -2 if it needs a generic runtime test.
21932         * lib/linkat.c (solaris_optimized_link_immediate,
21933         solaris_optimized_link_follow): New functions.
21934         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
21935         (check_same_link): Use it.
21936
21937 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
21938
21939         New module 'unigbrk/base'.
21940         * modules/unigbrk/base: New file.
21941         * lib/unigbrk.in.h: New file.
21942
21943         New module 'unigbrk/uc-gbrk-prop'.
21944         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
21945         * modules/unigbrk/uc-gbrk-prop: New file.
21946         * lib/unigbrk/gbrkprop.h: New file.
21947         * lib/unigbrk/uc-gbrk-prop.c: New file.
21948
21949         New module 'unigbrk/uc-is-grapheme-break'.
21950         * modules/unigbrk/uc-is-grapheme-break: New file.
21951         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
21952         * lib/unigbrk/uc-is-grapheme-break.c: New file.
21953         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
21954         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
21955         * tests/unigbrk/GraphemeBreakTest.txt: New file.
21956
21957         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
21958
21959 2010-12-27  Bruno Haible  <bruno@clisp.org>
21960
21961         linkat test: Avoid failure on Solaris 11 2010-11.
21962         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
21963
21964 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21965
21966         utimens: work around glibc rounding bug on more platforms
21967         * lib/utimens.c (fdutimens): Work around rounding bug even if
21968         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
21969         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
21970
21971 2010-12-27  Bruno Haible  <bruno@clisp.org>
21972
21973         select tests: Improve comments.
21974         * tests/test-select.c (do_select): Add comments.
21975
21976 2010-12-27  Bruno Haible  <bruno@clisp.org>
21977
21978         select tests: Safer way of handling timeout.
21979         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
21980         at every invocation.
21981
21982 2010-12-27  Bruno Haible  <bruno@clisp.org>
21983
21984         select tests: Use 'bool' where appropriate.
21985         * tests/test-select.c (connect_to_socket): Change argument type to
21986         'bool'.
21987
21988 2010-12-27  Bruno Haible  <bruno@clisp.org>
21989
21990         select tests: Use existing modules.
21991         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
21992         (configure.ac): Don't test for unistd.h.
21993         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
21994         declared in <unistd.h>.
21995
21996 2010-12-27  Bruno Haible  <bruno@clisp.org>
21997
21998         mbrtowc: Work around a Solaris 7 bug.
21999         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22000         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22001         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22002         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22003         MBRTOWC_NULL_ARG1_BUG.
22004         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22005         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22006         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22007         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22008
22009 2010-12-27  Jim Meyering  <meyering@redhat.com>
22010
22011         read-file.c: tweak syntax
22012         * lib/read-file.c (fread_file): Remove space after "*" in function
22013         definitions.
22014
22015 2010-12-27  Bruno Haible  <bruno@clisp.org>
22016
22017         times test: Avoid gcc warnings on OSF/1.
22018         * tests/test-times.c (main): Cast printf arguments from clock_t to
22019         'long int'.
22020
22021 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22022
22023         utimens: work around glibc rounding bug on older Linux kernels
22024         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22025         on Linux with a glibc whose utimes might not work, then work
22026         around a longstanding glibc bug involving rounding rather than
22027         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22028         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22029
22030 2010-12-26  Bruno Haible  <bruno@clisp.org>
22031
22032         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22033         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22034         _GL_CXXALIAS_SYS.
22035         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22036
22037 2010-12-26  Bruno Haible  <bruno@clisp.org>
22038
22039         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22040         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22041         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22042         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22043         looking for the declaration.
22044         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22045         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22046         problem.
22047         * doc/posix-functions/inet_pton.texi: Likewise.
22048
22049 2010-12-26  Bruno Haible  <bruno@clisp.org>
22050
22051         arpa_inet: Use the common idioms with C++ support.
22052         * lib/arpa_inet.in.h: Include c++defs.h.
22053         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22054         support.
22055         * modules/arpa_inet (Depends-on): Add c++defs.
22056         (Makefile.am): Substitute the contents of c++defs.h.
22057         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22058         * modules/arpa_inet-c++-tests: New file.
22059         * tests/test-arpa_inet-c++.cc: New file.
22060
22061 2010-12-25  Bruno Haible  <bruno@clisp.org>
22062
22063         Fix more C++ link errors on Solaris 8.
22064         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22065         $(LIB_EACCESS).
22066         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22067         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22068         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22069         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22070         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22071
22072 2010-12-25  Bruno Haible  <bruno@clisp.org>
22073
22074         printf-posix: Fix link error when a non-GCC compiler is used.
22075         * lib/stdio.in.h (printf): When not using GCC, override printf
22076         correctly.
22077         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22078
22079 2010-12-25  Bruno Haible  <bruno@clisp.org>
22080
22081         strerror_r-posix: Update doc.
22082         * doc/posix-functions/strerror_r.texi: Update doc about the return
22083         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22084
22085 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22086
22087         utimens: simplify the logic of the previous change
22088         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22089         This should not affect whether the test succeeds or fails.
22090
22091         utimens: configure better on hosts with NFS clock skew
22092         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22093         uses the clock of the local host.  It might use the clock of the
22094         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22095         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22096
22097 2010-12-25  Bruno Haible  <bruno@clisp.org>
22098
22099         ptsname test: Avoid failure on Solaris.
22100         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22101         open a pseudo-terminal; don't use BSD-style ptys.
22102         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22103
22104 2010-12-25  Bruno Haible  <bruno@clisp.org>
22105
22106         ptsname: Avoid ERANGE failure on some systems.
22107         * lib/ptsname.c (buffer): Increase size.
22108
22109 2010-12-25  Bruno Haible  <bruno@clisp.org>
22110
22111         rename, renameat: Avoid test failures at NFS mounted locations.
22112         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22113         so that subsequent mkdir calls succeed.
22114
22115 2010-12-25  Bruno Haible  <bruno@clisp.org>
22116
22117         iswblank: Fix C++ link error on Solaris 8.
22118         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22119         _GL_FUNCDECL_SYS.
22120
22121 2010-12-25  Bruno Haible  <bruno@clisp.org>
22122
22123         unistd: Fix C++ link error on Solaris 8.
22124         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22125
22126 2010-12-25  Bruno Haible  <bruno@clisp.org>
22127
22128         readlink doc: Mention an old glibc bug.
22129         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22130
22131 2010-12-25  Bruno Haible  <bruno@clisp.org>
22132
22133         fcntl-h: Fix for use of C++ on glibc systems.
22134         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22135         also on glibc systems in C++ mode.
22136         Reported by Gary V. Vaughan <gary@gnu.org>.
22137
22138 2010-12-25  Bruno Haible  <bruno@clisp.org>
22139
22140         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22141         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22142
22143 2010-12-25  Bruno Haible  <bruno@clisp.org>
22144
22145         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22146         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22147         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22148         test whether truncl works according to ISO C 99 with IEC 60559.
22149         * m4/truncl-ieee.m4: New file.
22150         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22151         m4/signbit.m4.
22152         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22153
22154 2010-12-25  Bruno Haible  <bruno@clisp.org>
22155
22156         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22157         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22158         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22159         test whether ceill works according to ISO C 99 with IEC 60559.
22160         * m4/ceill-ieee.m4: New file.
22161         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22162         m4/signbit.m4.
22163         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22164
22165 2010-12-25  Bruno Haible  <bruno@clisp.org>
22166
22167         Ensure all prerequisites of <wchar.h> are included.
22168         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22169         before <wchar.h>.
22170         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22171         gl_MBRLEN_NUL_RETVAL): Likewise.
22172         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22173         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22174         AC_FUNC_MBRTOWC): Likewise.
22175         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22176         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22177         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22178         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22179         Likewise.
22180         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22181         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22182         (gl_WCHAR_H): Improve comments.
22183         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22184
22185 2010-12-25  Bruno Haible  <bruno@clisp.org>
22186
22187         strtok_r: Fix C syntax error in autoconf macro.
22188         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22189         characters in test program.
22190
22191 2010-12-24  Bruno Haible  <bruno@clisp.org>
22192
22193         ceil, trunc, round: Fix gcc warnings.
22194         * lib/ceil.c (MIN): Undefine before redefining.
22195         * lib/trunc.c (MIN): Likewise.
22196         * lib/round.c (MIN): Likewise.
22197         Include <math.h> first.
22198
22199 2010-12-24  Bruno Haible  <bruno@clisp.org>
22200
22201         select tests: Avoid failures on OSF/1 5.1.
22202         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22203         failure of closing the last socket; it may fail with ECONNRESET.
22204
22205 2010-12-24  Eric Blake  <eblake@redhat.com>
22206
22207         stdint: avoid HP-UX 10.20 preprocessor bug
22208         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22209         than #if.
22210         * tests/test-floor2.c (main): Likewise.
22211         Reported by Peter O'Gorman.
22212
22213         pipe: make obsoletion transition easier
22214         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22215         * modules/pipe (Files): Include revived file.
22216         (Include): Drop reference, to mirror getdate's behavior.
22217
22218 2010-12-24  Bruno Haible  <bruno@clisp.org>
22219
22220         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22221         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22222         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22223         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22224
22225 2010-12-24  Bruno Haible  <bruno@clisp.org>
22226
22227         gethostname: Ensure declaration on NonStop Kernel.
22228         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22229         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22230
22231 2010-12-24  Bruno Haible  <bruno@clisp.org>
22232
22233         sys_select: Ensure all necessary types on NonStop Kernel.
22234         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22235         include <sys/time.h>.
22236         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22237         NonStop Kernel.
22238         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22239
22240 2010-12-24  Bruno Haible  <bruno@clisp.org>
22241
22242         sys_select: Remove unneeded include.
22243         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22244         have <sys/select.h>.
22245
22246 2010-12-24  Bruno Haible  <bruno@clisp.org>
22247
22248         gethostname: Provide a fallback for HOST_NAME_MAX.
22249         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22250         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22251         instead.
22252         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22253
22254 2010-12-24  Bruno Haible  <bruno@clisp.org>
22255
22256         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22257         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22258         (SA_RESTART): Likewise.
22259         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22260
22261 2010-12-24  Bruno Haible  <bruno@clisp.org>
22262
22263         signal: Define NSIG.
22264         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22265         * tests/test-signal.c (nsig): New variable.
22266         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22267
22268 2010-12-24  Bruno Haible  <bruno@clisp.org>
22269
22270         rename, renameat: Avoid test failures on OSF/1 5.1.
22271         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22272         alternative error codes.
22273         * tests/test-renameat.c (main): Likewise.
22274
22275 2010-12-24  Bruno Haible  <bruno@clisp.org>
22276
22277         *printf: Detect large precisions bug on Solaris 10/SPARC.
22278         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22279         by Paul Eggert.
22280         * tests/test-snprintf-posix.h (test_function): Add this test code here
22281         too.
22282         * tests/test-sprintf-posix.h (test_function): Likewise.
22283         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22284         * tests/test-vasprintf-posix.c (test_function): Likewise.
22285         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22286         around by gnulib.
22287         * doc/posix-functions/printf.texi: Likewise.
22288         * doc/posix-functions/snprintf.texi: Likewise.
22289         * doc/posix-functions/sprintf.texi: Likewise.
22290         * doc/posix-functions/vfprintf.texi: Likewise.
22291         * doc/posix-functions/vprintf.texi: Likewise.
22292         * doc/posix-functions/vsnprintf.texi: Likewise.
22293         * doc/posix-functions/vsprintf.texi: Likewise.
22294         * doc/posix-functions/dprintf.texi: Undo last commit.
22295         * doc/posix-functions/vdprintf.texi: Likewise.
22296
22297 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22298
22299         tests: port test-fdutimensat.c to Solaris 8
22300         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22301         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22302         On Solaris 8, it fails with errno == ENOSYS, because there is no
22303         futimens (so it can't use the fd), and there is no lutimens (so it
22304         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22305
22306         vsnprintf: make more consistent with snprintf; doc fixes
22307
22308         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22309         the byte count return problem was promoted from the snprintf-posix
22310         to the snprintf module.
22311         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22312         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22313         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22314         * tests/test-snprintf.c (main): Check the byte count returned.
22315         * tests/test-vsnprintf.c (main): Likewise.
22316
22317 2010-12-23  Eric Blake  <eblake@redhat.com>
22318
22319         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
22320         * modules/sigpipe (License): Relax license.
22321
22322 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22323
22324         doc: document Solaris printf bug with large float precisions
22325         * doc/posix-functions/dprintf.texi (dprintf):
22326         * doc/posix-functions/fprintf.texi (fprintf):
22327         * doc/posix-functions/printf.texi (printf):
22328         * doc/posix-functions/snprintf.texi (snprintf):
22329         * doc/posix-functions/sprintf.texi (sprintf):
22330         * doc/posix-functions/vdprintf.texi (vdprintf):
22331         * doc/posix-functions/vfprintf.texi (vfprintf):
22332         * doc/posix-functions/vprintf.texi (vprintf):
22333         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22334         * doc/posix-functions/vsprintf.texi (vsprintf):
22335         Mention that these functions mishandle large floating point
22336         precisions on Solaris 10.  The same bug is also present in Solaris
22337         8, and I assume earlier.  This causes "cd gnulib-tests; make
22338         check" to fail on Solaris 8 (and I assume, later) when building
22339         the latest coreutils, in test-vasprintf-posix's call to
22340         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
22341         the wide flavors (e.g., wprintf) so this patch just updates the
22342         documentation for the narrow ones.
22343
22344         test-posixtm.c: add two tests
22345         * tests/test-posixtm.c: Add two tests, to highlight the
22346         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
22347         around this bug; this is merely to document it.
22348
22349 2010-12-22  Bruno Haible  <bruno@clisp.org>
22350
22351         getlogin_r: Work around portability problem on OSF/1.
22352         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
22353         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
22354         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
22355         test for a truncated result.
22356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
22357         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22358         * modules/getlogin_r (Depends-on): Add memchr.
22359         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22360
22361 2010-12-22  Bruno Haible  <bruno@clisp.org>
22362
22363         ptsname: Avoid test failure on OSF/1 5.1.
22364         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22365         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22366         (same_slave): New function.
22367         (main): Use it to compare ptsname's result with the expected file name.
22368
22369 2010-12-22  Bruno Haible  <bruno@clisp.org>
22370
22371         Port extended stdio modules to HP NonStop Kernel.
22372         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22373         macros.
22374         * lib/fbufmode.c: Update comments.
22375         * lib/fflush.c: Likewise.
22376         * lib/fpurge.c: Likewise.
22377         * lib/freadable.c: Likewise.
22378         * lib/freadahead.c: Likewise.
22379         * lib/freading.c: Likewise.
22380         * lib/freadptr.c: Likewise.
22381         * lib/freadseek.c: Likewise.
22382         * lib/fseeko.c: Likewise.
22383         * lib/fseterr.c: Likewise.
22384         * lib/fwritable.c: Likewise.
22385         * lib/fwriting.c: Likewise.
22386         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22387
22388 2010-12-22  Bruno Haible  <bruno@clisp.org>
22389
22390         ttyname_r: Work around bug on OSF/1 5.1.
22391         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22392         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22393         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22394         present.
22395         * lib/ttyname_r.c (ttyname_r): Update comments.
22396
22397 2010-12-22  Bruno Haible  <bruno@clisp.org>
22398
22399         round: Implement result sign according to IEEE 754.
22400         * lib/round.c (MIN, MINUS_ZERO): New macros.
22401         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
22402         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
22403         * tests/test-round-ieee.c (main): Likewise.
22404         * tests/test-roundl-ieee.c (main): Likewise.
22405
22406         trunc: Implement result sign according to IEEE 754.
22407         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
22408         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
22409         * tests/test-trunc2.c: Include minus-zero.h.
22410         (MINUS_ZERO): New macro.
22411         (trunc_reference): Keep in sync with lib/trunc.c.
22412         * tests/test-truncf2.c: Include minus-zero.h.
22413         (MINUS_ZERO): New macro.
22414         (truncf_reference): Keep in sync with lib/trunc.c.
22415         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
22416         * tests/test-trunc-ieee.c (main): Likewise.
22417         * tests/test-truncl-ieee.c (main): Likewise.
22418
22419         ceil: Implement result sign according to IEEE 754.
22420         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
22421         (FUNC): Return -0.0 for -1 < x < 0.
22422         * tests/test-ceil2.c: Include minus-zero.h.
22423         (MINUS_ZERO): New macro.
22424         (ceil_reference): Keep in sync with lib/ceil.c.
22425         * tests/test-ceilf2.c: Include minus-zero.h.
22426         (MINUS_ZERO): New macro.
22427         (ceilf_reference): Keep in sync with lib/ceil.c.
22428         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
22429         * tests/test-ceil-ieee.c (main): Likewise.
22430         * tests/test-ceill-ieee.c (main): Likewise.
22431
22432         floor: Implement result sign according to IEEE 754.
22433         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
22434         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
22435         * tests/test-floorf2.c (floorf_reference): Likewise.
22436         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
22437         * tests/test-floor-ieee.c (main): Likewise.
22438         * tests/test-floorl-ieee.c (main): Likewise.
22439
22440 2010-12-22  Bruno Haible  <bruno@clisp.org>
22441
22442         getaddrinfo: Update doc.
22443         * doc/posix-functions/gai_strerror.texi: Return type is also different
22444         on AIX and HP-UX.
22445
22446 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22447
22448         getaddrinfo, inet_ntop: Update doc for Solaris.
22449         * doc/posix-functions/gai_strerror.texi: Return type is also an
22450         issue on Solaris 9 and earlier.
22451         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
22452         on Solaris 10 and earlier.
22453
22454 2010-12-21  Bruno Haible  <bruno@clisp.org>
22455
22456         New module 'roundl-ieee'.
22457         * modules/roundl-ieee: New file.
22458         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
22459         test whether roundl works according to ISO C 99 with IEC 60559.
22460         * m4/roundl-ieee.m4: New file.
22461         * modules/roundl-ieee-tests: New file.
22462         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
22463         * tests/test-roundl.c (main): Remove signbit tests.
22464         * modules/roundl-tests (Depends-on): Remove signbit.
22465         * doc/posix-functions/roundl.texi: Mention the new module.
22466
22467 2010-12-21  Bruno Haible  <bruno@clisp.org>
22468
22469         New module 'truncl-ieee'.
22470         * modules/truncl-ieee: New file.
22471         * modules/truncl-ieee-tests: New file.
22472         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
22473         * tests/test-truncl.c (main): Remove signbit tests.
22474         * modules/truncl-tests (Depends-on): Remove signbit.
22475         * doc/posix-functions/truncl.texi: Mention the new module.
22476
22477 2010-12-21  Bruno Haible  <bruno@clisp.org>
22478
22479         New module 'ceill-ieee'.
22480         * modules/ceill-ieee: New file.
22481         * modules/ceill-ieee-tests: New file.
22482         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
22483         * tests/test-ceill.c (main): Remove signbit tests.
22484         * modules/ceill-tests (Depends-on): Remove signbit.
22485         * doc/posix-functions/ceill.texi: Mention the new module.
22486
22487 2010-12-21  Bruno Haible  <bruno@clisp.org>
22488
22489         New module 'floorl-ieee'.
22490         * modules/floorl-ieee: New file.
22491         * modules/floorl-ieee-tests: New file.
22492         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
22493         * tests/test-floorl.c (main): Remove signbit tests.
22494         * modules/floorl-tests (Depends-on): Remove signbit.
22495         * doc/posix-functions/floorl.texi: Mention the new module.
22496
22497 2010-12-21  Bruno Haible  <bruno@clisp.org>
22498
22499         New module 'round-ieee'.
22500         * modules/round-ieee: New file.
22501         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
22502         whether round works according to ISO C 99 with IEC 60559.
22503         * m4/round-ieee.m4: New file.
22504         * modules/round-ieee-tests: New file.
22505         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22506         * tests/test-round1.c (main): Remove signbit tests.
22507         * modules/round-tests (Depends-on): Remove 'signbit'.
22508         * doc/posix-functions/round.texi: Mention the new module.
22509
22510 2010-12-21  Bruno Haible  <bruno@clisp.org>
22511
22512         New module 'trunc-ieee'.
22513         * modules/trunc-ieee: New file.
22514         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22515         whether trunc works according to ISO C 99 with IEC 60559.
22516         * m4/trunc-ieee.m4: New file.
22517         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22518         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22519         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22520         * modules/trunc-ieee-tests: New file.
22521         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22522         * tests/test-trunc1.c (main): Remove signbit tests.
22523         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22524         * doc/posix-functions/trunc.texi: Mention the new module.
22525
22526 2010-12-21  Bruno Haible  <bruno@clisp.org>
22527
22528         New module 'ceil-ieee'.
22529         * modules/ceil-ieee: New file.
22530         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22531         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22532         ISO C 99 with IEC 60559.
22533         * m4/ceil-ieee.m4: New file.
22534         * modules/ceil (Files): Add lib/ceil.c.
22535         (Depends-on): Add 'float'.
22536         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22537         * lib/math.in.h (ceil): New declaration.
22538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22539         REPLACE_CEIL.
22540         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22541         * modules/ceil-ieee-tests: New file.
22542         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22543         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22544         * doc/posix-functions/ceil.texi: Mention the new module.
22545
22546 2010-12-21  Bruno Haible  <bruno@clisp.org>
22547
22548         New module 'floor-ieee'.
22549         * modules/floor-ieee: New file.
22550         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22551         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22552         ISO C 99 with IEC 60559.
22553         * m4/floor-ieee.m4: New file.
22554         * modules/floor (Files): Add lib/floor.c.
22555         (Depends-on): Add 'float'.
22556         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22557         * lib/math.in.h (floor): New declaration.
22558         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22559         REPLACE_FLOOR.
22560         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22561         * modules/floor-ieee-tests: New file.
22562         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22563         * tests/test-math-c++.cc: Check the signature of 'floor'.
22564         * doc/posix-functions/floor.texi: Mention the new module.
22565
22566 2010-12-21  Bruno Haible  <bruno@clisp.org>
22567
22568         New module 'roundf-ieee'.
22569         * modules/roundf-ieee: New file.
22570         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22571         test whether roundf works according to ISO C 99 with IEC 60559.
22572         * m4/roundf-ieee.m4: New file.
22573         * modules/roundf-ieee-tests: New file.
22574         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22575         * tests/test-roundf1.c (main): Remove signbit tests.
22576         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22577         * doc/posix-functions/roundf.texi: Mention the new module.
22578
22579 2010-12-21  Bruno Haible  <bruno@clisp.org>
22580
22581         New module 'truncf-ieee'.
22582         * modules/truncf-ieee: New file.
22583         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22584         test whether truncf works according to ISO C 99 with IEC 60559.
22585         * m4/truncf-ieee.m4: New file.
22586         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22587         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22588         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22589         * modules/truncf-ieee-tests: New file.
22590         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22591         * tests/test-truncf1.c (main): Remove signbit tests.
22592         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22593         * doc/posix-functions/truncf.texi: Mention the new module.
22594
22595 2010-12-21  Bruno Haible  <bruno@clisp.org>
22596
22597         New module 'ceilf-ieee'.
22598         * modules/ceilf-ieee: New file.
22599         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22600         test whether ceilf works according to ISO C 99 with IEC 60559.
22601         * m4/ceilf-ieee.m4: New file.
22602         * modules/ceilf-ieee-tests: New file.
22603         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22604         * tests/test-ceilf1.c (main): Remove signbit tests.
22605         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22606         * doc/posix-functions/ceilf.texi: Mention the new module.
22607
22608 2010-12-21  Bruno Haible  <bruno@clisp.org>
22609
22610         New module 'floorf-ieee'.
22611         * modules/floorf-ieee: New file.
22612         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22613         test whether floorf works according to ISO C 99 with IEC 60559.
22614         * m4/floorf-ieee.m4: New file.
22615         * modules/floorf-ieee-tests: New file.
22616         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22617         * tests/test-floorf1.c (main): Remove signbit tests.
22618         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22619         * doc/posix-functions/floorf.texi: Mention the new module.
22620
22621 2010-12-21  Bruno Haible  <bruno@clisp.org>
22622
22623         Support for minus zero in autoconf macros.
22624         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22625         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22626         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22627         * tests/minus-zero.h: Update comments.
22628
22629 2010-12-21  Bruno Haible  <bruno@clisp.org>
22630
22631         Tests for module 'ceil'.
22632         * modules/ceil-tests: New file.
22633         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22634         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22635
22636 2010-12-21  Bruno Haible  <bruno@clisp.org>
22637
22638         Tests for module 'floor'.
22639         * modules/floor-tests: New file.
22640         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22641         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22642
22643 2010-12-21  Bruno Haible  <bruno@clisp.org>
22644
22645         math: Fix indentation.
22646         * lib/math.in.h (floorf): Fix indentation.
22647
22648 2010-12-21  Bruno Haible  <bruno@clisp.org>
22649
22650         Fix cross-compilation guesses on Solaris.
22651         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22652         not match "solaris2.10".
22653         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22654         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22655         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22656
22657 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
22658
22659         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
22660         This fixes a problem observed with the latest coreutils snapshot
22661         that caused a test to fail on Solaris 8.  src/csplit.c's call
22662         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
22663         earlier, instead of returning the number of bytes that would have
22664         been generated; this causes csplit to incorrectly report memory
22665         exhaustion.
22666         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
22667         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
22668         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
22669         comments to match.
22670         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
22671         Fix typo in matching older versions of Solaris: "solaris2.10"
22672         is matched by the shell pattern "solaris2.[0-9]*".  This matters
22673         only for guessing while cross-compiling.
22674         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
22675
22676 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22677
22678         ftoastr: fix comment again
22679         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22680         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
22681         Also, simplify example a bit by using flags = 0.
22682
22683 2010-12-20  Bruno Haible  <bruno@clisp.org>
22684
22685         round*, trunc*: Update documentation regarding glibc.
22686         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
22687         * doc/posix-functions/round.texi: Likewise.
22688         * doc/posix-functions/roundl.texi: Likewise.
22689         * doc/posix-functions/truncf.texi: Likewise.
22690         * doc/posix-functions/trunc.texi: Likewise.
22691         * doc/posix-functions/truncl.texi: Likewise.
22692
22693 2010-12-20  Bruno Haible  <bruno@clisp.org>
22694
22695         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
22696         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
22697         * doc/posix-functions/round.texi: Likewise.
22698         * doc/posix-functions/roundl.texi: Likewise.
22699
22700 2010-12-20  Bruno Haible  <bruno@clisp.org>
22701
22702         ttyname_r: Add missing declaration on HP-UX 11.
22703         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
22704         HAVE_TTYNAME_R.
22705         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
22706         declared. Set HAVE_TTYNAME_R always.
22707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22708         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
22709         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
22710         HAVE_TTYNAME_R.
22711         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
22712
22713 2010-12-20  Bruno Haible  <bruno@clisp.org>
22714
22715         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
22716         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
22717         * doc/posix-functions/getlogin_r.texi: Likewise.
22718         * tests/test-getlogin.c: Include <errno.h>.
22719         (main): Avoid test failure on HP-UX 11.11.
22720         * tests/test-getlogin_r.c (main): Likewise.
22721
22722 2010-12-20  Bruno Haible  <bruno@clisp.org>
22723
22724         getlogin_r: Add missing declaration on HP-UX 11.
22725         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
22726         declared also when it exists as a function.
22727         * doc/posix-functions/getlogin_r.texi: Document this workaround.
22728
22729 2010-12-20  Bruno Haible  <bruno@clisp.org>
22730
22731         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
22732         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
22733         through wcrtomb.
22734
22735 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22736
22737         ftoastr: fix comment
22738         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22739         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
22740
22741 2010-12-19  Bruno Haible  <bruno@clisp.org>
22742
22743         isnan: Ensure it is a macro.
22744         * lib/math.in.h (isnan): Define as a macro if not already a macro.
22745         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
22746         Solaris.
22747
22748 2010-12-19  Bruno Haible  <bruno@clisp.org>
22749
22750         ldexpl test: Fix link error on OSF/1 5.1.
22751         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
22752
22753 2010-12-19  Bruno Haible  <bruno@clisp.org>
22754
22755         wctype: Make it work in C++ mode on OSF/1 5.1.
22756         * lib/wctype.in.h (iswblank): Declare but not define here.
22757         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
22758         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
22759         * modules/wctype (Files): Add lib/iswblank.c.
22760
22761 2010-12-19  Bruno Haible  <bruno@clisp.org>
22762
22763         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
22764         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
22765         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
22766
22767 2010-12-19  Bruno Haible  <bruno@clisp.org>
22768
22769         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
22770         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
22771         _POSIX_PII_SOCKET.
22772         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
22773         * doc/posix-functions/recvfrom.texi: Likewise.
22774         * doc/posix-functions/send.texi: Likewise.
22775         * doc/posix-functions/sendto.texi: Likewise.
22776
22777 2010-12-19  Bruno Haible  <bruno@clisp.org>
22778
22779         tcgetsid: Add missing declaration on OSF/1 5.1.
22780         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
22781         HAVE_TCGETSID.
22782         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
22783         Don't set HAVE_TCGETSID.
22784         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
22785         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
22786         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
22787         HAVE_TCGETSID.
22788         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
22789
22790 2010-12-19  Bruno Haible  <bruno@clisp.org>
22791
22792         stdio: Fix problem with popen() declaration on OSF/1 5.1.
22793         * lib/stdio.in.h: During the include_next statement, let recursive
22794         includes of this file include only the system header file.
22795
22796 2010-12-19  Bruno Haible  <bruno@clisp.org>
22797
22798         iconv_open: Fix regression from 2010-12-04.
22799         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
22800         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
22801
22802 2010-12-19  Bruno Haible  <bruno@clisp.org>
22803
22804         stdbool test: Avoid a gcc warning.
22805         * tests/test-stdbool.c (main): Fail if e1 is false.
22806         Reported by Jim Meyering.
22807
22808 2010-12-19  Jim Meyering  <meyering@redhat.com>
22809
22810         setenv: restore to working order
22811         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
22812         mistakenly removed.
22813         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
22814         HAVE_SETENV.
22815         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
22816         HAVE_SETENV.
22817
22818 2010-12-19  Bruno Haible  <bruno@clisp.org>
22819
22820         Document some different function declarations on OSF/1 5.1.
22821         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
22822         * doc/posix-functions/inet_ntop.texi: Likewise.
22823         * doc/posix-functions/gethostname.texi: Likewise.
22824         * lib/unistd.in.h (gethostname): Update comment.
22825
22826 2010-12-19  Bruno Haible  <bruno@clisp.org>
22827
22828         doc: Mention vasprintf-posix module.
22829         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
22830         the 'vasprintf-posix' module.
22831         * doc/glibc-functions/vasprintf.texi: Likewise.
22832
22833 2010-12-19  Bruno Haible  <bruno@clisp.org>
22834
22835         unsetenv: Add missing declaration on OSF/1 5.1.
22836         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
22837         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
22838         Don't set HAVE_UNSETENV. In the test program, set _BSD.
22839         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
22840         not HAVE_UNSETENV.
22841         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
22842         HAVE_UNSETENV.
22843         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
22844
22845 2010-12-19  Bruno Haible  <bruno@clisp.org>
22846
22847         setenv: Add missing declaration on OSF/1 5.1.
22848         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
22849         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
22850         declared. Don't set HAVE_SETENV.
22851         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
22852         not HAVE_SETENV.
22853         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
22854         HAVE_SETENV.
22855         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
22856
22857 2010-12-19  Bruno Haible  <bruno@clisp.org>
22858
22859         nl_langinfo tests: Avoid gcc warning.
22860         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
22861
22862 2010-12-19  Bruno Haible  <bruno@clisp.org>
22863
22864         mknod: Avoid error in C++ mode on OSF/1 with GCC.
22865         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
22866         _GL_CXXALIAS_SYS.
22867
22868 2010-12-19  Bruno Haible  <bruno@clisp.org>
22869
22870         stdbool: Relax test.
22871         * tests/test-stdbool.c (e): Don't require that casts from a variable's
22872         address to 'bool' work in static initializer, for compilers other than
22873         GCC.
22874
22875 2010-12-19  Bruno Haible  <bruno@clisp.org>
22876
22877         ftello: Add missing declaration on OSF/1 5.1.
22878         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
22879         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
22880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
22881         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
22882         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
22883
22884 2010-12-19  Bruno Haible  <bruno@clisp.org>
22885
22886         fseeko: Add missing declaration on OSF/1 5.1.
22887         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
22888         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
22889         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
22890         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
22891         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
22892
22893 2010-12-19  Bruno Haible  <bruno@clisp.org>
22894
22895         fchdir: Add missing declaration on OSF/1 5.1.
22896         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
22897         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
22898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
22899         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
22900         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
22901
22902 2010-12-19  Bruno Haible  <bruno@clisp.org>
22903
22904         relocatable-prog-wrapper: Separate from relocatable-prog.
22905         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
22906         uninstall-relocwrapper rule here.
22907         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
22908         Reported by Ian Beckwith <ianb@erislabs.net>.
22909
22910 2010-12-19  Bruno Haible  <bruno@clisp.org>
22911
22912         unistr/u8-mbsnlen: Add missing dependency.
22913         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
22914         Reported by Ian Beckwith <ianb@erislabs.net>.
22915
22916 2010-12-19  Bruno Haible  <bruno@clisp.org>
22917
22918         iconv: Make it possible again to use this module without 'iconv-h'.
22919         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
22920         if it is not defined.
22921         Reported by Ian Beckwith <ianb@erislabs.net>.
22922
22923 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22924
22925         acl: port to Solaris 8 when copying from tmpfs to ufs
22926         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
22927         error number.  Problem observed on Solaris 8 with latest
22928         coreutils, with "mv A B", where A is on a tmpfs file system and B
22929         is on a ufs file system.  This caused coreutils' mv/part-symlink
22930         test to fail.
22931
22932         tests: set fail=0 at start
22933         * tests/init.sh (setup_): Move fail=0 initialization here ...
22934         (mktempd_): ... from here, so that tests can rely on fail being
22935         set to 0 initially.  This fixes a problem in coreutils; see:
22936         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
22937
22938 2010-12-18  Bruno Haible  <bruno@clisp.org>
22939
22940         memmem-simple: Stylistic changes.
22941         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
22942         Fix preprocessor directive indentation.
22943
22944 2010-12-15  Pádraig Brady <P@draigBrady.com>
22945
22946         memmem, memmem-simple: reorganize and expand empty needle check
22947         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
22948         functional checks to memmem-simple so that one has a fully functional
22949         memmem by using just this module.
22950         Restrict the performance only check to the memmem module.
22951         Also expand the empty needle check to ensure the correct
22952         pointer is returned, not just a non NULL pointer.
22953         * doc/glibc-functions/memmem.texi: Rearrange the portability
22954         documentation to correlate with the rearranged checks.
22955         Clarify exactly how the memmem and memmem-simple modules
22956         relate to each other.
22957
22958 2010-12-15  Pádraig Brady <P@draigBrady.com>
22959             Bruno Haible  <bruno@clisp.org>
22960
22961         Improve cross-compilation guesses for uClibc.
22962         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
22963         that uClibc does not have the glibc bug.
22964         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
22965         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
22966
22967 2010-12-14  Eric Blake  <eblake@redhat.com>
22968
22969         configmake: provide fallbacks for oldest supported autotools
22970         * m4/configmake.m4: New file.
22971         * modules/configmake (Files): Ship it.
22972         (configure.ac): Use it to guarantee fallbacks.
22973
22974 2010-12-13  Pádraig Brady <P@draigBrady.com>
22975
22976         read-file: Improve handling of large files
22977         * lib/read-file.c (fread_file): Minimize realloc()s
22978         for regular files, and better manage sizes around SIZE_MAX.
22979
22980 2010-12-13  Eric Blake  <eblake@redhat.com>
22981
22982         cloexec, fcntl: relax license
22983         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
22984         consent from all contributors.
22985         * modules/fcntl (License): Likewise.
22986
22987 2010-12-10  Bruno Haible  <bruno@clisp.org>
22988
22989         Tests for module 'pipe-posix'.
22990         * modules/pipe-posix-tests: New file.
22991         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
22992
22993 2010-12-10  Bruno Haible  <bruno@clisp.org>
22994
22995         pipe-posix: Make it work in C++ mode.
22996         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
22997         (pipe): Use common idiom, not a macro definition.
22998         * lib/pipe.c: New file.
22999         * m4/pipe.m4: New file.
23000         * modules/pipe-posix (Description): Enhance.
23001         (Files): Add lib/pipe.c, m4/pipe.m4.
23002         (configure.ac): Invoke gl_FUNC_PIPE.
23003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23004         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23005         * tests/test-unistd-c++.cc: Check the signature of pipe.
23006
23007 2010-12-10  Bruno Haible  <bruno@clisp.org>
23008
23009         Rename module 'pipe' to 'spawn-pipe'.
23010         * modules/spawn-pipe: New file, renamed from modules/pipe.
23011         (Files, configure.ac, Makefile.am): Update.
23012         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23013         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23014         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23015         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23016         "spawn-pipe.h" instead of "pipe.h".
23017         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23018         to gl_SPAWN_PIPE.
23019         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23020         (Files, Makefile.am): Update.
23021         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23022         Update.
23023         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23024         Include "spawn-pipe.h" instead of "pipe.h".
23025         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23026         * lib/javacomp.c: Likewise.
23027         * lib/javaversion.c: Likewise.
23028         * lib/pipe-filter-gi.c: Likewise.
23029         * lib/pipe-filter-ii.c: Likewise.
23030         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23031         * modules/javacomp (Depends-on): Likewise.
23032         * modules/javaversion (Depends-on): Likewise.
23033         * modules/pipe-filter-gi (Depends-on): Likewise.
23034         * modules/pipe-filter-ii (Depends-on): Likewise.
23035         * MODULES.html.sh (Executing programs): Update.
23036         * NEWS: Mention the change.
23037
23038 2010-12-10  Eric Blake  <eblake@redhat.com>
23039
23040         pipe-posix: new module
23041         * modules/pipe-posix: New file.
23042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23043         (gl_UNISTD_H): Check for declaration.
23044         * modules/unistd (Makefile.am): Substitute it.
23045         * lib/unistd.in.h (pipe): Provide it for mingw.
23046         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23047         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23048
23049 2010-12-07  Bruno Haible  <bruno@clisp.org>
23050
23051         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23052         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23053         u8_strcmp_gnu.
23054         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23055
23056 2010-12-06  Bruno Haible  <bruno@clisp.org>
23057
23058         Update internal documentation.
23059         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23060
23061 2010-12-04  Bruno Haible  <bruno@clisp.org>
23062
23063         Put more information about failed tests into the test return codes.
23064         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23065         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23066         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23067         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23068         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23069         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23070         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23071         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23072         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23073         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23074         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23075         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23076         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23077         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23078         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23079         returns a bit mask.
23080         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23081         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23082         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23083         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23084         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23085         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23086         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23087         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23088         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23089         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23090         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23091         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23092         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23093         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23094         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23095         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23096         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23097         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23098         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23099         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23100         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23101         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23102         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23103         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23104         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23105         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23106         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23107         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23108         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23109         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23110         gl_PRINTF_PRECISION): Likewise.
23111         * m4/regex.m4 (gl_REGEX): Likewise.
23112         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23113         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23114         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23115         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23116         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23117         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23118         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23119         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23120         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23121         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23122         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23123         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23124         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23125         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23126         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23127         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23128         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23129         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23130         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23131         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23132         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23133         enumerated value.
23134         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23135
23136 2010-12-04  Bruno Haible  <bruno@clisp.org>
23137
23138         Update for Solaris 11 2010-11.
23139         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23140         Express, released in November 2010.
23141
23142 2010-12-04  Bruno Haible  <bruno@clisp.org>
23143
23144         nproc: Relax license.
23145         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23146         and Paul Eggert.
23147         Requested by Ludovic Courtès <ludo@gnu.org>.
23148
23149 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23150
23151         utimecmp: fine-grained src to nearby coarse-grained dest
23152
23153         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23154         and the source is on a file system with higher-resolution time
23155         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23156         not work, and the time stamps are close together, the algorithm to
23157         determine the exact resolution from the read-back mtime was buggy:
23158         it had a "!=" where it should have had an "==".  This bug has been
23159         in the code ever since it was introduced to gnulib.
23160         Problem reported by Dan Jacobson in
23161         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23162
23163 2010-11-30  Bruno Haible  <bruno@clisp.org>
23164
23165         strerror_r-posix: Fix autoconf test.
23166         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23167
23168 2010-11-28  Bruno Haible  <bruno@clisp.org>
23169             Paul Eggert  <eggert@cs.ucla.edu>
23170
23171         Tests for module 'getdomainname'.
23172         * modules/getdomainname-tests: New file.
23173         * tests/test-getdomainname.c: New file, based on
23174         tests/test-gethostname.c.
23175
23176 2010-11-28  Bruno Haible  <bruno@clisp.org>
23177             Paul Eggert  <eggert@cs.ucla.edu>
23178
23179         getdomainname: Use the system function when possible.
23180         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23181         (getdomainname): Replace if needed. Provide the declaration if it is
23182         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23183         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23184         (getdomainname): When the system has getdomainname, call the system
23185         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23186         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23187         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23188         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23189         the function if its second argument is of type 'int' or if it is found
23190         in libnsl.
23191         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23192         <sys/systeminfo.h> and sysinfo().
23193         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23195         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23196         HAVE_GETDOMAINNAME.
23197         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23198         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23199         * doc/glibc-functions/getdomainname.texi: Document the problems with
23200         the getdomainname declaration.
23201
23202 2010-11-28  Bruno Haible  <bruno@clisp.org>
23203
23204         sys_socket: Ensure ss_family field on AIX.
23205         * lib/sys_socket.in.h (ss_family): New macro definition.
23206         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23207         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23208         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23209         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23210         * modules/sys_socket (Makefile.am): Substitute
23211         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23212         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23213
23214 2010-11-27  Bruno Haible  <bruno@clisp.org>
23215
23216         readline: Improve configure output.
23217         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23218         "checking for readline..." result understandable.
23219
23220 2010-11-27  Bruno Haible  <bruno@clisp.org>
23221
23222         *printf-posix: Detect a bug on Solaris 10/x86.
23223         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23224         for floating-point output.
23225         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23226         directive.
23227         * tests/test-snprintf-posix.h (test_function): Likewise.
23228         * tests/test-sprintf-posix.h (test_function): Likewise.
23229         * tests/test-vasprintf-posix.c (test_function): Likewise.
23230         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23231         * doc/posix-functions/printf.texi: Likewise.
23232         * doc/posix-functions/snprintf.texi: Likewise.
23233         * doc/posix-functions/sprintf.texi: Likewise.
23234         * doc/posix-functions/vfprintf.texi: Likewise.
23235         * doc/posix-functions/vprintf.texi: Likewise.
23236         * doc/posix-functions/vsnprintf.texi: Likewise.
23237         * doc/posix-functions/vsprintf.texi: Likewise.
23238         * doc/glibc-functions/obstack_printf.texi: Likewise.
23239         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23240
23241 2010-11-27  Bruno Haible  <bruno@clisp.org>
23242
23243         Fix link error when module libunistring-optional is in use.
23244         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23245         * modules/striconveha-tests (Makefile.am): Likewise.
23246
23247 2010-11-27  Bruno Haible  <bruno@clisp.org>
23248
23249         regex: Mention link dependencies.
23250         * modules/regex (Link): New section.
23251         * modules/rpmatch (Link): Likewise.
23252         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23253
23254 2010-11-27  Bruno Haible  <bruno@clisp.org>
23255
23256         ftoastr: Fix compilation error on Solaris.
23257         * lib/ftoastr.c: Include <config.h>.
23258
23259 2010-11-27  Bruno Haible  <bruno@clisp.org>
23260
23261         getloadavg: Update documentation.
23262         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23263
23264 2010-11-27  Bruno Haible  <bruno@clisp.org>
23265
23266         sys_socket: Fix test whether the functions are declared.
23267         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23268         not <sys/select.h>.
23269
23270 2010-11-27  Bruno Haible  <bruno@clisp.org>
23271
23272         getpass: Make sure to get system declaration on some platforms.
23273         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23274         gl_USE_SYSTEM_EXTENSIONS.
23275         * modules/getpass (Depends-on): Add extensions.
23276
23277 2010-11-26  Bruno Haible  <bruno@clisp.org>
23278
23279         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23280         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23281         'iconv' module is present.
23282         (ICONV_CONST): New macro.
23283         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23284         ICONV_CONST.
23285         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23286         set ICONV_CONST.
23287         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23288         here.
23289         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23290         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23291         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23292         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23293         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23294         present.
23295
23296 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23297
23298         ftoastr: comment fix
23299         * lib/ftoastr.c: "little" -> "little or no" in comment
23300
23301 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23302
23303         stdint: port to GCC 4.3 + OSX + Octave
23304         On this platform, stdint.h is buggy and defines int64_t to long
23305         long int.  The replacement defined it to long int, causing
23306         problems with C++ style name mangling.  Instead, trust the system
23307         definition if INT64_MAX is defined, and likewise for the unsigned
23308         variant.   Problem reported by Jarno Rajahalme in
23309         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23310         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23311         and don't mess with int64_t and INT64_MAX in this case.
23312         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23313
23314 2010-11-24  Bruno Haible  <bruno@clisp.org>
23315
23316         doc: Corrections regarding MacOS X 10.4 and 10.5.
23317         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23318         MacOS X.
23319         Reported by Simon Josefsson.
23320
23321 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
23322
23323         Uninstall ".bin" files installed by relocwrapper.
23324         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
23325         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
23326         unless it is already there.
23327
23328 2010-11-21  Bruno Haible  <bruno@clisp.org>
23329
23330         Update for NetBSD 5.0.
23331         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23332         NetBSD; the test fails on NetBSD 5.0.
23333         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23334         about NetBSD.
23335
23336 2010-11-21  Bruno Haible  <bruno@clisp.org>
23337
23338         Update for HP-UX 11.23 and HP-UX 11.31.
23339         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
23340         HP-UX.
23341
23342 2010-11-21  Bruno Haible  <bruno@clisp.org>
23343
23344         Update for MacOS X 10.5.
23345         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23346         MacOS X; the test fails on MacOS X 10.5.8.
23347         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23348         about MacOS X.
23349
23350 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
23351
23352         bootstrap: add bootstrap_sync option.
23353         See discussion at
23354         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
23355         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
23356         * build-aux/bootstrap: Accept --bootstrap-sync to update
23357         bootstrap if it is not identical to the local gnulib's
23358         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23359         enable this by default.  Accept --no-bootstrap-sync to disable
23360         it.
23361
23362 2010-11-20  Bruno Haible  <bruno@clisp.org>
23363
23364         Ensure that <features.h> is included before __GLIBC__ is tested.
23365         * lib/printf-parse.h: Include <features.h>.
23366         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23367         Reported by Mike Frysinger <vapier@gentoo.org>.
23368
23369         Ensure that <features.h> is included before __GLIBC__ is tested.
23370         * lib/wchar.in.h: Include <features.h>.
23371         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23372         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23373         Reported by Mike Frysinger <vapier@gentoo.org>.
23374
23375         Ensure that <features.h> is included before __GLIBC__ is tested.
23376         * lib/arpa_inet.in.h: Include <features.h>.
23377         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23378         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23379         Reported by Mike Frysinger <vapier@gentoo.org>.
23380
23381         Ensure that <features.h> is included before __GLIBC__ is tested.
23382         * build-aux/link-warning.h: Include <features.h>.
23383         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23384         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23385         Reported by Mike Frysinger <vapier@gentoo.org>.
23386
23387         Ensure that <features.h> is included before __GLIBC__ is tested.
23388         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23389         Reported by Mike Frysinger <vapier@gentoo.org>.
23390
23391 2010-11-20  Bruno Haible  <bruno@clisp.org>
23392
23393         memmem: Fix autoconf test.
23394         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
23395
23396 2010-11-20  Bruno Haible  <bruno@clisp.org>
23397
23398         Port to uClibc.
23399         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
23400         * lib/fcntl.in.h: Likewise.
23401         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
23402         * lib/mbrtowc.c (mbrtowc): Likewise.
23403         * lib/relocatable.c (find_shared_library_fullname): Likewise.
23404         * lib/strerror_r.c: Likewise.
23405         * lib/unistr/u8-strnlen.c: Likewise.
23406         * lib/vasnprintf.c (decimal_point_char): Likewise.
23407         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23408         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23409         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23410         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23411         * tests/test-sigaction.c (handler, main): Likewise.
23412         * lib/freading.h: Treat uClibc like a non-glibc platform.
23413         * lib/freading.c: Likewise.
23414         * lib/gettext.h: Likewise.
23415         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
23416         Likewise.
23417         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
23418         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23419         * lib/propername.c (proper_name_utf8): Likewise.
23420         * lib/spawn.in.h: Likewise.
23421         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
23422         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23423         mem_cd_iconveh_internal): Likewise.
23424         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
23425         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23426         strstr, strcasestr): Likewise.
23427         * lib/unicodeio.c (unicode_to_mb): Likewise.
23428         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
23429         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
23430         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
23431         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
23432         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
23433         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
23434         * lib/unistr/u8-stpncpy.c: Likewise.
23435         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23436         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
23437         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23438         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23439         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23440         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
23441         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
23442         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
23443         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
23444         Likewise.
23445         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23446         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23447         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23448         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23449         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23450         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23451         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23452         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23453         * tests/test-getopt.h (OPTIND_MIN): Likewise.
23454         * tests/test-striconveha.c (main): Likewise.
23455         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23456         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
23457         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
23458         * doc/posix-functions/getline.texi: Likewise.
23459         Reported by Mike Frysinger <vapier@gentoo.org>.
23460
23461 2010-11-20  Bruno Haible  <bruno@clisp.org>
23462
23463         nproc: Fix condition.
23464         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
23465         HAVE_PTHREAD_AFFINITY_NP.
23466
23467 2010-11-20  Bruno Haible  <bruno@clisp.org>
23468
23469         Fix a comment.
23470         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
23471
23472 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
23473
23474         ftoastr: don't assume snprintf
23475         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
23476         Implement a subset of snprintf here, by using sprintf safely.
23477         * modules/ftoastr (Depends-on): Remove snprintf.
23478
23479 2010-11-19  Jim Meyering  <meyering@redhat.com>
23480
23481         test-rename.h: fix compilation failure
23482         * tests/test-rename.h (test_rename): Add omitted "}".
23483
23484 2010-11-17  Jim Meyering  <meyering@redhat.com>
23485
23486         maint.mk: add a URL discussing the no-@acronym policy
23487         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
23488
23489 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23490
23491         ftoastr: depend on snprintf, improve comments
23492         * lib/ftoastr.c: Also mention Loitsch's draft.
23493         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
23494         needed in the current implementation, but it might simplify
23495         speeding up the code later.
23496         * modules/ftoastr: Depend on snprintf; this improves portability.
23497         Suggested by Bruno Haible in the same email.
23498
23499         ftoastr: port to hosts lacking strtof and strtold
23500         Problem reported by Bruno Haible in
23501         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
23502         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
23503         environment and strtold (and presumably strtof) are not available.
23504         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23505         (configure.ac): Require gl_C99_STRTOLD.
23506
23507 2010-11-18  Bruno Haible  <bruno@clisp.org>
23508
23509         c-strtold: Avoid link error on AIX 7.
23510         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23511         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23512         (gl_C_STRTOLD): Test whether strtold_l exists.
23513         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23514
23515 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23516
23517         intprops: new macro INT_BITS_STRLEN_BOUND
23518         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23519         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23520         not exposed.  Also, it uses a slightly tighter bound than before;
23521         though this makes no practical difference, we might as well be as
23522         tight as we easily can.
23523
23524         ftoastr: new module, for lossless conversion of floats to short strings
23525         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23526         * modules/ftoastr: New files.
23527
23528 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23529
23530         bootstrap: port to Solaris sed
23531         * build-aux/bootstrap (get_version): Port to Solaris sed.
23532         See Ralf Wildenhues's note in
23533         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23534
23535 2010-11-14  Jim Meyering  <meyering@redhat.com>
23536
23537         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23538         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23539         and move definition closer to sole use.
23540
23541 2010-11-13  Jim Meyering  <meyering@redhat.com>
23542
23543         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23544         Now we require at least autoconf-2.59, which means the work-around
23545         is no longer needed.
23546         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23547         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23548         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23549         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23550         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23551
23552 2010-11-13  Bruno Haible  <bruno@clisp.org>
23553
23554         rename, renameat: Avoid test failures at NFS mounted locations.
23555         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23556         functions.
23557         (test_rename): Use assert_nonexistent.
23558         * tests/test-rename.c: Include <dirent.h>.
23559         * tests/test-renameat.c: Likewise.
23560         Reported by Gary V. Vaughan <gary@gnu.org>.
23561
23562         rename, renameat: Document Linux bug with NFS
23563         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23564         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23565         * doc/posix-functions/renameat.texi: Likewise.
23566         Suggested by Eric Blake.
23567
23568 2010-11-13  Bruno Haible  <bruno@clisp.org>
23569
23570         rename test: Add comments.
23571         * tests/test-rename.h (test_rename): Add structure and comments.
23572
23573 2010-11-13  Eric Blake  <eblake@redhat.com>
23574
23575         maintainer-makefile: cover a few more files
23576         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23577         scripts generated within C files, for libvirt.
23578
23579 2010-11-13  Bruno Haible  <bruno@clisp.org>
23580
23581         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23582         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23583         character, return the number of bytes that belong together, not always
23584         1.
23585         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23586         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23587         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23588         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23589         number of bytes of an invalid character.
23590         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23591         (main): Invoke it.
23592         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23593         results.
23594         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23595         malformed byte sequences.
23596         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23597         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23598         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23599         Reported by Ben Pfaff and Paolo Bonzini.
23600
23601 2010-11-13  Bruno Haible  <bruno@clisp.org>
23602
23603         openat: Work around glibc bug with fchownat() and empty file names.
23604         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23605         (gl_FUNC_FCHOWNAT): Invoke it.
23606         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23607         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23608         Reported by Gary V. Vaughan <gary@gnu.org>.
23609
23610 2010-11-13  Bruno Haible  <bruno@clisp.org>
23611
23612         openat: Ensure autoconf macro ordering.
23613         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23614         gl_USE_SYSTEM_EXTENSIONS.
23615         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23616
23617 2010-11-13  Bruno Haible  <bruno@clisp.org>
23618
23619         Update comments.
23620         * lib/unistr/u8-check.c: Update file name in comments.
23621         * lib/unistr/u8-mblen.c: Likewise.
23622         * lib/unistr/u8-prev.c: Likewise.
23623         * lib/unistr/u8-strmblen.c: Likewise.
23624         * lib/unistr/u8-strmbtouc.c: Likewise.
23625
23626 2010-11-13  Jim Meyering  <meyering@redhat.com>
23627
23628         tests: avoid test failure on Solaris 10 due to lack of PATH export
23629         * tests/test-update-copyright.sh: Don't forget to export PATH.
23630
23631         init.sh: ensure that IFS is defined, just in case...
23632         * tests/init.sh (setup_): Ensure that IFS is defined,
23633         so that saving and restoring it works as expected.  This
23634         appears to be useful at least for an old version of dash
23635         from a long time ago (RH 6).  See here for details:
23636         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23637
23638         maint.mk: tighten "test a == b" check
23639         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23640         test to files that contain something like #!/bin/sh.
23641         Without this, coreutils would get two false positives in
23642         the comments of C source files.
23643
23644 2010-11-12  Eric Blake  <eblake@redhat.com>
23645
23646         bootstrap: fix typo in previous attempt
23647         * build-aux/bootstrap (buildreq): Correct the grouping.
23648         Reported by Paul Eggert.
23649
23650         maintainer-makefile: prohibit test x == x
23651         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23652         Based on a report by Matthias Bolte.
23653
23654         bootstrap: allow FreeBSD gzip
23655         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23656         which has no '.' and goes to stderr.
23657         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
23658         Reported by Matthias Bolte.
23659
23660         maintainer-makefile: check for i18n setup
23661         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
23662         will likely work.
23663
23664 2010-11-12  Bruno Haible  <bruno@clisp.org>
23665
23666         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
23667         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
23668         * lib/nanosleep.c (nanosleep): Likewise.
23669
23670 2010-11-11  Bruno Haible  <bruno@clisp.org>
23671
23672         fcntl-h: Fix for use of C++ on glibc systems.
23673         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23674         also on glibc systems in C++ mode.
23675         Reported by Gary V. Vaughan <gary@gnu.org>.
23676
23677 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23678
23679         mknod: avoid false failure with dash
23680         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
23681
23682 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23683
23684         unlink: Fix "is it should" typo in diagnostic.
23685         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
23686         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
23687
23688 2010-11-11  Bruno Haible  <bruno@clisp.org>
23689
23690         Tests for module 'strerror_r-posix'.
23691         * modules/strerror_r-posix-tests: New file.
23692         * tests/test-strerror_r.c: New file.
23693         * tests/test-string-c++.cc: Check the signature of strerror_r.
23694
23695         New module 'strerror_r-posix'.
23696         * lib/string.in.h (strerror_r): New declaration.
23697         * lib/strerror_r.c: New file.
23698         * m4/strerror_r.m4: New file.
23699         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
23700         of strerror_r.
23701         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
23702         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23703         * modules/strerror_r-posix: New file.
23704         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
23705         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23706         * doc/posix-functions/strerror_r.texi: Mention the new module and the
23707         portability problems.
23708
23709 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
23710
23711         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
23712         line is also considered for output. Quoted function name in shell
23713         command, so temporary files for functions like MyClass::operator()
23714         are removed correctly without errors.
23715
23716 2010-11-09  Bruno Haible  <bruno@clisp.org>
23717
23718         * doc/posix-functions/strerror.texi: List more failing platforms.
23719
23720         * doc/posix-functions/strerror.texi: Add a comment.
23721
23722 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
23723
23724         fdopendir: fix bug on MacOS X when low on file descriptors
23725
23726         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
23727         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
23728         All callers changed.
23729         (fdopendir): Invoke save_cwd at the top level, not after using
23730         multiple dup() calls to use up file descriptors.  Then retry
23731         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
23732         less than the maximum number of open file descriptors, because
23733         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
23734         on Mac OS X 10.6.4 for tar 1.24
23735         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
23736         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
23737         and for tar 1.25
23738         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
23739
23740 2010-11-07  Bruno Haible  <bruno@clisp.org>
23741
23742         vasnprintf: Support I flag on glibc systems.
23743         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
23744         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
23745         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
23746         snprintf function.
23747         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
23748         glibc systems.
23749         * tests/test-vasnprintf-posix3.c: New file.
23750         * modules/vasnprintf-posix-tests (Files): Add it.
23751         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
23752
23753 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23754
23755         [html] Fix copy/paste bug: Use unique name for compiler warnings.
23756         * MODULES.html.sh: For compiler warnings, use name
23757         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
23758
23759 2010-11-05  Eric Blake  <eblake@redhat.com>
23760
23761         ceil, floor: avoid spurious failure with icc
23762         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
23763         [denormals-as-zero] when optimizing without -mieee-fp option.
23764         * tests/test-floorf2.c (floorf_reference): Likewise.
23765         * tests/test-ceilf1.c (dummy): New function.
23766         (main): Use it to outsmart icc's optimization.
23767         * tests/test-floorf1.c (dummy, main): Likewise.
23768
23769         tests: require working signbit
23770         * modules/ceilf-tests (Depends-on): Add signbit.
23771         * modules/ceill-tests (Depends-on): Likewise.
23772         * modules/floorf-tests (Depends-on): Likewise.
23773         * modules/floorl-tests (Depends-on): Likewise.
23774         * modules/round-tests (Depends-on): Likewise.
23775         * modules/roundf-tests (Depends-on): Likewise.
23776         * modules/roundl-tests (Depends-on): Likewise.
23777         * modules/trunc-tests (Depends-on): Likewise.
23778         * modules/truncf-tests (Depends-on): Likewise.
23779         * modules/truncl-tests (Depends-on): Likewise.
23780
23781         strtod: work around icc bug
23782         * lib/strtod.c (minus_zero): Define to working value.
23783         (strtod): Use it to avoid icc bug.
23784
23785         copysign: enhance tests
23786         * modules/copysign-tests (Files): Add minus-zero.h.
23787         * tests/test-copysign.c (main): Also test zeros.
23788
23789 2010-11-04  Eric Blake  <eblake@redhat.com>
23790
23791         ceil, floor, round, trunc: enhance tests of -0
23792         * tests/test-ceilf1.c (main): Ensure correct sign of result.
23793         * tests/test-ceill.c (main): Likewise.
23794         * tests/test-floorf1.c (main): Likewise.
23795         * tests/test-floorl.c (main): Likewise.
23796         * tests/test-round1.c (main): Likewise.
23797         * tests/test-roundf1.c (main): Likewise.
23798         * tests/test-roundl.c (main): Likewise.
23799         * tests/test-trunc1.c (main): Likewise.
23800         * tests/test-truncf1.c (main): Likewise.
23801         * tests/test-truncl.c (main): Likewise.
23802
23803 2010-11-04  Eric Blake  <eblake@redhat.com>
23804
23805         frexp, tests: work around ICC bug with -zero
23806         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
23807         works with more compilers.
23808         * tests/minus-zero.h: New file.
23809         * modules/ceilf-tests (Files): Include it.
23810         * modules/ceill-tests (Files): Likewise.
23811         * modules/floorf-tests (Files): Likewise.
23812         * modules/floorl-tests (Files): Likewise.
23813         * modules/frexp-nolibm-tests (Files): Likewise.
23814         * modules/frexp-tests (Files): Likewise.
23815         * modules/frexpl-nolibm-tests (Files): Likewise.
23816         * modules/frexpl-tests (Files): Likewise.
23817         * modules/isnan-tests (Files): Likewise.
23818         * modules/isnand-nolibm-tests (Files): Likewise.
23819         * modules/isnand-tests (Files): Likewise.
23820         * modules/isnanf-nolibm-tests (Files): Likewise.
23821         * modules/isnanf-tests (Files): Likewise.
23822         * modules/isnanl-nolibm-tests (Files): Likewise.
23823         * modules/isnanl-tests (Files): Likewise.
23824         * modules/round-tests (Files): Likewise.
23825         * modules/roundf-tests (Files): Likewise.
23826         * modules/roundl-tests (Files): Likewise.
23827         * modules/ldexpl-tests (Files): Likewise.
23828         * modules/signbit-tests (Files): Likewise.
23829         * modules/snprintf-posix-tests (Files): Likewise.
23830         * modules/sprintf-posix-tests (Files): Likewise.
23831         * modules/strtod-tests (Files): Likewise.
23832         * modules/trunc-tests (Files): Likewise.
23833         * modules/truncf-tests (Files): Likewise.
23834         * modules/truncl-tests (Files): Likewise.
23835         * modules/vsnprintf-posix-tests (Files): Likewise.
23836         * modules/vsprintf-posix-tests (Files): Likewise.
23837         * modules/vasnprintf-posix-tests (Files): Likewise.
23838         * modules/vasprintf-posix-tests (Files): Likewise.
23839         * tests/test-ceilf1.c (main): Use it.
23840         * tests/test-ceill.c (main): Likewise.
23841         * tests/test-floorf1.c (main): Likewise.
23842         * tests/test-floorl.c (main): Likewise.
23843         * tests/test-frexp.c (main): Likewise.
23844         * tests/test-frexpl.c (main): Likewise.
23845         * tests/test-isnan.c (main): Likewise.
23846         * tests/test-isnand.h (main): Likewise.
23847         * tests/test-isnanf.h (main): Likewise.
23848         * tests/test-isnanl.h (main): Likewise.
23849         * tests/test-ldexpl.c (main): Likewise.
23850         * tests/test-round.c (main): Likewise.
23851         * tests/test-roundf.c (main): Likewise.
23852         * tests/test-roundl.c (main): Likewise.
23853         * tests/test-signbit.c (test_signbitf, test_signbitd)
23854         (test_signbitl): Likewise.
23855         * tests/test-snprintf-posix.h (test_function): Likewise.
23856         * tests/test-sprintf-posix.h (test_function): Likewise.
23857         * tests/test-strtod.c (main): Likewise.
23858         * tests/test-trunc1.c (main): Likewise.
23859         * tests/test-truncf1.c (main): Likewise.
23860         * tests/test-truncl.c (main): Likewise.
23861
23862         isnanl: work around icc bug
23863         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
23864
23865 2010-11-03  Eric Blake  <eblake@redhat.com>
23866
23867         tests: fix compiler warnings
23868         * tests/test-getopt.h (test_getopt): Fix condition.
23869         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23870         * tests/test-pipe2.c (main): Likewise.
23871         * tests/test-quotearg-simple.c (main): Avoid icc warning.
23872
23873         utimens: fix broken m4 test
23874         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
23875
23876 2010-10-28  Bruno Haible  <bruno@clisp.org>
23877
23878         posix_spawn*, getdtablesize: Relax license.
23879         * modules/posix_spawn (License): Change to LGPLv2+.
23880         * modules/posix_spawnp (License): Likewise.
23881         * modules/posix_spawn-internal (License): Likewise.
23882         * modules/posix_spawnattr_init (License): Likewise.
23883         * modules/posix_spawnattr_getflags (License): Likewise.
23884         * modules/posix_spawnattr_setflags (License): Likewise.
23885         * modules/posix_spawnattr_getpgroup (License): Likewise.
23886         * modules/posix_spawnattr_setpgroup (License): Likewise.
23887         * modules/posix_spawnattr_getschedparam (License): Likewise.
23888         * modules/posix_spawnattr_setschedparam (License): Likewise.
23889         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
23890         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
23891         * modules/posix_spawnattr_getsigdefault (License): Likewise.
23892         * modules/posix_spawnattr_setsigdefault (License): Likewise.
23893         * modules/posix_spawnattr_getsigmask (License): Likewise.
23894         * modules/posix_spawnattr_setsigmask (License): Likewise.
23895         * modules/posix_spawnattr_destroy (License): Likewise.
23896         * modules/posix_spawn_file_actions_init (License): Likewise.
23897         * modules/posix_spawn_file_actions_addclose (License): Likewise.
23898         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
23899         * modules/posix_spawn_file_actions_addopen (License): Likewise.
23900         * modules/posix_spawn_file_actions_destroy (License): Likewise.
23901         * modules/getdtablesize (License): Likewise.
23902         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
23903
23904 2010-10-26  Bruno Haible  <bruno@clisp.org>
23905
23906         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
23907         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
23908         Cygwin and mingw.
23909         Suggested by Eric Blake.
23910
23911 2010-10-26  Bruno Haible  <bruno@clisp.org>
23912
23913         stdio: Work around compilation error due to renameat() on Solaris 10.
23914         * lib/stdio.in.h: Include <unistd.h> on Solaris.
23915         * lib/renameat.c: Don't include <unistd.h> here.
23916         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
23917         Reported by Paul Eggert and Eric Blake.
23918
23919 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
23920
23921         renameat: port to Solaris 10, which declares renameat in unistd.h
23922
23923         * lib/renameat.c: Include unistd.h before stdio.h, because
23924         Solaris 10 declares renameat in unistd.h.  Problem encountered
23925         when building GNU tar 1.24 on Solaris 10.
23926
23927 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23928
23929         fdopendir: fix C89 compilation
23930         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
23931         compilers.
23932
23933 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
23934
23935         inttostr: simplify by removing unnecessary redundancy
23936         * lib/anytostr.c: Don't include verify.h.
23937         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
23938         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
23939         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
23940         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
23941         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
23942         Likewise.
23943         * modules/inttostr (Depends-on): Remove 'verify'.
23944
23945 2010-10-23  Bruno Haible  <bruno@clisp.org>
23946
23947         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
23948         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
23949         Reported by Eric Blake.
23950
23951 2010-10-23  Bruno Haible  <bruno@clisp.org>
23952
23953         Tests: Fix LOCALE_JA on MirBSD 10.
23954         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
23955         to an UTF-8 locale.
23956         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
23957         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23958         Reported by Eric Blake.
23959
23960 2010-10-21  Bruno Haible  <bruno@clisp.org>
23961
23962         nl_langinfo test: Avoid test failure on NetBSD 5.
23963         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
23964         Reported by Eric Blake.
23965
23966 2010-10-21  Eric Blake  <eblake@redhat.com>
23967
23968         c-stack: work around libsigsegv 2.8 bug
23969         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
23970         overflow on at least PowerPC64.
23971
23972 2010-10-17  Bruno Haible  <bruno@clisp.org>
23973
23974         userspec: Drop redundant file.
23975         * modules/userspec (Files): Remove lib/inttostr.h.
23976
23977 2010-10-17  Bruno Haible  <bruno@clisp.org>
23978
23979         nl_langinfo tests: Silence some warnings.
23980         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
23981         Reported by Jim Meyering.
23982
23983 2010-10-17  Bruno Haible  <bruno@clisp.org>
23984
23985         Make use of GCC's attribute __alloc_size__.
23986         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
23987         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
23988         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
23989         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
23990         __alloc_size__.
23991         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23992         Suggested by Jim Meyering.
23993
23994 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
23995
23996         bootstrap: anchor .gitignore entries.
23997         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
23998         with...
23999         (insert_vc_ignore): ... this new function, which prepends `/' to
24000         all .gitignore entries before passing them to
24001         insert_sorted_if_absent.
24002
24003 2010-10-16  Bruno Haible  <bruno@clisp.org>
24004
24005         nextafter: Fix configure check.
24006         * modules/nextafter (configure.ac): Correct expected prototype.
24007
24008 2010-10-16  Bruno Haible  <bruno@clisp.org>
24009
24010         termios: Update documentation.
24011         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24012
24013 2010-10-16  Bruno Haible  <bruno@clisp.org>
24014
24015         tests: Make them compile with TinyCC.
24016         * tests/test-strstr.c (main): Remove parentheses around array
24017         initializer.
24018
24019 2010-10-15  Eric Blake  <eblake@redhat.com>
24020
24021         ignore-value: make header idempotent
24022         * lib/ignore-value.h: Add double-inclusion guards.
24023         Reported by Stefan Berger.
24024
24025 2010-10-15  Jim Meyering  <meyering@redhat.com>
24026
24027         GNUmakefile: handle "stable" target, not "major"
24028         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24029         lists in maint.mk and announce-gen.  Without this, "make stable"
24030         would fail to ensure that $(VERSION) is up to date.
24031
24032 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24033
24034         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24035         & co.
24036
24037 2010-10-14  Bruno Haible  <bruno@clisp.org>
24038
24039         vasnprintf: Don't set errno to 0.
24040         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24041         block that sets it to 0.
24042         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24043
24044 2010-10-14  Bruno Haible  <bruno@clisp.org>
24045
24046         socketlib: Fix.
24047         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24048         gl_PREREQ_SYS_H_WINSOCK2.
24049         Reported by Ian Beckwith <ianb@erislabs.net>.
24050
24051 2010-10-13  Jim Meyering  <meyering@redhat.com>
24052
24053         test-select-stdin.c: avoid warn_unused_result warnings
24054         * tests/test-select-stdin.c: Include "macros.h".
24055         ASSERT that read and fflush succeed.
24056
24057 2010-10-13  Jim Meyering  <meyering@redhat.com>
24058
24059         git-version-gen: do require git-VC'd files in cwd
24060         * build-aux/git-version-gen: Reject a git version string
24061         if there are no commits associated with the current directory.
24062         This avoids an unlikely false-positive (unrelated dir whose parent
24063         repository also contains a tag matching v*), as pointed out
24064         by Giuseppe Scrivano in
24065         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24066
24067 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24068
24069         argv-iter: omit nonconforming declaration
24070         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24071         enum arg_iter_err declaration, which doesn't conform to C99.
24072         Solaris 10 cc warns about this.
24073
24074 2010-10-13  Eric Blake  <eblake@redhat.com>
24075
24076         termios: fix compilation on mingw
24077         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24078         (gl_TERMIOS_H): Adjust it on mingw.
24079         * modules/termios (Makefile.am): Substitute new key.
24080         * lib/termios.in.h (includes): Make include_next conditional.
24081         * doc/posix-headers/termios.texi (termios.h): Update
24082         documentation.
24083         Reported by Daniel P. Berrange.
24084
24085 2010-10-13  Jim Meyering  <meyering@redhat.com>
24086
24087         git-version-gen: don't require that .git/ be in the current dir
24088         * build-aux/git-version-gen: Adjust this script so that it works
24089         when run from any working directory beneath the top-level .git/-
24090         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24091         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24092
24093         test-select: avoid warn_unused_result warnings
24094         * tests/test-select.c: Include "macros.h".
24095         ASSERT that each call to read, write, and pipe succeeds.
24096         While not technically required, also check each "close".
24097         * modules/select-tests (Files): Add tests/macros.h.
24098
24099         test-symlinkat: remove declaration of unused local
24100         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24101
24102         test-inttostr: avoid shadowing warnings
24103         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24104         and use malloc rather than the stack for the same reason as
24105         mentioned in the comment justifying the other allocation.
24106
24107 2010-10-11  Bruno Haible  <bruno@clisp.org>
24108
24109         stdlib: Allow multiple gnulib generated replacements to coexist.
24110         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24111         Reported by Sam Steingold <sds@gnu.org>.
24112
24113 2010-10-11  Jim Meyering  <meyering@redhat.com>
24114
24115         fix a documentation typo
24116         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24117
24118 2010-10-11  Eric Blake  <eblake@redhat.com>
24119
24120         futimens: work around Solaris 11 bug
24121         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24122         * tests/test-futimens.h (test_futimens): Enhance, rather than
24123         weaken test.
24124         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24125
24126 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24127
24128         Indentation.
24129         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24130         higher-level operators more to the left.
24131
24132 2010-10-11  Jim Meyering  <meyering@redhat.com>
24133
24134         test-futimens: avoid unwarranted test failure on Solaris 5.11
24135         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24136         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24137         because it tries to dereference the NULL name argument.
24138
24139 2010-10-11  Bruno Haible  <bruno@clisp.org>
24140
24141         Indentation.
24142         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24143         indentation.
24144
24145 2010-10-11  Jim Meyering  <meyering@redhat.com>
24146
24147         spawn.in.h: make indentation consistent with parentheses
24148         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24149         Make indentation consistent with parentheses.
24150
24151 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24152
24153         Fix mismatched parens in previous commit
24154         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24155         parens.
24156
24157 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24158
24159         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24160
24161         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24162         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24163         * lib/malloca.c: Include "verify.h".
24164         (verify1): Remove, replacing with a verify call.
24165         * lib/relocwrapper.c (verify1): Likewise.
24166         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24167         Likewise.
24168         * modules/malloca (Depends-on): Add 'verify'.
24169         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24170         * modules/vasnprintf (Depends-on): Add 'verify'.
24171         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24172         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24173         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24174         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24175         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24176         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24177         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24178
24179         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24180
24181         Formerly the style was sometimes 2*X - 1, because the C standard
24182         was wrongly thought to disallow ?: in integral constant expressions.
24183         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24184         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24185         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24186         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24187         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24188         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24189         verify that time_t cannot be floating.
24190
24191 2010-10-08  Eric Blake  <eblake@redhat.com>
24192
24193         time: enforce recent POSIX ruling that time_t is integral
24194         * lib/time.in.h (__time_t_must_be_integral): Detect any
24195         problematic systems, allowing the rest of gnulib to assume POSIX.
24196
24197 2010-10-08  Jim Meyering  <meyering@redhat.com>
24198
24199         fdopendir: fix a bug on systems lacking openat and /proc support
24200         OpenBSD 4.7 is one such system.  The most noticeable effect was
24201         failure of any application making nontrivial use of fts: rm, du,
24202         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24203           ./rm: traversal failed: `a': Bad file descriptor
24204         Debugging that, you see that even though FD 6 was closed just
24205         prior to the opendir call in fd_clone_opendir, its resulting
24206         dir->dd_fd was 8, rather than the expected value of 6:
24207
24208         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24209         93                close (fd);
24210         (gdb) n
24211         94                dir = fd_clone_opendir (dupfd);
24212         (gdb) n
24213         95                saved_errno = errno;
24214         (gdb) p dir->dd_fd
24215         $11 = 8
24216
24217         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24218         The problem is that on OpenBSD, fd_clone_opendir has to resort
24219         to using the old-style save/restore CWD mechanism, due to its
24220         lack of openat/proc support, and *that* would steal the FD (6)
24221         that opendir was supposed to use.
24222
24223         The fix is to squirrel away the desired FD so that save_cwd uses a
24224         different one, and then free the dest FD right before calling opendir.
24225         That guarantees opendir will use the required file descriptor.
24226
24227         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24228
24229 2010-10-08  Bruno Haible  <bruno@clisp.org>
24230
24231         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24232         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24233
24234 2010-10-08  Bruno Haible  <bruno@clisp.org>
24235
24236         nanosleep: Make replacement POSIX compliant.
24237         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24238         is out of range.
24239         Reported by Jim Meyering.
24240
24241 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24242
24243         bootstrap: add hook for altering gnulib.mk, for Bison
24244         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24245         the Bison bootstrapping process can rewrite file names and variables
24246         in this file before later parts of 'bootstrap' use the file.
24247         Bison wants to include lib/gnulib.mk from the top-level makefile,
24248         so it needs the file names in this file to be relative to the top
24249         level, not relative to lib; plus it needs variable names to be
24250         rewritten.
24251         (slurp): Use the new function.
24252
24253         bootstrap: reformat for readability
24254         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24255
24256 2010-10-08  Eric Blake  <eblake@redhat.com>
24257
24258         docs: update cygwin progress
24259         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24260         1.7.7.
24261         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24262         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24263         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24264         * doc/posix-functions/carg.texi (carg): Likewise.
24265         * doc/posix-functions/cargf.texi (cargf): Likewise.
24266         * doc/posix-functions/casin.texi (casin): Likewise.
24267         * doc/posix-functions/casinf.texi (casinf): Likewise.
24268         * doc/posix-functions/casinh.texi (casinh): Likewise.
24269         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24270         * doc/posix-functions/catan.texi (catan): Likewise.
24271         * doc/posix-functions/catanf.texi (catanf): Likewise.
24272         * doc/posix-functions/catanh.texi (catanh): Likewise.
24273         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24274         * doc/posix-functions/ccos.texi (ccos): Likewise.
24275         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24276         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24277         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24278         * doc/posix-functions/cexp.texi (cexp): Likewise.
24279         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24280         * doc/posix-functions/cimag.texi (cimag): Likewise.
24281         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24282         * doc/posix-functions/clog.texi (clog): Likewise.
24283         * doc/posix-functions/clogf.texi (clogf): Likewise.
24284         * doc/posix-functions/conj.texi (conj): Likewise.
24285         * doc/posix-functions/conjf.texi (conjf): Likewise.
24286         * doc/posix-functions/cpow.texi (cpow): Likewise.
24287         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24288         * doc/posix-functions/cproj.texi (cproj): Likewise.
24289         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24290         * doc/posix-functions/creal.texi (creal): Likewise.
24291         * doc/posix-functions/crealf.texi (crealf): Likewise.
24292         * doc/posix-functions/csin.texi (csin): Likewise.
24293         * doc/posix-functions/csinf.texi (csinf): Likewise.
24294         * doc/posix-functions/csinh.texi (csinh): Likewise.
24295         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24296         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24297         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24298         * doc/posix-functions/ctan.texi (ctan): Likewise.
24299         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24300         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24301         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24302         * doc/posix-headers/complex.texi (complex.h): Likewise.
24303
24304 2010-10-07  Jim Meyering  <meyering@redhat.com>
24305
24306         parse-datetime: avoid compilation failure on OpenBSD 4.7
24307         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24308         This works around a compilation failure on OpenBSD 4.7:
24309         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24310
24311 2010-10-07  Eric Blake  <eblake@redhat.com>
24312
24313         docs: update cygwin progress
24314         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24315         1.7.6.
24316         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24317         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24318         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24319         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
24320         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
24321         Likewise.
24322         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
24323         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
24324         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
24325         Likewise.
24326         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
24327         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
24328         Likewise.
24329         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
24330         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
24331         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
24332         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
24333         Likewise.
24334         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
24335         Likewise.
24336         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
24337
24338         docs: update parse-datetime history
24339         * doc/parse-datetime.texi (Authors of parse_datetime): Better
24340         documentation of this function's history and alternatives.
24341
24342         cygwin: use more robust version check
24343         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
24344         exclude an eventual cygwin 1.9.1.
24345         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24346         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24347         (gl_FUNC_STRCASESTR): Likewise.
24348         Reported by Bruno Haible.
24349
24350 2010-10-06  Bruno Haible  <bruno@clisp.org>
24351
24352         string, sys_select: Avoid #including large headers unless necessary.
24353         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
24354         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
24355         OSF/1, BeOS, Haiku.
24356         Reported by Jim Meyering.
24357
24358 2010-10-05  Eric Blake  <eblake@redhat.com>
24359
24360         memmem, strstr, strcasestr: fix bug with long periodic needle
24361         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24362         periodic needle having false positive.
24363         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24364         and cygwin 1.7.7.
24365         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24366         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24367         (gl_FUNC_STRCASESTR): Likewise.
24368         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24369         * tests/test-memmem.c (main): Expose the bug.
24370         * tests/test-strcasestr.c (main): Likewise.
24371         * tests/test-strstr.c (main): Likewise.
24372         * tests/test-c-strcasestr.c (main): Likewise.
24373         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24374         * doc/posix-functions/strstr.texi (strstr): Likewise.
24375         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24376         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24377
24378 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24379
24380         parse-datetime: do some more renaming
24381         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24382         parse_datetime, not get_date.  Mention the renaming.
24383         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24384         in comments.
24385         * m4/bison.m4: Likewise.
24386
24387 2010-10-05  Eric Blake  <eblake@redhat.com>
24388
24389         parse-datetime: better name than get_date
24390         * NEWS: Reword the deprecation notice.
24391         * modules/get_date: Rename to modules/parse-datetime.
24392         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24393         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24394         * lib/get_date.y: Rename to lib/parse-datetime.y.
24395         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
24396         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
24397         * doc/getdate.texi: Provide fallback wrapper.
24398         * lib/getdate.h: Move guts, and wrap...
24399         * lib/parse-datetime.h: ...new file.
24400         * lib/parse-datetime.y (get_date): Rename...
24401         (parse_datetime): ...to this.
24402         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
24403         (gl_PARSE_DATETIME): ...to this.
24404         * doc/posix-functions/getdate.texi (get_date): Provide fallback
24405         documentation.
24406         * modules/getdate (Files): Provide fallback docs and header.
24407         (Notice, Depends-on): Update references.
24408         * tests/test-parse-datetime.c: Likewise.
24409         * DEPENDENCIES: Likewise.
24410         * MODULES.html.sh (Date and time <time.h>): Likewise.
24411         * doc/parse-datetime.texi (Date input formats)
24412         (Authors of parse_datetime): Likewise.
24413         * modules/parse-datetime (Files, configure.ac, Makefile.am)
24414         (Include): Likewise.
24415         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
24416         * gnulib-tool: Likewise.
24417         * m4/bison.m4 (gl_BISON): Likewise.
24418         Suggested by Bruno Haible.
24419
24420 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24421
24422         more ports to Solaris tr, which needs [] around ranges
24423         * gnulib-tool: Solaris tr needs [] around ranges.
24424         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24425         * tests/test-pipe-filter-gi1.c (main): Likewise.
24426         * tests/test-pipe-filter-ii1.c (main): Likewise.
24427
24428 2010-10-05  Eric Blake  <eblake@redhat.com>
24429
24430         bootstrap: fix Solaris regression
24431         * build-aux/bootstrap (check_versions): Solaris tr still needs []
24432         around ranges.
24433         Reported by Pádraig Brady.
24434
24435         bootstrap: work with pkg-config
24436         * build-aux/bootstrap (check_versions): Also transliterate - in
24437         prerequisite name.
24438         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
24439         prerequisites that were already found, to avoid confusion.
24440         Reported by Justin Clift.
24441
24442         faccessat: remove unused wrappers
24443         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
24444         presence of these wrappers dragged in -lgen on Solaris.
24445         Reported by Clemens Brogi; fix suggested by Paul Eggert.
24446
24447 2010-10-05  Jim Meyering  <meyering@redhat.com>
24448
24449         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
24450         * Makefile (sc_pragma_columns): New syntax-check rule.
24451
24452 2010-10-04  Bruno Haible  <bruno@clisp.org>
24453
24454         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
24455         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
24456         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
24457         Reported by Bruce Korb and Eric Blake.
24458
24459 2010-10-04  Bruno Haible  <bruno@clisp.org>
24460
24461         threadlib: Make option --with-libpth-prefix work.
24462         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
24463         use $LIBPTH, not just -lpth.
24464
24465 2010-10-04  Bruno Haible  <bruno@clisp.org>
24466
24467         Avoid line length limitation from HP NonStop system header files.
24468         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
24469         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
24470         * lib/ctype.in.h: Likewise.
24471         * lib/dirent.in.h: Likewise.
24472         * lib/errno.in.h: Likewise.
24473         * lib/fcntl.in.h: Likewise.
24474         * lib/float.in.h: Likewise.
24475         * lib/getopt.in.h: Likewise.
24476         * lib/iconv.in.h: Likewise.
24477         * lib/inttypes.in.h: Likewise.
24478         * lib/langinfo.in.h: Likewise.
24479         * lib/locale.in.h: Likewise.
24480         * lib/math.in.h: Likewise.
24481         * lib/netdb.in.h: Likewise.
24482         * lib/netinet_in.in.h: Likewise.
24483         * lib/poll.in.h: Likewise.
24484         * lib/pthread.in.h: Likewise.
24485         * lib/pty.in.h: Likewise.
24486         * lib/sched.in.h: Likewise.
24487         * lib/se-selinux.in.h: Likewise.
24488         * lib/search.in.h: Likewise.
24489         * lib/signal.in.h: Likewise.
24490         * lib/spawn.in.h: Likewise.
24491         * lib/stdarg.in.h: Likewise.
24492         * lib/stddef.in.h: Likewise.
24493         * lib/stdint.in.h: Likewise.
24494         * lib/stdio.in.h: Likewise.
24495         * lib/stdlib.in.h: Likewise.
24496         * lib/string.in.h: Likewise.
24497         * lib/strings.in.h: Likewise.
24498         * lib/sys_file.in.h: Likewise.
24499         * lib/sys_ioctl.in.h: Likewise.
24500         * lib/sys_select.in.h: Likewise.
24501         * lib/sys_socket.in.h: Likewise.
24502         * lib/sys_stat.in.h: Likewise.
24503         * lib/sys_time.in.h: Likewise.
24504         * lib/sys_times.in.h: Likewise.
24505         * lib/sys_utsname.in.h: Likewise.
24506         * lib/sys_wait.in.h: Likewise.
24507         * lib/sysexits.in.h: Likewise.
24508         * lib/termios.in.h: Likewise.
24509         * lib/time.in.h: Likewise.
24510         * lib/unistd.in.h: Likewise.
24511         * lib/wchar.in.h: Likewise.
24512         * lib/wctype.in.h: Likewise.
24513         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24514         * modules/ctype (Makefile.am): Likewise.
24515         * modules/dirent (Makefile.am): Likewise.
24516         * modules/errno (Makefile.am): Likewise.
24517         * modules/fcntl-h (Makefile.am): Likewise.
24518         * modules/float (Makefile.am): Likewise.
24519         * modules/getopt-posix (Makefile.am): Likewise.
24520         * modules/iconv-h (Makefile.am): Likewise.
24521         * modules/inttypes (Makefile.am): Likewise.
24522         * modules/langinfo (Makefile.am): Likewise.
24523         * modules/locale (Makefile.am): Likewise.
24524         * modules/math (Makefile.am): Likewise.
24525         * modules/netdb (Makefile.am): Likewise.
24526         * modules/netinet_in (Makefile.am): Likewise.
24527         * modules/poll-h (Makefile.am): Likewise.
24528         * modules/pthread (Makefile.am): Likewise.
24529         * modules/pty (Makefile.am): Likewise.
24530         * modules/sched (Makefile.am): Likewise.
24531         * modules/search (Makefile.am): Likewise.
24532         * modules/selinux-h (Makefile.am): Likewise.
24533         * modules/signal (Makefile.am): Likewise.
24534         * modules/spawn (Makefile.am): Likewise.
24535         * modules/stdarg (Makefile.am): Likewise.
24536         * modules/stddef (Makefile.am): Likewise.
24537         * modules/stdint (Makefile.am): Likewise.
24538         * modules/stdio (Makefile.am): Likewise.
24539         * modules/stdlib (Makefile.am): Likewise.
24540         * modules/string (Makefile.am): Likewise.
24541         * modules/strings (Makefile.am): Likewise.
24542         * modules/sys_file (Makefile.am): Likewise.
24543         * modules/sys_ioctl (Makefile.am): Likewise.
24544         * modules/sys_select (Makefile.am): Likewise.
24545         * modules/sys_socket (Makefile.am): Likewise.
24546         * modules/sys_stat (Makefile.am): Likewise.
24547         * modules/sys_time (Makefile.am): Likewise.
24548         * modules/sys_times (Makefile.am): Likewise.
24549         * modules/sys_utsname (Makefile.am): Likewise.
24550         * modules/sys_wait (Makefile.am): Likewise.
24551         * modules/sysexits (Makefile.am): Likewise.
24552         * modules/termios (Makefile.am): Likewise.
24553         * modules/time (Makefile.am): Likewise.
24554         * modules/unistd (Makefile.am): Likewise.
24555         * modules/wchar (Makefile.am): Likewise.
24556         * modules/wctype (Makefile.am): Likewise.
24557
24558 2010-10-04  Bruno Haible  <bruno@clisp.org>
24559
24560         read-file tests: Avoid a test failure on NonStop Kernel.
24561         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24562         a regular file.
24563         Reported by Joachim Schmitz <schmitz@hp.com>.
24564
24565 2010-10-03  Bruno Haible  <bruno@clisp.org>
24566
24567         gnulib-tool: Fixes for --create-testdir with --libtool.
24568         * gnulib-tool (func_get_automake_snippet): Don't augment
24569         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24570         an executable.
24571         (func_create_testdir): Handle module 'alloca' like func_import.
24572         Reported by Bruce Korb <bruce.korb@gmail.com>.
24573
24574 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24575
24576         Avoid some lines longer than 80 characters.
24577         * lib/stdint.in.h: Break long comment lines.
24578         * lib/math.in.h: Likewise.
24579         (_GL_NUM_UINT_WORDS): New macro, for readability.
24580         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24581         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24582         * lib/stdlib.in.h: Likewise.
24583         * lib/spawn.in.h: Likewise.
24584         * lib/sys_socket.in.h: Update an URL.
24585         * lib/sys_stat.in.h: Break long line.
24586
24587 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24588
24589         Improve pmccabe2html.
24590         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24591         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24592         when the sources change. Remove the line in the HTML about "Used
24593         ranges" (which implied that there might be other unused ranges),
24594         rename "Resume" to "Summary" (easier to understand for more users).
24595         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24596         styles, and some unnecessary blank lines.
24597
24598 2010-10-03  Bruno Haible  <bruno@clisp.org>
24599             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24600
24601         acl: Add support for ACLs on NonStop Kernel.
24602         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24603         Check whether the function aclsort() exists.
24604         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24605         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24606         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24607         (acl_nontrivial [HAVE_ACLSORT]: New function.
24608         (file_has_acl): Implement for NonStop Kernel.
24609         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24610         (qset_acl): Implement for NonStop Kernel.
24611         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24612         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24613         (main): Implement for NonStop Kernel.
24614         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24615         Kernel. Handle this flavor.
24616         * tests/test-set-mode-acl.sh: Likewise.
24617         * tests/test-copy-acl.sh: Likewise.
24618         * tests/test-copy-file.sh: Likewise.
24619
24620 2010-10-03  Bruno Haible  <bruno@clisp.org>
24621
24622         Info about ACLs on NonStop Kernel.
24623         * doc/acl-resources.txt: Add info about NonStop Kernel.
24624         References by Joachim Schmitz <schmitz@hp.com>.
24625
24626 2010-10-02  Bruno Haible  <bruno@clisp.org>
24627
24628         Define missing EDQUOT on NonStop Kernel.
24629         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24630         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24631         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24632         missing.
24633         * doc/posix-headers/errno.texi: Mention the NSK bug.
24634         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24635         Reported by Joachim Schmitz <schmitz@hp.com>.
24636
24637 2010-10-02  Bruno Haible  <bruno@clisp.org>
24638
24639         Update doc for POSIX:2008.
24640         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24641         Update URL of POSIX specification.
24642
24643 2010-10-02  Bruno Haible  <bruno@clisp.org>
24644
24645         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24646         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24647         from gnulib, not from Automake.
24648
24649 2010-10-02  Bruno Haible  <bruno@clisp.org>
24650
24651         New module 'system-posix'.
24652         * modules/system-posix: New file.
24653         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24654         module is present.
24655         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24656         GNULIB_SYSTEM_POSIX.
24657         * modules/stdlib (Depends-on): Remove sys_wait.
24658         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
24659         * doc/posix-functions/system.texi: Mention the new module.
24660         * doc/posix-headers/stdlib.texi: Likewise.
24661         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
24662         define test_sys_wait_macros to a no-op.
24663         Reported by Sam Steingold <sds@gnu.org>.
24664
24665 2010-09-30  Bruno Haible  <bruno@clisp.org>
24666
24667         More renaming from 'getdate' to 'get_date'.
24668         * doc/get_date.texi: Renamed from doc/getdate.texi.
24669         * modules/get_date (Files): Update.
24670         * MODULES.html.sh (Date and time <time.h>): Update.
24671         * DEPENDENCIES: Update.
24672         * gnulib-tool: Update comment.
24673         * m4/bison.m4 (gl_BISON): Likewise.
24674         * m4/get_date.m4 (gl_GET_DATE): Likewise.
24675
24676 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
24677
24678         bootstrap: support ACLOCAL_FLAGS during aclocal
24679         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
24680         can add additional -I dir for third-party .m4 files.
24681
24682 2010-09-30  Eric Blake  <eblake@redhat.com>
24683
24684         bootstrap: use glibtoolize on MacOS
24685         * build-aux/bootstrap (check_versions): Convert libtool into
24686         libtoolize.
24687         (tool search): Move libtool check earlier, and look for
24688         glibtoolize for MacOS.
24689         (gnulib_tool_options): Auto-add --libtool when appropriate.
24690         Reported by Justin Clift.
24691
24692         poll: fix typo that broke test on MacOS
24693         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
24694         Reported by Justin Clift.
24695
24696         getdate: rename to get_date
24697         Note: getdate.h is not renamed, to minimize client impact.
24698         * modules/getdate: Mark obsolete.  Move old contents...
24699         * modules/get_date: ...to new module name.
24700         * modules/getdate-tests: Move...
24701         * modules/get_date-tests: ...here.
24702         * m4/getdate.m4: Move...
24703         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
24704         * lib/getdate.y: Move...
24705         * lib/get_date.y: ...here.
24706         * tests/test-getdate.c: Move...
24707         * tests/test-get_date.c: ...here.
24708         * doc/posix-functions/getdate.texi (getdate): Update name.
24709         * NEWS: Mention the change.
24710
24711 2010-09-29  Bruno Haible  <bruno@clisp.org>
24712
24713         Separate the module 'waitpid' from the module 'sys_wait'.
24714         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
24715         present.
24716         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
24717         gl_MODULE_INDICATOR_FOR_TESTS.
24718         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
24719         * modules/sys_wait (Depends-on): Remove waitpid.
24720         (Makefile.am): Substitute GNULIB_WAITPID.
24721         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
24722         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
24723         signature only if the 'waitpid' module is present.
24724         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
24725         * NEWS: Mention the change.
24726         * modules/grantpt (Depends-on): Add waitpid.
24727         * modules/wait-process (Depends-on): Likewise.
24728
24729 2010-09-29  Bruno Haible  <bruno@clisp.org>
24730
24731         More tests for module 'sys_wait'.
24732         * modules/sys_wait-c++-tests: New file.
24733         * tests/test-sys_wait-c++.cc: New file.
24734         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
24735         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24736
24737 2010-09-29  Bruno Haible  <bruno@clisp.org>
24738
24739         New module 'waitpid'.
24740         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
24741         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
24742         Don't include <process.h>.
24743         (waitpid): Declare only, using modern idiom.
24744         * m4/waitpid.m4: New file.
24745         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
24746         * modules/waitpid: New file.
24747         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
24748         (Makefile.am): Update.
24749         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24750
24751 2010-09-28  Bruno Haible  <bruno@clisp.org>
24752
24753         poll: Assume ANSI C.
24754         * lib/poll.c (poll): Use an ANSI C declaration.
24755
24756 2010-09-28  Bruno Haible  <bruno@clisp.org>
24757
24758         poll-h: Create poll.h on all platforms.
24759         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
24760         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
24761         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
24762         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
24763         (gl_REPLACE_POLL_H): Don't set POLL_H.
24764         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
24765         * modules/poll-h (Depends-on): Add include_next.
24766         (Makefile.am): Create poll.h unconditionally. Substitute also
24767         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
24768
24769 2010-09-28  Bruno Haible  <bruno@clisp.org>
24770
24771         Tests for module 'poll-h'.
24772         * modules/poll-h-c++-tests: New file.
24773         * tests/test-poll-h-c++.cc: New file.
24774
24775         Tests for module 'poll-h'.
24776         * modules/poll-h-tests: New file.
24777         * tests/test-poll-h.c: New file.
24778
24779 2010-09-28  Bruno Haible  <bruno@clisp.org>
24780
24781         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
24782         * modules/poll-h (Depends-on): Add 'extensions'.
24783
24784 2010-09-28  Bruno Haible  <bruno@clisp.org>
24785
24786         New module 'poll-h'.
24787         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
24788         (poll): Use modern idiom.
24789         * modules/poll-h: New file.
24790         * modules/poll (Files): Remove lib/poll.in.h.
24791         (Depends-on): Add poll-h.
24792         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
24793         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
24794         * m4/poll_h.m4: New file.
24795         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
24796         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
24797         and invoke gl_REPLACE_POLL_H.
24798         * lib/poll.c: Use common idiom.
24799         * tests/test-poll.c: Likewise.
24800         * doc/posix-headers/poll.texi: Mention the poll-h module.
24801         Suggested by Eric Blake.
24802
24803 2010-09-26  Bruno Haible  <bruno@clisp.org>
24804
24805         sys_wait: Implement WSTOPSIG.
24806         * lib/sys_wait.in.h (WSTOPSIG): New macro.
24807         Reported by Simon Josefsson.
24808
24809 2010-09-26  Simon Josefsson  <simon@josefsson.org>
24810
24811         stdlib, sys_wait: Avoid compilation error on mingw.
24812         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
24813
24814 2010-09-26  Bruno Haible  <bruno@clisp.org>
24815
24816         stdlib tests: Avoid code duplication.
24817         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
24818         * modules/sys_wait-tests (Files): Likewise.
24819         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
24820         * tests/test-stdlib.c: Include test-sys_wait.h.
24821         (main): Invoke test_sys_wait_macros.
24822         * tests/test-sys_wait.c: Include test-sys_wait.h.
24823         (main): Invoke test_sys_wait_macros.
24824
24825 2010-09-25  Simon Josefsson  <simon@josefsson.org>
24826
24827         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
24828         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
24829         sure Windows sockets are working before calling getaddrinfo.
24830         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
24831         * doc/gnulib.texi (Windows sockets): Fix typo.
24832
24833 2010-09-25  Bruno Haible  <bruno@clisp.org>
24834
24835         Tests for module 'regex-quote'.
24836         * modules/regex-quote-tests: New file.
24837         * tests/test-regex-quote.c: New file.
24838
24839         New module 'regex-quote'.
24840         * lib/regex-quote.h: New file.
24841         * lib/regex-quote.c: New file.
24842         * modules/regex-quote: New file.
24843         Suggested by Reuben Thomas <rrt@sc3d.org>.
24844
24845 2010-09-24  Bruno Haible  <bruno@clisp.org>
24846
24847         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
24848         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
24849
24850 2010-09-23  Bruno Haible  <bruno@clisp.org>
24851
24852         setenv: Relax license.
24853         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
24854         Blake.
24855         Requested by Eric Blake.
24856
24857 2010-09-22  Bruno Haible  <bruno@clisp.org>
24858
24859         termios: Relax license.
24860         * modules/termios (License): Change to LGPLv2+.
24861         Requested by Eric Blake.
24862
24863 2010-09-22  Bruno Haible  <bruno@clisp.org>
24864
24865         threadlib: Allow the package to change the default to 'no'.
24866         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
24867         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
24868         Reported by Paul Eggert.
24869
24870 2010-09-22  Pádraig Brady  <P@draigbrady.com>
24871             Bruno Haible  <bruno@clisp.org>
24872
24873         Fix endless loop in mbmemcasecoll.
24874         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
24875         byte.
24876         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
24877
24878 2010-09-22  Bruno Haible  <bruno@clisp.org>
24879
24880         Tests for module 'memcoll'.
24881         * modules/memcoll-tests: New file.
24882         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
24883
24884         memcoll, xmemcoll: Clarify size vs. length.
24885         * modules/memcoll.c (memcoll0): Clarify specification.
24886         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
24887         passed to collate_error.
24888
24889 2010-09-22  Bruno Haible  <bruno@clisp.org>
24890
24891         Tests for module 'memcasecmp'.
24892         * modules/memcasecmp-tests: New file.
24893         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
24894
24895 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24896
24897         * lib/pthread.in.h: Add split double-inclusion guard, and include
24898         system <pthread.h> if there is one.  Use @@-style as in other
24899         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
24900         pthread.h doesn't.
24901         (pthread_mutexattr_destroy, pthread_mutexattr_init):
24902         (pthread_mutexattr_settype, pthread_mutex_trylock):
24903         New static inline functions, if there's no system <pthread.h>.
24904         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
24905         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
24906         Approximate with mutexes if the system lacks spinlocks, as in
24907         MacOS.
24908         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
24909         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
24910         @@-style.  Check for spinlocks separately.
24911         (gl_PTHREAD_DEFAULTS): New macro.
24912         * modules/pthread: Redo to use a more typical style for in.h files.
24913
24914 2010-09-21  Eric Blake  <eblake@redhat.com>
24915
24916         net_if: enhance tests
24917         * tests/test-net_if.c (main): Move signature checks earlier.
24918         Print failures to stderr.
24919         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
24920         Document the bug that we do not yet fix.
24921
24922 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24923
24924         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
24925         about gnulib, not GSS.
24926
24927 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24928
24929         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
24930         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
24931         for Emacs.
24932         * build-aux/pmccabe2html: Make Makefile.am example code more
24933         cut-and-paste friendly.
24934
24935 2010-09-21  Simon Josefsson  <simon@josefsson.org>
24936
24937         * tests/test-net_if.c: New file.
24938         * modules/net_if-tests: New file.
24939
24940 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
24941
24942         pthread: add pthread_spin_destroy
24943         * lib/pthread.in.h (pthread_spin_destroy): New function.
24944
24945 2010-09-19  Bruno Haible  <bruno@clisp.org>
24946
24947         gnulib-tool: Fix --help output.
24948         * gnulib-tool (func_usage): Fix help message.
24949         Reported by Reuben Thomas <rrt@sc3d.org>.
24950
24951 2010-09-18  Jim Meyering  <meyering@redhat.com>
24952
24953         maint.mk: avoid unexpanded \n in two diagnostics
24954         * top/maint.mk (sc_prohibit_always_true_header_tests):
24955         Don't use a literal \n in a halt=... assignment.  It would not be
24956         expanded, and the two \n bytes would appear in the diagnostic output
24957         rather than the desired newline.  Use halt=$$(printf ... instead.
24958         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24959
24960 2010-09-18  Bruno Haible  <bruno@clisp.org>
24961
24962         netinet_in: Doc tweak.
24963         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
24964         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24965
24966 2010-09-18  Jim Meyering  <meyering@redhat.com>
24967
24968         init.sh: correct an outdated comment
24969         * tests/init.sh (create_exe_shims_):  s/function/alias/
24970
24971         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
24972         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
24973         a file named "*.exe" is removed between the glob expansion and the
24974         processing of that oddly named file.
24975
24976 2010-09-17  Eric Blake  <eblake@redhat.com>
24977
24978         mirbsd: add some more support
24979         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
24980         in BSD family.
24981         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
24982         devices as OpenBSD.
24983         * m4/host-os.m4 (mirbsd): Add MirBSD.
24984
24985         tests: fix unportable assumption on sys/wait.h
24986         * tests/test-sys_wait.c (main): Relax test.
24987         * tests/test-stdlib.c (main): Likewise.
24988
24989         init.sh: accomodate directory with no .exes
24990         * tests/init.sh: Accomodate directory containing only scripts.
24991
24992         tests: avoid compiler warning
24993         * tests/test-stdlib.c (main): Use the variable.
24994
24995         fdutimens, fdutimensat: update signature, again
24996         * lib/utimens.h (gl_futimens): Delete, and move signature...
24997         (fdutimens): ...here.
24998         (fdutimensat): Rearrange signature.
24999         (lutimensat): Rename variable for clarity.
25000         * lib/fdutimensat.c (fdutimensat): Update signature.
25001         * lib/utimens.c (fdutimens): Likewise.
25002         (gl_futimens): Delete.
25003         (utimens, lutimens): Update callers.
25004         * lib/futimens.c (futimens): Likewise.
25005         * tests/test-fdutimensat.c: Likewise.
25006         * tests/test-utimens.c: Likewise.
25007         * tests/test-futimens.h: Update comment.
25008         * NEWS: Mention this.
25009         Suggested by Paul Eggert.
25010
25011 2010-09-17  Bruno Haible  <bruno@clisp.org>
25012
25013         Take over the maintenance of some older macros from Autoconf.
25014         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25015         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25016         GNU Autoconf.
25017         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25018         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25019
25020 2010-09-17  Eric Blake  <eblake@redhat.com>
25021
25022         fdutimensat: drop atflag validation
25023         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25024         with valid fd, to close a race scenario where futimens is
25025         unsupported and FILE was replaced by a symlink.
25026         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25027         accordingly.
25028         Suggested by Paul Eggert.
25029
25030 2010-09-16  Bruno Haible  <bruno@clisp.org>
25031
25032         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25033         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25034
25035 2010-09-16  Bruno Haible  <bruno@clisp.org>
25036
25037         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25038         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25039         login_tty exists.
25040         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25041
25042 2010-09-16  Bruno Haible  <bruno@clisp.org>
25043
25044         login_tty: Make the replacement code work on BSD systems.
25045         * lib/login_tty.c: Include <sys/ioctl.h>.
25046         (login_tty): Use ioctl TIOCSCTTY when available.
25047         * modules/login_tty (Depends-on): Add sys_ioctl.
25048         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25049
25050 2010-09-16  Bruno Haible  <bruno@clisp.org>
25051
25052         login_tty: Stricter unit test.
25053         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25054         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25055         and tcgetsid() after login_tty.
25056         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25057
25058 2010-09-16  Bruno Haible  <bruno@clisp.org>
25059
25060         New module 'tcgetsid'.
25061         * lib/tcgetsid.c: New file.
25062         * m4/tcgetsid.m4: New file.
25063         * modules/tcgetsid: New file.
25064         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25065         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25066         GNULIB_TCGETSID, HAVE_TCGETSID.
25067         * lib/termios.in.h: Include <sys/types.h>.
25068         (tcgetsid): New declaration.
25069         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25070         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25071         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25072         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25073
25074 2010-09-16  Bruno Haible  <bruno@clisp.org>
25075
25076         Tests for module 'termios'.
25077         * modules/termios-c++-tests: New file.
25078         * modules/termios-tests: New file.
25079         * tests/test-termios-c++.cc: New file.
25080         * tests/test-termios.c: New file.
25081
25082         New module 'termios'.
25083         * modules/termios: New file.
25084         * lib/termios.in.h: New file.
25085         * m4/termios_h.m4: New file.
25086         * doc/posix-headers/termios.texi: Mention the new module.
25087
25088 2010-09-16  Eric Blake  <eblake@redhat.com>
25089
25090         fdutimensat: add an atflag parameter
25091         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25092         * lib/utimens.h (fdutimensat): Update prototype.
25093         * tests/test-fdutimensat.c: Adjust test to match.
25094         * NEWS: Document the change.
25095         Suggested by Paul Eggert.
25096
25097 2010-09-16  Bruno Haible  <bruno@clisp.org>
25098
25099         Fix typos in comments.
25100         * lib/striconveh.h: Fix typo in comment.
25101         * lib/login_tty.c (login_tty): Likewise.
25102
25103 2010-09-15  Bruno Haible  <bruno@clisp.org>
25104
25105         stdlib: clarify MirBSD WEXITSTATUS bug
25106         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25107         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25108
25109 2010-09-15  Eric Blake  <eblake@redhat.com>
25110
25111         stdlib: work around MirBSD WEXITSTATUS bug
25112         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25113         * modules/stdlib (Depends-on): Add sys_wait.
25114         * tests/test-sys_wait.c (main): Enhance test.
25115         * tests/test-stdlib.c (main): Likewise.
25116         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25117
25118         docs: mention MacOS issue with WEXITSTATUS(constant)
25119         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25120         issue.
25121         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25122
25123         strnlen: add tests
25124         * modules/strnlen-tests: New file.
25125         * tests/test-strnlen.c: Likewise.
25126
25127 2010-09-14  Bruno Haible  <bruno@clisp.org>
25128
25129         unistr/base: Avoid link errors when module 'libunistring' is also used.
25130         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25131         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25132         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25133         Declare also when HAVE_LIBUNISTRING is set.
25134         Reported by Pádraig Brady <P@draigbrady.com>.
25135
25136 2010-09-14  Eric Blake  <eblake@redhat.com>
25137
25138         test-rawmemchr: make more robust
25139         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25140         (Depends-on, configure.ac): Add needed prerequisites to use it.
25141         * modules/memchr-tests (Files, Depends-on, configure.ac):
25142         Likewise, to avoid implicit reliance on memchr module prereqs.
25143         * tests/test-memchr.c (main): Ensure proper masking.
25144         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25145         reads.
25146
25147         memchr: detect glibc Alpha bug
25148         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25149         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25150         Alpha.
25151         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25152         * tests/test-memchr.c (main): Enhance test.
25153         Reported by Nelson H. F. Beebe.
25154
25155 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25156
25157         fts, getcwd, glob: audit for dirfd returning -1
25158         * lib/fts.c (opendir): Remove #define; no longer used.
25159         (opendirat): New arg PDIR_FD.  All callers changed.
25160         (fts_build, _opendir2): Use new opendirat to avoid the need for
25161         dirfd, or for checking whether dirfd returns a negative value.
25162         Don't use opendir; always use openat followed by fdopendir.
25163         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25164         it.
25165         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25166         returns -1 here.
25167         * modules/fts (Depends-on): Remove dirfd.
25168         * modules/getcwd (Depends-on): Likewise.
25169
25170 2010-09-13  Eric Blake  <eblake@redhat.com>
25171
25172         float: fix broken MirBSD header
25173         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25174         * doc/posix-headers/float.texi (float.h): Document it.
25175
25176 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25177
25178         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25179         * lib/fts.c (opendirat): New arg extra_flags.
25180         (__opendir2): Use it to avoid following symlinks when opening
25181         a directory, if symlinks are not supposed to be followed.  See
25182         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25183
25184         fdopendir: preserve argument fd before returning
25185         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25186         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25187         (fdopendir): Use them, arranging for FD to be open to the same
25188         directory that it was when it started.  (It might be temporarily
25189         closed while fdopendir is running, so this not thread- or
25190         signal-safe.)  Be careful to do the right thing even when file
25191         descriptors are scarce and dup fails with errno == EMFILE.  See
25192         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25193
25194 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25195
25196         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25197         * NEWS: Document change.
25198         * m4/regex.m4: Disable test for regoff_t size.
25199
25200 2010-09-13  Jim Meyering  <meyering@redhat.com>
25201
25202         fts: don't operate on an invalid file descriptor after failed dup
25203         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25204         negative file descriptor.
25205
25206 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25207
25208         savedir: add streamsavedir, deprecate fdsavedir
25209         * NEWS: Mention deprecation of fdsavedir.
25210         * lib/savedir.c (streamsavedir): New extern function, whose name
25211         ends in "savedir" to be consistent with the others.  This differs
25212         from savedirstream in that it doesn't close its argument.  The
25213         next version of GNU tar will use this instead of fdsavedir, to
25214         avoid some race conditions and conserve file descriptors.
25215         (savedirstream): Reimplement as a wrapper around streamsavedir.
25216         (fdsavedir): Add a comment deprecating this function.  As far as
25217         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25218         * lib/savedir.h (streamsavedir): New decl.
25219         (fdsavedir): Add a comment deprecating this.
25220
25221 2010-09-10  Bruno Haible  <bruno@clisp.org>
25222
25223         langinfo: Fix last commit.
25224         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25225         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25226         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25227
25228 2010-09-10  Bruno Haible  <bruno@clisp.org>
25229
25230         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25231         * lib/progreloc.c (O_EXEC): Define fallback.
25232
25233 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25234
25235         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25236         * NEWS: Document recent changes to fcntl-h.
25237         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25238         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25239         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25240         Similarly for O_SEARCH; this last was already true, but not documented.
25241         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25242         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25243         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25244         Likewise.
25245         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25246         is zero, not whether it is defined.
25247         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25248         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25249         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25250
25251 2010-09-10  Bruno Haible  <bruno@clisp.org>
25252
25253         langinfo, nl_langinfo: Fix for IRIX 5.3.
25254         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25255         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25256         HAVE_LANGINFO_YESEXPR.
25257         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25258         HAVE_LANGINFO_YESEXPR.
25259         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25260         HAVE_LANGINFO_T_FMT_AMPM is 0.
25261         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25262         HAVE_LANGINFO_YESEXPR is 0.
25263         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25264         NOEXPR.
25265         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25266         * doc/posix-functions/nl_langinfo.texi: Likewise.
25267         Reported by Eric Blake.
25268
25269 2010-09-10  Bruno Haible  <bruno@clisp.org>
25270
25271         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25272         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25273         on FreeBSD 8.0 and OpenBSD 4.6.
25274         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25275         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25276         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25277         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25278         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25279         ac_includes_default.
25280         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25281
25282 2010-09-09  Eric Blake  <eblake@redhat.com>
25283
25284         strsignal: work around NetBSD bug
25285         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25286         * lib/string.in.h (includes): Likewise.
25287         * doc/posix-functions/strsignal.texi (strsignal): Document the
25288         bug.
25289         Reported by Nelson H. F. Beebe.
25290
25291         gnulib-tool: work with NetBSD /bin/sh
25292         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25293         (func_get_description, func_get_comment, func_get_status)
25294         (func_get_notice, func_get_applicability, func_get_filelist)
25295         (func_get_dependencies, func_get_autoconf_early_snippet)
25296         (func_get_autoconf_snippet, func_get_automake_snippet)
25297         (func_get_include_directive, func_get_link_directive)
25298         (func_get_license, func_get_maintainer, func_import): Avoid
25299         shell syntax errors from parsing syntax extensions.
25300
25301 2010-09-09  Bruno Haible  <bruno@clisp.org>
25302
25303         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25304         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25305         a reliable way to determine whether the 'alias' command works.
25306
25307 2010-09-08  Jim Meyering  <meyering@redhat.com>
25308
25309         init.sh: penalize a set-x-impaired shell; don't disqualify it
25310         * tests/init.sh: Too many shells corrupt application stderr when
25311         you set -x, so we can't afford to disqualify them, since at least
25312         on Irix-6.5, that would disqualify all bourne shells.
25313         Instead, use a two-pass approach.
25314         On the first pass, try to find a shell that meets the stricter
25315         condition that set -x does not corrupt stderr.
25316         If no shell meets the stricter condition, retest each candidate
25317         shell, but without that extra condition.  Finally, when
25318         VERBOSE=yes is requested and set -x might cause trouble, simply
25319         issue a warning and refrain from enabling debug output.
25320
25321 2010-09-08  Eric Blake  <eblake@redhat.com>
25322
25323         unsetenv: fix OpenBSD bug
25324         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25325         * doc/posix-functions/unsetenv.texi (unsetenv): Update
25326         documentation.
25327         Reported by Jim Meyering.
25328
25329         strtod: work around IRIX 6.5 bug
25330         * lib/strtod.c (strtod): Reparse number on shorter string if
25331         exponent parse was invalid.
25332         * tests/test-strtod.c (main): Add check for "0x1p 2".
25333         Reported by Tom G. Christensen.
25334
25335         getopt: optimize previous patch
25336         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
25337         empty variable.  Speed up awk script.
25338         Reported by Paolo Bonzini.
25339
25340 2010-09-08  Jim Meyering  <meyering@redhat.com>
25341
25342         test.sh: disqualify shells for which set -x corrupts stderr
25343         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
25344         and OpenBSD 4.7.  They make it so with "set -x", environment settings
25345         appear in stderr output.  For example, this command:
25346             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
25347         prints "P=1" on those two systems:
25348
25349 2010-09-08  Bruno Haible  <bruno@clisp.org>
25350
25351         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25352         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
25353         commands, because some shells ignore redirections when there is an
25354         error in the command lookup.
25355         Reported by Eric Blake.
25356
25357 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25358
25359         * lib/regex.h: Fix a mention of `regex_compile' (should be
25360         `re_compile_pattern').
25361         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25362         (re_set_registers): Correct name of parameter in comment.
25363
25364         * doc/regex.texi: Add documentation for missing syntax flags.
25365         Remove commented-out documentation of defunct syntax option
25366         RE_NO_EMPTY_ALTS.
25367         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25368         Add documentation of re_set_registers.
25369         Document trick to re-use a pattern buffer by setting fastmap manually.
25370         Update documentation of struct re_pattern_buffer per public members.
25371         Uncomment documentation of equivalence class operators and
25372         collating symbol operators, since they are now implemented,
25373         Explain leftmost-longest matching in relation to alternatives.
25374         Tidy documentation of substring matching.
25375         Remove POSIX documentation, which is done better in
25376         glibc, and refer the reader there. Keep BSD API documentation, as
25377         that is not readily available elsewhere.
25378
25379 2010-09-07  Eric Blake  <eblake@redhat.com>
25380
25381         getopt: handle POSIXLY_CORRECT set but not exported
25382         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25383         export state of POSIXLY_CORRECT, due to bash set -o posix.
25384         Reported by Dustin J. Mitchell.
25385
25386 2010-09-05  Bruno Haible  <bruno@clisp.org>
25387
25388         gnulib-tool: Highlight the changed options.
25389         * gnulib-tool (func_usage): Display the --import, --add-import,
25390         --remove-import explanations in bold font.
25391
25392 2010-09-06  Karl Berry  <karl@gnu.org>
25393
25394         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
25395
25396 2010-09-05  Bruno Haible  <bruno@clisp.org>
25397
25398         uniwidth/width: Update comment.
25399         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
25400         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
25401
25402 2010-09-05  Bruno Haible  <bruno@clisp.org>
25403
25404         isinf, isnan: Relax license.
25405         * modules/isinf (License): Change from GPL to LGPL, with consent from
25406         Ben Pfaff.
25407         * modules/isnan (License): Likewise.
25408         Requested by Ludovic Courtès.
25409
25410 2010-09-04  Bruno Haible  <bruno@clisp.org>
25411
25412         gnulib-tool: Help migration from --import to --add-import or --update.
25413         * gnulib-tool: Emit a verbose error message when --import is used
25414         without any module name.
25415
25416 2010-09-04  Bruno Haible  <bruno@clisp.org>
25417
25418         Update doc about gnulib-tool.
25419         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
25420         'gnulib-tool --update' in more detail.
25421         Reported by Eric Blake.
25422
25423 2010-09-04  Bruno Haible  <bruno@clisp.org>
25424
25425         gnulib-tool: Change --import. New options --add/remove-import.
25426         * gnulib-tool: New options --add-import, --remove-import.
25427         (func_usage): Document them.
25428         (have_associative): Define always.
25429         (func_import): In import mode, don't merge the specified settings with
25430         the cached settings. Implement remove-import mode.
25431         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
25432         Explain when to use them versus --import.
25433         (Simple update): Use --add-import instead of --import.
25434         * NEWS: Mention the change.
25435
25436 2010-09-04  Bruno Haible  <bruno@clisp.org>
25437
25438         * doc/gnulib-tool.texi (Initial import): Update paragraph about
25439         separate gnulib.mk.
25440
25441 2010-09-04  Bruno Haible  <bruno@clisp.org>
25442
25443         gnulib-tool: Don't talk about CVS any more.
25444         * gnulib-tool (func_usage, func_import): Write "version control"
25445         instead of CVS.
25446
25447 2010-09-04  Jim Meyering  <meyering@redhat.com>
25448
25449         maint.mk: avoid obscure sc_copyright_check failure in coreutils
25450         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
25451         false positives (whose names may be ill-chosen) when searching
25452         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
25453         would cause a false-positive.
25454
25455         avoid coreutils "make distcheck" failure
25456         Coreutils tests with an absolute build directory name that contains
25457         a space.  Not quoting this directory name caused a failure.
25458         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
25459         * tests/test-vc-list-files-cvs.sh: Likewise.
25460
25461 2010-09-04  Bruno Haible  <bruno@clisp.org>
25462
25463         gnulib-tool: Avoid error when run in a package without Makefile.am.
25464         * gnulib-tool: When collecting the m4dirs in a package that does not
25465         have a Makefile.am, eliminate those directories that contain no
25466         gnulib-cache.m4. Fix expression that counts these directories.
25467
25468 2010-09-04  Bruno Haible  <bruno@clisp.org>
25469
25470         update-copyright test: Improve output when perl is missing or too old.
25471         * tests/test-update-copyright.sh: Move test of Perl version down after
25472         the test whether Perl exists. Provide an explanation relating Perl's
25473         error message to Automake's SKIP: message.
25474
25475 2010-09-04  Bruno Haible  <bruno@clisp.org>
25476
25477         Don't augment PATH in TESTS_ENVIRONMENT.
25478         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
25479         set abs_aux_dir instead of augmenting PATH.
25480         * modules/vc-list-files-tests (Makefile.am): Likewise.
25481         * tests/test-update-copyright.sh: Augment PATH here.
25482         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
25483         path_prepend_.
25484         * tests/test-vc-list-files-git.sh: Likewise.
25485
25486 2010-09-04  Jim Meyering  <meyering@redhat.com>
25487
25488         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
25489         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
25490
25491 2010-09-04  Bruno Haible  <bruno@clisp.org>
25492
25493         strdup: Fix compilation error in C++ mode.
25494         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
25495         the macro.
25496
25497 2010-09-04  Bruno Haible  <bruno@clisp.org>
25498
25499         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
25500         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
25501         macro into a function.
25502         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25503
25504 2010-09-04  Bruno Haible  <bruno@clisp.org>
25505
25506         Set PATH_SEPARATOR the same way autoconf does.
25507         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25508         the value of PATH_SEPARATOR the same way autoconf-generated configure
25509         scripts do.
25510         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25511         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25512
25513 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25514
25515         Set PATH_SEPARATOR the same way autoconf does.
25516         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25517         the same way autoconf-generated configure scripts do.
25518         * posix-modules: Likewise.
25519
25520 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25521
25522         hash: fix safe_hasher const typo
25523         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25524         const; otherwise, there is a type error later.
25525
25526 2010-09-02  Jim Meyering  <meyering@redhat.com>
25527
25528         test-update-copyright.sh: require perl 5.8.0
25529         * tests/test-update-copyright.sh: Require 5.8.0,
25530         which Tom G. Christensen has confirmed is adequate,
25531         while 5.6.1 is not.
25532
25533 2010-09-02  Eric Blake  <eblake@redhat.com>
25534
25535         tests: init.sh improvements for re-exec'ing with zsh
25536         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25537         -vx through shell re-exec.
25538         Reported by Tom G. Christensen.
25539
25540         wctype: fix typo in previous commit
25541         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25542         Reported by Ludovic Courtès.
25543
25544 2010-09-02  Jim Meyering  <meyering@redhat.com>
25545
25546         test-update-copyright.sh: skip test if Perl is too old
25547         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25548         Reported by Tom G. Christensen.
25549
25550 2010-09-02  Bruno Haible  <bruno@clisp.org>
25551
25552         wctype: Avoid compilation error on IRIX 6.5.30.
25553         * lib/wctype.in.h (iswblank): Declare with a replacement if
25554         REPLACE_ISWBLANK is set.
25555         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25556         declared. Set REPLACE_ISWBLANK.
25557         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25558         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25559         * doc/posix-headers/wctype.texi: Likewise.
25560         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25561
25562 2010-09-01  Bruno Haible  <bruno@clisp.org>
25563
25564         New module 'socketlib'.
25565         * modules/socketlib: New file.
25566         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25567         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25568         * modules/sockets (Depends-on): Add socketlib.
25569         Suggested by Sam Steingold <sds@gnu.org>.
25570
25571 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25572
25573         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25574
25575         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25576         when one needs search access to a directory but not read access.
25577         On systems where it is available, it works in some cases where
25578         O_RDONLY does not, namely on directories that are searchable but
25579         not readable, and which need only to be searchable.  If O_SEARCH
25580         is not available, fall back to the traditional method of using
25581         O_RDONLY.
25582
25583         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25584         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25585         when opening a directory that needs only to be searchable.
25586         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25587         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25588         * lib/openat-proc.c (openat_proc_name): Likewise.
25589         * lib/openat.c (openat_needs_fchdir): Likewise.
25590         * lib/save-cwd.c (save_cwd): Likewise.
25591         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25592
25593 2010-08-28  Bruno Haible  <bruno@clisp.org>
25594
25595         New module 'host-cpu-c-abi'.
25596         * modules/host-cpu-c-abi: New file.
25597         * m4/host-cpu-c-abi.m4: New file, based on part of
25598         clisp/src/m4/general.m4.
25599         Requested by Sam Steingold <sds@gnu.org>.
25600
25601 2010-08-31  Eric Blake  <eblake@redhat.com>
25602         and Jim Meyering  <meyering@redhat.com>
25603
25604         hash: factor, and guard against misbehaving hasher function
25605         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25606         of table->hasher's return value.  Also protect against a hash value
25607         so large that adding it to table->bucket results in a NULL pointer.
25608         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25609         Use it in place of open-coded check-and-abort.
25610
25611 2010-08-30  Bruno Haible  <bruno@clisp.org>
25612
25613         hash: silence spurious clang warning
25614         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25615         Reported by Eric Blake.
25616
25617 2010-08-30  Eric Blake  <eblake@redhat.com>
25618
25619         strstr, memmem, strcasestr: avoid leaked shell message
25620         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25621         FreeBSD.
25622         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25623         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25624
25625         tests: silence clang warning
25626         * tests/test-malloca.c (do_allocation): Avoid dead store.
25627
25628 2010-08-29  Bruno Haible  <bruno@clisp.org>
25629
25630         gettext: Fix recent mistake.
25631         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25632
25633 2010-08-29  Bruno Haible  <bruno@clisp.org>
25634
25635         selinux-h: Offer a --without-selinux option.
25636         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25637         --without-selinux was specified, skip all tests and define
25638         HAVE_SELINUX_SELINUX_H to 0.
25639         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25640         set LIB_SELINUX to empty.
25641         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25642         gl_LIBSELINUX. If --without-selinux was specified, replace
25643         selinux/context.h.
25644         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25645
25646 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25647             Bruno Haible  <bruno@clisp.org>
25648
25649         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25650         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25651         of HAVE_REALLOC.
25652         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25653         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25654         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25655         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25656
25657 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25658             Bruno Haible  <bruno@clisp.org>
25659
25660         Make the module 'calloc-gnu' work again on AIX and OSF/1.
25661         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
25662         HAVE_CALLOC.
25663         * lib/xmalloc.c: Update accordingly.
25664         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
25665         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
25666         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
25667
25668 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25669             Bruno Haible  <bruno@clisp.org>
25670
25671         Make the module 'malloc-gnu' work again on AIX and OSF/1.
25672         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
25673         HAVE_MALLOC.
25674         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
25675         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
25676         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25677
25678 2010-08-29  Bruno Haible  <bruno@clisp.org>
25679
25680         Update modules list.
25681         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25682         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
25683         (String handling <string.h>): Add astrxfrm.
25684         (File system functions): Add readlinkat.
25685
25686 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25687
25688         Tests for module 'realloc-gnu'.
25689         * modules/realloc-gnu-tests: New file.
25690         * tests/test-realloc-gnu.c: New file.
25691
25692         Tests for module 'calloc-gnu'.
25693         * modules/calloc-gnu-tests: New file.
25694         * tests/test-calloc-gnu.c: New file.
25695
25696         Tests for module 'malloc-gnu'.
25697         * modules/malloc-gnu-tests: New file.
25698         * tests/test-malloc-gnu.c: New file.
25699
25700 2010-08-28  Bruno Haible  <bruno@clisp.org>
25701
25702         Rename module 'realloc' -> 'realloc-gnu'.
25703         * modules/realloc-gnu: New file, copied from modules/realloc.
25704         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
25705         obsolete.
25706         * modules/mgetgroups (Depends-on): Update.
25707         * doc/posix-functions/realloc.texi: Update.
25708         * NEWS: Mention the change.
25709
25710         Rename module 'calloc' -> 'calloc-gnu'.
25711         * modules/calloc-gnu: New file, copied from modules/calloc.
25712         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
25713         obsolete.
25714         * doc/posix-functions/calloc.texi: Update.
25715         * NEWS: Mention the change.
25716
25717         Rename module 'malloc' -> 'malloc-gnu'.
25718         * modules/malloc-gnu: New file, copied from modules/malloc.
25719         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
25720         obsolete.
25721         * modules/argp (Depends-on): Update.
25722         * modules/regex (Depends-on): Update.
25723         * doc/posix-functions/malloc.texi: Update.
25724         * NEWS: Mention the change.
25725
25726 2010-08-28  Eric Blake  <eblake@redhat.com>
25727
25728         pread, pwrite: add missing dependency
25729         * modules/pread (Depends-on): Add extensions.
25730         * modules/pwrite (Depends-on): Likewise.
25731
25732 2010-08-28  Bruno Haible  <bruno@clisp.org>
25733
25734         unistr/u*-strchr: Fix tests dependencies.
25735         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
25736         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
25737         Reported by Ian Beckwith <ianb@erislabs.net>.
25738
25739 2010-08-28  Bruno Haible  <bruno@clisp.org>
25740
25741         read-file: Don't occupy too much unused memory.
25742         * lib/read-file.c (fread_file): Shrink the buffer at the end.
25743
25744 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
25745             Eric Blake  <eblake@redhat.com>
25746             Bruno Haible  <bruno@clisp.org>
25747
25748         read-file: Avoid memory reallocations with regular files.
25749         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
25750         (fread_file): With regular files, use the remaining length as the
25751         initial buffer size.  Check against overflow.
25752         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
25753         sys_stat.
25754
25755 2010-08-28  Bruno Haible  <bruno@clisp.org>
25756
25757         ftello: Relax license.
25758         * modules/ftello (License): Relax to LGPLv2+.
25759         Reported by Eric Blake.
25760
25761 2010-08-28  Bruno Haible  <bruno@clisp.org>
25762
25763         Avoid relocwrapper link errors due to gnulib replacement functions.
25764         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
25765         function.
25766         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25767
25768 2010-08-28  Bruno Haible  <bruno@clisp.org>
25769
25770         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
25771         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
25772         defined.
25773         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
25774         Suggested by Eric Blake.
25775
25776 2010-08-28  Bruno Haible  <bruno@clisp.org>
25777
25778         sys_socket, netdb: Ensure socklen_t gets defined.
25779         * modules/sys_socket (Depends-on): Add socklen.
25780         * modules/netdb (Depends-on): Likewise.
25781         * modules/getaddrinfo (Depends-on): Remove socklen.
25782         * modules/getsockopt (Depends-on): Likewise.
25783         * modules/setsockopt (Depends-on): Likewise.
25784         * tests/test-sys_socket.c: Check that socklen_t is defined.
25785         * tests/test-netdb.c: Likewise.
25786         * m4/socklen.m4: Update comments.
25787         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25788
25789 2010-08-27  Eric Blake  <eblake@redhat.com>
25790
25791         login_tty: add missing dependency
25792         * modules/login_tty (Depends-on): Add pty.
25793
25794 2010-08-26  Eric Blake  <eblake@redhat.com>
25795
25796         lib-symbol-versions: fix m4 quoting
25797         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
25798         format for AC_LINK_IFELSE.
25799
25800         glob: fix compile test
25801         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
25802
25803         btowc: fix missing file
25804         * modules/btowc (Files): Also ship locale-fr.m4.
25805
25806         lseek: fix link test
25807         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
25808         AC_LINK_IFELSE.
25809
25810         include_next: silence autoconf 2.68 warning
25811         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
25812         AC_COMPILE_IFELSE as special.
25813         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
25814         autoconf < 2.68.
25815
25816         acl: fix compilation test
25817         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
25818         AC_COMPILE_IFELSE.
25819
25820 2010-08-26  Bruno Haible  <bruno@clisp.org>
25821
25822         Modernize AC_TRY_RUN invocations.
25823         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
25824         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25825         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
25826         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
25827         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
25828         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25829         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25830         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25831         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25832         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25833         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25834         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25835         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25836         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25837         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25838         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25839         gl_MBRLEN_NUL_RETVAL): Likewise.
25840         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25841         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25842         Likewise.
25843         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25844         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25845         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25846         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25847         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
25848         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
25849         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
25850         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
25851         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
25852         Likewise.
25853         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25854         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
25855         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25856         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25857         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25858         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25859         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25860         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
25861         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25862         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25863
25864 2010-08-26  Bruno Haible  <bruno@clisp.org>
25865
25866         Modernize AC_TRY_LINK invocations.
25867         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
25868         AC_TRY_LINK.
25869         * m4/argp.m4 (gl_ARGP): Likewise.
25870         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
25871         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25872         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
25873         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25874         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25875         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
25876         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
25877         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
25878         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25879         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25880         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25881         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
25882         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
25883         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25884         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25885         * m4/hostent.m4 (gl_HOSTENT): Likewise.
25886         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25887         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
25888         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25889         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
25890         Likewise.
25891         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
25892         Likewise.
25893         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
25894         Likewise.
25895         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25896         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
25897         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
25898         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25899         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
25900         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
25901         * m4/servent.m4 (gl_SERVENT): Likewise.
25902         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
25903         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
25904         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
25905         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
25906         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25907         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
25908         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25909         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25910         * modules/tsearch-tests (configure.ac): Likewise.
25911
25912 2010-08-26  Bruno Haible  <bruno@clisp.org>
25913
25914         Modernize AC_TRY_COMPILE invocations.
25915         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
25916         AC_TRY_COMPILE.
25917         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
25918         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
25919         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25920         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
25921         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25922         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25923         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25924         * m4/lock.m4 (gl_LOCK): Likewise.
25925         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
25926         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25927         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
25928         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25929         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25930         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
25931         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25932         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
25933         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25934         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25935         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25936         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25937         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
25938         extraneous semicolon.
25939
25940 2010-08-26  Jim Meyering  <meyering@redhat.com>
25941
25942         stat-time: relax license LGPL
25943         * modules/stat-time (License): Change from GPL to LGPL,
25944         with consent from all contributors, for use in libguile.
25945         Requested by Ludovic Courtès.
25946
25947 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
25948
25949         poll: return immediately on POLLHUP.
25950         * lib/poll.c (poll): Always set timeout before wait_timeout is
25951         computed.
25952
25953 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25954
25955         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
25956         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
25957         rmdir ("dir/.//"), unlinkat.
25958
25959 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25960
25961         stdbool: avoid spurious failure with modern xlc
25962         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25963
25964 2010-08-24  Bruno Haible  <bruno@clisp.org>
25965
25966         getloadavg: simplify code
25967         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
25968         gl_have_func. Update comments.
25969
25970 2010-08-24  Eric Blake  <eblake@redhat.com>
25971
25972         getloadavg: don't define SVR4 on cygwin
25973         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
25974         only define SVR4 when -lkvm is required.
25975         Reported by Yaakov Selkowitz.
25976
25977 2010-08-24  Bruno Haible  <bruno@clisp.org>
25978
25979         priv-set: fix comment
25980         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
25981
25982 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25983
25984         priv-set: fix comments
25985         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
25986         to match code, as suggested by David Bartley in:
25987         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
25988
25989 2010-08-23  Eric Blake  <eblake@redhat.com>
25990
25991         stdbool: avoid rejecting clang
25992         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25993         * tests/test-stdbool.c: Enable more tests if using the system
25994         <stdbool.h> instead of the gnulib replacement.
25995         (main): Move xlc bug test to a runtime test for all compilers.
25996         Reported by Anders Kaseorg.
25997
25998         argz: fix shell quoting issue
25999         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26000         Reported by Charles Wilson.
26001
26002 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26003             Erik Faye-Lund <kusmabite@gmail.com>
26004
26005         poll, select: handle ERROR_BROKEN_PIPE.
26006         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26007         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26008         * lib/select.c (win32_compute_revents): Do not mark a pipe
26009         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26010
26011 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26012
26013         fts: allow compilation with C++
26014         * lib/fts_.h: Specify extern "C" linkage with C++.
26015
26016 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26017
26018         Fix gnulib-tool sed script de-commentation for AIX sed.
26019         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26020         sed.
26021
26022 2010-08-17  Eric Blake  <eblake@redhat.com>
26023
26024         test-stddef: test for (some) offsetof bugs
26025         * tests/test-stddef.c: Enhance test to ensure correct type of
26026         offsetof.
26027         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26028         that we are not fixing at this time.
26029
26030 2010-08-15  Bruno Haible  <bruno@clisp.org>
26031
26032         stpncpy: Allow stpncpy to be defined as a macro.
26033         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26034         if it's already correctly declared.
26035         * lib/string.in.h (stpncpy): Undefine before redefining.
26036         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26037
26038 2010-08-14  Bruno Haible  <bruno@clisp.org>
26039
26040         Rename module 'memxfrm' to 'amemxfrm'.
26041         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26042         (amemxfrm): Renamed from memxfrm.
26043         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26044         (amemxfrm): Renamed from memxfrm.
26045         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26046         * NEWS: Mention the change.
26047         * MODULES.html.sh (String handling <string.h>): Update.
26048         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26049         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26050         * lib/unicase/u16-casexfrm.c: Likewise.
26051         * lib/unicase/u32-casexfrm.c: Likewise.
26052         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26053         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26054         * lib/uninorm/u16-normxfrm.c: Likewise.
26055         * lib/uninorm/u32-normxfrm.c: Likewise.
26056         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26057         memxfrm.
26058         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26059         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26060         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26061         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26062         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26063         Suggested by Paul Eggert.
26064
26065 2010-08-14  Bruno Haible  <bruno@clisp.org>
26066
26067         Tests for module 'astrxfrm'.
26068         * modules/astrxfrm-tests: New file.
26069         * tests/test-astrxfrm.c: New file.
26070
26071         New module 'astrxfrm'.
26072         * lib/astrxfrm.h: New file.
26073         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26074         * modules/astrxfrm: New file.
26075
26076 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26077
26078         regex: Tweak doc.
26079         * doc/regex.texi (Overview): Don't mention regex.c.
26080         (GNU Regular Expression Compiling): Likewise.
26081         (Match-end-of-line Operator): Mention 'not_eol'.
26082
26083 2010-08-14  Brian Gough  <bjg@gnu.org>
26084             Bruno Haible  <bruno@clisp.org>
26085
26086         git-merge-changelog: add doc relating to use with bzr and hg.
26087         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26088
26089 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26090
26091         pthread: fix pthread.h creation for srcdir != builddir
26092         * modules/pthread (Makefile.am): Fix the rule to work also in a
26093         non-srcdir build.
26094
26095 2010-08-13  Karl Berry  <karl@gnu.org>
26096
26097         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26098         * doc/posix-*/*: force line break before @url of POSIX
26099         specifications.
26100         Suggested by Werner Lemberg.
26101
26102 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26103
26104         strtod: fix const diagnostic
26105         * lib/strtod.c (strtod): Don't assign const char * to char *,
26106         as this elicits a warning from GCC when warnings are enabled.
26107
26108 2010-08-10  Pádraig Brady <P@draigbrady.com>
26109         and Eric Blake  <eblake@redhat.com>
26110
26111         copy-acl: ignore ENOTSUP on HP-UX
26112         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26113         so that it is available for HP-UX.
26114         * lib/copy-acl.c (qcopy_acl): Use it.
26115         Reported by Patrick M. Callahan.
26116
26117 2010-08-10  Eric Blake  <eblake@redhat.com>
26118
26119         open, chown: relax license
26120         * modules/open (License): Change to LGPLv2+, with consent by all
26121         authors, for use in augeas.
26122         * modules/chown (License): Likewise.
26123         * modules/lchown (Likewise): Likewise.
26124         Requested by Adam Stokes.
26125
26126 2010-08-09  Karl Berry  <karl@gnu.org>
26127
26128         * build-aux/ar-lib: new file, import from Automake.
26129         * config/srclist.txt: autocheck for updates.
26130
26131 2010-08-09  Eric Blake  <eblake@redhat.com>
26132
26133         readlinkat: adjust client modules
26134         * modules/areadlinkat (Depends-on): Use readlinkat, not
26135         symlinkat.
26136         * modules/areadlinkat-with-size (Depends-on): Likewise.
26137
26138         mknod: be more vocal about danger of running tests as root
26139         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26140         root, since that is just asking for problems.
26141         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26142
26143         readlinkat: split into its own module
26144         * modules/symlinkat: Split readlinkat...
26145         * modules/readlinkat: ...into separate module.
26146         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26147         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26148         * lib/symlinkat.c (readlinkat): Move...
26149         * lib/readlinkat.c: ...into new file.
26150         * modules/symlinkat-tests: Split readlinkat test...
26151         * modules/readlinkat-tests: ...into separate module.
26152         * tests/test-symlinkat.c: Split...
26153         * tests/test-readlinkat.c: ...into new file.
26154         * NEWS: Document the split.
26155         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26156         * lib/unistd.in.h (readlinkat): Likewise.
26157         Suggested by Bruno Haible.
26158
26159 2010-08-08  Bruno Haible  <bruno@clisp.org>
26160
26161         memxfrm: Speed up.
26162         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26163         that usually only one call to strxfrm is necessary for each string
26164         part.
26165         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26166
26167 2010-08-07  Karl Berry  <karl@gnu.org>
26168
26169         * doc/posix-headers/limits.texi,
26170         * doc/posix-functions/malloc.texi,
26171         * doc/posix-functions/strsignal.texi: missing @item.
26172         * doc/ld-version-script.texi: spurious leading i.
26173         * doc/regex.texi (Interval Operators): no commas inside @var.
26174
26175 2010-08-01  Bruno Haible  <bruno@clisp.org>
26176
26177         Integrate the regex documentation.
26178         * doc/gnulib.texi: Define 'cn' index.
26179         (Regular expressions): New a chapter that includes regex.texi and
26180         regexprops-generic.texi.
26181         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26182         syntax.
26183
26184         Whitespace cleanup.
26185         * doc/regex.texi: Remove trailing spaces.
26186
26187         Add regex documentation.
26188         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26189         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26190         Written by Kathy A. Hargreaves and Karl Berry.
26191
26192 2010-08-01  Bruno Haible  <bruno@clisp.org>
26193
26194         link: Update documentation.
26195         * doc/posix-functions/link.texi: Update regarding Solaris.
26196
26197 2010-07-31  Bruno Haible  <bruno@clisp.org>
26198
26199         Update modules list.
26200         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26201         (String handling <string.h>): Add memcmp2, memxfrm.
26202         (Container data structures): Add xlist, xsublist, xoset.
26203         (Core language properties): Add alignof, unused-parameter.
26204         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26205         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26206         (Unibyte characters <ctype.h>): New section.
26207         (String handling <string.h>): New section.
26208         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26209         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26210         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26211         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26212         tan, tanh, tanl, y0, y1, yn.
26213         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26214         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26215         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26216         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26217         unlockpt, vdprintf, vdprintf-posix.
26218         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26219         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26220         xconcat-filename.
26221         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26222         getdtablesize, pipe2, pipe2-safer.
26223         (Security): New section.
26224         (Networking functions): Add accept4.
26225         (Signal handling): Add sigpipe.
26226         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26227         mbmemcasecoll.
26228         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26229         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26230         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26231         pipe-filter-ii.
26232         (Misc): Add argp-version-etc, login_tty, parse-duration.
26233
26234 2010-07-31  Bruno Haible  <bruno@clisp.org>
26235
26236         Improve doc in MODULES.html.
26237         * modules/linkat (Description): Add the word "function".
26238         * modules/mkfifo (Description): Likewise.
26239         * modules/mknod (Description): Likewise.
26240         * modules/remove (Description): Likewise.
26241         * modules/renameat (Description): Likewise.
26242         * modules/stat (Description): Likewise.
26243         * modules/symlink (Description): Likewise.
26244         * modules/unlink (Description): Likewise.
26245
26246 2010-07-31  Bruno Haible  <bruno@clisp.org>
26247
26248         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26249         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26250         option --enable/disable-c++ instead of --enable/disable-cxx.
26251         * NEWS: Mention the change.
26252
26253 2010-07-31  Bruno Haible  <bruno@clisp.org>
26254
26255         readlink, areadlink: Relax test a bit.
26256         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26257         alternative to ENOTDIR.
26258         * tests/test-areadlink.h (test_areadlink): Likewise.
26259         Reported by Rainer Tammer.
26260
26261 2010-07-31  Bruno Haible  <bruno@clisp.org>
26262
26263         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26264         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26265         character, perform the search using U_STRCHR.
26266         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26267         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26268         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26269         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26270         Suggested by Paolo Bonzini.
26271
26272 2010-07-31  Bruno Haible  <bruno@clisp.org>
26273
26274         unistr/u*-strstr: Fix dependencies.
26275         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26276         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26277         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26278
26279 2010-07-31  Bruno Haible  <bruno@clisp.org>
26280
26281         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26282         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26283         the beginning of the loop.
26284         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26285         cases in 'switch' statement.
26286
26287         unistr/u8-strchr: Fix several bugs.
26288         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26289         the string. When not found, return NULL, not a pointer near the end.
26290
26291         More tests for unistr/u8-strchr.
26292         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26293         that the function does not read past the first occurrence of the byte
26294         being searched.
26295         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26296         * tests/unistr/test-u16-strchr.c (main): New function.
26297         * tests/unistr/test-u32-strchr.c (main): New function.
26298
26299 2010-07-31  Bruno Haible  <bruno@clisp.org>
26300
26301         posix-modules: Ignore backup files of documentation files.
26302         * posix-modules: grep only through files named *.texi.
26303
26304 2010-07-31  Bruno Haible  <bruno@clisp.org>
26305
26306         symlinkat: Fix documentation.
26307         * doc/posix-functions/readlinkat.texi: Fix module name.
26308
26309 2010-07-31  Bruno Haible  <bruno@clisp.org>
26310
26311         fchownat: Replace also when chown has the trailing slash bug.
26312         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26313         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26314         introduced on 2010-04-10.
26315         Reported by Rainer Tammer.
26316
26317 2010-07-31  Bruno Haible  <bruno@clisp.org>
26318
26319         linkat: Work around AIX 7.1 bug.
26320         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
26321         whether linkat handles trailing slash correctly. If not, replace linkat
26322         and define LINKAT_TRAILING_SLASH_BUG.
26323         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
26324         check whether (fd1,file1) points to a directory if file1 or file2 ends
26325         in a slash. Code taken from lib/link.c.
26326         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
26327         Reported by Rainer Tammer.
26328
26329 2010-07-31  Bruno Haible  <bruno@clisp.org>
26330
26331         Correctly determine whether pow is available in libc on AIX 7 with xlc.
26332         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
26333         This disables an xlc optimization that was causing wrong test results.
26334         Reported by Rainer Tammer.
26335
26336 2010-07-31  Bruno Haible  <bruno@clisp.org>
26337
26338         iconv: Work around AIX 6.1..7.1 bug.
26339         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
26340         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
26341         cross-compiling, guess no on all versions of AIX.
26342         Reported by Rainer Tammer.
26343
26344 2010-07-31  Bruno Haible  <bruno@clisp.org>
26345
26346         readlink: Relax test a bit.
26347         * tests/test-readlink.h (test_readlink): Allow different errno value
26348         when readlink is called with a file name that ends in / and refers to
26349         a file.
26350         Suggested by Eric Blake.
26351         Reported by Rainer Tammer.
26352
26353 2010-07-31  Bruno Haible  <bruno@clisp.org>
26354
26355         copysign: Does not require -lm on glibc systems.
26356         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
26357         gl_COMMON_DOUBLE_MATHFUNC.
26358         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26359
26360 2010-07-31  Bruno Haible  <bruno@clisp.org>
26361
26362         duplocale: Work around AIX 7.1 bug.
26363         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26364         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26365         * lib/duplocale.c (rpl_duplocale): Update comment.
26366         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26367         Reported by Rainer Tammer.
26368
26369 2010-07-30  Bruno Haible  <bruno@clisp.org>
26370
26371         dirfd: Avoid link error on AIX 7.1.
26372         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26373         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26374         exist, set REPLACE_DIRFD.
26375         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26376         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26377         * doc/posix-functions/dirfd.texi: Update.
26378         Reported by Rainer Tammer.
26379
26380 2010-07-30  Eric Blake  <eblake@redhat.com>
26381
26382         strtod: next round of AIX fixes
26383         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26384         exponent.
26385         * tests/test-strtod.c (main): Enhance tests.
26386         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26387         Reported by Rainer Tammer.
26388
26389         futimens: fix configure check
26390         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26391         Reported by Bruno Haible.
26392
26393 2010-07-30  Bruno Haible  <bruno@clisp.org>
26394
26395         getline: Update regarding AIX.
26396         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
26397         Reported by Rainer Tammer.
26398
26399 2010-07-30  Bruno Haible  <bruno@clisp.org>
26400
26401         wcwidth: Drop replacement on AIX 7.
26402         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
26403         AIX 7.
26404         Reported by Rainer Tammer.
26405
26406 2010-07-30  Bruno Haible  <bruno@clisp.org>
26407
26408         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
26409         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
26410         a 'char *'.
26411         Reported by Rainer Tammer.
26412
26413 2010-07-30  Bruno Haible  <bruno@clisp.org>
26414
26415         unlink: Update regarding AIX.
26416         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
26417         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
26418         Reported by Rainer Tammer.
26419
26420 2010-07-30  Bruno Haible  <bruno@clisp.org>
26421
26422         symlink: Update regarding AIX.
26423         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
26424         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
26425         Reported by Rainer Tammer.
26426
26427 2010-07-30  Bruno Haible  <bruno@clisp.org>
26428
26429         strndup: Update regarding AIX.
26430         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
26431         AIX 7.
26432         Reported by Rainer Tammer.
26433
26434 2010-07-30  Bruno Haible  <bruno@clisp.org>
26435
26436         stat: Update regarding AIX.
26437         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
26438         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
26439         Reported by Rainer Tammer.
26440
26441 2010-07-30  Bruno Haible  <bruno@clisp.org>
26442
26443         truncl: Fix autoconf test.
26444         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
26445         whether truncl works.
26446         Reported by Rainer Tammer.
26447
26448 2010-07-30  Bruno Haible  <bruno@clisp.org>
26449
26450         round: Update regarding AIX.
26451         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
26452         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
26453         Reported by Rainer Tammer.
26454
26455 2010-07-30  Bruno Haible  <bruno@clisp.org>
26456
26457         rename: Update regarding AIX.
26458         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
26459         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
26460         Reported by Rainer Tammer.
26461
26462 2010-07-30  Bruno Haible  <bruno@clisp.org>
26463
26464         printf.m4: Update regarding AIX.
26465         * m4/printf.m4: Update comments regarding AIX.
26466         Reported by Rainer Tammer.
26467
26468 2010-07-30  Bruno Haible  <bruno@clisp.org>
26469
26470         iconv: Update regarding AIX.
26471         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
26472         AIX 7.
26473         Reported by Rainer Tammer.
26474
26475 2010-07-30  Bruno Haible  <bruno@clisp.org>
26476
26477         getopt: Update regarding AIX.
26478         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
26479         no on AIX.
26480         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
26481         Reported by Rainer Tammer.
26482
26483 2010-07-30  Bruno Haible  <bruno@clisp.org>
26484
26485         ldexpl; Update regarding AIX.
26486         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
26487         on AIX 7.
26488         Reported by Rainer Tammer.
26489
26490 2010-07-30  Bruno Haible  <bruno@clisp.org>
26491
26492         frexpl: Update regarding AIX.
26493         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
26494         on AIX 7.
26495         Reported by Rainer Tammer.
26496
26497 2010-07-30  Bruno Haible  <bruno@clisp.org>
26498
26499         open, fopen: Update regarding AIX.
26500         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
26501         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26502         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
26503         * doc/posix-functions/fopen.texi: Likewise.
26504         Reported by Rainer Tammer.
26505
26506 2010-07-30  Bruno Haible  <bruno@clisp.org>
26507
26508         chown: Update doc regarding AIX.
26509         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26510         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26511         Reported by Rainer Tammer.
26512
26513 2010-07-30  Eric Blake  <eblake@redhat.com>
26514
26515         strtod: fix bug in replacement function on AIX
26516         * lib/strtod.c (strtod): Special case broken "0x" parse in
26517         underlying strtod.
26518         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26519         * doc/posix-functions/strtod.texi (strtod): Likewise.
26520         Reported by Rainer Tammer.
26521
26522 2010-07-30  Bruno Haible  <bruno@clisp.org>
26523
26524         mbrlen: Fix cross-compilation guess for AIX.
26525         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26526         guess. Leftover from 2008-12-22.
26527
26528 2010-07-30  Bruno Haible  <bruno@clisp.org>
26529
26530         mbrtowc: Fix cross-compilation guess for AIX.
26531         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26532         guess. Leftover from 2008-12-21.
26533
26534 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26535
26536         init.sh: work around trap limitation of some shells
26537         * tests/init.sh (setup_): Move exit trap outside of shell function.
26538
26539 2010-07-29  Eric Blake  <eblake@redhat.com>
26540
26541         strtod: aid debugging
26542         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26543         understanding why strtod is rejected.
26544
26545 2010-07-28  Bruno Haible  <bruno@clisp.org>
26546
26547         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26548         * lib/unistr/u8-chr.c: Include <string.h>.
26549         * tests/unistr/test-u8-chr.c: Likewise.
26550         * tests/unistr/test-u16-chr.c: Likewise.
26551         * tests/unistr/test-u32-chr.c: Likewise.
26552         * tests/unistr/test-u8-strchr.c: Likewise.
26553         * tests/unistr/test-u16-strchr.c: Likewise.
26554         * tests/unistr/test-u32-strchr.c: Likewise.
26555         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26556         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26557         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26558         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26559
26560 2010-07-28  Bruno Haible  <bruno@clisp.org>
26561
26562         Use spaces for indentation, not tabs.
26563         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26564
26565 2010-07-27  Bruno Haible  <bruno@clisp.org>
26566
26567         mbspcasecmp: Fix function specification.
26568         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26569         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26570         Reported by Eric Blake <eblake@redhat.com>.
26571
26572 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26573
26574         timespec: use cast and not conditional, as truncation isn't possible
26575         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26576         instead of a conditional.  Comment about the situation in more detail.
26577         This undoes most of the 2009-10-29 patch.
26578
26579 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26580
26581         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26582         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26583         * lib/unistr/u8-strchr.c: Likewise.
26584         * modules/unistr/u8-chr: Depend on memchr.
26585
26586         unistr/u*-strchr: add tests
26587         * modules/unistr/u8-strchr-tests: New file.
26588         * modules/unistr/u16-strchr-tests: New file.
26589         * modules/unistr/u32-strchr-tests: New file.
26590         * tests/unistr/test-strchr.h: New file.
26591         * tests/unistr/test-u8-strchr.c: New file.
26592         * tests/unistr/test-u16-strchr.c: New file.
26593         * tests/unistr/test-u32-strchr.c: New file.
26594
26595         unistr/u*-chr: test multibyte sequences more
26596         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26597         test vector.
26598         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26599         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26600         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26601
26602         unistr/u*-chr: test multibyte sequences
26603         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26604
26605         unistr/u*-chr: prepare for multibyte tests
26606         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26607         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26608         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26609         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26610         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26611         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26612
26613 2010-07-18  Bruno Haible  <bruno@clisp.org>
26614
26615         unistr/u8-strchr: Optimize non-ASCII argument case.
26616         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26617         because the first byte often matches anyway.
26618         Reported by Pádraig Brady <P@draigbrady.com>.
26619
26620 2010-07-15  Karl Berry  <karl@gnu.org>
26621
26622         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26623
26624 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26625
26626         getcwd: on Solaris, work better if ancestors are inaccessible
26627         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26628         buffer and size, try again with a large buffer.  This works better
26629         on Solaris, since its getcwd succeeds even if the path to the root
26630         is inaccessible, and this is helpful in common cases such as .zfs
26631         hidden directories.  Problem reported by J Chapman Flack in
26632         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26633         Use system getcwd if it's declared, not merely if it's partly
26634         working; use the partly-working test only to avoid needless effort
26635         if the system getcwd fails.
26636         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26637         comment that was already obsolete and is now even more obsolete.
26638         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26639         now might call strdup.
26640
26641 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26642
26643         pthread: Add enough so that coreutils/src/sort.c compiles.
26644         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26645         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26646         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26647         Include <sys/types.h>, in case it defines pthread_t.
26648         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26649         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26650         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26651         (pthread_rwlockattr_t, pthread_spinlock_t):
26652         New typedefs, if HAVE_PTHREAD_T is not defined.
26653         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26654         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26655         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26656         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26657         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
26658         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
26659         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
26660         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
26661         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
26662         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
26663         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
26664         New macros.
26665         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26666         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
26667         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
26668         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
26669         (pthread_spin_unlock): New dummy functions.
26670         (pthread_create): Return EAGAIN; don't set errno.
26671         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
26672         require AC_C_INLINE.
26673         * modules/pthread (Depends-on): Add sched, time.
26674         (pthread.h): Use AM_V_GEN.
26675
26676 2010-07-13  Bruno Haible  <bruno@clisp.org>
26677
26678         striconveh: Don't malloc memory if the result buffer is sufficient.
26679         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
26680         buffer if its size is sufficient.
26681         Reported by Ludovic Courtès <ludo@gnu.org>.
26682
26683 2010-07-13  Bruno Haible  <bruno@clisp.org>
26684
26685         strtod: Add safety check.
26686         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
26687
26688 2010-07-12  Bruno Haible  <bruno@clisp.org>
26689
26690         Unify tests that set gl_cv_func_ldexpl_no_libm.
26691         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
26692         gl_FUNC_LDEXPL.
26693         (gl_FUNC_LDEXPL): Invoke it.
26694         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26695
26696 2010-07-12  Bruno Haible  <bruno@clisp.org>
26697
26698         Unify tests that set gl_cv_func_ldexp_no_libm.
26699         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
26700         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
26701         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
26702         (configure.ac): Simply invoke gl_FUNC_LDEXP.
26703         * modules/strtod (Files): Add m4/ldexp.m4.
26704
26705 2010-07-12  Bruno Haible  <bruno@clisp.org>
26706
26707         Unify tests that set gl_cv_func_frexpl_no_libm.
26708         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
26709         gl_FUNC_FREXPL_NO_LIBM.
26710         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
26711         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26712
26713 2010-07-12  Bruno Haible  <bruno@clisp.org>
26714
26715         Unify tests that set gl_cv_func_frexp_no_libm.
26716         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
26717         gl_FUNC_FREXP_NO_LIBM.
26718         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
26719         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26720
26721 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26722
26723         memcoll: clarify sizes versus lengths, document better, and tweak perf
26724         * lib/memcoll.c (strcoll_loop, memcoll0):
26725         Improve quality of descriptive comments.  Name variables
26726         consistently as to whether they are lengths (which do not include
26727         terminating null) versus sizes (which do).
26728         * lib/xmemcoll.c (xmemcoll0): Likewise.
26729         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
26730         returned when s1size == 0; this is easier to compile and saves
26731         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
26732
26733 2010-07-12  Bruno Haible  <bruno@clisp.org>
26734
26735         Tests for module '_Exit'.
26736         * modules/_Exit-tests: New file.
26737         * tests/test-_Exit.sh: New file.
26738         * tests/test-_Exit.c: New file.
26739
26740         New module '_Exit'.
26741         * lib/stdlib.in.h (__attribute__): New macro.
26742         (_Exit): New declaration.
26743         * lib/_Exit.c: New file.
26744         * m4/_Exit.m4: New file.
26745         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
26746         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
26747         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
26748         * modules/_Exit: New file.
26749         * tests/test-stdlib-c++.cc (_Exit): Check signature.
26750         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
26751
26752 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26753
26754         strtod: make it more-accurate typically, and don't require libm
26755         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
26756         Include limits.h.  Don't include string.h.
26757         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
26758         (locale_isspace): New function, so that no casts are needed to
26759         check whether *s is a space.
26760         (ldexp): Provide an unused dummy if not available.
26761         (scale_radix_exp, parse_number, underlying_strtod): New functions.
26762         (strtod): Use them.  This implementation prefers to use the
26763         underlying strtod if available, falling back on our own code
26764         only to fix known bugs.  This is more likely to produce an
26765         accurate result.  Also, it avoids the use of libm functions.
26766         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
26767         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
26768         was absent, but it caused a test failure with coreutils.
26769         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
26770         with libm.
26771         * modules/strtod (Makefile.am, Link): libm is no longer needed.
26772         * modules/strtod-tests (Makefile.am): Likewise.
26773
26774 2010-07-11  Pádraig Brady  <P@draigBrady.com>
26775             Bruno Haible  <bruno@clisp.org>
26776
26777         unistr/u8-strchr: Optimize ASCII argument case.
26778         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
26779
26780 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26781
26782         (x)memcoll: minor tweaks
26783         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
26784         is after the type that it qualifies.
26785         (memcoll0): Likewise.
26786         * lib/memcoll.h (memcoll0): Likewise.
26787         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
26788         * lib/xmemcoll.h (xmemcoll0): Likewise.
26789         * lib/memcoll.c (memcoll0): Correct the comment.  This function
26790         differs from memcoll in that the NUL byte is part of the argument.
26791         Omit the abort-checks, as performance is a real issue here.  Plus,
26792         the checks were wrong anyway (an off-by-one error).  Omit local
26793         variable 'diff', as it's a bit clearer that way.
26794         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
26795         no longer needed.
26796
26797 2010-07-08  Chen Guo <chenguo4@yahoo.com>
26798
26799         (x)memcoll: speedup when input is known to be NUL delimited
26800         * lib/memcoll.c: Include stdlib.
26801         (memcoll0): New function.
26802         (strcoll_loop): New function, refactored for use in both memcoll
26803         and memcoll0.
26804         * lib/memcoll.h (memcoll0): Add prototype.
26805         * lib/xmemcoll.c (xmemcoll0): New function.
26806         (collate_error): New function, refactored for use in both xmemcoll
26807         and xmemcoll0.
26808         * lib/xmemcoll.h (xmemcoll0): Add prototype.
26809         * m4/memcoll.m4: add inline invocation.
26810
26811 2010-07-06  Pádraig Brady  <P@draigBrady.com>
26812
26813         * build-aux/bootstrap: Remove any local translations
26814         from the translation project synchronization directory,
26815         so that local only translations are not distributed.
26816
26817 2010-07-04  Bruno Haible  <bruno@clisp.org>
26818
26819         fsusage: Clarify which code applies to which platforms.
26820         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
26821         platform.
26822         * lib/fsusage.c (get_fs_usage): Likewise.
26823
26824 2010-07-04  Bruno Haible  <bruno@clisp.org>
26825
26826         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
26827         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
26828         Reported by Martin Lambers <marlam@marlam.de>.
26829
26830 2010-07-04  Jim Meyering  <meyering@redhat.com>
26831
26832         hash: once again explicitly disallow insertion of NULL
26833         * lib/hash.c (hash_insert0): Reinstate just-removed test:
26834         inserting a NULL pointer cannot work with these functions.
26835         Add a comment with details.
26836         This reverts part of the 2010-07-01 commit, 5bef1a35
26837         "hash: extend module to deal with non-pointer keys".
26838
26839 2010-07-01  Bruno Haible  <bruno@clisp.org>
26840
26841         stdbool: Update doc.
26842         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
26843         Info from Christian Weisgerber <naddy@mips.inka.de>.
26844
26845 2010-07-01  Jim Meyering  <meyering@redhat.com>
26846
26847         hash: extend module to deal with non-pointer keys
26848         * lib/hash.c (hash_insert0): New interface, much like hash_insert
26849         but that allows insertion of non-pointer entries.
26850         Do not disallow an ENTRY value of NULL.
26851         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
26852         * lib/hash.h (hash_insert0): Declare.
26853
26854 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26855
26856         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
26857         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
26858         not present (i.e. with autoconf 2.59 and when using gettextize, not
26859         gnulib), require AC_GNU_SOURCE instead.
26860
26861 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
26862
26863         idpriv-drop: Fix tests.
26864         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
26865         not to the test-idpriv-droptemp program.
26866
26867 2010-06-29  Bruno Haible  <bruno@clisp.org>
26868
26869         string: Fix syntax error with g++ 2.96.
26870         * lib/string.in.h (__pure__): Remove definition.
26871         (_GL_ATTRIBUTE_PURE): New macro.
26872         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
26873         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
26874         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26875
26876 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
26877
26878         unitypes: Fix bug introduced on 2010-05-18.
26879         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
26880
26881 2010-06-22  Eric Blake  <eblake@redhat.com>
26882
26883         memmem: slight optimization
26884         * lib/str-two-way.h (critical_factorization): Update comments.
26885         Reduce work during factorization phase.
26886         Reported by Carlos Bueno <carlos@bueno.org>.
26887
26888 2010-06-21  Bruno Haible  <bruno@clisp.org>
26889
26890         Fix HAVE_CALLOC_POSIX misnomer.
26891         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
26892         !HAVE_CALLOC_POSIX.
26893         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
26894         HAVE_CALLOC_POSIX.
26895         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
26896         instead of HAVE_CALLOC_POSIX.
26897         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
26898         HAVE_CALLOC_POSIX.
26899
26900         Use modern idiom for calloc() replacement.
26901         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
26902         AC_FUNC_CALLOC.
26903         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
26904         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
26905         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26906         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
26907         (gl_REPLACE_CALLOC): New macro.
26908
26909 2010-06-21  Bruno Haible  <bruno@clisp.org>
26910
26911         Fix HAVE_REALLOC_POSIX misnomer.
26912         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
26913         !HAVE_REALLOC_POSIX.
26914         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
26915         HAVE_REALLOC_POSIX.
26916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
26917         instead of HAVE_REALLOC_POSIX.
26918         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
26919         HAVE_REALLOC_POSIX.
26920
26921         Use modern idiom for realloc() replacement.
26922         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
26923         AC_FUNC_REALLOC.
26924         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
26925         Autoconf's AC_FUNC_REALLOC.
26926         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26927         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
26928         (gl_REPLACE_REALLOC): New macro.
26929         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26930
26931 2010-06-21  Bruno Haible  <bruno@clisp.org>
26932
26933         Fix HAVE_MALLOC_POSIX misnomer.
26934         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
26935         !HAVE_MALLOC_POSIX.
26936         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
26937         HAVE_MALLOC_POSIX.
26938         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
26939         instead of HAVE_MALLOC_POSIX.
26940         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
26941         HAVE_MALLOC_POSIX.
26942
26943         Use modern idiom for malloc() replacement.
26944         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
26945         AC_FUNC_MALLOC.
26946         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
26947         Autoconf's AC_FUNC_MALLOC.
26948         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26949         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
26950         (gl_REPLACE_MALLOC): New macro.
26951         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26952
26953 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
26954
26955         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
26956         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
26957         This macro takes 3 arguments, not 4.
26958
26959 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
26960
26961         ipv6: fix detection under mingw
26962         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
26963         in6_addr.
26964
26965 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
26966
26967         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
26968         that strtod() works when cross-compiling to a glibc version known
26969         to work.
26970
26971 2010-06-15  Bruno Haible  <bruno@clisp.org>
26972
26973         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
26974
26975 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
26976
26977         select: Correct timeout.
26978         * lib/select.c (rpl_select): Compute wait_timeout correctly.
26979
26980 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26981
26982         git-version-gen: init shell var to avoid env var influence
26983         * build-aux/git-version-gen (v): Init shell var to empty.
26984
26985 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
26986
26987         priv-set: Don't assume that priv.h exists merely because getppriv does.
26988         See Jan Andersen's bug report about AIX 5L in
26989         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
26990         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
26991         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
26992         * lib/priv-set.h: Likewise.
26993         * tests/test-priv-set.c: Likewise.
26994
26995 2010-06-13  Bruno Haible  <bruno@clisp.org>
26996
26997         relocatable: Make it easier to test whether to install wrappers.
26998         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
26999         RELOCATABLE_VIA_WRAPPER.
27000
27001 2010-06-13  Bruno Haible  <bruno@clisp.org>
27002
27003         gnulib-tool: Display specified modules and dependencies differently.
27004         * gnulib-tool (func_show_module_list): New function.
27005         (func_import, func_create_testdir): Invoke it.
27006         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27007
27008 2010-06-13  Bruno Haible  <bruno@clisp.org>
27009
27010         gnulib-tool: Align code of func_import and func_create_testdir.
27011         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27012         specified_modules.
27013
27014 2010-06-12  Jim Meyering  <meyering@redhat.com>
27015
27016         test-inttostr: avoid spurious failure on Solaris 9
27017         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27018         to accept "%ju".  Reported by Bruno Haible.
27019
27020 2010-06-11  Jim Meyering  <meyering@redhat.com>
27021
27022         test-sys_socket: mark variables as used more readably
27023         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27024         as "used" explicitly via (void) statement casts.  This is more
27025         readable than using them in an artificial return expression.
27026         Suggestion from Bruno Haible.
27027
27028 2010-06-11  Bruno Haible  <bruno@clisp.org>
27029
27030         Avoid some more warnings from "gcc -Wwrite-strings".
27031         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27032         to 'const char *'.
27033         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27034         * tests/test-c-strcasestr.c (main): Likewise.
27035         * tests/test-mbscasestr1.c (main): Likewise.
27036         * tests/test-mbscasestr2.c (main): Likewise.
27037         * tests/test-memmem.c (main): Likewise.
27038         * tests/test-strstr.c (main): Likewise.
27039         * tests/test-strcasestr.c (main): Likewise.
27040
27041 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27042
27043         init.sh: change framework_failure_ to fail with status 99, not 1
27044         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27045         automake's parallel-tests rule that this is an unexpected failure,
27046         even if the test is listed in XFAIL_TESTS.
27047
27048 2010-06-11  Jim Meyering  <meyering@redhat.com>
27049
27050         test-inttostr: avoid warnings about 4-6KB literal strings
27051         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27052         Include "macros.h", for its definition of ASSERT.
27053         (CK): s/assert/ASSERT/
27054         * modules/inttostr-tests (Files): Add macros.h.
27055
27056         init.sh: don't use $ME_ or skip_ before they are defined
27057         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27058         their first uses.  Also hoist their companions: warn_, fail_,
27059         framework_failure_, $stderr_fileno.  Prompted by a patch from
27060         Stefano Lattarini.
27061
27062         test-sys_socket: avoid set-but-not-used warnings from gcc
27063         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27064         avoid warning about set-but-not-used variables.
27065
27066         test-xvasprintf: avoid 'const' discard warnings
27067         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27068         "const" when assigning from literal strings.
27069         (test_xasprintf): Add "void" in function argument list to placate
27070         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27071
27072         tests: avoid compilation warnings in argmatch and exclude tests...
27073         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27074         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27075         Since it always exits, declare with the "noreturn" attribute.
27076         * tests/test-argmatch.c: Likewise.
27077
27078         tests: avoid 'const' discard warnings in mbsstr tests
27079         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27080         * tests/test-mbsstr2.c (main): Likewise.
27081
27082         test-verify: avoid warning from gcc's -Wmissing-declarations
27083         * tests/test-verify.c (function): Declare to be static.
27084
27085         test-inttostr.c: include <string.h> for use of strcmp
27086         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27087
27088         test-linkat: avoid failed assertion on "other" architectures
27089         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27090         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27091         sparc: https://bugs.launchpad.net/bugs/591968
27092
27093 2010-06-11  Jim Meyering  <meyering@redhat.com>
27094
27095         printf.m4: avoid autoconf's "Expanded Before Required" warning
27096         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27097         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27098         autoconf warning.
27099
27100 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27101
27102         Replacement header templates are now named with ".in", not "_".
27103         * doc/gnulib-intro.texi: Correct.
27104
27105 2010-06-10  Jim Meyering  <meyering@redhat.com>
27106
27107         inttostr-tests: depend on snprintf, not snprintf-posix
27108         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27109         snprintf-posix, to avoid this aclocal failure:
27110           missing file gnulib-tests/vasnprintf.c
27111           configure.ac:45: error: expected source file, required through \
27112           AC_LIBSOURCES, not found
27113
27114 2010-06-10  Jim Meyering  <meyering@redhat.com>
27115
27116         inttostr: add a new function, inttostr, and tests
27117         The namesake function was not available.  The existence of the
27118         template file, inttostr.c makes its addition nontrivial.
27119         * lib/anytostr.c: Rename from inttostr.c.
27120         (anytostr): Rename from inttostr.
27121         * lib/inttostr.c: New file.
27122         * modules/inttostr (Files): Add anytostr.c.
27123         (Makefile.am): Set lib_SOURCES instead of ...
27124         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27125         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27126         * lib/offtostr.c: Likewise.
27127         * lib/uinttostr.c: Likewise.
27128         * lib/umaxtostr.c: Likewise.
27129         * modules/inttostr-tests: New file.
27130         * tests/test-inttostr.c: New file.  Test these functions.
27131
27132 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27133             Bruno Haible  <bruno@clisp.org>
27134
27135         Add "Extending Gnulib" chapter to manual.
27136         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27137         chapter.
27138         (Extending Gnulib): New chapter.
27139         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27140         chapter.
27141
27142 2010-06-09  Bruno Haible  <bruno@clisp.org>
27143
27144         Avoid relocwrapper link errors due to gnulib replacement functions.
27145         * lib/areadlink.c: Use the system's malloc, realloc functions.
27146         (areadlink): Set errno to ENOMEM explicitly.
27147         * modules/areadlink (Depends-on): Remove malloc-posix.
27148         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27149
27150 2010-06-09  Bruno Haible  <bruno@clisp.org>
27151
27152         Avoid relocwrapper link errors due to gnulib replacement functions.
27153         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27154         * lib/malloca.c: Likewise.
27155         * lib/relocatable.c: Likewise.
27156         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27157         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27158         * lib/setenv.c: Use the system's malloc, realloc functions.
27159         * lib/strerror.c: Use the system's sprintf function.
27160         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27161
27162 2010-06-04  Bruno Haible  <bruno@clisp.org>
27163
27164         Prefer documented low-level autoconf macro names.
27165         * m4/lib-link.m4: Use m4_translit instead of translit.
27166         * m4/environ.m4: Likewise.
27167         * m4/mathfunc.m4: Likewise.
27168         * m4/onceonly.m4: Likewise.
27169         * m4/stdint.m4: Likewise.
27170         Suggested by Eric Blake.
27171
27172 2010-06-04  Martin Lambers  <marlam@marlam.de>
27173             Bruno Haible  <bruno@clisp.org>
27174
27175         havelib: Allow library names with '+' characters.
27176         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27177         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27178
27179 2010-06-09  Bruno Haible  <bruno@clisp.org>
27180
27181         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27182         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27183         realloc failed.
27184
27185 2010-06-08  Peter Simons  <simons@cryp.to>
27186
27187         maint.mk: make the news-check rule more configurable
27188         * top/maint.mk (news-check-lines-spec): New variable.
27189         (news-check): Use "sed -n 1,10p" in place of "head".
27190
27191 2010-06-07  Jim Meyering  <meyering@redhat.com>
27192
27193         do-release-commit-and-tag: fix typo in --help
27194         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27195
27196         regex: avoid new dead-code warning with gcc-4.6.0
27197         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27198         if-block containing a while-loop.  It's been unused for at least
27199         5 years.
27200
27201 2010-06-05  Bruno Haible  <bruno@clisp.org>
27202
27203         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27204         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27205
27206 2010-06-04  Bruno Haible  <bruno@clisp.org>
27207
27208         Update to GNU gettext 0.18.1.
27209         * modules/gettext (configure.ac): Require gettext infrastructure from
27210         version 0.18.1.
27211
27212 2010-06-03  Bruno Haible  <bruno@clisp.org>
27213
27214         Don't use AC_LIBOBJ with file names in subdirectories.
27215         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27216         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27217         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27218         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27219         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27220         gl_LIBUNISTRING_LIBSOURCE.
27221         (Makefile.am): Augment lib_SOURCES here, conditionally.
27222         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27223
27224 2010-06-03  Bruno Haible  <bruno@clisp.org>
27225
27226         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27227         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27228         expansion does not end with a newline.
27229         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27230         unnecessary newline.
27231
27232 2010-06-03  Bruno Haible  <bruno@clisp.org>
27233
27234         Reduce dependencies.
27235         * tests/test-quotearg.h: New file, extracted from
27236         tests/test-quotearg.c.
27237         * tests/test-quotearg-simple.c: New file, extracted from
27238         tests/test-quotearg.c.
27239         * tests/test-quotearg.c: Don't include <ctype.h>.
27240         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27241         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27242         use_quote_double_quotes, use_quotearg_colon): Moved to
27243         tests/test-quotearg.h.
27244         (results_g, flag_results, custom_quotes, custom_results): Moved
27245         to tests/test-quotearg-simple.c.
27246         (main): Moved the part that does not depend on gettext to
27247         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27248         performed.
27249         * modules/quotearg-simple: New file.
27250         * modules/quotearg-simple-tests: New file.
27251         * modules/quotearg (Depends-on): Add quotearg-simple.
27252         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27253         (Files): Add tests/test-quotearg.h.
27254         Reported by Paolo Bonzini.
27255
27256 2010-06-03  Bruno Haible  <bruno@clisp.org>
27257
27258         Reduce dependencies.
27259         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27260
27261 2010-06-03  Bruno Haible  <bruno@clisp.org>
27262
27263         time: Undefine more broken macros.
27264         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27265         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27266         Reported by Eric Blake.
27267
27268 2010-06-03  Bruno Haible  <bruno@clisp.org>
27269
27270         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27271         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27272         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27273         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27274         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27275         Reported by Ludovic Courtès <ludo@gnu.org>.
27276
27277 2010-06-02  Eric Blake  <eblake@redhat.com>
27278
27279         time: work with mingw + pthreads-win32 library
27280         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27281         if timespec is defined only in pthread.h.
27282         * modules/time (Makefile.am): Substitute it.
27283         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27284         <pthread.h>, when needed.
27285         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27286         from the library.
27287
27288 2010-05-31  Bruno Haible  <bruno@clisp.org>
27289
27290         Avoid expanding two macros in the wrong order.
27291         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27292         gl_LIBUNISTRING if it is defined.
27293         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27294         autoconf >= 2.64.
27295         Reported by Ludovic Courtès <ludo@gnu.org>.
27296
27297 2010-05-27  Jim Meyering  <meyering@redhat.com>
27298
27299         maint.mk: also prohibit "#undef" of always-defined symbols
27300         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27301         Allow more than one space before the symbol name.
27302         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27303         the regexp uses alternation.
27304
27305 2010-05-26  Eric Blake  <eblake@redhat.com>
27306
27307         maint.mk: avoid echo -e
27308         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27309         Convert all uses of echo -* to printf.
27310         Reported by Matthias Bolte.
27311
27312 2010-05-25  Bruno Haible  <bruno@clisp.org>
27313
27314         Update to GNU gettext 0.18, part 2.
27315         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27316         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27317
27318 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27319
27320         Add missing include in test-pwrite.c.
27321         * tests/test-pwrite.c: Include string.h, for strcmp.
27322
27323 2010-05-24  Bruno Haible  <bruno@clisp.org>
27324
27325         * NEWS: Mention requirement for Automake option 'subdir-objects'.
27326
27327 2010-05-24  Bruno Haible  <bruno@clisp.org>
27328
27329         Don't use conversion with transliteration in u{8,16,32}_strcoll.
27330         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
27331         iconveh_error argument.
27332         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
27333         U_STRCONV_TO_LOCALE.
27334         * lib/unistr/u16-strcoll.c: Likewise.
27335         * lib/unistr/u32-strcoll.c: Likewise.
27336         * modules/unistr/u8-strcoll (Depends-on): Add
27337         uniconv/u8-strconv-to-enc, localcharset. Remove
27338         uniconv/u8-strconv-to-locale.
27339         (configure.ac): Bump version number.
27340         * modules/unistr/u16-strcoll (Depends-on): Add
27341         uniconv/u16-strconv-to-enc, localcharset. Remove
27342         uniconv/u16-strconv-to-locale.
27343         (configure.ac): Bump version number.
27344         * modules/unistr/u32-strcoll (Depends-on): Add
27345         uniconv/u32-strconv-to-enc, localcharset. Remove
27346         uniconv/u32-strconv-to-locale.
27347         (configure.ac): Bump version number.
27348
27349 2010-05-24  Bruno Haible  <bruno@clisp.org>
27350
27351         Avoid a test failure on NetBSD 5.0.
27352         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
27353         an iconv() bug.
27354
27355 2010-05-24  Bruno Haible  <bruno@clisp.org>
27356
27357         Adjust #include directive style.
27358         * modules/regex (Includes): Recommend to write <regex.h>.
27359
27360 2010-05-24  Bruno Haible  <bruno@clisp.org>
27361
27362         regex: Don't require alloca.
27363         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27364         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27365         only inside if (0).
27366
27367 2010-05-23  Jim Meyering  <meyering@redhat.com>
27368
27369         test-renameat.c: include <sys/stat.h>
27370         * tests/test-renameat.c: Include <sys/stat.h>; required for
27371         definition of S_IS* macros.
27372
27373 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27374
27375         Update maintainer documentation for 'relocatable-prog' module.
27376         * doc/relocatable-maint.texi: Update.
27377         Comments by Bruno Haible.
27378
27379 2010-05-23  Bruno Haible  <bruno@clisp.org>
27380
27381         git-merge-changelog: Enable --split-merged-entry by default.
27382         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27383         (usage): Don't mention this option any more.
27384         Reported by Ralf Wildenhues.
27385
27386 2010-05-23  Jim Meyering  <meyering@redhat.com>
27387
27388         test-pwrite: do not leave behind a test file named "out"
27389         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27390         The trivial-looking use of init.sh is really necessary.
27391         It ensures that the temporary file, "out", is created in
27392         a temporary directory, and removed upon termination.
27393         * tests/test-pwrite.sh: Re-add file.
27394         * modules/pwrite-tests: Reference it.
27395
27396 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27397
27398         Fix output redirection buglet in init.sh.
27399         * tests/init.sh: Fix redirection of stderr.
27400
27401 2010-05-20  Simon Josefsson  <simon@josefsson.org>
27402
27403         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
27404
27405 2010-05-17  Simon Josefsson  <simon@josefsson.org>
27406
27407         * modules/valgrind-tests: New file.
27408         * m4/valgrind-tests.m4: New file.
27409         * doc/valgrind-tests.texi: New file.
27410         * doc/gnulib.texi (Running self-tests under valgrind): New
27411         section.
27412
27413 2010-05-19  Bruno Haible  <bruno@clisp.org>
27414
27415         Clean up dead code in recent commit.
27416         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
27417         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
27418         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
27419         Suggested by Paolo Bonzini.
27420
27421 2010-05-19  Bruno Haible  <bruno@clisp.org>
27422
27423         Avoid valgrind error reports from libunistring.
27424         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
27425         * modules/libunistring (Files): Add it.
27426         * modules/libunistring-optional (Files): Likewise.
27427
27428 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
27429             Bruno Haible  <bruno@clisp.org>
27430
27431         New module 'libunistring-optional'.
27432         * modules/libunistring-optional: New file.
27433         * m4/libunistring-base.m4: New file.
27434         * m4/libunistring-optional.m4: New file.
27435         * lib/unicase.in.h: Renamed from lib/unicase.h.
27436         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
27437         * lib/unictype.in.h: Renamed from lib/unictype.h.
27438         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
27439         * lib/uniname.in.h: Renamed from lib/uniname.h.
27440         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
27441         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
27442         * lib/unistr.in.h: Renamed from lib/unistr.h.
27443         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
27444         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
27445         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
27446         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
27447         gl_LIBUNISTRING. If the library was found, determine the installed
27448         version and set LIBUNISTRING_VERSION.
27449         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
27450         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
27451         handle a configuration option --with-included-libunistring.
27452         * modules/libunistring (Files): Add m4/absolute-header.m4.
27453         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
27454         Add m4/libunistring-base.m4.
27455         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27456         (Makefile.am): Build unicase.h from unicase.in.h.
27457         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
27458         Add m4/libunistring-base.m4.
27459         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27460         (Makefile.am): Build uniconv.h from uniconv.in.h.
27461         * modules/unictype/base (Files): Use unictype.in.h instead of
27462         unictype.h. Add m4/libunistring-base.m4.
27463         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27464         (Makefile.am): Build unictype.h from unictype.in.h.
27465         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
27466         Add m4/libunistring-base.m4.
27467         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27468         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
27469         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
27470         Add m4/libunistring-base.m4.
27471         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27472         (Makefile.am): Build uniname.h from uniname.in.h.
27473         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
27474         Add m4/libunistring-base.m4.
27475         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27476         (Makefile.am): Build uninorm.h from uninorm.in.h.
27477         * modules/unistdio/base (Files): Use unistdio.in.h instead of
27478         unistdio.h. Add m4/libunistring-base.m4.
27479         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27480         (Makefile.am): Build unistdio.h from unistdio.in.h.
27481         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
27482         Add m4/libunistring-base.m4.
27483         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27484         (Makefile.am): Build unistr.h from unistr.in.h.
27485         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
27486         Add m4/libunistring-base.m4.
27487         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27488         (Makefile.am): Build unitypes.h from unitypes.in.h.
27489         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
27490         Add m4/libunistring-base.m4.
27491         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27492         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
27493         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
27494         uniwidth.h. Add m4/libunistring-base.m4.
27495         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27496         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
27497         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
27498         instead of augmenting lib_SOURCES.
27499         * modules/unicase/empty-suffix-context: Likewise.
27500         * modules/unicase/locale-language: Likewise.
27501         * modules/unicase/tolower: Likewise.
27502         * modules/unicase/totitle: Likewise.
27503         * modules/unicase/toupper: Likewise.
27504         * modules/unicase/u8-casecmp: Likewise.
27505         * modules/unicase/u8-casecoll: Likewise.
27506         * modules/unicase/u8-casefold: Likewise.
27507         * modules/unicase/u8-casexfrm: Likewise.
27508         * modules/unicase/u8-ct-casefold: Likewise.
27509         * modules/unicase/u8-ct-tolower: Likewise.
27510         * modules/unicase/u8-ct-totitle: Likewise.
27511         * modules/unicase/u8-ct-toupper: Likewise.
27512         * modules/unicase/u8-is-cased: Likewise.
27513         * modules/unicase/u8-is-casefolded: Likewise.
27514         * modules/unicase/u8-is-lowercase: Likewise.
27515         * modules/unicase/u8-is-titlecase: Likewise.
27516         * modules/unicase/u8-is-uppercase: Likewise.
27517         * modules/unicase/u8-prefix-context: Likewise.
27518         * modules/unicase/u8-suffix-context: Likewise.
27519         * modules/unicase/u8-tolower: Likewise.
27520         * modules/unicase/u8-totitle: Likewise.
27521         * modules/unicase/u8-toupper: Likewise.
27522         * modules/unicase/u16-casecmp: Likewise.
27523         * modules/unicase/u16-casecoll: Likewise.
27524         * modules/unicase/u16-casefold: Likewise.
27525         * modules/unicase/u16-casexfrm: Likewise.
27526         * modules/unicase/u16-ct-casefold: Likewise.
27527         * modules/unicase/u16-ct-tolower: Likewise.
27528         * modules/unicase/u16-ct-totitle: Likewise.
27529         * modules/unicase/u16-ct-toupper: Likewise.
27530         * modules/unicase/u16-is-cased: Likewise.
27531         * modules/unicase/u16-is-casefolded: Likewise.
27532         * modules/unicase/u16-is-lowercase: Likewise.
27533         * modules/unicase/u16-is-titlecase: Likewise.
27534         * modules/unicase/u16-is-uppercase: Likewise.
27535         * modules/unicase/u16-prefix-context: Likewise.
27536         * modules/unicase/u16-suffix-context: Likewise.
27537         * modules/unicase/u16-tolower: Likewise.
27538         * modules/unicase/u16-totitle: Likewise.
27539         * modules/unicase/u16-toupper: Likewise.
27540         * modules/unicase/u32-casecmp: Likewise.
27541         * modules/unicase/u32-casecoll: Likewise.
27542         * modules/unicase/u32-casefold: Likewise.
27543         * modules/unicase/u32-casexfrm: Likewise.
27544         * modules/unicase/u32-ct-casefold: Likewise.
27545         * modules/unicase/u32-ct-tolower: Likewise.
27546         * modules/unicase/u32-ct-totitle: Likewise.
27547         * modules/unicase/u32-ct-toupper: Likewise.
27548         * modules/unicase/u32-is-cased: Likewise.
27549         * modules/unicase/u32-is-casefolded: Likewise.
27550         * modules/unicase/u32-is-lowercase: Likewise.
27551         * modules/unicase/u32-is-titlecase: Likewise.
27552         * modules/unicase/u32-is-uppercase: Likewise.
27553         * modules/unicase/u32-prefix-context: Likewise.
27554         * modules/unicase/u32-suffix-context: Likewise.
27555         * modules/unicase/u32-tolower: Likewise.
27556         * modules/unicase/u32-totitle: Likewise.
27557         * modules/unicase/u32-toupper: Likewise.
27558         * modules/unicase/ulc-casecmp: Likewise.
27559         * modules/unicase/ulc-casecoll: Likewise.
27560         * modules/unicase/ulc-casexfrm: Likewise.
27561         * modules/uniconv/u8-conv-from-enc: Likewise.
27562         * modules/uniconv/u8-conv-to-enc: Likewise.
27563         * modules/uniconv/u8-strconv-from-enc: Likewise.
27564         * modules/uniconv/u8-strconv-from-locale: Likewise.
27565         * modules/uniconv/u8-strconv-to-enc: Likewise.
27566         * modules/uniconv/u8-strconv-to-locale: Likewise.
27567         * modules/uniconv/u16-conv-from-enc: Likewise.
27568         * modules/uniconv/u16-conv-to-enc: Likewise.
27569         * modules/uniconv/u16-strconv-from-enc: Likewise.
27570         * modules/uniconv/u16-strconv-from-locale: Likewise.
27571         * modules/uniconv/u16-strconv-to-enc: Likewise.
27572         * modules/uniconv/u16-strconv-to-locale: Likewise.
27573         * modules/uniconv/u32-conv-from-enc: Likewise.
27574         * modules/uniconv/u32-conv-to-enc: Likewise.
27575         * modules/uniconv/u32-strconv-from-enc: Likewise.
27576         * modules/uniconv/u32-strconv-from-locale: Likewise.
27577         * modules/uniconv/u32-strconv-to-enc: Likewise.
27578         * modules/uniconv/u32-strconv-to-locale: Likewise.
27579         * modules/unictype/bidicategory-byname: Likewise.
27580         * modules/unictype/bidicategory-name: Likewise.
27581         * modules/unictype/bidicategory-of: Likewise.
27582         * modules/unictype/bidicategory-test: Likewise.
27583         * modules/unictype/block-list: Likewise.
27584         * modules/unictype/block-test: Likewise.
27585         * modules/unictype/category-C: Likewise.
27586         * modules/unictype/category-Cc: Likewise.
27587         * modules/unictype/category-Cf: Likewise.
27588         * modules/unictype/category-Cn: Likewise.
27589         * modules/unictype/category-Co: Likewise.
27590         * modules/unictype/category-Cs: Likewise.
27591         * modules/unictype/category-L: Likewise.
27592         * modules/unictype/category-Ll: Likewise.
27593         * modules/unictype/category-Lm: Likewise.
27594         * modules/unictype/category-Lo: Likewise.
27595         * modules/unictype/category-Lt: Likewise.
27596         * modules/unictype/category-Lu: Likewise.
27597         * modules/unictype/category-M: Likewise.
27598         * modules/unictype/category-Mc: Likewise.
27599         * modules/unictype/category-Me: Likewise.
27600         * modules/unictype/category-Mn: Likewise.
27601         * modules/unictype/category-N: Likewise.
27602         * modules/unictype/category-Nd: Likewise.
27603         * modules/unictype/category-Nl: Likewise.
27604         * modules/unictype/category-No: Likewise.
27605         * modules/unictype/category-P: Likewise.
27606         * modules/unictype/category-Pc: Likewise.
27607         * modules/unictype/category-Pd: Likewise.
27608         * modules/unictype/category-Pe: Likewise.
27609         * modules/unictype/category-Pf: Likewise.
27610         * modules/unictype/category-Pi: Likewise.
27611         * modules/unictype/category-Po: Likewise.
27612         * modules/unictype/category-Ps: Likewise.
27613         * modules/unictype/category-S: Likewise.
27614         * modules/unictype/category-Sc: Likewise.
27615         * modules/unictype/category-Sk: Likewise.
27616         * modules/unictype/category-Sm: Likewise.
27617         * modules/unictype/category-So: Likewise.
27618         * modules/unictype/category-Z: Likewise.
27619         * modules/unictype/category-Zl: Likewise.
27620         * modules/unictype/category-Zp: Likewise.
27621         * modules/unictype/category-Zs: Likewise.
27622         * modules/unictype/category-and: Likewise.
27623         * modules/unictype/category-and-not: Likewise.
27624         * modules/unictype/category-byname: Likewise.
27625         * modules/unictype/category-name: Likewise.
27626         * modules/unictype/category-none: Likewise.
27627         * modules/unictype/category-of: Likewise.
27628         * modules/unictype/category-or: Likewise.
27629         * modules/unictype/category-test: Likewise.
27630         * modules/unictype/combining-class: Likewise.
27631         * modules/unictype/ctype-alnum: Likewise.
27632         * modules/unictype/ctype-alpha: Likewise.
27633         * modules/unictype/ctype-blank: Likewise.
27634         * modules/unictype/ctype-cntrl: Likewise.
27635         * modules/unictype/ctype-digit: Likewise.
27636         * modules/unictype/ctype-graph: Likewise.
27637         * modules/unictype/ctype-lower: Likewise.
27638         * modules/unictype/ctype-print: Likewise.
27639         * modules/unictype/ctype-punct: Likewise.
27640         * modules/unictype/ctype-space: Likewise.
27641         * modules/unictype/ctype-upper: Likewise.
27642         * modules/unictype/ctype-xdigit: Likewise.
27643         * modules/unictype/decimal-digit: Likewise.
27644         * modules/unictype/digit: Likewise.
27645         * modules/unictype/mirror: Likewise.
27646         * modules/unictype/numeric: Likewise.
27647         * modules/unictype/property-alphabetic: Likewise.
27648         * modules/unictype/property-ascii-hex-digit: Likewise.
27649         * modules/unictype/property-bidi-arabic-digit: Likewise.
27650         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27651         * modules/unictype/property-bidi-block-separator: Likewise.
27652         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27653         * modules/unictype/property-bidi-common-separator: Likewise.
27654         * modules/unictype/property-bidi-control: Likewise.
27655         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27656         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27657         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
27658         * modules/unictype/property-bidi-european-digit: Likewise.
27659         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
27660         * modules/unictype/property-bidi-left-to-right: Likewise.
27661         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
27662         * modules/unictype/property-bidi-other-neutral: Likewise.
27663         * modules/unictype/property-bidi-pdf: Likewise.
27664         * modules/unictype/property-bidi-segment-separator: Likewise.
27665         * modules/unictype/property-bidi-whitespace: Likewise.
27666         * modules/unictype/property-byname: Likewise.
27667         * modules/unictype/property-combining: Likewise.
27668         * modules/unictype/property-composite: Likewise.
27669         * modules/unictype/property-currency-symbol: Likewise.
27670         * modules/unictype/property-dash: Likewise.
27671         * modules/unictype/property-decimal-digit: Likewise.
27672         * modules/unictype/property-default-ignorable-code-point: Likewise.
27673         * modules/unictype/property-deprecated: Likewise.
27674         * modules/unictype/property-diacritic: Likewise.
27675         * modules/unictype/property-extender: Likewise.
27676         * modules/unictype/property-format-control: Likewise.
27677         * modules/unictype/property-grapheme-base: Likewise.
27678         * modules/unictype/property-grapheme-extend: Likewise.
27679         * modules/unictype/property-grapheme-link: Likewise.
27680         * modules/unictype/property-hex-digit: Likewise.
27681         * modules/unictype/property-hyphen: Likewise.
27682         * modules/unictype/property-id-continue: Likewise.
27683         * modules/unictype/property-id-start: Likewise.
27684         * modules/unictype/property-ideographic: Likewise.
27685         * modules/unictype/property-ids-binary-operator: Likewise.
27686         * modules/unictype/property-ids-trinary-operator: Likewise.
27687         * modules/unictype/property-ignorable-control: Likewise.
27688         * modules/unictype/property-iso-control: Likewise.
27689         * modules/unictype/property-join-control: Likewise.
27690         * modules/unictype/property-left-of-pair: Likewise.
27691         * modules/unictype/property-line-separator: Likewise.
27692         * modules/unictype/property-logical-order-exception: Likewise.
27693         * modules/unictype/property-lowercase: Likewise.
27694         * modules/unictype/property-math: Likewise.
27695         * modules/unictype/property-non-break: Likewise.
27696         * modules/unictype/property-not-a-character: Likewise.
27697         * modules/unictype/property-numeric: Likewise.
27698         * modules/unictype/property-other-alphabetic: Likewise.
27699         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
27700         * modules/unictype/property-other-grapheme-extend: Likewise.
27701         * modules/unictype/property-other-id-continue: Likewise.
27702         * modules/unictype/property-other-id-start: Likewise.
27703         * modules/unictype/property-other-lowercase: Likewise.
27704         * modules/unictype/property-other-math: Likewise.
27705         * modules/unictype/property-other-uppercase: Likewise.
27706         * modules/unictype/property-paired-punctuation: Likewise.
27707         * modules/unictype/property-paragraph-separator: Likewise.
27708         * modules/unictype/property-pattern-syntax: Likewise.
27709         * modules/unictype/property-pattern-white-space: Likewise.
27710         * modules/unictype/property-private-use: Likewise.
27711         * modules/unictype/property-punctuation: Likewise.
27712         * modules/unictype/property-quotation-mark: Likewise.
27713         * modules/unictype/property-radical: Likewise.
27714         * modules/unictype/property-sentence-terminal: Likewise.
27715         * modules/unictype/property-soft-dotted: Likewise.
27716         * modules/unictype/property-space: Likewise.
27717         * modules/unictype/property-terminal-punctuation: Likewise.
27718         * modules/unictype/property-test: Likewise.
27719         * modules/unictype/property-titlecase: Likewise.
27720         * modules/unictype/property-unassigned-code-value: Likewise.
27721         * modules/unictype/property-unified-ideograph: Likewise.
27722         * modules/unictype/property-uppercase: Likewise.
27723         * modules/unictype/property-variation-selector: Likewise.
27724         * modules/unictype/property-white-space: Likewise.
27725         * modules/unictype/property-xid-continue: Likewise.
27726         * modules/unictype/property-xid-start: Likewise.
27727         * modules/unictype/property-zero-width: Likewise.
27728         * modules/unictype/scripts: Likewise.
27729         * modules/unictype/syntax-c-ident: Likewise.
27730         * modules/unictype/syntax-c-whitespace: Likewise.
27731         * modules/unictype/syntax-java-ident: Likewise.
27732         * modules/unictype/syntax-java-whitespace: Likewise.
27733         * modules/unilbrk/u8-possible-linebreaks: Likewise.
27734         * modules/unilbrk/u8-width-linebreaks: Likewise.
27735         * modules/unilbrk/u16-possible-linebreaks: Likewise.
27736         * modules/unilbrk/u16-width-linebreaks: Likewise.
27737         * modules/unilbrk/u32-possible-linebreaks: Likewise.
27738         * modules/unilbrk/u32-width-linebreaks: Likewise.
27739         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
27740         * modules/unilbrk/ulc-width-linebreaks: Likewise.
27741         * modules/uniname/uniname: Likewise.
27742         * modules/uninorm/canonical-decomposition: Likewise.
27743         * modules/uninorm/composition: Likewise.
27744         * modules/uninorm/decomposing-form: Likewise.
27745         * modules/uninorm/decomposition: Likewise.
27746         * modules/uninorm/filter: Likewise.
27747         * modules/uninorm/nfc: Likewise.
27748         * modules/uninorm/nfd: Likewise.
27749         * modules/uninorm/nfkc: Likewise.
27750         * modules/uninorm/nfkd: Likewise.
27751         * modules/uninorm/u8-normalize: Likewise.
27752         * modules/uninorm/u8-normcmp: Likewise.
27753         * modules/uninorm/u8-normcoll: Likewise.
27754         * modules/uninorm/u8-normxfrm: Likewise.
27755         * modules/uninorm/u16-normalize: Likewise.
27756         * modules/uninorm/u16-normcmp: Likewise.
27757         * modules/uninorm/u16-normcoll: Likewise.
27758         * modules/uninorm/u16-normxfrm: Likewise.
27759         * modules/uninorm/u32-normalize: Likewise.
27760         * modules/uninorm/u32-normcmp: Likewise.
27761         * modules/uninorm/u32-normcoll: Likewise.
27762         * modules/uninorm/u32-normxfrm: Likewise.
27763         * modules/unistdio/u8-asnprintf: Likewise.
27764         * modules/unistdio/u8-asprintf: Likewise.
27765         * modules/unistdio/u8-snprintf: Likewise.
27766         * modules/unistdio/u8-sprintf: Likewise.
27767         * modules/unistdio/u8-u8-asnprintf: Likewise.
27768         * modules/unistdio/u8-u8-asprintf: Likewise.
27769         * modules/unistdio/u8-u8-snprintf: Likewise.
27770         * modules/unistdio/u8-u8-sprintf: Likewise.
27771         * modules/unistdio/u8-u8-vasnprintf: Likewise.
27772         * modules/unistdio/u8-u8-vasprintf: Likewise.
27773         * modules/unistdio/u8-u8-vsnprintf: Likewise.
27774         * modules/unistdio/u8-u8-vsprintf: Likewise.
27775         * modules/unistdio/u8-vasnprintf: Likewise.
27776         * modules/unistdio/u8-vasprintf: Likewise.
27777         * modules/unistdio/u8-vsnprintf: Likewise.
27778         * modules/unistdio/u8-vsprintf: Likewise.
27779         * modules/unistdio/u16-asnprintf: Likewise.
27780         * modules/unistdio/u16-asprintf: Likewise.
27781         * modules/unistdio/u16-snprintf: Likewise.
27782         * modules/unistdio/u16-sprintf: Likewise.
27783         * modules/unistdio/u16-u16-asnprintf: Likewise.
27784         * modules/unistdio/u16-u16-asprintf: Likewise.
27785         * modules/unistdio/u16-u16-snprintf: Likewise.
27786         * modules/unistdio/u16-u16-sprintf: Likewise.
27787         * modules/unistdio/u16-u16-vasnprintf: Likewise.
27788         * modules/unistdio/u16-u16-vasprintf: Likewise.
27789         * modules/unistdio/u16-u16-vsnprintf: Likewise.
27790         * modules/unistdio/u16-u16-vsprintf: Likewise.
27791         * modules/unistdio/u16-vasnprintf: Likewise.
27792         * modules/unistdio/u16-vasprintf: Likewise.
27793         * modules/unistdio/u16-vsnprintf: Likewise.
27794         * modules/unistdio/u16-vsprintf: Likewise.
27795         * modules/unistdio/u32-asnprintf: Likewise.
27796         * modules/unistdio/u32-asprintf: Likewise.
27797         * modules/unistdio/u32-snprintf: Likewise.
27798         * modules/unistdio/u32-sprintf: Likewise.
27799         * modules/unistdio/u32-u32-asnprintf: Likewise.
27800         * modules/unistdio/u32-u32-asprintf: Likewise.
27801         * modules/unistdio/u32-u32-snprintf: Likewise.
27802         * modules/unistdio/u32-u32-sprintf: Likewise.
27803         * modules/unistdio/u32-u32-vasnprintf: Likewise.
27804         * modules/unistdio/u32-u32-vasprintf: Likewise.
27805         * modules/unistdio/u32-u32-vsnprintf: Likewise.
27806         * modules/unistdio/u32-u32-vsprintf: Likewise.
27807         * modules/unistdio/u32-vasnprintf: Likewise.
27808         * modules/unistdio/u32-vasprintf: Likewise.
27809         * modules/unistdio/u32-vsnprintf: Likewise.
27810         * modules/unistdio/u32-vsprintf: Likewise.
27811         * modules/unistdio/ulc-asnprintf: Likewise.
27812         * modules/unistdio/ulc-asprintf: Likewise.
27813         * modules/unistdio/ulc-fprintf: Likewise.
27814         * modules/unistdio/ulc-snprintf: Likewise.
27815         * modules/unistdio/ulc-sprintf: Likewise.
27816         * modules/unistdio/ulc-vasnprintf: Likewise.
27817         * modules/unistdio/ulc-vasprintf: Likewise.
27818         * modules/unistdio/ulc-vfprintf: Likewise.
27819         * modules/unistdio/ulc-vsnprintf: Likewise.
27820         * modules/unistdio/ulc-vsprintf: Likewise.
27821         * modules/unistr/u8-check: Likewise.
27822         * modules/unistr/u8-chr: Likewise.
27823         * modules/unistr/u8-cmp: Likewise.
27824         * modules/unistr/u8-cmp2: Likewise.
27825         * modules/unistr/u8-cpy: Likewise.
27826         * modules/unistr/u8-cpy-alloc: Likewise.
27827         * modules/unistr/u8-endswith: Likewise.
27828         * modules/unistr/u8-mblen: Likewise.
27829         * modules/unistr/u8-mbsnlen: Likewise.
27830         * modules/unistr/u8-mbtouc: Likewise.
27831         * modules/unistr/u8-mbtouc-unsafe: Likewise.
27832         * modules/unistr/u8-mbtoucr: Likewise.
27833         * modules/unistr/u8-move: Likewise.
27834         * modules/unistr/u8-next: Likewise.
27835         * modules/unistr/u8-prev: Likewise.
27836         * modules/unistr/u8-set: Likewise.
27837         * modules/unistr/u8-startswith: Likewise.
27838         * modules/unistr/u8-stpcpy: Likewise.
27839         * modules/unistr/u8-stpncpy: Likewise.
27840         * modules/unistr/u8-strcat: Likewise.
27841         * modules/unistr/u8-strchr: Likewise.
27842         * modules/unistr/u8-strcmp: Likewise.
27843         * modules/unistr/u8-strcoll: Likewise.
27844         * modules/unistr/u8-strcpy: Likewise.
27845         * modules/unistr/u8-strcspn: Likewise.
27846         * modules/unistr/u8-strdup: Likewise.
27847         * modules/unistr/u8-strlen: Likewise.
27848         * modules/unistr/u8-strmblen: Likewise.
27849         * modules/unistr/u8-strmbtouc: Likewise.
27850         * modules/unistr/u8-strncat: Likewise.
27851         * modules/unistr/u8-strncmp: Likewise.
27852         * modules/unistr/u8-strncpy: Likewise.
27853         * modules/unistr/u8-strnlen: Likewise.
27854         * modules/unistr/u8-strpbrk: Likewise.
27855         * modules/unistr/u8-strrchr: Likewise.
27856         * modules/unistr/u8-strspn: Likewise.
27857         * modules/unistr/u8-strstr: Likewise.
27858         * modules/unistr/u8-strtok: Likewise.
27859         * modules/unistr/u8-to-u16: Likewise.
27860         * modules/unistr/u8-to-u32: Likewise.
27861         * modules/unistr/u8-uctomb: Likewise.
27862         * modules/unistr/u16-check: Likewise.
27863         * modules/unistr/u16-chr: Likewise.
27864         * modules/unistr/u16-cmp: Likewise.
27865         * modules/unistr/u16-cmp2: Likewise.
27866         * modules/unistr/u16-cpy: Likewise.
27867         * modules/unistr/u16-cpy-alloc: Likewise.
27868         * modules/unistr/u16-endswith: Likewise.
27869         * modules/unistr/u16-mblen: Likewise.
27870         * modules/unistr/u16-mbsnlen: Likewise.
27871         * modules/unistr/u16-mbtouc: Likewise.
27872         * modules/unistr/u16-mbtouc-unsafe: Likewise.
27873         * modules/unistr/u16-mbtoucr: Likewise.
27874         * modules/unistr/u16-move: Likewise.
27875         * modules/unistr/u16-next: Likewise.
27876         * modules/unistr/u16-prev: Likewise.
27877         * modules/unistr/u16-set: Likewise.
27878         * modules/unistr/u16-startswith: Likewise.
27879         * modules/unistr/u16-stpcpy: Likewise.
27880         * modules/unistr/u16-stpncpy: Likewise.
27881         * modules/unistr/u16-strcat: Likewise.
27882         * modules/unistr/u16-strchr: Likewise.
27883         * modules/unistr/u16-strcmp: Likewise.
27884         * modules/unistr/u16-strcoll: Likewise.
27885         * modules/unistr/u16-strcpy: Likewise.
27886         * modules/unistr/u16-strcspn: Likewise.
27887         * modules/unistr/u16-strdup: Likewise.
27888         * modules/unistr/u16-strlen: Likewise.
27889         * modules/unistr/u16-strmblen: Likewise.
27890         * modules/unistr/u16-strmbtouc: Likewise.
27891         * modules/unistr/u16-strncat: Likewise.
27892         * modules/unistr/u16-strncmp: Likewise.
27893         * modules/unistr/u16-strncpy: Likewise.
27894         * modules/unistr/u16-strnlen: Likewise.
27895         * modules/unistr/u16-strpbrk: Likewise.
27896         * modules/unistr/u16-strrchr: Likewise.
27897         * modules/unistr/u16-strspn: Likewise.
27898         * modules/unistr/u16-strstr: Likewise.
27899         * modules/unistr/u16-strtok: Likewise.
27900         * modules/unistr/u16-to-u32: Likewise.
27901         * modules/unistr/u16-to-u8: Likewise.
27902         * modules/unistr/u16-uctomb: Likewise.
27903         * modules/unistr/u32-check: Likewise.
27904         * modules/unistr/u32-chr: Likewise.
27905         * modules/unistr/u32-cmp: Likewise.
27906         * modules/unistr/u32-cmp2: Likewise.
27907         * modules/unistr/u32-cpy: Likewise.
27908         * modules/unistr/u32-cpy-alloc: Likewise.
27909         * modules/unistr/u32-endswith: Likewise.
27910         * modules/unistr/u32-mblen: Likewise.
27911         * modules/unistr/u32-mbsnlen: Likewise.
27912         * modules/unistr/u32-mbtouc: Likewise.
27913         * modules/unistr/u32-mbtouc-unsafe: Likewise.
27914         * modules/unistr/u32-mbtoucr: Likewise.
27915         * modules/unistr/u32-move: Likewise.
27916         * modules/unistr/u32-next: Likewise.
27917         * modules/unistr/u32-prev: Likewise.
27918         * modules/unistr/u32-set: Likewise.
27919         * modules/unistr/u32-startswith: Likewise.
27920         * modules/unistr/u32-stpcpy: Likewise.
27921         * modules/unistr/u32-stpncpy: Likewise.
27922         * modules/unistr/u32-strcat: Likewise.
27923         * modules/unistr/u32-strchr: Likewise.
27924         * modules/unistr/u32-strcmp: Likewise.
27925         * modules/unistr/u32-strcoll: Likewise.
27926         * modules/unistr/u32-strcpy: Likewise.
27927         * modules/unistr/u32-strcspn: Likewise.
27928         * modules/unistr/u32-strdup: Likewise.
27929         * modules/unistr/u32-strlen: Likewise.
27930         * modules/unistr/u32-strmblen: Likewise.
27931         * modules/unistr/u32-strmbtouc: Likewise.
27932         * modules/unistr/u32-strncat: Likewise.
27933         * modules/unistr/u32-strncmp: Likewise.
27934         * modules/unistr/u32-strncpy: Likewise.
27935         * modules/unistr/u32-strnlen: Likewise.
27936         * modules/unistr/u32-strpbrk: Likewise.
27937         * modules/unistr/u32-strrchr: Likewise.
27938         * modules/unistr/u32-strspn: Likewise.
27939         * modules/unistr/u32-strstr: Likewise.
27940         * modules/unistr/u32-strtok: Likewise.
27941         * modules/unistr/u32-to-u16: Likewise.
27942         * modules/unistr/u32-to-u8: Likewise.
27943         * modules/unistr/u32-uctomb: Likewise.
27944         * modules/uniwbrk/u8-wordbreaks: Likewise.
27945         * modules/uniwbrk/u16-wordbreaks: Likewise.
27946         * modules/uniwbrk/u32-wordbreaks: Likewise.
27947         * modules/uniwbrk/ulc-wordbreaks: Likewise.
27948         * modules/uniwbrk/wordbreak-property: Likewise.
27949         * modules/uniwidth/u8-strwidth: Likewise.
27950         * modules/uniwidth/u8-width: Likewise.
27951         * modules/uniwidth/u16-strwidth: Likewise.
27952         * modules/uniwidth/u16-width: Likewise.
27953         * modules/uniwidth/u32-strwidth: Likewise.
27954         * modules/uniwidth/u32-width: Likewise.
27955         * modules/uniwidth/width: Likewise.
27956         * modules/unicase/cased-tests (Makefile.am): Link all test programs
27957         with $(LIBUNISTRING).
27958         * modules/unicase/ignorable-tests: Likewise.
27959         * modules/unicase/locale-language-tests: Likewise.
27960         * modules/unicase/tolower-tests: Likewise.
27961         * modules/unicase/totitle-tests: Likewise.
27962         * modules/unicase/toupper-tests: Likewise.
27963         * modules/unicase/u8-casecmp-tests: Likewise.
27964         * modules/unicase/u8-casecoll-tests: Likewise.
27965         * modules/unicase/u8-casefold-tests: Likewise.
27966         * modules/unicase/u8-is-cased-tests: Likewise.
27967         * modules/unicase/u8-is-casefolded-tests: Likewise.
27968         * modules/unicase/u8-is-lowercase-tests: Likewise.
27969         * modules/unicase/u8-is-titlecase-tests: Likewise.
27970         * modules/unicase/u8-is-uppercase-tests: Likewise.
27971         * modules/unicase/u8-tolower-tests: Likewise.
27972         * modules/unicase/u8-totitle-tests: Likewise.
27973         * modules/unicase/u8-toupper-tests: Likewise.
27974         * modules/unicase/u16-casecmp-tests: Likewise.
27975         * modules/unicase/u16-casecoll-tests: Likewise.
27976         * modules/unicase/u16-casefold-tests: Likewise.
27977         * modules/unicase/u16-is-cased-tests: Likewise.
27978         * modules/unicase/u16-is-casefolded-tests: Likewise.
27979         * modules/unicase/u16-is-lowercase-tests: Likewise.
27980         * modules/unicase/u16-is-titlecase-tests: Likewise.
27981         * modules/unicase/u16-is-uppercase-tests: Likewise.
27982         * modules/unicase/u16-tolower-tests: Likewise.
27983         * modules/unicase/u16-totitle-tests: Likewise.
27984         * modules/unicase/u16-toupper-tests: Likewise.
27985         * modules/unicase/u32-casecmp-tests: Likewise.
27986         * modules/unicase/u32-casecoll-tests: Likewise.
27987         * modules/unicase/u32-casefold-tests: Likewise.
27988         * modules/unicase/u32-is-cased-tests: Likewise.
27989         * modules/unicase/u32-is-casefolded-tests: Likewise.
27990         * modules/unicase/u32-is-lowercase-tests: Likewise.
27991         * modules/unicase/u32-is-titlecase-tests: Likewise.
27992         * modules/unicase/u32-is-uppercase-tests: Likewise.
27993         * modules/unicase/u32-tolower-tests: Likewise.
27994         * modules/unicase/u32-totitle-tests: Likewise.
27995         * modules/unicase/u32-toupper-tests: Likewise.
27996         * modules/unicase/ulc-casecmp-tests: Likewise.
27997         * modules/unicase/ulc-casecoll-tests: Likewise.
27998         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
27999         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28000         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28001         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28002         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28003         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28004         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28005         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28006         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28007         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28008         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28009         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28010         * modules/unictype/bidicategory-byname-tests: Likewise.
28011         * modules/unictype/bidicategory-name-tests: Likewise.
28012         * modules/unictype/bidicategory-of-tests: Likewise.
28013         * modules/unictype/bidicategory-test-tests: Likewise.
28014         * modules/unictype/block-list-tests: Likewise.
28015         * modules/unictype/block-of-tests: Likewise.
28016         * modules/unictype/block-test-tests: Likewise.
28017         * modules/unictype/category-C-tests: Likewise.
28018         * modules/unictype/category-Cc-tests: Likewise.
28019         * modules/unictype/category-Cf-tests: Likewise.
28020         * modules/unictype/category-Cn-tests: Likewise.
28021         * modules/unictype/category-Co-tests: Likewise.
28022         * modules/unictype/category-Cs-tests: Likewise.
28023         * modules/unictype/category-L-tests: Likewise.
28024         * modules/unictype/category-Ll-tests: Likewise.
28025         * modules/unictype/category-Lm-tests: Likewise.
28026         * modules/unictype/category-Lo-tests: Likewise.
28027         * modules/unictype/category-Lt-tests: Likewise.
28028         * modules/unictype/category-Lu-tests: Likewise.
28029         * modules/unictype/category-M-tests: Likewise.
28030         * modules/unictype/category-Mc-tests: Likewise.
28031         * modules/unictype/category-Me-tests: Likewise.
28032         * modules/unictype/category-Mn-tests: Likewise.
28033         * modules/unictype/category-N-tests: Likewise.
28034         * modules/unictype/category-Nd-tests: Likewise.
28035         * modules/unictype/category-Nl-tests: Likewise.
28036         * modules/unictype/category-No-tests: Likewise.
28037         * modules/unictype/category-P-tests: Likewise.
28038         * modules/unictype/category-Pc-tests: Likewise.
28039         * modules/unictype/category-Pd-tests: Likewise.
28040         * modules/unictype/category-Pe-tests: Likewise.
28041         * modules/unictype/category-Pf-tests: Likewise.
28042         * modules/unictype/category-Pi-tests: Likewise.
28043         * modules/unictype/category-Po-tests: Likewise.
28044         * modules/unictype/category-Ps-tests: Likewise.
28045         * modules/unictype/category-S-tests: Likewise.
28046         * modules/unictype/category-Sc-tests: Likewise.
28047         * modules/unictype/category-Sk-tests: Likewise.
28048         * modules/unictype/category-Sm-tests: Likewise.
28049         * modules/unictype/category-So-tests: Likewise.
28050         * modules/unictype/category-Z-tests: Likewise.
28051         * modules/unictype/category-Zl-tests: Likewise.
28052         * modules/unictype/category-Zp-tests: Likewise.
28053         * modules/unictype/category-Zs-tests: Likewise.
28054         * modules/unictype/category-and-not-tests: Likewise.
28055         * modules/unictype/category-and-tests: Likewise.
28056         * modules/unictype/category-byname-tests: Likewise.
28057         * modules/unictype/category-name-tests: Likewise.
28058         * modules/unictype/category-none-tests: Likewise.
28059         * modules/unictype/category-of-tests: Likewise.
28060         * modules/unictype/category-or-tests: Likewise.
28061         * modules/unictype/category-test-withtable-tests: Likewise.
28062         * modules/unictype/combining-class-tests: Likewise.
28063         * modules/unictype/ctype-alnum-tests: Likewise.
28064         * modules/unictype/ctype-alpha-tests: Likewise.
28065         * modules/unictype/ctype-blank-tests: Likewise.
28066         * modules/unictype/ctype-cntrl-tests: Likewise.
28067         * modules/unictype/ctype-digit-tests: Likewise.
28068         * modules/unictype/ctype-graph-tests: Likewise.
28069         * modules/unictype/ctype-lower-tests: Likewise.
28070         * modules/unictype/ctype-print-tests: Likewise.
28071         * modules/unictype/ctype-punct-tests: Likewise.
28072         * modules/unictype/ctype-space-tests: Likewise.
28073         * modules/unictype/ctype-upper-tests: Likewise.
28074         * modules/unictype/ctype-xdigit-tests: Likewise.
28075         * modules/unictype/decimal-digit-tests: Likewise.
28076         * modules/unictype/digit-tests: Likewise.
28077         * modules/unictype/mirror-tests: Likewise.
28078         * modules/unictype/numeric-tests: Likewise.
28079         * modules/unictype/property-alphabetic-tests: Likewise.
28080         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28081         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28082         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28083         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28084         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28085         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28086         * modules/unictype/property-bidi-control-tests: Likewise.
28087         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28088         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28089         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28090         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28091         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28092         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28093         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28094         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28095         * modules/unictype/property-bidi-pdf-tests: Likewise.
28096         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28097         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28098         * modules/unictype/property-byname-tests: Likewise.
28099         * modules/unictype/property-combining-tests: Likewise.
28100         * modules/unictype/property-composite-tests: Likewise.
28101         * modules/unictype/property-currency-symbol-tests: Likewise.
28102         * modules/unictype/property-dash-tests: Likewise.
28103         * modules/unictype/property-decimal-digit-tests: Likewise.
28104         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28105         * modules/unictype/property-deprecated-tests: Likewise.
28106         * modules/unictype/property-diacritic-tests: Likewise.
28107         * modules/unictype/property-extender-tests: Likewise.
28108         * modules/unictype/property-format-control-tests: Likewise.
28109         * modules/unictype/property-grapheme-base-tests: Likewise.
28110         * modules/unictype/property-grapheme-extend-tests: Likewise.
28111         * modules/unictype/property-grapheme-link-tests: Likewise.
28112         * modules/unictype/property-hex-digit-tests: Likewise.
28113         * modules/unictype/property-hyphen-tests: Likewise.
28114         * modules/unictype/property-id-continue-tests: Likewise.
28115         * modules/unictype/property-id-start-tests: Likewise.
28116         * modules/unictype/property-ideographic-tests: Likewise.
28117         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28118         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28119         * modules/unictype/property-ignorable-control-tests: Likewise.
28120         * modules/unictype/property-iso-control-tests: Likewise.
28121         * modules/unictype/property-join-control-tests: Likewise.
28122         * modules/unictype/property-left-of-pair-tests: Likewise.
28123         * modules/unictype/property-line-separator-tests: Likewise.
28124         * modules/unictype/property-logical-order-exception-tests: Likewise.
28125         * modules/unictype/property-lowercase-tests: Likewise.
28126         * modules/unictype/property-math-tests: Likewise.
28127         * modules/unictype/property-non-break-tests: Likewise.
28128         * modules/unictype/property-not-a-character-tests: Likewise.
28129         * modules/unictype/property-numeric-tests: Likewise.
28130         * modules/unictype/property-other-alphabetic-tests: Likewise.
28131         * modules/unictype/property-other-default-ignorable-code-point-tests:
28132         Likewise.
28133         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28134         * modules/unictype/property-other-id-continue-tests: Likewise.
28135         * modules/unictype/property-other-id-start-tests: Likewise.
28136         * modules/unictype/property-other-lowercase-tests: Likewise.
28137         * modules/unictype/property-other-math-tests: Likewise.
28138         * modules/unictype/property-other-uppercase-tests: Likewise.
28139         * modules/unictype/property-paired-punctuation-tests: Likewise.
28140         * modules/unictype/property-paragraph-separator-tests: Likewise.
28141         * modules/unictype/property-pattern-syntax-tests: Likewise.
28142         * modules/unictype/property-pattern-white-space-tests: Likewise.
28143         * modules/unictype/property-private-use-tests: Likewise.
28144         * modules/unictype/property-punctuation-tests: Likewise.
28145         * modules/unictype/property-quotation-mark-tests: Likewise.
28146         * modules/unictype/property-radical-tests: Likewise.
28147         * modules/unictype/property-sentence-terminal-tests: Likewise.
28148         * modules/unictype/property-soft-dotted-tests: Likewise.
28149         * modules/unictype/property-space-tests: Likewise.
28150         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28151         * modules/unictype/property-test-tests: Likewise.
28152         * modules/unictype/property-titlecase-tests: Likewise.
28153         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28154         * modules/unictype/property-unified-ideograph-tests: Likewise.
28155         * modules/unictype/property-uppercase-tests: Likewise.
28156         * modules/unictype/property-variation-selector-tests: Likewise.
28157         * modules/unictype/property-white-space-tests: Likewise.
28158         * modules/unictype/property-xid-continue-tests: Likewise.
28159         * modules/unictype/property-xid-start-tests: Likewise.
28160         * modules/unictype/property-zero-width-tests: Likewise.
28161         * modules/unictype/scripts-tests: Likewise.
28162         * modules/unictype/syntax-c-ident-tests: Likewise.
28163         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28164         * modules/unictype/syntax-java-ident-tests: Likewise.
28165         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28166         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28167         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28168         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28169         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28170         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28171         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28172         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28173         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28174         * modules/uniname/uniname-tests: Likewise.
28175         * modules/uninorm/canonical-decomposition-tests: Likewise.
28176         * modules/uninorm/compat-decomposition-tests: Likewise.
28177         * modules/uninorm/composition-tests: Likewise.
28178         * modules/uninorm/decomposing-form-tests: Likewise.
28179         * modules/uninorm/decomposition-tests: Likewise.
28180         * modules/uninorm/filter-tests: Likewise.
28181         * modules/uninorm/nfc-tests: Likewise.
28182         * modules/uninorm/nfd-tests: Likewise.
28183         * modules/uninorm/nfkc-tests: Likewise.
28184         * modules/uninorm/nfkd-tests: Likewise.
28185         * modules/uninorm/u8-normcmp-tests: Likewise.
28186         * modules/uninorm/u8-normcoll-tests: Likewise.
28187         * modules/uninorm/u16-normcmp-tests: Likewise.
28188         * modules/uninorm/u16-normcoll-tests: Likewise.
28189         * modules/uninorm/u32-normcmp-tests: Likewise.
28190         * modules/uninorm/u32-normcoll-tests: Likewise.
28191         * modules/unistdio/u8-asnprintf-tests: Likewise.
28192         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28193         * modules/unistdio/u8-vasprintf-tests: Likewise.
28194         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28195         * modules/unistdio/u8-vsprintf-tests: Likewise.
28196         * modules/unistdio/u16-asnprintf-tests: Likewise.
28197         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28198         * modules/unistdio/u16-vasprintf-tests: Likewise.
28199         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28200         * modules/unistdio/u16-vsprintf-tests: Likewise.
28201         * modules/unistdio/u32-asnprintf-tests: Likewise.
28202         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28203         * modules/unistdio/u32-vasprintf-tests: Likewise.
28204         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28205         * modules/unistdio/u32-vsprintf-tests: Likewise.
28206         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28207         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28208         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28209         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28210         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28211         * modules/unistr/u8-check-tests: Likewise.
28212         * modules/unistr/u8-chr-tests: Likewise.
28213         * modules/unistr/u8-cmp-tests: Likewise.
28214         * modules/unistr/u8-cmp2-tests: Likewise.
28215         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28216         * modules/unistr/u8-cpy-tests: Likewise.
28217         * modules/unistr/u8-mblen-tests: Likewise.
28218         * modules/unistr/u8-mbsnlen-tests: Likewise.
28219         * modules/unistr/u8-mbtouc-tests: Likewise.
28220         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28221         * modules/unistr/u8-mbtoucr-tests: Likewise.
28222         * modules/unistr/u8-move-tests: Likewise.
28223         * modules/unistr/u8-next-tests: Likewise.
28224         * modules/unistr/u8-prev-tests: Likewise.
28225         * modules/unistr/u8-set-tests: Likewise.
28226         * modules/unistr/u8-stpcpy-tests: Likewise.
28227         * modules/unistr/u8-stpncpy-tests: Likewise.
28228         * modules/unistr/u8-strcat-tests: Likewise.
28229         * modules/unistr/u8-strcmp-tests: Likewise.
28230         * modules/unistr/u8-strcoll-tests: Likewise.
28231         * modules/unistr/u8-strcpy-tests: Likewise.
28232         * modules/unistr/u8-strdup-tests: Likewise.
28233         * modules/unistr/u8-strlen-tests: Likewise.
28234         * modules/unistr/u8-strmblen-tests: Likewise.
28235         * modules/unistr/u8-strmbtouc-tests: Likewise.
28236         * modules/unistr/u8-strncat-tests: Likewise.
28237         * modules/unistr/u8-strncmp-tests: Likewise.
28238         * modules/unistr/u8-strncpy-tests: Likewise.
28239         * modules/unistr/u8-strnlen-tests: Likewise.
28240         * modules/unistr/u8-to-u16-tests: Likewise.
28241         * modules/unistr/u8-to-u32-tests: Likewise.
28242         * modules/unistr/u8-uctomb-tests: Likewise.
28243         * modules/unistr/u16-check-tests: Likewise.
28244         * modules/unistr/u16-chr-tests: Likewise.
28245         * modules/unistr/u16-cmp-tests: Likewise.
28246         * modules/unistr/u16-cmp2-tests: Likewise.
28247         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28248         * modules/unistr/u16-cpy-tests: Likewise.
28249         * modules/unistr/u16-mblen-tests: Likewise.
28250         * modules/unistr/u16-mbsnlen-tests: Likewise.
28251         * modules/unistr/u16-mbtouc-tests: Likewise.
28252         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28253         * modules/unistr/u16-mbtoucr-tests: Likewise.
28254         * modules/unistr/u16-move-tests: Likewise.
28255         * modules/unistr/u16-next-tests: Likewise.
28256         * modules/unistr/u16-prev-tests: Likewise.
28257         * modules/unistr/u16-set-tests: Likewise.
28258         * modules/unistr/u16-stpcpy-tests: Likewise.
28259         * modules/unistr/u16-stpncpy-tests: Likewise.
28260         * modules/unistr/u16-strcat-tests: Likewise.
28261         * modules/unistr/u16-strcmp-tests: Likewise.
28262         * modules/unistr/u16-strcoll-tests: Likewise.
28263         * modules/unistr/u16-strcpy-tests: Likewise.
28264         * modules/unistr/u16-strdup-tests: Likewise.
28265         * modules/unistr/u16-strlen-tests: Likewise.
28266         * modules/unistr/u16-strmblen-tests: Likewise.
28267         * modules/unistr/u16-strmbtouc-tests: Likewise.
28268         * modules/unistr/u16-strncat-tests: Likewise.
28269         * modules/unistr/u16-strncmp-tests: Likewise.
28270         * modules/unistr/u16-strncpy-tests: Likewise.
28271         * modules/unistr/u16-strnlen-tests: Likewise.
28272         * modules/unistr/u16-to-u32-tests: Likewise.
28273         * modules/unistr/u16-to-u8-tests: Likewise.
28274         * modules/unistr/u16-uctomb-tests: Likewise.
28275         * modules/unistr/u32-check-tests: Likewise.
28276         * modules/unistr/u32-chr-tests: Likewise.
28277         * modules/unistr/u32-cmp-tests: Likewise.
28278         * modules/unistr/u32-cmp2-tests: Likewise.
28279         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28280         * modules/unistr/u32-cpy-tests: Likewise.
28281         * modules/unistr/u32-mblen-tests: Likewise.
28282         * modules/unistr/u32-mbsnlen-tests: Likewise.
28283         * modules/unistr/u32-mbtouc-tests: Likewise.
28284         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28285         * modules/unistr/u32-mbtoucr-tests: Likewise.
28286         * modules/unistr/u32-move-tests: Likewise.
28287         * modules/unistr/u32-next-tests: Likewise.
28288         * modules/unistr/u32-prev-tests: Likewise.
28289         * modules/unistr/u32-set-tests: Likewise.
28290         * modules/unistr/u32-stpcpy-tests: Likewise.
28291         * modules/unistr/u32-stpncpy-tests: Likewise.
28292         * modules/unistr/u32-strcat-tests: Likewise.
28293         * modules/unistr/u32-strcmp-tests: Likewise.
28294         * modules/unistr/u32-strcoll-tests: Likewise.
28295         * modules/unistr/u32-strcpy-tests: Likewise.
28296         * modules/unistr/u32-strdup-tests: Likewise.
28297         * modules/unistr/u32-strlen-tests: Likewise.
28298         * modules/unistr/u32-strmblen-tests: Likewise.
28299         * modules/unistr/u32-strmbtouc-tests: Likewise.
28300         * modules/unistr/u32-strncat-tests: Likewise.
28301         * modules/unistr/u32-strncmp-tests: Likewise.
28302         * modules/unistr/u32-strncpy-tests: Likewise.
28303         * modules/unistr/u32-strnlen-tests: Likewise.
28304         * modules/unistr/u32-to-u16-tests: Likewise.
28305         * modules/unistr/u32-to-u8-tests: Likewise.
28306         * modules/unistr/u32-uctomb-tests: Likewise.
28307         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28308         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28309         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28310         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28311         * modules/uniwidth/u8-strwidth-tests: Likewise.
28312         * modules/uniwidth/u8-width-tests: Likewise.
28313         * modules/uniwidth/u16-strwidth-tests: Likewise.
28314         * modules/uniwidth/u16-width-tests: Likewise.
28315         * modules/uniwidth/u32-strwidth-tests: Likewise.
28316         * modules/uniwidth/u32-width-tests: Likewise.
28317         * modules/uniwidth/width-tests: Likewise.
28318
28319 2010-05-18  Richard Jones  <rjones@redhat.com>
28320
28321         doc: users.txt: list hivex
28322         * users.txt: Add hivex.
28323
28324 2010-05-18  Richard Jones  <rjones@redhat.com>
28325
28326         doc: users.txt: list febootstrap
28327         * users.txt: Add febootstrap.
28328
28329 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
28330
28331         bootstrap: fix an error when gnulib is not used as a git submodule
28332         * build-aux/bootstrap (gnulib_path): If its length is zero then
28333         assign "gnulib" to it.
28334         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
28335
28336 2010-05-16  Bruno Haible  <bruno@clisp.org>
28337
28338         Avoid autoconf warnings about AM_ICONV.
28339         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
28340         2.64.
28341
28342 2010-05-16  Bruno Haible  <bruno@clisp.org>
28343
28344         absolute-header: Make the macro usable in more situations.
28345         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
28346         from gl_ABSOLUTE_HEADER.
28347         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
28348
28349 2010-05-16  James Youngman  <jay@gnu.org>
28350
28351         doc: update users.txt
28352         * users.txt: Add CSSC.
28353
28354 2010-05-16  Jim Meyering  <meyering@redhat.com>
28355
28356         init.sh: fix an error in the previous change; add more comments
28357         * tests/init.sh: Compare exit code in loop against 9, not 2.
28358         Patch by Bruno Haible.
28359         Make the two tests more similar by adding an empty "then" clause.
28360         Add comments.
28361
28362         init.sh: avoid unnecessary shell re-exec
28363         * tests/init.sh: Improve the re-exec-required check to first test the
28364         current shell.  If it passes the test, do not search for a shell that
28365         does pass, and do not re-exec.  This test is particularly contorted to
28366         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28367         of $(...) evokes a syntax error and causes immediate shell exit with
28368         status 2.  Bruno Haible reported that the re-exec made it impossible
28369         to single-step through any init.sh-using script.
28370
28371 2010-05-16  Bruno Haible  <bruno@clisp.org>
28372
28373         Fix collision between gnulib's and libintl's printf replacements.
28374         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28375         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28376         (printf): When using GNU C, map the __printf__ function to rpl_printf
28377         via __asm__. When not using GNU C, define rpl_printf instead of
28378         __printf__.
28379         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28380         commit.
28381         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28382         commit.
28383         * m4/asm-underscore.m4: New file.
28384         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28385         * modules/stdio (Files): Add m4/asm-underscore.m4.
28386         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28387         Reported by Ben Pfaff.
28388
28389 2010-05-16  Bruno Haible  <bruno@clisp.org>
28390
28391         verify: Avoid skipping the test on openSUSE 11.0.
28392         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28393
28394 2010-05-13  Bruno Haible  <bruno@clisp.org>
28395
28396         Avoid useless warnings from G++.
28397         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
28398         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
28399         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28400
28401 2010-05-11  Jim Meyering  <meyering@redhat.com>
28402
28403         maint.mk: tweak preceding change
28404         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
28405         regexps tighter by anchoring at EOL, and make the new group "shy"
28406         for slightly decreased overhead.
28407
28408 2010-05-11  Eric Blake  <eblake@redhat.com>
28409
28410         maint.mk: gnulib doesn't guarantee NSIG
28411         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
28412
28413 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28414
28415         test-pwrite.c: Remove unused variable declaration.
28416         * tests/test-pwrite.c (main): Remove read_buf declaration.
28417
28418         Remove useless test-pwrite.sh file.
28419         * tests/test-pwrite.sh: Delete file.
28420         * modules/pwrite-tests: Remove references.
28421         Reported by Bruno Haible.
28422
28423 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28424
28425         init.sh: fix a typo
28426         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
28427
28428 2010-05-10  Jim Meyering  <meyering@redhat.com>
28429
28430         maint.mk: avoid using a temporary file in the always-defined-macros check
28431         * top/maint.mk (.re-defmac): Remove rule.
28432         (gl_trap_): Remove definition.
28433         (sc_prohibit_always-defined_macros): Rewrite not to create and
28434         depend on a temporary file.  Instead, depend on GNU grep's ability
28435         to read a list of regular expressions from stdin when given "-f -".
28436
28437 2010-05-09  Bruno Haible  <bruno@clisp.org>
28438
28439         Update to GNU gettext 0.18, part 1.
28440         * m4/gettext.m4: Update to GNU gettext 0.18.
28441         * m4/intl.m4: Likewise.
28442         * m4/po.m4: Likewise.
28443         * modules/gettext (Files): Add m4/fcntl-o.m4.
28444         (configure.ac): Require gettext infrastructure from version 0.18.
28445
28446 2010-05-09  Jim Meyering  <meyering@redhat.com>
28447
28448         init.sh: enable MALLOC_PERTURB_
28449         * tests/init.sh: Enable glibc's malloc-perturbing option.
28450
28451         maint.mk: improve sc_cross_check_PATH_usage_in_tests
28452         With my recent change in init.sh from the two-line form:
28453             -#   : ${srcdir=.}
28454             -#   . "$srcdir/init.sh"; path_prepend_ .
28455             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
28456         I noticed that using the one-line form would cause this test
28457         to fail with a false-positive, or to stop working altogether,
28458         depending on whether help-version changed or all the tests did.
28459         * top/maint.mk (_hv_regex): Remove this definition.
28460         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
28461         (_hv_regex_strong): Use a stronger regex to check for conformance.
28462         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
28463         Give a separate diagnostic for lack of conforming use.
28464
28465         maint.mk: prohibit definition of symbols defined by gnulib
28466         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
28467         definition of symbols defined by gnulib.
28468
28469 2010-05-09  Bruno Haible  <bruno@clisp.org>
28470
28471         acl: Avoid test failure on Cygwin-hosted mingw.
28472         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
28473
28474 2010-05-09  Bruno Haible  <bruno@clisp.org>
28475
28476         error: Use system's fcntl function.
28477         * lib/error.c (fcntl): Undefine.
28478
28479 2010-05-09  Jim Meyering  <meyering@redhat.com>
28480
28481         verify: adjust formatting to be more consistent
28482         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
28483         argument-list '('s, and after one comma.
28484
28485 2010-05-09  Bruno Haible  <bruno@clisp.org>
28486
28487         error: More reliable output on mingw.
28488         * lib/error.c: Include <windows.h>.
28489         (is_open): New function.
28490         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
28491         defined.
28492
28493 2010-05-09  Bruno Haible  <bruno@clisp.org>
28494
28495         vasnprintf: Fix syntax errors in libintl build on mingw.
28496         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
28497         pad_ourselves and prec_ourselves after use.
28498
28499 2010-05-08  Bruno Haible  <bruno@clisp.org>
28500
28501         * lib/config.charset: Update comments for Cygwin 1.7.
28502         * lib/localcharset.c: Likewise.
28503
28504 2010-05-07  Jim Meyering  <meyering@redhat.com>
28505
28506         init.sh: improve comments
28507         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28508         . "${srcdir=.}/init.sh"; path_prepend_ .
28509         Add a note about path_prepend_ and the alternative of using
28510         TESTS_ENVIRONMENT.
28511
28512 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28513
28514         exclude: Unescape hashed patterns in wildcard mode.
28515         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28516         to the hash list.
28517         * tests/test-exclude8.sh: New test case.
28518         * modules/exclude-tests: Add new test.
28519
28520 2010-05-05  Eric Blake  <eblake@redhat.com>
28521
28522         verify: automate tests
28523         * modules/verify-tests: New module.
28524         * tests/test-verify.sh: New file.
28525         * tests/test-verify.c: Guard each negative test with a unique id.
28526         Also avoid warning about unused left hand of comma expressions.
28527
28528 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28529
28530         Further improvements to verify.h, suggested by Eric Blake.
28531         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28532         the GL_* versions, to avoid collision with OpenGL.
28533         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28534         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28535         than testing merely whether it's defined.
28536
28537         Modify verify.h to pacify gcc -Wredundant_decls.
28538         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28539         These use the prefix "GL_" since they're likely to be useful elsewhere.
28540         We may need to break them out into a different .h file.
28541         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28542         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28543         of verify_function__.
28544
28545 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28546
28547         Tests for module pwrite.
28548         * modules/pwrite-tests: New file.
28549         * tests/test-pwrite.sh: New file.
28550         * tests/test-pwrite.c: New file.
28551
28552         New module pwrite.
28553         * lib/unistd.in.h (pwrite): New declaration.
28554         * lib/pwrite.c: New file, from glibc with modifications.
28555         * m4/pwrite.m4: New file.
28556         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28557         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28558         REPLACE_PWRITE.
28559         * modules/pwrite: New file.
28560         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28561         REPLACE_PWRITE.
28562         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28563         * doc/posix-functions/pwrite.texi: Mention the new module.
28564
28565 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28566
28567         pread: Update documentation.
28568         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28569
28570 2010-05-04  Eric Blake  <eblake@redhat.com>
28571
28572         docs: update cygwin progress
28573         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28574         this bug.
28575         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28576         Added in cygwin 1.7.2.
28577         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28578         Likewise.
28579         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28580         Likewise.
28581         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28582         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28583         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28584         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28585         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28586         Mention nproc module.
28587         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28588         bug in cygwin 1.7.5 addition.
28589         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28590         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28591         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28592         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28593         1.7.5.
28594         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28595         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28596         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28597         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28598         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28599         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28600         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28601         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28602         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28603         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28604         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28605         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28606         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28607         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28608         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28609         Likewise.
28610         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28611         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28612         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28613         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28614         Likewise.
28615         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28616         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28617         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28618         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28619         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28620         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28621         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28622         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28623         Likewise.
28624         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28625         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28626         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28627         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28628         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28629         Likewise.
28630         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28631         Likewise.
28632         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28633         Likewise.
28634         * doc/glibc-functions/xdrrec_endofrecord.texi
28635         (xdrrec_endofrecord): Likewise.
28636         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28637         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28638         Likewise.
28639         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28640         Likewise.
28641
28642 2010-05-04  Jim Meyering  <meyering@redhat.com>
28643
28644         gendocs.sh: make its "-s FILE" option more useful
28645         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28646         $PACKAGE to reflect the probably-different basename of "FILE".
28647
28648 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28649
28650         bootstrap: don't ignore download_po_files failure
28651         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28652         failure.
28653
28654 2010-05-03  Jim Meyering  <meyering@redhat.com>
28655
28656         maint.mk: allow to pass options to gendocs.sh
28657         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
28658         (gendocs_options_): New overridable variable.
28659
28660         gnu-web-doc-update: don't ignore configure or build failure
28661         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
28662
28663         announce-gen: backslash-escape '@'s in --help output
28664         * build-aux/announce-gen: Fix syntax errors.
28665
28666         maint.mk, announce-gen: allow project-specific announcement mail headers
28667         * top/maint.mk (translation_project_): Define default.
28668         (announcement_Cc_, announcement_mail_headers_): Likewise.
28669         (announcement): Invoke announce-gen with new --mail-headers option.
28670         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
28671
28672         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
28673         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
28674         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
28675         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
28676         line in the "err2" output file when running "make check" in verbose
28677         mode (i.e., with set -x enabled).
28678
28679 2010-05-03  Bruno Haible  <bruno@clisp.org>
28680
28681         wctob: Fix for weird platforms.
28682         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
28683         argument value.
28684
28685 2010-05-03  Jim Meyering  <meyering@redhat.com>
28686
28687         maint.mk: prohibit unwarranted use of <strings.h>
28688         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
28689         strings.h in a file that does not also use strcasecmp, strncasecmp,
28690         ffs or ffsll.
28691
28692         maint.mk: remove obsolete comments
28693         * top/maint.mk: Remove stale, commented-out rules.
28694
28695 2010-05-02  Bruno Haible  <bruno@clisp.org>
28696
28697         wcwidth: Declare also when it's aliased.
28698         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
28699         macro.
28700
28701 2010-05-02  Bruno Haible  <bruno@clisp.org>
28702
28703         Fix regression from 2010-04-25.
28704         * gnulib-tool (func_modules_transitive_closure): Check the status of
28705         all modules, not only of the tests that are of the form foo-tests where
28706         foo is a module.
28707
28708 2010-05-02  Bruno Haible  <bruno@clisp.org>
28709
28710         wctob: Work around nasty Cygwin 1.7.2 bug.
28711         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
28712         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
28713
28714 2010-05-01  Bruno Haible  <bruno@clisp.org>
28715
28716         fpurge: Sharper test.
28717         * tests/test-fpurge.c (main): Add one more ftell check.
28718         * modules/fpurge-tests (Depends-on): Add ftell.
28719         Suggested by Eric Blake.
28720
28721 2010-05-01  Bruno Haible  <bruno@clisp.org>
28722
28723         ftello: Another test.
28724         * tests/test-ftello3.c: New file.
28725         * modules/ftello-tests (Files): Add it.
28726         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28727         MOSTLYCLEANFILES.
28728
28729         ftell: Another test.
28730         * tests/test-ftell3.c: New file.
28731         * modules/ftell-tests (Files): Add it.
28732         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28733         MOSTLYCLEANFILES.
28734
28735 2010-05-01  Bruno Haible  <bruno@clisp.org>
28736
28737         ftell, ftello: Work around Solaris bug.
28738         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
28739         * lib/ftello.c: Include stdio-impl.h.
28740         (ftello): On Solaris, when _IOWRT is set, compute the result without
28741         looking at _IOREAD.
28742         * modules/ftello (Files): Add lib/stdio-impl.h.
28743         * doc/posix-functions/ftell.texi: Mention Solaris bug.
28744         * doc/posix-functions/ftello.texi: Likewise.
28745         Reported by Eric Blake.
28746
28747 2010-05-01  Bruno Haible  <bruno@clisp.org>
28748
28749         freading: Adapt to special meaning of _IOREAD flag on Solaris.
28750         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
28751         the _IOWRT flag is also set.
28752
28753 2010-05-01  Bruno Haible  <bruno@clisp.org>
28754
28755         Fix doc about a HP-UX stdio bug.
28756         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
28757         * doc/posix-functions/ftello.texi: Likewise.
28758
28759 2010-05-01  Bruno Haible  <bruno@clisp.org>
28760
28761         lseek test: Fix failure on Solaris.
28762         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
28763         output.
28764
28765 2010-04-30  Jim Meyering  <meyering@redhat.com>
28766
28767         bootstrap: don't ignore failure to generate po*/Makevars
28768         * build-aux/bootstrap (with_gettext): Don't ignore failure
28769         to create po/Makevars or runtime-po/Makevars.
28770
28771 2010-04-29  Eric Blake  <eblake@redhat.com>
28772
28773         headers: relax license to LGPLv2+
28774         * modules/fcntl-h (License): Relax license.
28775         * modules/getopt-posix (License): Likewise.
28776         * modules/locale (License): Likewise.
28777         * modules/math (License): Likewise.
28778         * modules/pty (License): Likewise.
28779         * modules/sched (License): Likewise.
28780         * modules/search (License): Likewise.
28781         * modules/spawn (License): Likewise.
28782         * modules/stdarg (License): Likewise.
28783         * modules/sysexits (License): Likewise.
28784
28785 2010-04-29  Jim Meyering  <meyering@redhat.com>
28786
28787         inttypes: relax license to LGPLv2+
28788         * modules/inttypes (License): Relax license.
28789
28790 2010-04-29  Simon Josefsson  <simon@josefsson.org>
28791
28792         * top/maint.mk (indent): Run twice to produce idempotent results.
28793
28794 2010-04-28  Bruno Haible  <bruno@clisp.org>
28795
28796         getdate: Generate getdate.c in the source directory.
28797         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
28798         MOSTLYCLEANFILES.
28799         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
28800
28801 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
28802
28803         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
28804         is not declared as a const *; avoid warnings in that case.
28805
28806 2010-04-28  Eric Blake  <eblake@redhat.com>
28807
28808         canonicalize-lgpl: avoid compiler warning
28809         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
28810         declaration' / 'extraneous semicolon' warning with some compilers.
28811         Reported by Andreas Gruenbacher.
28812
28813 2010-04-28  Jim Meyering  <meyering@redhat.com>
28814
28815         init.sh: ensure a more reliable exit status when exiting via trap
28816         * tests/init.sh (setup_): Don't rely on $? in signal handler.
28817         Inspired by patches from Dmitry V. Levin.
28818         Also trap on signal 3 (SIGQUIT).
28819
28820 2010-04-27  Bruno Haible  <bruno@clisp.org>
28821
28822         Update doc about utimes().
28823         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
28824         'utimens' module.
28825         Reported by Andreas Gruenbacher <agruen@suse.de>.
28826
28827 2010-04-27  Eric Blake  <eblake@redhat.com>
28828
28829         full-read, full-write: relax license
28830         * modules/full-read (License): Drop to LGPLv2+.
28831         * modules/full-write (License): Likewise.
28832         * modules/safe-read (License): Likewise.
28833         * modules/safe-write (License): Likewise.
28834
28835         pthread: mention library for linking
28836         * modules/pthread (Link): Mention $(LIB_PTHREAD).
28837
28838 2010-04-27  Jim Meyering  <meyering@redhat.com>
28839
28840         maint.mk: fix a bug introduced in last change
28841         * top/maint.mk (gl_assured_headers_): Now that all names are on
28842         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
28843         is not anchored to end of word, it should be adequate.
28844
28845         maint.mk: avoid side-effect in latest syntax-check
28846         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
28847         to run commands via $(shell...), and hence to incur cost only when
28848         the new rule is actually run.
28849
28850         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
28851         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
28852         and use that to create a regexp used to detect all #if HAVE_..._H uses.
28853         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
28854         (gl_assured_headers_, az_, AZ_): Define.
28855         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
28856
28857 2010-04-26  Jim Meyering  <jim@meyering.net>
28858             Bruno Haible  <bruno@clisp.org>
28859
28860         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
28861         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
28862         Prompted by an exchange with Gilles Espinasse.
28863
28864 2010-04-26  Jim Meyering  <meyering@redhat.com>
28865
28866         git-version-gen: aesthetic tweak
28867         * build-aux/git-version-gen: Use "$nl" rather than a literal,
28868         so that the command remains on a single line.
28869
28870 2010-04-26  Eric Blake  <eblake@redhat.com>
28871
28872         git-version-gen: allow use on EBCDIC hosts
28873         * build-aux/git-version-gen (dirty): Use literal rather than tying
28874         ourselves to ascii.
28875         Reported by Steve Goetze.
28876
28877 2010-04-25  Bruno Haible  <bruno@clisp.org>
28878
28879         netdb: Add support for GNULIB_POSIXCHECK.
28880         * lib/netdb.in.h: Include warn-on-use.h.
28881         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
28882         functions are used when GNULIB_POSIXCHECK is defined and the
28883         getaddrinfo module is not in use.
28884         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
28885         freeaddrinfo, gai_strerror, getnameinfo are declared.
28886         * modules/netdb (Depends-on): Add warn-on-use.
28887         (Makefile.am): Include warn-on-use.h in netdb.h.
28888
28889 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
28890
28891         build: avoid "make check" failure without .git/ directory
28892         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
28893         there is no .git/ directory.
28894
28895 2010-04-25  Bruno Haible  <bruno@clisp.org>
28896
28897         ptsname: Fix misuse of ttyname_r.
28898         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
28899         of errno.
28900
28901 2010-04-25  Bruno Haible  <bruno@clisp.org>
28902
28903         ttyname_r: Make it work on Solaris 10.
28904         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
28905         if the system function has the POSIX declaration. Test whether the
28906         function fails if the buffer is less than 128 bytes large.
28907         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
28908         system's ttyname_r function. Provide a reasonably large buffer.
28909         * modules/ttyname_r (Depends-on): Add extensions.
28910         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
28911
28912 2010-04-25  Bruno Haible  <bruno@clisp.org>
28913
28914         Use the 'extensions' module for some more functions on Solaris.
28915         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
28916         module.
28917         * doc/posix-functions/ctime_r.texi: Likewise.
28918         * doc/posix-functions/getgrgid_r.texi: Likewise.
28919         * doc/posix-functions/getgrnam_r.texi: Likewise.
28920         * doc/posix-functions/getpwnam_r.texi: Likewise.
28921         * doc/posix-functions/getpwuid_r.texi: Likewise.
28922         * doc/posix-functions/readdir_r.texi: Likewise.
28923         * doc/posix-functions/sigwait.texi: Likewise.
28924         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
28925         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
28926
28927 2010-04-25  Bruno Haible  <bruno@clisp.org>
28928
28929         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
28930         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
28931         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
28932         * lib/ttyname_r.c: Include <limits.h>.
28933         (ttyname_r): Define using the system's ttyname_r function, if it exists
28934         and not on Solaris.
28935         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
28936         set.
28937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
28938         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
28939         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
28940         Reported by Simon Josefsson.
28941
28942 2010-04-25  Bruno Haible  <bruno@clisp.org>
28943
28944         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
28945         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
28946         * doc/posix-functions/ctime_r.texi: Likewise.
28947         * doc/posix-functions/getgrgid_r.texi: Likewise.
28948         * doc/posix-functions/getgrnam_r.texi: Likewise.
28949         * doc/posix-functions/getlogin_r.texi: Likewise.
28950         * doc/posix-functions/getpwnam_r.texi: Likewise.
28951         * doc/posix-functions/getpwuid_r.texi: Likewise.
28952         * doc/posix-functions/readdir_r.texi: Likewise.
28953         * doc/posix-functions/sigwait.texi: Likewise.
28954         * doc/posix-functions/ttyname_r.texi: Likewise.
28955         Reported by Simon Josefsson.
28956
28957 2010-04-25  Bruno Haible  <bruno@clisp.org>
28958
28959         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
28960         * gnulib-tool (func_usage): Document that --with-*-tests options apply
28961         also to --create-testdir.
28962         (func_acceptable): Don't consider the status of *-tests modules here.
28963         (func_modules_transitive_closure): Consider it here, before including a
28964         test module.
28965         (func_import, func_create_testdir): Set inc_all_direct_tests,
28966         inc_all_indirect_tests.
28967         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
28968         --create-testdir and --create-megatestdir.
28969
28970 2010-04-25  Bruno Haible  <bruno@clisp.org>
28971
28972         gnulib-tool: Add --without-*-tests options.
28973         * gnulib-tool (func_usage): Document the --without-*-tests options.
28974         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
28975         excl_unportable_tests): New variables.
28976         Fail if they are specified with --import or --update.
28977         (func_acceptable): Respect the excl_*_tests variables.
28978         (func_import): Set the excl_*_tests variables to empty.
28979
28980 2010-04-25  Simon Josefsson  <simon@josefsson.org>
28981             Bruno Haible  <bruno@clisp.org>
28982
28983         Work around a MacOS X 10.4 bug with openpty.
28984         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
28985         * tests/test-openpty.c (main): Close the master side explicitly.
28986
28987 2010-04-25  Bruno Haible  <bruno@clisp.org>
28988
28989         strnlen: Fix a C++ test error on MacOS X and Solaris.
28990         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
28991         the function is not declared.
28992         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
28993         Simon Josefsson.
28994
28995 2010-04-24  Bruno Haible  <bruno@clisp.org>
28996
28997         Avoid a gcc warning.
28998         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
28999         of correct type for %08lx directive.
29000         Reported by Eric Blake.
29001
29002 2010-04-24  Bruno Haible  <bruno@clisp.org>
29003
29004         vasnprintf: Correct errno value in case of out-of-memory.
29005         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29006         or sprintf. Use the errno value from SNPRINTF or sprintf.
29007         Reported by Ian Beckwith <ianb@erislabs.net>.
29008
29009 2010-04-24  Bruno Haible  <bruno@clisp.org>
29010
29011         ansi-c++-opt: Find correct compiler when cross-compiling.
29012         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29013         AC_CHECK_PROGS.
29014         Reported by Simon Josefsson.
29015
29016 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29017
29018         vc-list-files: Add support for subversion
29019         * build-aux/vc-list-files: Use "svn list" to generate the list of
29020         files controlled by subversion.
29021
29022 2010-04-23  Jim Meyering  <meyering@redhat.com>
29023
29024         vc-list-files tests: convert to use init.sh
29025         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29026         path_prepend_.
29027         Use Exit, not exit.
29028         Use skip_ rather than open coding it.
29029         Remove trap set-up and compare definitions.
29030         * tests/test-vc-list-files-git.sh: Likewise.
29031         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29032
29033 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29034
29035         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29036         backup files.
29037
29038 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29039
29040         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29041
29042 2010-04-20  Eric Blake  <eblake@redhat.com>
29043
29044         tests: be robust to ignored SIGPIPE
29045         * tests/test-select-in.sh: Consume all output.
29046         * tests/test-lseek.sh: Check correct exit status, while avoiding
29047         EPIPE.
29048
29049 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29050             Bruno Haible  <bruno@clisp.org>
29051
29052         visibility: Don't use -fvisibility if it leads to a warning.
29053         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29054         yes, don't pretend that visibility works if it leads to a warning.
29055         Reported by Mike Gran <spk121@yahoo.com>.
29056
29057 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29058
29059         * build-aux/bootstrap: Use "git -h" for testing for supported options
29060         instead of "git --help".  The short-form option only shows a summary,
29061         and doesn't layout the full man page.  Grep for the full option name
29062         in the summary, too.
29063
29064 2010-04-19  Bruno Haible  <bruno@clisp.org>
29065
29066         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29067         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29068         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29069         mention of RELOCATABLE_STRIP.
29070         Reported by Sylvain Beucler <beuc@beuc.net>.
29071
29072 2010-04-19  Bruno Haible  <bruno@clisp.org>
29073
29074         * lib/diffseq.h: Fix typo in comment.
29075         Reported by Eric Blake.
29076
29077 2010-04-19  Bruno Haible  <bruno@clisp.org>
29078
29079         ioctl: Move autoconf macro to a .m4 file.
29080         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29081         * modules/ioctl (Files): Add it.
29082         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29083         Reported by Ian Beckwith <ianb@erislabs.net>.
29084
29085 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29086             Bruno Haible  <bruno@clisp.org>
29087
29088         diffseq: Accommodate use-case with abstract arrays.
29089         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29090         is not defined.
29091         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29092         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29093
29094 2010-04-18  Bruno Haible  <bruno@clisp.org>
29095
29096         * doc/posix-headers/stdbool.texi: More precise wording.
29097
29098 2010-04-17  Jim Meyering  <meyering@redhat.com>
29099
29100         maint.mk: use gnu-style indentation in an embedded perl script
29101         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29102         Rename variable: s/two/last_two_bytes/
29103
29104 2010-04-16  Eric Blake  <eblake@redhat.com>
29105
29106         test-stdbool: skip test that fails with Solaris CC
29107         * tests/test-stdbool.c (f): Skip test that causes compilation
29108         error under buggy C++ compiler.
29109         * lib/stdbool.in.h: Document the limitation.
29110         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29111
29112         setenv: allow compilation with C++
29113         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29114         register keyword.
29115
29116         stdint: allow test to pass with C++
29117         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29118
29119         getopt: allow compilation with C++
29120         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29121         struct.
29122         * lib/getopt.c (_getopt_internal_r): Use correct type.
29123         Reported by Dagobert Michelson, via Joel E. Denny.
29124
29125 2010-04-16  Bruno Haible  <bruno@clisp.org>
29126
29127         Override netdb.h always.
29128         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29129         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29130         Reported by Ludovic Courtès <ludo@gnu.org>.
29131
29132 2010-04-15  Bruno Haible  <bruno@clisp.org>
29133
29134         openpty: Fix mistake from 2010-03-21.
29135         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29136         Reported by Simon Josefsson.
29137
29138 2010-04-15  Eric Blake  <eblake@redhat.com>
29139
29140         test-forkpty: fix expected signature
29141         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29142         Reported by Simon Josefsson.
29143
29144 2010-04-15  Jim Meyering  <meyering@redhat.com>
29145
29146         maint.mk: texinfo_suffix_re_: correct the default regexp
29147         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29148
29149         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29150         make it configurable via texinfo_suffix_re_.
29151
29152 2010-04-14  Eric Blake  <eblake@redhat.com>
29153
29154         strtok_r: relax license to LGPLv2+
29155         * modules/strtok_r (License): Relax license.
29156         Reported by Matthias Bolte.
29157
29158 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29159
29160         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29161         version 1.4.4 by default instead of requiring the libgcrypt
29162         version used during build.  This makes it possible to use the
29163         application with older but still binary compatible libgcrypt
29164         versions.
29165
29166 2010-04-13  Eric Blake  <eblake@redhat.com>
29167
29168         getopt-gnu: match recent glibc fixes and posix ruling
29169         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29170         '+' handling, when requesting extensions.
29171         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29172         'W;' handling.
29173         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29174         * doc/posix-functions/getopt.texi (getopt): Document this.
29175         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29176         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29177         Likewise.
29178
29179         getopt: merge bug fixes from glibc
29180         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29181         diagnostics.  Honor '+:' correctly.  Reject ';'.
29182
29183         getopt-posix: detect MacOS bug
29184         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29185         optind when missing a required argument.
29186         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29187         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29188         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29189         Likewise.
29190
29191         getopt-posix: avoid spurious failure on Solaris
29192         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29193         an indicator that setting optind=1 is sufficient for reset.
29194
29195         getopt-posix: avoid spurious failure on FreeBSD
29196         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29197         in POSIX mode, since the m4 test uses it.
29198
29199         gnulib-tool: silence warning on BSD sh
29200         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29201
29202 2010-04-13  Jim Meyering  <meyering@redhat.com>
29203
29204         doc: users.txt: GNU patch now uses gnulib
29205         * users.txt: Add patch.
29206
29207 2010-04-12  Jim Meyering  <meyering@redhat.com>
29208
29209         maint.mk: generate more concise timing data for syntax-check rules
29210         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29211         " done" from each line that reports a syntax-check test duration.
29212
29213 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29214
29215         git-version-gen: use "git update-index..." rather than "git status"
29216         * build-aux/git-version-gen: Use git update-index --refresh, not
29217         "git status".  With some versions of git, "git status" would fail
29218         to update the index and result in an unwarranted "-dirty" suffix.
29219
29220 2010-04-11  Jim Meyering  <meyering@redhat.com>
29221
29222         openat: correct formatting (no semantic change)
29223         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29224         Suggested by Bruno Haible.
29225
29226 2010-04-11  Bruno Haible  <bruno@clisp.org>
29227
29228         Stricter declaration checking in testdirs.
29229         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29230         If for_tests is true, augment AM_CPPFLAGS to define
29231         GNULIB_STRICT_CHECKING.
29232         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29233         GNULIB_STRICT_CHECKING is defined, verify that the function is
29234         declared.
29235
29236 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29237             Bruno Haible  <bruno@clisp.org>
29238
29239         libunistring: Improve configure output.
29240         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29241         Don't say "consider installing GNU libunistring" when checking again
29242         with libiconv.
29243
29244 2010-04-11  Bruno Haible  <bruno@clisp.org>
29245
29246         libunistring: Correct value of $LTLIBUNISTRING.
29247         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29248         correct the value of $LTLIBUNISTRING.
29249
29250 2010-04-11  Bruno Haible  <bruno@clisp.org>
29251
29252         havelib: Add static libraries to LIBS in the right order.
29253         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29254         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29255
29256 2010-04-11  Bruno Haible  <bruno@clisp.org>
29257
29258         libunistring: Detect libunistring also when it depends on libiconv.
29259         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29260         the second AC_LIB_HAVE_LINKFLAGS invocation.
29261
29262 2010-04-11  James Youngman  <jay@gnu.org>
29263
29264         close-stream: declare local scalars to be "const"
29265         * lib/close-stream.c (close_stream): Make boolean variables const
29266         to document the fact that we set but do not change them.
29267
29268 2010-04-11  Bruno Haible  <bruno@clisp.org>
29269
29270         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29271
29272 2010-04-11  Jim Meyering  <meyering@redhat.com>
29273
29274         maint.mk: don't include dist-check.mk
29275         * top/maint.mk: Remove bogus include directive.
29276
29277         maint.mk: improve empty-line-at-EOF check
29278         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29279         solution, rather than tail+Perl-based one.  The latter would read
29280         a few kilobytes from the end of each file, and did not handle empty
29281         files properly.
29282
29283         maint.mk: print the elapsed time for each syntax-check rule
29284         * top/maint.mk (sc_m_rules_): Save start time in a file.
29285         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29286         (local-check): Interpose the .z rules
29287
29288 2010-04-11  Jim Meyering  <meyering@redhat.com>
29289
29290         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29291         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29292         empty file with one that ends in an empty line.
29293
29294 2010-04-10  Bruno Haible  <bruno@clisp.org>
29295
29296         mkdir: Make it work on mingw64.
29297         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29298         * lib/mkdir.c: Update comment.
29299         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29300
29301 2010-04-10  Bruno Haible  <bruno@clisp.org>
29302
29303         Don't override improved macro from newer autoconf.
29304         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29305         autoconf >= 2.62.
29306         Reported by Joel E. Denny <jdenny@clemson.edu>.
29307
29308 2010-04-10  Jim Meyering  <meyering@redhat.com>
29309
29310         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29311         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29312
29313         maint.mk: correct a diagnostic
29314         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29315         in diagnostic; now use $prohibit.
29316
29317 2010-04-10  Bruno Haible  <address@hidden>
29318
29319         fchownat: Fix a C++ test error on Solaris 8.
29320         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
29321         the function does not exist.
29322
29323 2010-04-10  Bruno Haible  <bruno@clisp.org>
29324
29325         vasnprintf: Add more tests.
29326         * tests/test-vasnprintf-posix.c: Include <errno.h>.
29327         (test_function): Test converting an invalid wide string.
29328
29329         vasnprintf: Correct handling of unconvertible wide string arguments.
29330         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
29331         VASNPRINTF.
29332         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
29333         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
29334         smaller than the expected maximum need for the directive. Set errno to
29335         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
29336         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
29337         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
29338         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29339         * modules/vasnprintf (Files): Add m4/printf.m4.
29340         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29341
29342 2010-04-10  Bruno Haible  <bruno@clisp.org>
29343
29344         vasnprintf: Fix crash in %ls directive.
29345         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
29346         string is passed as argument to %ls, with no precision and no width.
29347         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29348
29349 2010-04-10  Bruno Haible  <bruno@clisp.org>
29350
29351         vasnprintf: Fix multiple test failures on mingw.
29352         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
29353         _snprintf, or snwprintf, not _snwprintf.
29354
29355 2010-04-10  Bruno Haible  <bruno@clisp.org>
29356
29357         write: Fix a C++ test error on mingw.
29358         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29359
29360 2010-04-10  Bruno Haible  <bruno@clisp.org>
29361
29362         vasnprintf test: Reduce code duplication.
29363         * tests/test-vasnprintf.c (test_function): New function, extracted from
29364         test_vasnprintf.
29365         (test_vasnprintf, test_asnprintf): Invoke it.
29366
29367 2010-04-10  Bruno Haible  <bruno@clisp.org>
29368
29369         strnlen: Fix warning in C++ mode on MacOS X.
29370         * lib/string.in.h (strnlen): Use the modern idiom.
29371         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29372         defining strnlen as a macro already in <config.h>.
29373         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29374         REPLACE_STRNLEN.
29375         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29376         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29377
29378 2010-04-08  James Youngman  <jay@gnu.org>
29379
29380         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29381         the example.
29382
29383 2010-04-09  Jim Meyering  <meyering@redhat.com>
29384
29385         maint.mk: print better diagnostic when there is no $(_hv_file)
29386         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29387         announce that when $(_hv_file) (aka help-version) does not exist.
29388
29389         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29390         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29391         not try to interpret its random input bytes.  Jarno Rajahalme reported
29392         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29393         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29394         (mktempd_): Likewise, just in case.
29395
29396         ftruncate: add two years to projected module removal date: 2012
29397         * m4/ftruncate.m4: Adjust comments.
29398
29399         ftruncate: mark module as obsolete; even MinGW provides it, now
29400         * modules/ftruncate (Status): Obsolete.
29401         (Notice): Say that.
29402         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
29403         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
29404
29405 2010-04-08  Bruno Haible  <bruno@clisp.org>
29406
29407         Fix side effects from tests-related modules.
29408         * modules/dprintf-posix (Comment): New section.
29409         * modules/fprintf-posix (Comment): Likewise.
29410         * modules/obstack-printf-posix (Comment): Likewise.
29411         * modules/printf-posix (Comment): Likewise.
29412         * modules/snprintf-posix (Comment): Likewise.
29413         * modules/sprintf-posix (Comment): Likewise.
29414         * modules/vasnprintf-posix (Comment): Likewise.
29415         * modules/vasprintf-posix (Comment): Likewise.
29416         * modules/vdprintf-posix (Comment): Likewise.
29417         * modules/vfprintf-posix (Comment): Likewise.
29418         * modules/vprintf-posix (Comment): Likewise.
29419         * modules/vsnprintf-posix (Comment): Likewise.
29420         * modules/vsprintf-posix (Comment): Likewise.
29421         * modules/xprintf-posix (Comment): Likewise.
29422         * modules/xvasprintf-posix (Comment): Likewise.
29423         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
29424         * modules/floorf-tests (Depends-on): Likewise.
29425         * modules/round-tests (Depends-on): Likewise.
29426         * modules/roundf-tests (Depends-on): Likewise.
29427         * modules/trunc-tests (Depends-on): Likewise.
29428         * modules/truncf-tests (Depends-on): Likewise.
29429         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
29430         'fprintf-posix' module is not present.
29431         * tests/test-floorf2.c (check): Likewise.
29432         * tests/test-trunc2.c (check): Likewise.
29433         * tests/test-truncf2.c (check): Likewise.
29434         * tests/test-round2.c (equal): Likewise.
29435         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29436
29437 2010-04-07  Karl Berry  <karl@gnu.org>
29438
29439         * config/srclist.txt,
29440         * config/srclistvars.sh,
29441         * config/srclist-update: doc fixes.
29442
29443 2010-04-07  Jim Meyering  <meyering@redhat.com>
29444
29445         maint.mk: add a PATH crosschecking syntax-check rule
29446         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
29447         Useful if you use a test like the one in help-version (coreutils,
29448         diffutils, grep, gzip) that ensures $(VERSION) matches what is
29449         printed by prog --version.
29450
29451 2010-04-06  Bruno Haible  <bruno@clisp.org>
29452
29453         Fix link error on mingw.
29454         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
29455         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
29456
29457 2010-04-06  Bruno Haible  <bruno@clisp.org>
29458
29459         Assume rmdir exists.
29460         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
29461
29462 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
29463
29464         doc: update users.txt
29465         * users.txt: Add gcal.
29466
29467 2010-04-06  Jim Meyering  <meyering@redhat.com>
29468
29469         init.sh: simply unset TMPDIR rather than risking env -i
29470         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
29471         although it probably works fine on all Unix-based systems, some
29472         systems (Cygwin?) cannot tolerate a totally cleared environment.
29473         Suggestion from Eric Blake.
29474
29475 2010-04-06  Jim Meyering  <meyering@redhat.com>
29476
29477         init.sh: portability fix: use env's POSIX-specified -i option not -u
29478         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
29479         than unportable env -u.  Solaris 5.11's env lacks support for -u.
29480
29481 2010-04-05  Bruno Haible  <bruno@clisp.org>
29482
29483         btowc: Work around Cygwin 1.7.2 bug.
29484         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
29485         does not map NUL to 0.
29486         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
29487
29488 2010-04-05  Bruno Haible  <bruno@clisp.org>
29489
29490         Make the multithread modules work on Cygwin 1.7.2.
29491         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
29492         imported symbols can be declared weak, so that it returns "no" on
29493         Cygwin 1.7.2.
29494
29495 2010-04-05  Bruno Haible  <bruno@clisp.org>
29496
29497         Use the module 'strncat'.
29498         * modules/unistr/u8-strncat (Depends-on): Add strncat.
29499
29500         Tests for module 'strncat'.
29501         * modules/strncat-tests: New file.
29502         * tests/test-strncat.c: New file.
29503
29504         New module 'strncat'.
29505         * lib/string.in.h (strncat): New declaration.
29506         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29507         * m4/strncat.m4: New file, based on m4/memchr.m4.
29508         * modules/strncat: New file.
29509         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29510         is declared.
29511         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29512         REPLACE_STRNCAT.
29513         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29514         REPLACE_STRNCAT.
29515         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29516         module.
29517         * tests/test-string-c++.cc: Check signature of strncat.
29518
29519 2010-04-05  Jim Meyering  <meyering@redhat.com>
29520
29521         xstrtoumax-tests: convert to use init.sh
29522         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29523         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29524         Use Exit, not exit.
29525         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29526
29527         xstrtoimax-tests: convert to use init.sh
29528         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29529         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29530         Use Exit, not exit.
29531         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29532
29533 2010-04-05  Bruno Haible  <bruno@clisp.org>
29534
29535         sys_socket: Avoid #define replacements in C++ mode.
29536         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29537         warning to the function if possible, rather than #defining the symbol
29538         to a dysfunctional alias.
29539
29540 2010-04-05  Bruno Haible  <bruno@clisp.org>
29541
29542         fseeko: Fix C++ test error on mingw.
29543         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29544         gl_FUNC_FSEEKO.
29545         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29546         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29547         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29548         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29549
29550 2010-04-05  Bruno Haible  <bruno@clisp.org>
29551
29552         duplocale: Improve test output.
29553         * tests/test-duplocale.c (main): Print reason for skipped test.
29554
29555 2010-04-05  Bruno Haible  <bruno@clisp.org>
29556
29557         Assume rmdir exists.
29558         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29559         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29560
29561 2010-04-05  Bruno Haible  <bruno@clisp.org>
29562
29563         Fix link error on Solaris 8 with cc.
29564         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29565
29566 2010-04-05  Bruno Haible  <bruno@clisp.org>
29567
29568         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29569         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29570
29571 2010-04-05  Bruno Haible  <bruno@clisp.org>
29572
29573         vasprintf: Update documentation.
29574         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29575
29576 2010-04-05  Bruno Haible  <bruno@clisp.org>
29577
29578         ptsname: Improve test.
29579         * tests/test-ptsname.c (main): Also try the various master names of BSD
29580         systems.
29581
29582 2010-04-05  Bruno Haible  <bruno@clisp.org>
29583
29584         memchr: Avoid a possible C++ test error.
29585         * lib/string.in.h (memchr): Provide declaration if function is missing.
29586         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29587         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29588         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29589         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29590
29591 2010-04-05  Bruno Haible  <bruno@clisp.org>
29592
29593         strtok_r: Improve idiom.
29594         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29595         AC_LIBOBJ is used.
29596
29597 2010-04-05  Bruno Haible  <bruno@clisp.org>
29598
29599         strdup: Improve idiom.
29600         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29601         AC_LIBOBJ is used.
29602         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29603         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29604         when AC_LIBOBJ is used.
29605
29606 2010-04-05  Bruno Haible  <bruno@clisp.org>
29607
29608         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29609         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29610         don't set REPLACE_MBSINIT to 1.
29611         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29612         don't set REPLACE_MBRTOWC to 1.
29613         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29614         exist, don't set REPLACE_MBSRTOWCS to 1.
29615         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29616         exist, don't set REPLACE_MBSNRTOWCS to 1.
29617         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29618         don't set REPLACE_WCRTOMB to 1.
29619         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29620         exist, don't set REPLACE_WCSRTOMBS to 1.
29621         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29622         exist, don't set REPLACE_WCSNRTOMBS to 1.
29623
29624 2010-04-05  Bruno Haible  <bruno@clisp.org>
29625
29626         ldexpl: Improve idiom.
29627         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29628         make sure to set HAVE_DECL_LDEXPL to 0.
29629
29630 2010-04-05  Jim Meyering  <meyering@redhat.com>
29631
29632         xstrtol-tests: convert to use init.sh
29633         * modules/xstrtol-tests (Files): Add tests/init.sh.
29634         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29635         Use Exit, not exit.
29636         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29637
29638         atexit-tests: convert to use init.sh
29639         * modules/atexit-tests (Files): Add tests/init.sh.
29640         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29641         Use Exit, not exit.
29642         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29643
29644         init.sh: fix typo
29645         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29646
29647         init.sh: make it easier for a test script to write to the tty, ...
29648         when using automake's parallel-tests mode.
29649         * tests/init.sh (stderr_fileno_): Define overridable variable.
29650         (warn_): New function, to use it.
29651         (fail_, skip_, framework_failure_): Use warn_.
29652
29653 2010-04-04  Bruno Haible  <bruno@clisp.org>
29654
29655         btowc: Avoid warning.
29656         * lib/btowc.c: Include <stdlib.h>.
29657         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
29658
29659 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29660             Bruno Haible  <bruno@clisp.org>
29661
29662         wchar: Port to NetBSD 1.5.
29663         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
29664         * lib/wctype.in.h (WEOF): Likewise.
29665
29666 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29667             Bruno Haible  <bruno@clisp.org>
29668
29669         Port extended stdio to NetBSD 1.5.
29670         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
29671         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
29672         older.
29673
29674 2010-04-04  Bruno Haible  <bruno@clisp.org>
29675
29676         string: Remove unused substitution.
29677         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29678         HAVE_DECL_STRERROR.
29679         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
29680
29681 2010-04-04  Bruno Haible  <bruno@clisp.org>
29682
29683         strtod: Avoid a possible C++ test error.
29684         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
29685         set REPLACE_STRTOD.
29686
29687 2010-04-04  Bruno Haible  <bruno@clisp.org>
29688
29689         strerror: Update documentation.
29690         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
29691
29692 2010-04-04  Bruno Haible  <bruno@clisp.org>
29693
29694         stdio: Fix some C++ test errors on Solaris 8 with GCC.
29695         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
29696         _GL_CXXALIAS_SYS_CAST.
29697
29698 2010-04-04  Bruno Haible  <bruno@clisp.org>
29699
29700         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29701         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
29702         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
29703         REPLACE_FREXPL to 1.
29704         * doc/posix-functions/frexpl.texi: Update documentation.
29705
29706 2010-04-04  Bruno Haible  <bruno@clisp.org>
29707
29708         math: Fix some C++ test errors on Solaris 8 and Cygwin.
29709         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
29710
29711 2010-04-04  Bruno Haible  <bruno@clisp.org>
29712
29713         Implement nanosleep for native Windows.
29714         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
29715
29716 2010-04-04  Bruno Haible  <bruno@clisp.org>
29717
29718         math: Fix some C++ test errors on Solaris 8.
29719         * lib/math.in.h (truncf, trunc): Use simpler idiom.
29720
29721 2010-04-04  Bruno Haible  <bruno@clisp.org>
29722
29723         math: Fix some C++ test errors on Cygwin.
29724         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
29725         truncl): Provide declaration if the system does not have it.
29726         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
29727         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
29728         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
29729         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
29730         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
29731         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
29732         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
29733         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
29734         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
29735         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
29736         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
29737         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
29738         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
29739         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
29740         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
29741         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
29742         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
29743         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29744         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29745         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
29746         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29747         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29748
29749 2010-04-04  Bruno Haible  <bruno@clisp.org>
29750
29751         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
29752         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29753         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29754         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29755         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29756         * m4/isinf.m4 (gl_ISINF): Likewise.
29757         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29758
29759 2010-04-04  Bruno Haible  <bruno@clisp.org>
29760
29761         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
29762         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29763
29764 2010-04-04  Bruno Haible  <bruno@clisp.org>
29765
29766         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
29767         * modules/tmpfile (configure.ac): Update.
29768
29769         tmpfile: Fix C++ test error on mingw.
29770         * lib/stdio.in.h (tmpfile): New declaration.
29771         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
29772         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
29773         * modules/tmpfile (Depends-on): Add stdio.
29774         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29775         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
29776         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
29777         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
29778         REPLACE_TMPFILE.
29779         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
29780
29781 2010-04-04  Bruno Haible  <bruno@clisp.org>
29782
29783         ioctl: Fix C++ test error on mingw.
29784         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
29785         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
29786         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
29787
29788 2010-04-03  Bruno Haible  <bruno@clisp.org>
29789
29790         wcwidth: Fix C++ test error on mingw.
29791         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
29792         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
29793         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
29794
29795 2010-04-03  Bruno Haible  <bruno@clisp.org>
29796
29797         nanosleep: Fix C++ test error on mingw.
29798         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
29799         * lib/time.in.h (nanosleep): Use modern idiom.
29800         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
29801         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
29802         REPLACE_NANOSLEEP to 1.
29803         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
29804         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
29805
29806 2010-04-03  Bruno Haible  <bruno@clisp.org>
29807
29808         strptime: Fix C++ test error on mingw.
29809         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
29810         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
29811         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
29812         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
29813         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
29814         not REPLACE_STRPTIME.
29815         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
29816         REPLACE_STRPTIME.
29817
29818 2010-04-03  Bruno Haible  <bruno@clisp.org>
29819
29820         timegm: Fix C++ test error on mingw.
29821         * lib/time.in.h (timegm): Use modern idiom.
29822         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
29823         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
29824         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
29825         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
29826
29827 2010-04-03  Bruno Haible  <bruno@clisp.org>
29828
29829         timegm: Assume declaration if function exists.
29830         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
29831         if it exists. Don't clobber ac_cv_func_timegm.
29832
29833 2010-04-03  Bruno Haible  <bruno@clisp.org>
29834
29835         time_r: Fix C++ test error on mingw.
29836         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
29837         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
29838         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
29839         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
29840         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
29841
29842 2010-04-03  Bruno Haible  <bruno@clisp.org>
29843
29844         time_r: Minor updates.
29845         * modules/time_r (Description): Mention the provided functions.
29846         * lib/time_r.c: Don't include <string.h>.
29847         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
29848         * doc/posix-functions/localtime_r.texi: Likewise.
29849
29850 2010-04-03  Bruno Haible  <bruno@clisp.org>
29851
29852         time: Fix regression introduced on 2010-03-08.
29853         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
29854         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
29855
29856 2010-04-03  Jim Meyering  <meyering@redhat.com>
29857
29858         maint.mk: don't silently disable project-specific syntax-check rules
29859         * top/maint.mk (_prohibit_regexp): Define, to help people realize
29860         that they need to convert their project-specific syntax-check rules
29861         to use the new _sc_search_regexp.
29862
29863 2010-04-03  Bruno Haible  <bruno@clisp.org>
29864
29865         fchdir: Fix regression introduced on 2010-03-08.
29866         * lib/unistd.in.h (fchdir): Fix declaration.
29867         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
29868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
29869         REPLACE_FCHDIR.
29870         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
29871         REPLACE_FCHDIR.
29872
29873 2010-04-03  Bruno Haible  <bruno@clisp.org>
29874
29875         getpagesize: Fix C++ test error on mingw.
29876         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
29877         system does not declare the function.
29878         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
29879         declared.
29880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29881         HAVE_DECL_GETPAGESIZE.
29882         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
29883
29884 2010-04-03  Bruno Haible  <bruno@clisp.org>
29885
29886         stdio: Make C++ tests work on mingw.
29887         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
29888         does not declare the function.
29889
29890 2010-04-03  Bruno Haible  <bruno@clisp.org>
29891
29892         ftello: Fix C++ test error on mingw.
29893         * lib/stdio.in.h (ftello): Use modern idiom.
29894         * lib/ftello.c (ftello): Renamed from rpl_ftello.
29895         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
29896         is missing and that it needs to be replaced.
29897         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
29898         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
29899         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
29900
29901 2010-04-03  Bruno Haible  <bruno@clisp.org>
29902
29903         fseeko: Fix C++ test error on mingw.
29904         * lib/stdio.in.h (fseeko): Use modern idiom.
29905         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
29906         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
29907         is missing and that it needs to be replaced.
29908         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
29909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
29910         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
29911
29912 2010-04-03  Bruno Haible  <bruno@clisp.org>
29913
29914         mkstemp: Fix C++ test error on mingw.
29915         * lib/stdlib.in.h (mkstemp): Use modern idiom.
29916         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
29917         function is missing and that it needs to be replaced.
29918         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
29919         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
29920
29921 2010-04-03  Bruno Haible  <bruno@clisp.org>
29922
29923         stpncpy: Fix C++ test error on mingw.
29924         * lib/string.in.h (stpncpy): Use modern idiom.
29925         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
29926         function is missing and that it needs to be replaced.
29927         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29928         REPLACE_STPNCPY.
29929         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
29930
29931 2010-04-03  Bruno Haible  <bruno@clisp.org>
29932
29933         sys_stat: Fix C++ test error on mingw.
29934         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
29935         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
29936
29937 2010-04-03  Bruno Haible  <bruno@clisp.org>
29938
29939         pty: Update doc.
29940         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
29941
29942 2010-04-03  Bruno Haible  <bruno@clisp.org>
29943
29944         unistd: Fix C++ test error on mingw.
29945         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
29946
29947 2010-04-03  Bruno Haible  <bruno@clisp.org>
29948
29949         Update doc regarding mingw.
29950         * doc/glibc-functions/openpty.texi: Update regarding mingw.
29951         * doc/glibc-functions/login_tty.texi: Likewise.
29952         * doc/glibc-functions/forkpty.texi: Likewise.
29953
29954 2010-04-03  Bruno Haible  <bruno@clisp.org>
29955
29956         stdlib: Avoid compilation failure of c-strtold on mingw.
29957         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
29958
29959 2010-04-03  Bruno Haible  <bruno@clisp.org>
29960
29961         locale: Make C++ tests work on Cygwin and mingw.
29962         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
29963         cannot provide the function.
29964         Reported by Simon Josefsson.
29965
29966 2010-04-03  Bruno Haible  <bruno@clisp.org>
29967
29968         localename: Port to MacOS X 10.6.
29969         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
29970         memory layout of the locales in MacOS X 10.6 as well.
29971         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
29972
29973 2010-04-02  Bruno Haible  <bruno@clisp.org>
29974
29975         gnulib-tool: Ensure that long-running tests are executed last.
29976         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
29977         running tests after the one for the other tests.
29978
29979 2010-04-02  Bruno Haible  <bruno@clisp.org>
29980
29981         gnulib-tool: Ensure the tests in the main directory are executed first.
29982         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
29983         start with the current directory.
29984
29985 2010-04-02  Bruno Haible  <bruno@clisp.org>
29986
29987         Tests for module 'havelib', moved here from GNU gettext.
29988         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
29989         modifications.
29990         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
29991         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
29992         with modifications.
29993         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
29994         modifications.
29995         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
29996         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
29997         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
29998         with modifications.
29999         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30000         with modifications.
30001         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30002         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30003         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30004         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30005         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30006         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30007         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30008         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30009         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30010         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30011         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30012         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30013         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30014         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30015         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30016         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30017         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30018         with modifications.
30019         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30020         with modifications.
30021         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30022         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30023         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30024         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30025         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30026         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30027         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30028         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30029         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30030         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30031         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30032         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30033         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30034         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30035         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30036         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30037         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30038         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30039         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30040         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30041         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30042         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30043         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30044         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30045         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30046         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30047         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30048         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30049         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30050         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30051         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30052         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30053         * tests/havelib/rpathx/rpathx.c: New file, from
30054         gettext/autoconf-lib-link.
30055         * tests/havelib/rpathx/Makefile.am: New file, from
30056         gettext/autoconf-lib-link.
30057         * tests/havelib/rpathx/configure.ac: New file, from
30058         gettext/autoconf-lib-link with modifications.
30059         * tests/havelib/rpathy/rpathy.c: New file, from
30060         gettext/autoconf-lib-link.
30061         * tests/havelib/rpathy/Makefile.am: New file, from
30062         gettext/autoconf-lib-link.
30063         * tests/havelib/rpathy/configure.ac: New file, from
30064         gettext/autoconf-lib-link with modifications.
30065         * tests/havelib/rpathz/rpathz.c: New file, from
30066         gettext/autoconf-lib-link.
30067         * tests/havelib/rpathz/Makefile.am: New file, from
30068         gettext/autoconf-lib-link.
30069         * tests/havelib/rpathz/configure.ac: New file, from
30070         gettext/autoconf-lib-link with modifications.
30071         * tests/havelib/rpathlx/usex.c: New file, from
30072         gettext/autoconf-lib-link.
30073         * tests/havelib/rpathlx/Makefile.am: New file, from
30074         gettext/autoconf-lib-link.
30075         * tests/havelib/rpathlx/configure.ac: New file, from
30076         gettext/autoconf-lib-link with modifications.
30077         * tests/havelib/rpathly/usey.c: New file, from
30078         gettext/autoconf-lib-link.
30079         * tests/havelib/rpathly/Makefile.am: New file, from
30080         gettext/autoconf-lib-link.
30081         * tests/havelib/rpathly/configure.ac: New file, from
30082         gettext/autoconf-lib-link with modifications.
30083         * tests/havelib/rpathlz/usez.c: New file, from
30084         gettext/autoconf-lib-link.
30085         * tests/havelib/rpathlz/Makefile.am: New file, from
30086         gettext/autoconf-lib-link.
30087         * tests/havelib/rpathlz/configure.ac: New file, from
30088         gettext/autoconf-lib-link with modifications.
30089         * tests/havelib/rpathlyx/usey.c: New file, from
30090         gettext/autoconf-lib-link.
30091         * tests/havelib/rpathlyx/Makefile.am: New file, from
30092         gettext/autoconf-lib-link.
30093         * tests/havelib/rpathlyx/configure.ac: New file, from
30094         gettext/autoconf-lib-link with modifications.
30095         * tests/havelib/rpathlzyx/usez.c: New file, from
30096         gettext/autoconf-lib-link.
30097         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30098         gettext/autoconf-lib-link.
30099         * tests/havelib/rpathlzyx/configure.ac: New file, from
30100         gettext/autoconf-lib-link with modifications.
30101         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30102         with modifications.
30103
30104 2010-04-02  Bruno Haible  <bruno@clisp.org>
30105
30106         gnulib-tool: Create distributed built sources also for the tests.
30107         * gnulib-tool (func_create_testdir): Also generate distributed built
30108         sources in the tests directory.
30109
30110 2010-04-02  Bruno Haible  <bruno@clisp.org>
30111
30112         gnulib-tool: Obey user's environment variables.
30113         * gnulib-tool (func_create_testdir): When creating built sources,
30114         respect the environment variables for autoconf, automake, etc. given by
30115         the user.
30116
30117 2010-04-02  Bruno Haible  <bruno@clisp.org>
30118
30119         gnulib-tool: Provide the value of --m4-base to modules.
30120         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30121         of gl_m4_base.
30122
30123 2010-04-02  Eric Blake  <eblake@redhat.com>
30124
30125         maint.mk: fix some fallout
30126         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30127         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30128
30129 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30130
30131         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30132         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30133         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30134         (sc_cast_of_x_alloc_return_value): Likewise.
30135         (sc_cast_of_alloca_return_value): Likewise.
30136         (sc_space_tab): Likewise.
30137         (sc_prohibit_atoi_atof): Likewise.
30138         (sc_prohibit_magic_number_exit): Likewise.
30139         (sc_error_exit_success): Likewise.
30140         (sc_file_system): Likewise.
30141         (sc_prohibit_have_config_h): Likewise.
30142         (sc_require_config_h): Likewise.
30143         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30144         (sc_obsolete_symbols): Likewise.
30145         (sc_changelog): Likewise.
30146         (sc_program_name): Likewise.
30147         (sc_the_the): Likewise.
30148         (sc_trailing_blank): Likewise.
30149         (sc_two_space_separator_in_usage): Likewise.
30150         (sc_useless_cpp_parens): Likewise.
30151         (sc_GPL_version): Likewise.
30152         (sc_GFDL_version): Likewise.
30153         (sc_texinfo_acronym): Likewise.
30154         (sc_prohibit_cvs_keyword): Likewise.
30155         (sc_prohibit_stat_st_blocks): Likewise.
30156         (sc_prohibit_S_IS_definition): Likewise.
30157         (sc_redundant_const): Likewise.
30158         (sc_makefile_TAB_only_indentation): Likewise.
30159         (sc_m4_quote_check): Likewise.
30160         (sc_makefile_path_separator_check): Likewise.
30161         (sc_copyright_check): Likewise.
30162         (sc_Wundef_boolean): Likewise.
30163         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30164
30165         maint.mk: match 0 or more whitespace-before-function-call '('
30166         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30167         that have zero or two-and-more spaces between the function name
30168         and the open parenthesis.
30169         (sc_error_message_warn_fatal): Likewise.
30170         (sc_error_message_uppercase): Likewise.
30171         (sc_error_message_period): Likewise.
30172
30173 2010-03-31  Eric Blake  <eblake@redhat.com>
30174
30175         maint.mk: check for [ as well as test
30176         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30177         Based on a libvirt report by Matthias Bolte.
30178
30179         gnumakefile: don't squelch _version output
30180         * top/GNUmakefile (_version): Create one-shot dependency rather
30181         than using $(shell) when version must be regenerated.
30182         (_autoreconf): Run verbosely, by default.
30183
30184         sys_time: avoid compiler warnings
30185         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30186         unconditional, fixing regression from 2010-03-29.
30187         Reported by Simon Josefsson.
30188
30189 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30190
30191         maint.mk: s/_header_without_use/_sc_header_without_use/
30192         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30193         (sc_prohibit_assert_without_use): Use the new name.
30194         (sc_prohibit_close_stream_without_use): Likewise.
30195         (sc_prohibit_getopt_without_use): Likewise.
30196         (sc_prohibit_quotearg_without_use): Likewise.
30197         (sc_prohibit_quote_without_use): Likewise.
30198         (sc_prohibit_long_options_without_use): Likewise.
30199         (sc_prohibit_inttostr_without_use): Likewise.
30200         (sc_prohibit_ignore_value_without_use): Likewise.
30201         (sc_prohibit_error_without_use): Likewise.
30202         (sc_prohibit_xalloc_without_use): Likewise.
30203         (sc_prohibit_hash_without_use): Likewise.
30204         (sc_prohibit_hash_pjw_without_use): Likewise.
30205         (sc_prohibit_safe_read_without_use): Likewise.
30206         (sc_prohibit_argmatch_without_use): Likewise.
30207         (sc_prohibit_canonicalize_without_use): Likewise.
30208         (sc_prohibit_root_dev_ino_without_use): Likewise.
30209         (sc_prohibit_openat_without_use): Likewise.
30210         (sc_prohibit_c_ctype_without_use): Likewise.
30211         (sc_prohibit_signal_without_use): Likewise.
30212         (sc_prohibit_intprops_without_use): Likewise.
30213
30214 2010-03-30  Eric Blake  <eblake@redhat.com>
30215
30216         maint: improve module indicators
30217         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30218         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30219         columns, and avoid extra macro expansion.
30220
30221         fdopendir: work around FreeBSD bug
30222         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30223         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30224         * modules/dirent (Makefile.am): Substitute it.
30225         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30226         declaration.
30227         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30228         fix.
30229         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30230
30231 2010-03-29  Bruno Haible  <bruno@clisp.org>
30232
30233         Emit #pragma system_header after the inclusion guard, not before.
30234         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30235         guard that spans the entire file, not before. This enables an
30236         optimization in GCC's preprocessor.
30237         * lib/ctype.in.h: Likewise.
30238         * lib/dirent.in.h: Likewise.
30239         * lib/errno.in.h: Likewise.
30240         * lib/float.in.h: Likewise.
30241         * lib/getopt.in.h: Likewise.
30242         * lib/iconv.in.h: Likewise.
30243         * lib/langinfo.in.h: Likewise.
30244         * lib/locale.in.h: Likewise.
30245         * lib/math.in.h: Likewise.
30246         * lib/netdb.in.h: Likewise.
30247         * lib/netinet_in.in.h: Likewise.
30248         * lib/pty.in.h: Likewise.
30249         * lib/sched.in.h: Likewise.
30250         * lib/se-selinux.in.h: Likewise.
30251         * lib/search.in.h: Likewise.
30252         * lib/spawn.in.h: Likewise.
30253         * lib/stdarg.in.h: Likewise.
30254         * lib/stdint.in.h: Likewise.
30255         * lib/string.in.h: Likewise.
30256         * lib/strings.in.h: Likewise.
30257         * lib/sys_file.in.h: Likewise.
30258         * lib/sys_ioctl.in.h: Likewise.
30259         * lib/sys_time.in.h: Likewise.
30260         * lib/sys_times.in.h: Likewise.
30261         * lib/sys_utsname.in.h: Likewise.
30262         * lib/sys_wait.in.h: Likewise.
30263         * lib/sysexits.in.h: Likewise.
30264         * lib/wctype.in.h: Likewise.
30265
30266 2010-03-28  James Youngman  <jay@gnu.org>
30267
30268         save-cwd: don't leak a file descriptor when the caller execs.
30269         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30270         saved file descriptor.
30271         * modules/save-cwd (Depends-on): Depend on cloexec.
30272
30273 2010-03-29  Bruno Haible  <bruno@clisp.org>
30274
30275         Remove vestiges of fts-lgpl module.
30276         * lib/fts_.h: Assume GNULIB_FTS is 1.
30277         * lib/fts.c: Likewise.
30278         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30279
30280 2010-03-28  Bruno Haible  <bruno@clisp.org>
30281
30282         Fix definition of tests witness macro.
30283         * gnulib-tool (func_import): Fix definition of witness macro.
30284
30285 2010-03-28  Bruno Haible  <bruno@clisp.org>
30286
30287         Fix ioctl's protoype on glibc systems.
30288         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30289         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30290         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30291         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30292         signature. If not, arrange to replace the ioctl function.
30293         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30294         REPLACE_IOCTL.
30295         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30296         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30297         Reported by Ludovic Courtès <ludo@gnu.org>.
30298
30299 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30300
30301         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30302         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30303         made it so grep -r --include=GLOB* ... did not work.
30304
30305 2010-03-26  Jim Meyering  <meyering@redhat.com>
30306             Eric Blake  <eblake@redhat.com>
30307
30308         maint.mk: prohibit use of test's -o and -a operators
30309         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30310
30311 2010-03-28  Bruno Haible  <bruno@clisp.org>
30312
30313         Remove unused GNULIB_XYZ macro definitions.
30314         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30315         invocation.
30316
30317 2010-03-28  Bruno Haible  <bruno@clisp.org>
30318
30319         Mark privileged tests modules.
30320         * modules/idpriv-drop-tests (Status): New section.
30321         * modules/idpriv-droptemp-tests (Status): New section.
30322
30323 2010-03-28  Bruno Haible  <bruno@clisp.org>
30324
30325         Split C++ tests into separate tests modules.
30326         * modules/dirent-c++-tests: New file, extracted from
30327         modules/dirent-tests.
30328         * modules/dirent-tests: Depend on it.
30329         * modules/fcntl-h-c++-tests: New file, extracted from
30330         modules/fcntl-h-tests.
30331         * modules/fcntl-h-tests: Depend on it.
30332         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
30333         * modules/glob-tests: Depend on it.
30334         * modules/iconv-h-c++-tests: New file, extracted from
30335         modules/iconv-h-tests.
30336         * modules/iconv-h-tests: Depend on it.
30337         * modules/langinfo-c++-tests: New file, extracted from
30338         modules/langinfo-tests.
30339         * modules/langinfo-tests: Depend on it.
30340         * modules/locale-c++-tests: New file, extracted from
30341         modules/locale-tests.
30342         * modules/locale-tests: Depend on it.
30343         * modules/math-c++-tests: New file, extracted from modules/math-tests.
30344         * modules/math-tests: Depend on it.
30345         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
30346         * modules/pty-tests: Depend on it.
30347         * modules/search-c++-tests: New file, extracted from
30348         modules/search-tests.
30349         * modules/search-tests: Depend on it.
30350         * modules/signal-c++-tests: New file, extracted from
30351         modules/signal-tests.
30352         * modules/signal-tests: Depend on it.
30353         * modules/spawn-c++-tests: New file, extracted from
30354         modules/spawn-tests.
30355         * modules/spawn-tests: Depend on it.
30356         * modules/stdio-c++-tests: New file, extracted from
30357         modules/stdio-tests.
30358         * modules/stdio-tests: Depend on it.
30359         * modules/stdlib-c++-tests: New file, extracted from
30360         modules/stdlib-tests.
30361         * modules/stdlib-tests: Depend on it.
30362         * modules/string-c++-tests: New file, extracted from
30363         modules/string-tests.
30364         * modules/string-tests: Depend on it.
30365         * modules/sys_ioctl-c++-tests: New file, extracted from
30366         modules/sys_ioctl-tests.
30367         * modules/sys_ioctl-tests: Depend on it.
30368         * modules/sys_select-c++-tests: New file, extracted from
30369         modules/sys_select-tests.
30370         * modules/sys_select-tests: Depend on it.
30371         * modules/sys_socket-c++-tests: New file, extracted from
30372         modules/sys_socket-tests.
30373         * modules/sys_socket-tests: Depend on it.
30374         * modules/sys_stat-c++-tests: New file, extracted from
30375         modules/sys_stat-tests.
30376         * modules/sys_stat-tests: Depend on it.
30377         * modules/sys_time-c++-tests: New file, extracted from
30378         modules/sys_time-tests.
30379         * modules/sys_time-tests: Depend on it.
30380         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30381         * modules/time-tests: Depend on it.
30382         * modules/unistd-c++-tests: New file, extracted from
30383         modules/unistd-tests.
30384         * modules/unistd-tests: Depend on it.
30385         * modules/wchar-c++-tests: New file, extracted from
30386         modules/wchar-tests.
30387         * modules/wchar-tests: Depend on it.
30388         * modules/wctype-c++-tests: New file, extracted from
30389         modules/wctype-tests.
30390         * modules/wctype-tests: Depend on it.
30391         Reported by Simon Josefsson.
30392
30393 2010-03-28  Bruno Haible  <bruno@clisp.org>
30394
30395         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
30396         * gnulib-tool (func_exists_module): New function, extracted from
30397         func_verify_module.
30398         (func_verify_module): Use it.
30399         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
30400         'foo' only if 'foo' exists.
30401         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
30402         module.
30403
30404 2010-03-28  Bruno Haible  <bruno@clisp.org>
30405
30406         gnulib-tool: Add support for special categories of tests.
30407         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
30408         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
30409         (func_usage): Document them.
30410         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
30411         inc_unportable_tests, inc_all_tests): New variables.
30412         (func_acceptable): Consider these variables.
30413         (func_modules_transitive_closure): Make it work when the 'Status' field
30414         consists of multiple words.
30415         (func_import): Store and restore the values of inc_cxx_tests,
30416         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
30417         inc_all_tests in gnulib-comp.m4.
30418         (func_create_testdir): Set inc_all_tests to true.
30419         * doc/gnulib.texi (Extra tests modules): New section.
30420         Suggested by Jim Meyering.
30421
30422 2010-03-28  Bruno Haible  <bruno@clisp.org>
30423
30424         ansi-c++-opt: Allow turning off the C++ build by default.
30425         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
30426         gl_CXX_CHOICE_DEFAULT_NO is defined.
30427         Requested by Eric Blake.
30428
30429 2010-03-28  Bruno Haible  <bruno@clisp.org>
30430
30431         unistd: Avoid #define replacements in C++ mode.
30432         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30433         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30434         setsockopt, shutdown, select): In C++, attach a warning to the function
30435         if possible, rather than #defining the symbol to a dysfunctional alias.
30436         Reported by John W. Eaton <jwe@gnu.org>.
30437
30438 2010-03-28  Bruno Haible  <bruno@clisp.org>
30439
30440         Fix link errors on mingw.
30441         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
30442         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
30443         $(LIBSOCKET).
30444         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
30445         $(LIBSOCKET).
30446
30447 2010-03-28  Bruno Haible  <bruno@clisp.org>
30448             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30449
30450         lib-ignore: Determine different options for different compilers.
30451         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
30452         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
30453         Add comments.
30454         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
30455         * NEWS: Mention the change.
30456
30457 2010-03-27  Bruno Haible  <bruno@clisp.org>
30458
30459         Remove unused GNULIB_XYZ macro definitions.
30460         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30461         * modules/fseek (configure.ac): Likewise.
30462         * modules/ioctl (configure.ac): Likewise.
30463         * modules/open (configure.ac): Likewise.
30464         * modules/stdlib-safer (configure.ac): Likewise.
30465
30466 2010-03-27  Bruno Haible  <bruno@clisp.org>
30467
30468         Add a remark about certain modules.
30469         * modules/malloc (Comment): New section.
30470         * modules/realloc (Comment): Likewise.
30471         * modules/sigpipe (Comment): Likewise.
30472
30473 2010-03-27  Bruno Haible  <bruno@clisp.org>
30474
30475         Resolve conflict between the two kinds of module indicators.
30476         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
30477         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
30478         * modules/canonicalize (configure.ac): Invoke
30479         gl_MODULE_INDICATOR_FOR_TESTS.
30480         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
30481         GNULIB_XYZ.
30482         * tests/test-dirent-c++.cc: Likewise.
30483         * tests/test-dirent-safer.c: Likewise.
30484         * tests/test-dup2.c: Likewise.
30485         * tests/test-fchdir.c: Likewise.
30486         * tests/test-fcntl-h-c++.cc: Likewise.
30487         * tests/test-getopt.c: Likewise.
30488         * tests/test-getopt.h: Likewise.
30489         * tests/test-langinfo-c++.cc: Likewise.
30490         * tests/test-locale-c++.cc: Likewise.
30491         * tests/test-math-c++.cc: Likewise.
30492         * tests/test-pty-c++.cc: Likewise.
30493         * tests/test-search-c++.cc: Likewise.
30494         * tests/test-signal-c++.cc: Likewise.
30495         * tests/test-spawn-c++.cc: Likewise.
30496         * tests/test-stdio-c++.cc: Likewise.
30497         * tests/test-stdlib-c++.cc: Likewise.
30498         * tests/test-string-c++.cc: Likewise.
30499         * tests/test-sys_ioctl-c++.cc: Likewise.
30500         * tests/test-sys_select-c++.cc: Likewise.
30501         * tests/test-sys_socket-c++.cc: Likewise.
30502         * tests/test-sys_stat-c++.cc: Likewise.
30503         * tests/test-sys_time-c++.cc: Likewise.
30504         * tests/test-time-c++.cc: Likewise.
30505         * tests/test-unistd-c++.cc: Likewise.
30506         * tests/test-wchar-c++.cc: Likewise.
30507         * tests/uninorm/test-u8-nfc.c: Likewise.
30508         * tests/uninorm/test-u8-nfd.c: Likewise.
30509         * tests/uninorm/test-u8-nfkc.c: Likewise.
30510         * tests/uninorm/test-u8-nfkd.c: Likewise.
30511         * tests/uninorm/test-u16-nfc.c: Likewise.
30512         * tests/uninorm/test-u16-nfd.c: Likewise.
30513         * tests/uninorm/test-u16-nfkc.c: Likewise.
30514         * tests/uninorm/test-u16-nfkd.c: Likewise.
30515         * tests/uninorm/test-u32-nfc.c: Likewise.
30516         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30517         * tests/uninorm/test-u32-nfd.c: Likewise.
30518         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30519         * tests/uninorm/test-u32-nfkc.c: Likewise.
30520         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30521         * tests/uninorm/test-u32-nfkd.c: Likewise.
30522         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30523         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30524
30525 2010-03-27  Bruno Haible  <bruno@clisp.org>
30526
30527         Distinguish two kinds of module indicators.
30528         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30529         gl_MODULE_INDICATOR.
30530         (gl_MODULE_INDICATOR): New macro.
30531         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30532         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30533         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30534         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30535         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30536         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30537         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30538         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30539         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30540         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30541         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30542         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30543         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30544         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30545         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30546         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30547         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30548         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30549         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30550         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30551         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30552         * modules/cloexec (configure.ac): Likewise.
30553         * modules/getopt-gnu (configure.ac): Likewise.
30554         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30555         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30556         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30557         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30558
30559 2010-03-27  Bruno Haible  <bruno@clisp.org>
30560
30561         New module description field 'Comment'.
30562         * gnulib-tool: New option --extract-comment.
30563         (func_usage): Document it.
30564         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30565         (func_get_comment): New function.
30566         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30567
30568 2010-03-27  Bruno Haible  <bruno@clisp.org>
30569
30570         Addendum to 2010-02-07 commit.
30571         * gnulib-tool (func_usage): Document --extract-applicability option.
30572
30573 2010-03-27  Bruno Haible  <bruno@clisp.org>
30574
30575         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30576         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30577         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30578         rather than link errors.
30579
30580 2010-03-27  Bruno Haible  <bruno@clisp.org>
30581
30582         Avoid side effects from tests-related modules on the compilation of lib.
30583         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30584         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30585         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30586         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30587         macro.
30588         (func_import): Define a witness macro. Assign it a value that depends
30589         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30590         tests-related modules.
30591         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30592         Reported by Jim Meyering.
30593
30594 2010-03-27  Bruno Haible  <bruno@clisp.org>
30595
30596         Factorize common .m4 code.
30597         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30598         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30599         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30600         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30601         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30602         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30603         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30604         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30605         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30606         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30607         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30608         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30609         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30610         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30611         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30612         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30613         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30614         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30615         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30616         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30617         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30618         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30619         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30620         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30621         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30622         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30623         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30624         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30625         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30626         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30627         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30628         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30629
30630 2010-03-27  Bruno Haible  <bruno@clisp.org>
30631
30632         Fix a compilation error on Cygwin with g++ >= 4.3.
30633         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30634         if it is undefined or if we alias it to chmod.
30635         (lstat): Don't warn about the use of this function if it is undefined
30636         or if we alias it to stat.
30637         Reported by Simon Josefsson.
30638
30639 2010-03-27  Bruno Haible  <bruno@clisp.org>
30640
30641         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30642         * modules/getlogin (configure.ac): Update.
30643
30644         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30645         * modules/getlogin_r (configure.ac): Update.
30646
30647         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30648         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30649         * modules/inet_ntop (configure.ac): Update.
30650
30651         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30652         * modules/inet_pton (configure.ac): Update.
30653
30654         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30655         * modules/mbslen (configure.ac): Update.
30656
30657         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
30658         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
30659         * modules/forkpty (configure.ac): Update.
30660         * modules/openpty (configure.ac): Update.
30661
30662 2010-03-26  Simon Josefsson  <simon@josefsson.org>
30663
30664         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
30665         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
30666
30667 2010-03-25  Eric Blake  <eblake@redhat.com>
30668
30669         maint: use pragma consistently across replacement headers
30670         * lib/ctype.in.h (system_header): Hoist for consistent placement.
30671         * lib/dirent.in.h (system_header): Likewise.
30672         * lib/errno.in.h (system_header): Likewise.
30673         * lib/float.in.h (system_header): Likewise.
30674         * lib/getopt.in.h (system_header): Likewise.
30675         * lib/iconv.in.h (system_header): Likewise.
30676         * lib/inttypes.in.h (system_header): Likewise.
30677         * lib/langinfo.in.h (system_header): Likewise.
30678         * lib/locale.in.h (system_header): Likewise.
30679         * lib/math.in.h (system_header): Likewise.
30680         * lib/netdb.in.h (system_header): Likewise.
30681         * lib/netinet_in.in.h (system_header): Likewise.
30682         * lib/pty.in.h (system_header): Likewise.
30683         * lib/sched.in.h (system_header): Likewise.
30684         * lib/se-selinux.in.h (system_header): Likewise.
30685         * lib/search.in.h (system_header): Likewise.
30686         * lib/spawn.in.h (system_header): Likewise.
30687         * lib/stdarg.in.h (system_header): Likewise.
30688         * lib/stdint.in.h (system_header): Likewise.
30689         * lib/string.in.h (system_header): Likewise.
30690         * lib/strings.in.h (system_header): Likewise.
30691         * lib/sys_file.in.h (system_header): Likewise.
30692         * lib/sys_ioctl.in.h (system_header): Likewise.
30693         * lib/sys_socket.in.h (system_header): Likewise.
30694         * lib/sys_times.in.h (system_header): Likewise.
30695         * lib/sys_utsname.in.h (system_header): Likewise.
30696         * lib/sys_wait.in.h (system_header): Likewise.
30697         * lib/sysexits.in.h (system_header): Likewise.
30698         * lib/unistd.in.h (system_header): Likewise.
30699         * lib/wctype.in.h (system_header): Likewise.
30700
30701         arpa/inet: fix mingw compilation warning
30702         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
30703         Reported by Matthew Bolte.
30704
30705 2010-03-25  Bruno Haible  <bruno@clisp.org>
30706
30707         Avoid collision between gnulib wrapper and libintl wrapper.
30708         * lib/printf.c (printf): Don't define if a printf wrapper is already
30709         defined in intl/printf.c.
30710         Reported by Michel Boaventura <michel@michelboaventura.com>.
30711
30712 2010-03-25  Bruno Haible  <bruno@clisp.org>
30713
30714         Use ANSI C.
30715         * lib/readutmp.h (getutent): Provide ANSI C prototype.
30716
30717 2010-03-25  Bruno Haible  <bruno@clisp.org>
30718
30719         Minor formatting changes.
30720         * lib/acosl.c: Insert space before function argument list.
30721         * lib/argz.c: Likewise.
30722         * lib/asinl.c: Likewise.
30723         * lib/expl.c: Likewise.
30724         * lib/gen-uni-tables.c: Likewise.
30725         * lib/gettext.h: Likewise.
30726         * lib/glthread/lock.h: Likewise.
30727         * lib/tanl.c: Likewise.
30728         * lib/uniname/uniname.c: Likewise.
30729         * tests/test-idpriv-drop.c: Likewise.
30730         * tests/test-idpriv-droptemp.c: Likewise.
30731         * tests/test-lock.c: Likewise.
30732         * tests/test-tls.c: Likewise.
30733         * lib/argp-help.c: Insert space before function-like macro argument
30734         list.
30735         * lib/memcmp.c: Likewise.
30736         * tests/test-base64.c: Likewise.
30737         * lib/localename.c: Insert space before sizeof's argument list.
30738         * lib/safe-alloc.h: Likewise.
30739         * lib/file-set.h: Insert space before macro argument list.
30740         * tests/test-argp.c: Likewise.
30741         * lib/argp-namefrob.h: Insert space before function parameter list.
30742         * lib/getaddrinfo.c: Likewise.
30743         * lib/netdb.in.h: Likewise.
30744         * lib/parse-duration.h: Likewise.
30745         * lib/parse-duration.c: Likewise.
30746         * lib/poll.c: Likewise.
30747         * lib/select.c: Likewise.
30748         * lib/trim.h: Likewise.
30749         * tests/test-usleep.c: Likewise.
30750         * lib/ldexpl.c: Insert space before function parameter list and before
30751         function argument list.
30752         * lib/logl.c: Likewise.
30753         * lib/sqrtl.c: Likewise.
30754         * lib/trim.c: Likewise.
30755         * lib/cosl.c: Use GNU style indentation. Insert space before function
30756         argument list.
30757         * lib/sinl.c: Likewise.
30758         * lib/tsearch.c: Insert space after 'for'.
30759         Reported by Jim Meyering.
30760
30761 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
30762
30763         * maint.mk (sc_Wundef_boolean): Check for the presence of the
30764         config header before grepping, as it's not present before
30765         autoreconf/configure are run.  Reported by Simon Josefsson.
30766
30767 2010-03-23  Bruno Haible  <bruno@clisp.org>
30768
30769         pt_chown: Make it work with automake < 1.11.
30770         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
30771         Reported by Simon Josefsson.
30772
30773 2010-03-23  Bruno Haible  <bruno@clisp.org>
30774
30775         pt_chown: Don't depend on GPLed modules.
30776         * lib/pt_chown.c: Don't include idpriv.h.
30777         (main): Don't drop privileges.
30778         * modules/pt_chown (Depends-on): Remove idpriv-drop.
30779         Reported by Simon Josefsson.
30780
30781 2010-03-24  Simon Josefsson  <simon@josefsson.org>
30782
30783         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
30784         suggestions from karl@freefriends.org (Karl Berry).
30785
30786 2010-03-22  Eric Blake  <eblake@redhat.com>
30787
30788         gethostname: further tweaks
30789         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
30790         are overriding gethostname.
30791         Suggested by Bruno Haible.
30792
30793 2010-03-21  Bruno Haible  <bruno@clisp.org>
30794
30795         Fix comments.
30796         * lib/forkpty.c (rpl_forkpty): Fix comment.
30797         * lib/openpty.c (rpl_openpty): Likewise.
30798         Reported by Eric Blake.
30799
30800 2010-03-22  Eric Blake  <eblake@redhat.com>
30801
30802         gethostname: fix build on mingw
30803         * lib/unistd.in.h (includes): Work around fact that mingw
30804         <winsock2.h> re-includes <unistd.h>, by avoiding any
30805         redeclarations if we are being included by <winsock2.h>.
30806         Reported by Matthias Bolte.
30807
30808 2010-03-21  Bruno Haible  <bruno@clisp.org>
30809
30810         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30811         * lib/forkpty.c (forkpty): New replacement function, from glibc with
30812         modifications.
30813         * lib/pty.in.h (forkpty): Update declaration. Add comments.
30814         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
30815         provide the replacement.
30816         * modules/forkpty (Depends-on): Add openpty, login_tty.
30817         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
30818         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
30819         * doc/glibc-functions/forkpty.texi: More supported platforms.
30820         * config/srclist.txt: Add forkpty.c (commented).
30821
30822 2010-03-21  Bruno Haible  <bruno@clisp.org>
30823
30824         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
30825         (Makefile.am): Verify that PTY_LIB is defined.
30826
30827         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
30828
30829 2010-03-21  Bruno Haible  <bruno@clisp.org>
30830
30831         Tests for module 'login_tty'.
30832         * modules/login_tty-tests: New file.
30833         * tests/test-login_tty.c: New file.
30834
30835         New module 'login_tty'.
30836         * lib/login_tty.c: New file.
30837         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
30838         * modules/login_tty: New file.
30839         * doc/glibc-functions/login_tty.texi: Mention the new module.
30840
30841 2010-03-21  Bruno Haible  <bruno@clisp.org>
30842
30843         login_tty: Documentation.
30844         * doc/glibc-functions/login_tty.texi: New file.
30845         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
30846
30847 2010-03-21  Bruno Haible  <bruno@clisp.org>
30848
30849         pty: Consistent macro naming.
30850         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
30851         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
30852         * modules/pty (configure.ac): Update.
30853
30854 2010-03-21  Bruno Haible  <bruno@clisp.org>
30855
30856         Tests for openpty: Make stricter.
30857         * tests/test-openpty.c (main): Add test of canonical processing and
30858         erase.
30859         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
30860
30861         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30862         * lib/openpty.c (openpty): New replacement function.
30863         * lib/pty.in.h: Include <termios.h>.
30864         (openpty): Update declaration. Add comments.
30865         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
30866         is not declared, arrange to provide the replacement. Check for _getpty
30867         and posix_openpt.
30868         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
30869         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
30870         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
30871         * modules/pty-tests (test_pty_c___LDADD): New variable.
30872         * doc/glibc-functions/openpty.texi: More supported platforms.
30873
30874 2010-03-21  Bruno Haible  <bruno@clisp.org>
30875
30876         setenv: Tweaks.
30877         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
30878         the test program.
30879         * doc/posix-functions/setenv.texi: Update platforms list.
30880
30881 2010-03-21  Bruno Haible  <bruno@clisp.org>
30882
30883         New module 'unlockpt'.
30884         * lib/unlockpt.c: New file, from glibc with modifications.
30885         * m4/unlockpt.m4: New file.
30886         * modules/unlockpt: New file.
30887         * lib/stdlib.in.h (unlockpt): New declaration.
30888         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
30889         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
30890         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
30891         HAVE_UNLOCKPT.
30892         * doc/posix-functions/unlockpt.texi: Mention the new module.
30893         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
30894         * config/srclist.txt: Add unlockpt.c (commented).
30895
30896 2010-03-21  Jim Meyering  <meyering@redhat.com>
30897
30898         maint.mk: prohibit inclusion of "intprops.h" without use
30899         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
30900
30901 2010-03-21  Bruno Haible  <bruno@clisp.org>
30902
30903         New module 'grantpt'.
30904         * lib/grantpt.c: New file, from glibc with modifications.
30905         * m4/grantpt.m4: New file.
30906         * modules/grantpt: New file.
30907         * lib/stdlib.in.h (grantpt): New declaration.
30908         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
30909         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
30910         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
30911         HAVE_GRANTPT.
30912         * doc/posix-functions/grantpt.texi: Mention the new module.
30913         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
30914         * config/srclist.txt: Add grantpt.c (commented).
30915
30916 2010-03-21  Bruno Haible  <bruno@clisp.org>
30917
30918         New module 'pt_chown'.
30919         * lib/pt_chown.c: New file, from glibc with modifications.
30920         * lib/pty-private.h: New file, from glibc with modifications.
30921         * modules/pt_chown: New file.
30922         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
30923
30924 2010-03-21  Bruno Haible  <bruno@clisp.org>
30925
30926         Tests for module 'ptsname'.
30927         * modules/ptsname-tests: New file.
30928         * tests/test-ptsname.c: New file.
30929
30930         New module 'ptsname'.
30931         * lib/ptsname.c: New file, from glibc with modifications.
30932         * m4/ptsname.m4: New file.
30933         * modules/ptsname: New file.
30934         * lib/stdlib.in.h (ptsname): New declaration.
30935         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
30936         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
30937         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
30938         HAVE_PTSNAME.
30939         * doc/posix-functions/ptsname.texi: Mention the new module.
30940         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
30941         * config/srclist.txt: Add ptsname.c (commented).
30942
30943 2010-03-21  Bruno Haible  <bruno@clisp.org>
30944
30945         Tests for module 'ttyname_r'.
30946         * modules/ttyname_r-tests: New file.
30947         * tests/test-ttyname_r.c: New file.
30948
30949         New module 'ttyname_r'.
30950         * lib/ttyname_r.c: New file.
30951         * m4/ttyname_r.m4: New file.
30952         * modules/ttyname_r: New file.
30953         * lib/unistd.in.h (ttyname_r): New declaration.
30954         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
30955         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
30956         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
30957         HAVE_TTYNAME_R.
30958         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
30959         * doc/posix-functions/ttyname_r.texi: Mention the new module.
30960
30961 2010-03-20  Bruno Haible  <bruno@clisp.org>
30962
30963         signal: Undefine macro definitions in C++ mode.
30964         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
30965         sigfillset): Undefine macro definitions from the system header in C++
30966         mode.
30967         Reported by John W. Eaton <jwe@gnu.org>.
30968
30969 2010-03-20  Bruno Haible  <bruno@clisp.org>
30970
30971         Ensure no #include statements inside extern "C" { ... }.
30972         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
30973         contain #include statements.
30974         * lib/time.in.h: Likewise.
30975
30976 2010-03-20  Bruno Haible  <bruno@clisp.org>
30977
30978         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
30979         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
30980         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
30981         Reported by John W. Eaton <jwe@gnu.org>.
30982
30983 2010-03-20  Bruno Haible  <bruno@clisp.org>
30984
30985         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
30986         Reported by Jim Meyering.
30987
30988 2010-03-20  Bruno Haible  <bruno@clisp.org>
30989
30990         pipe: Set errno upon failure.
30991         * lib/pipe.h: Specify that when -1 is returned, errno is set.
30992         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
30993         errno value in error message.
30994
30995 2010-03-20  Bruno Haible  <bruno@clisp.org>
30996             Jim Meyering  <meyering@redhat.com>
30997
30998         lchown: Avoid "unused variable" warning.
30999         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31000
31001 2010-03-20  Bruno Haible  <bruno@clisp.org>
31002
31003         Work around unlink() bug on MacOS X 10.5.6.
31004         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31005         attempting to unlink a parent directory.
31006         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31007         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31008         activate for the replacement function.
31009         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31010
31011 2010-03-20  Bruno Haible  <bruno@clisp.org>
31012
31013         Fix link errors on Solaris 8.
31014         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31015         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31016
31017 2010-03-19  Jim Meyering  <meyering@redhat.com>
31018
31019         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31020         The _LIBC implementation of build_range_exp correctly honors the
31021         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31022         However, the non-_LIBC implementation would ignore that syntax-bit
31023         flag and return REG_ERANGE unconditionally.
31024         This change makes it honor that flag.
31025         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31026         Make two pointer parameters "const".
31027         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31028         (parse_bracket_exp): Update caller.
31029
31030         regex.m4: correct the reversed range endpoint ([b-a]) test
31031         * m4/regex.m4: When requiring that [b-a] evoke failure,
31032         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31033         test pass once again for x86-based systems.
31034
31035 2010-03-19  Bruno Haible  <bruno@clisp.org>
31036
31037         scandir: Fix link error on Solaris 8.
31038         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31039         macros.
31040
31041 2010-03-19  Bruno Haible  <bruno@clisp.org>
31042
31043         getusershell: Fix documentation.
31044         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31045         module.
31046         * doc/glibc-functions/setusershell.texi: Likewise.
31047
31048         getusershell: Provide declaration, missing on Solaris 9.
31049         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31050         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31051         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31052         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31054         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31055         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31056         HAVE_GETUSERSHELL.
31057         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31058
31059 2010-03-19  Bruno Haible  <bruno@clisp.org>
31060
31061         wctype: Provide iswblank function.
31062         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31063         exists and is fine.
31064         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31065         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31066         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31067         * doc/posix-functions/iswblank.texi: Update.
31068
31069 2010-03-19  Bruno Haible  <bruno@clisp.org>
31070
31071         Tests of module 'pty' in C++ mode.
31072         * modules/pty-tests: New file.
31073         * tests/test-pty-c++.cc: New file.
31074         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31075
31076 2010-03-19  Eric Blake  <eblake@redhat.com>
31077
31078         logb: fix documentation
31079         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31080         1.5 declaration bug.
31081
31082         forkpty, openpty: prefer glibc's const-safe prototype
31083         * lib/forkpty.c (rpl_forkpty): New file.
31084         * lib/openpty.c (rpl_openpty): Likewise.
31085         * modules/forkpty (Files): Distribute it.
31086         * modules/openpty (Files): Likewise.
31087         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31088         check...
31089         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31090         replacement for for non-const BSD signature.
31091         * modules/pty (Makefile.am): Substitute witnesses.
31092         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31093         * tests/test-forkpty.c: Update signature check.
31094         * tests/test-openpty.c: Likewise.
31095         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31096         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31097
31098         forkpty, openpty: split functions into new modules
31099         * modules/pty (Makefile.am): Substitute new witnesses.
31100         (Libraries): Move library detection...
31101         * modules/forkpty: ...into new module.
31102         * modules/openpty: Another new module.
31103         * modules/pty-tests: Rename and split...
31104         * modules/forkpty-tests: ...to this...
31105         * modules/openpty-tests: ...and this.
31106         * tests/test-pty.c: Rename and split...
31107         * tests/test-forkpty.c: ...to this...
31108         * tests/test-openpty.c: ...and this.
31109         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31110         (gl_PTY): Split library searching...
31111         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31112         (gl_FORKPTY, gl_OPENPTY): New macros.
31113         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31114         * NEWS: Mention the split.
31115         * MODULES.html.sh (Misc): Document the modules.
31116         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31117         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31118
31119         pty: improve replacement header
31120         * lib/pty.in.h: New file.
31121         * modules/pty (Files): Ship it.
31122         (Makefile.am): Always build replacement.
31123         * m4/pty.m4: Rename...
31124         * m4/pty_h.m4: ...to this.
31125         (gl_PTY): Modernize setting of witness macros; update check of
31126         forkpty to take proper advantage of cache.
31127         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31128
31129         getopt: avoid compiler warning
31130         * lib/getopt.c (attribute_hidden): Remove unused macro.
31131
31132 2010-03-18  Bruno Haible  <bruno@clisp.org>
31133
31134         Fix link errors on Solaris 8.
31135         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31136         * modules/search-tests (test_search_c___LDADD): Likewise.
31137         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31138         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31139         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31140         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31141         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31142         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31143         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31144
31145 2010-03-18  Bruno Haible  <bruno@clisp.org>
31146
31147         Fix bug introduced on 2010-03-14.
31148         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31149         (gl_SPAWN_H): Require it.
31150         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31151         Reported by Simon Josefsson.
31152
31153 2010-03-18  Bruno Haible  <bruno@clisp.org>
31154
31155         Fix typo introduced on 2009-12-31.
31156         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31157         posix_spawn_file_actions_adddup2.
31158
31159 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31160         and Eric Blake  <eblake@redhat.com>
31161
31162         test-vc-list-files-git: make more robust
31163         * tests/test-vc-list-files-git.sh: Unset problematic environment
31164         variables.  Chain commands together.
31165
31166 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31167
31168         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31169         `AC_CHECK_DECL' invocation.
31170
31171 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31172
31173         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31174         appears before executable statements. Suggested by Petr Sumbera
31175         <Petr.Sumbera@Sun.COM>.
31176
31177 2010-03-14  Bruno Haible  <bruno@clisp.org>
31178
31179         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31180         portability problems. Instead use a simpler test.
31181         (main): Check that invalid arguments are rejected only on Linux.
31182
31183 2010-03-14  Bruno Haible  <bruno@clisp.org>
31184
31185         Fix bug introduced on 2009-12-31.
31186         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31187         gl_PREREQ_SYS_H_WINSOCK2 always.
31188         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31189         SYS_SOCKET_H variable.
31190         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31191         Update comments.
31192         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31193         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31194         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31195         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31196         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31197
31198 2010-03-14  Bruno Haible  <bruno@clisp.org>
31199
31200         Fix values returned by sinl, cosl.
31201         * lib/trigl.h: Add specification comments.
31202         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31203         that combines the values from the precomputed table with the values of
31204         the Chebyshev polynomials.
31205
31206 2010-03-14  Bruno Haible  <bruno@clisp.org>
31207
31208         Fix compilation error when modules 'posix_spawn[p]' are not used.
31209         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31210         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31211
31212 2010-03-14  Bruno Haible  <bruno@clisp.org>
31213
31214         Fix compilation error on mingw when module 'time_r' is not used.
31215         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31216         is 1.
31217         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31218         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31219         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31220         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31221
31222 2010-03-14  Bruno Haible  <bruno@clisp.org>
31223
31224         Fix compilation error with Sun C.
31225         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31226         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31227         instead of GCC specific ULONG_LONG_MAX.
31228         * lib/xstrtoll.c: Likewise.
31229         * lib/xstrtoull.c: Likewise.
31230
31231 2010-03-13  Bruno Haible  <bruno@clisp.org>
31232
31233         Allow the user to disable C++ code and tests.
31234         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31235         (gl_PROG_ANSI_CXX): Require it.
31236
31237 2010-03-13  Bruno Haible  <bruno@clisp.org>
31238
31239         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31240         cases.
31241
31242 2010-03-13  Bruno Haible  <bruno@clisp.org>
31243
31244         Test that gnulib does not break the standard C++ headers.
31245         * tests/test-locale-c++2.cc: New file.
31246         * modules/locale-tests (Files): Add it.
31247         (Makefile.am): Compile it for test-locale-c++.
31248         * tests/test-math-c++2.cc: New file.
31249         * modules/math-tests (Files): Add it.
31250         (Makefile.am): Compile it for test-math-c++.
31251         * tests/test-signal-c++2.cc: New file.
31252         * modules/signal-tests (Files): Add it.
31253         (Makefile.am): Compile it for test-signal-c++.
31254         * tests/test-stdio-c++2.cc: New file.
31255         * modules/stdio-tests (Files): Add it.
31256         (Makefile.am): Compile it for test-stdio-c++.
31257         * tests/test-stdlib-c++2.cc: New file.
31258         * modules/stdlib-tests (Files): Add it.
31259         (Makefile.am): Compile it for test-stdlib-c++.
31260         * tests/test-string-c++2.cc: New file.
31261         * modules/string-tests (Files): Add it.
31262         (Makefile.am): Compile it for test-string-c++.
31263         * tests/test-time-c++2.cc: New file.
31264         * modules/time-tests (Files): Add it.
31265         (Makefile.am): Compile it for test-time-c++.
31266         Reported by John W. Eaton <jwe@gnu.org>.
31267
31268 2010-03-13  Bruno Haible  <bruno@clisp.org>
31269
31270         * gnulib-tool (func_usage): Clarify which options are available for
31271         --create-testdir and --create-megatestdir.
31272
31273 2010-03-13  Bruno Haible  <bruno@clisp.org>
31274
31275         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31276         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31277         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31278         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31279         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31280         when appropriate.
31281         Reported by Jim Meyering.
31282
31283 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31284
31285         * gnulib-tool (func_import): Explain origin of code.
31286
31287 2010-03-12  Bruno Haible  <bruno@clisp.org>
31288
31289         Fix problem with automake's definition of CXXLINK.
31290         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31291         Reported by Simon Josefsson and Ludovic Courtès.
31292
31293 2010-03-12  Bruno Haible  <bruno@clisp.org>
31294
31295         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31296         stable releases.
31297
31298 2010-03-11  Bruno Haible  <bruno@clisp.org>
31299
31300         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31301         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31302         whether the system provides one variant or multiple variants of the
31303         function.
31304         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31305         C++ compilers.
31306         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31307         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31308         Reported by Jim Meyering.
31309
31310 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31311
31312         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31313
31314 2010-03-08  Bruno Haible  <bruno@clisp.org>
31315
31316         gnulib-tool: Add support for --libtool in --create-testdir.
31317         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31318         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31319
31320 2010-03-08  Eric Blake  <eblake@redhat.com>
31321
31322         gnulib-tool.texi: mention possibility of git submodule
31323         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
31324         submodules.
31325         * doc/.gitignore: Ignore another generated file.
31326
31327 2010-03-08  Karl Berry  <karl@gnu.org>
31328
31329         * doc/gnulib-tool.texi (VCS Issues): Mention third option
31330         of committing gnulib files while skipping others.
31331
31332 2010-03-07  Bruno Haible  <bruno@clisp.org>
31333
31334         Tests of module 'wctype' in C++ mode.
31335         * tests/test-wctype-c++.cc: New file.
31336         * modules/wctype-tests (Files): Add it and tests/signature.h.
31337         (Depends-on): Add ansi-c++-opt.
31338         (Makefile.am): Arrange to compile and run test-wctype-c++.
31339
31340         Tests of module 'wchar' in C++ mode.
31341         * tests/test-wchar-c++.cc: New file.
31342         * modules/wchar-tests (Files): Add it and tests/signature.h.
31343         (Depends-on): Add ansi-c++-opt.
31344         (Makefile.am): Arrange to compile and run test-wchar-c++.
31345         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
31346         gl_MODULE_INDICATOR.
31347
31348         Tests of module 'unistd' in C++ mode.
31349         * tests/test-unistd-c++.cc: New file.
31350         * modules/unistd-tests (Files): Add it and tests/signature.h.
31351         (Depends-on): Add ansi-c++-opt.
31352         (Makefile.am): Arrange to compile and run test-unistd-c++.
31353         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
31354         gl_MODULE_INDICATOR.
31355
31356         Tests of module 'time' in C++ mode.
31357         * tests/test-time-c++.cc: New file.
31358         * modules/time-tests (Files): Add it and tests/signature.h.
31359         (Depends-on): Add ansi-c++-opt.
31360         (Makefile.am): Arrange to compile and run test-time-c++.
31361         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31362
31363         Tests of module 'sys_time' in C++ mode.
31364         * tests/test-sys_time-c++.cc: New file.
31365         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31366         (Depends-on): Add ansi-c++-opt.
31367         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31368         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31369         gl_MODULE_INDICATOR.
31370
31371         Tests of module 'sys_stat' in C++ mode.
31372         * tests/test-sys_stat-c++.cc: New file.
31373         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
31374         (Depends-on): Add ansi-c++-opt.
31375         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
31376         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31377         gl_MODULE_INDICATOR.
31378
31379         Tests of module 'sys_socket' in C++ mode.
31380         * tests/test-sys_socket-c++.cc: New file.
31381         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
31382         (Depends-on): Add ansi-c++-opt.
31383         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
31384         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31385         gl_MODULE_INDICATOR.
31386
31387         Tests of module 'sys_select' in C++ mode.
31388         * tests/test-sys_select-c++.cc: New file.
31389         * modules/sys_select-tests (Files): Add it and tests/signature.h.
31390         (Depends-on): Add ansi-c++-opt.
31391         (Makefile.am): Arrange to compile and run test-sys_select-c++.
31392         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31393         gl_MODULE_INDICATOR.
31394
31395         Tests of module 'sys_ioctl' in C++ mode.
31396         * tests/test-sys_ioctl-c++.cc: New file.
31397         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
31398         (Depends-on): Add ansi-c++-opt.
31399         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
31400         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
31401         gl_MODULE_INDICATOR.
31402
31403         Tests of module 'string' in C++ mode.
31404         * tests/test-string-c++.cc: New file.
31405         * modules/string-tests (Files): Add it and tests/signature.h.
31406         (Depends-on): Add ansi-c++-opt.
31407         (Makefile.am): Arrange to compile and run test-string-c++.
31408         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
31409         gl_MODULE_INDICATOR.
31410
31411         Tests of module 'stdlib' in C++ mode.
31412         * tests/test-stdlib-c++.cc: New file.
31413         * modules/stdlib-tests (Files): Add it and tests/signature.h.
31414         (Depends-on): Add ansi-c++-opt.
31415         (Makefile.am): Arrange to compile and run test-stdlib-c++.
31416         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
31417         gl_MODULE_INDICATOR.
31418
31419         Tests of module 'stdio' in C++ mode.
31420         * tests/test-stdio-c++.cc: New file.
31421         * modules/stdio-tests (Files): Add it and tests/signature.h.
31422         (Depends-on): Add ansi-c++-opt.
31423         (Makefile.am): Arrange to compile and run test-stdio-c++.
31424         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
31425         gl_MODULE_INDICATOR.
31426
31427         Tests of module 'spawn' in C++ mode.
31428         * tests/test-spawn-c++.cc: New file.
31429         * modules/spawn-tests (Files): Add it and tests/signature.h.
31430         (Depends-on): Add ansi-c++-opt.
31431         (Makefile.am): Arrange to compile and run test-spawn-c++.
31432         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
31433         gl_MODULE_INDICATOR.
31434
31435         Tests of module 'signal' in C++ mode.
31436         * tests/test-signal-c++.cc: New file.
31437         * modules/signal-tests (Files): Add it and tests/signature.h.
31438         (Depends-on): Add ansi-c++-opt.
31439         (Makefile.am): Arrange to compile and run test-signal-c++.
31440         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
31441         gl_MODULE_INDICATOR.
31442
31443         Tests of module 'search' in C++ mode.
31444         * tests/test-search-c++.cc: New file.
31445         * modules/search-tests (Files): Add it and tests/signature.h.
31446         (Depends-on): Add ansi-c++-opt.
31447         (Makefile.am): Arrange to compile and run test-search-c++.
31448         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
31449         gl_MODULE_INDICATOR.
31450
31451         Tests of module 'math' in C++ mode.
31452         * tests/test-math-c++.cc: New file.
31453         * modules/math-tests (Files): Add it and tests/signature.h.
31454         (Depends-on): Add ansi-c++-opt.
31455         (Makefile.am): Arrange to compile and run test-math-c++.
31456         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31457
31458         Tests of module 'locale' in C++ mode.
31459         * tests/test-locale-c++.cc: New file.
31460         * modules/locale-tests (Files): Add it and tests/signature.h.
31461         (Depends-on): Add ansi-c++-opt.
31462         (Makefile.am): Arrange to compile and run test-locale-c++.
31463         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
31464         gl_MODULE_INDICATOR.
31465
31466         Tests of module 'langinfo' in C++ mode.
31467         * tests/test-langinfo-c++.cc: New file.
31468         * modules/langinfo-tests (Files): Add it and tests/signature.h.
31469         (Depends-on): Add ansi-c++-opt.
31470         (Makefile.am): Arrange to compile and run test-langinfo-c++.
31471         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
31472         gl_MODULE_INDICATOR.
31473
31474         Tests of module 'iconv-h' in C++ mode.
31475         * tests/test-iconv-h-c++.cc: New file.
31476         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
31477         (Depends-on): Add ansi-c++-opt.
31478         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
31479
31480         Tests of module 'glob' in C++ mode.
31481         * tests/test-glob-c++.cc: New file.
31482         * modules/glob-tests (Files): Add it.
31483         (Depends-on): Add ansi-c++-opt.
31484         (Makefile.am): Arrange to compile and run test-glob-c++.
31485
31486         Tests of module 'fcntl-h' in C++ mode.
31487         * tests/test-fcntl-h-c++.cc: New file.
31488         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
31489         (Depends-on): Add ansi-c++-opt.
31490         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
31491         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
31492         gl_MODULE_INDICATOR.
31493
31494         Tests of module 'dirent' in C++ mode.
31495         * tests/test-dirent-c++.cc: New file.
31496         * modules/dirent-tests (Files): Add it and tests/signature.h.
31497         (Depends-on): Add ansi-c++-opt.
31498         (Makefile.am): Arrange to compile and run test-dirent-c++.
31499         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31500         gl_MODULE_INDICATOR.
31501
31502         New module 'ansi-c++-opt'.
31503         * modules/ansi-c++-opt: New file.
31504         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31505
31506         Document C++ namespace mode.
31507         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31508
31509         wctype: Avoid #define replacements in C++ mode.
31510         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31511         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31512         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31513         In C++, define a namespaced alias symbol.
31514         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31515         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31516         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31517         rule.
31518
31519         wchar: Avoid #define replacements in C++ mode.
31520         * lib/wchar.in.h: Include c++defs.h.
31521         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31522         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31523         symbol.
31524         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31525         * modules/wchar (Depends-on): Add c++defs.
31526         (Makefile.am): Update wchar.h rule.
31527
31528         unistd: Avoid #define replacements in C++ mode.
31529         * lib/unistd.in.h: Include c++defs.h.
31530         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31531         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31532         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31533         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31534         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31535         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31536         symbol.
31537         (environ): Update.
31538         * modules/unistd (Depends-on): Add c++defs.
31539         (Makefile.am): Update unistd.h rule.
31540
31541         time: Avoid #define replacements in C++ mode.
31542         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31543         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31544         define a namespaced alias symbol.
31545         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31546         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31547         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31548         * modules/time (Depends-on): Add c++defs, warn-on-use.
31549         (Makefile.am): Update time.h rule.
31550         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31551         * modules/nanosleep (configure.ac): Likewise.
31552         * modules/strptime (configure.ac): Likewise.
31553         * modules/timegm (configure.ac): Likewise.
31554
31555         sys_time: Avoid #define replacements in C++ mode.
31556         * lib/sys_time.in.h: Include c++defs.h.
31557         (gettimeofday): In C++, define a namespaced alias symbol.
31558         * modules/sys_time (Depends-on): Add c++defs.
31559         (Makefile.am): Update sys/time.h rule.
31560
31561         sys_stat: Avoid #define replacements in C++ mode.
31562         * lib/sys_stat.in.h: Include c++defs.h.
31563         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31564         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31565         namespaced alias symbol.
31566         In C++, define a namespaced alias symbol.
31567         * modules/sys_stat (Depends-on): Add c++defs.
31568         (Makefile.am): Update sys/stat.h rule.
31569
31570         sys_socket: Avoid #define replacements in C++ mode.
31571         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31572         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31573         definitions also when the system has a <sys/socket.h>.
31574         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31575         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31576         In C++, define a namespaced alias symbol.
31577         * modules/sys_socket (Depends-on): Add c++defs.
31578         (Makefile.am): Update sys/socket.h rule.
31579
31580         sys_select: Avoid #define replacements in C++ mode.
31581         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31582         definitions also when the system has a <sys/select.h>.
31583         (select): In C++, define a namespaced alias symbol.
31584         * modules/sys_select (Depends-on): Add c++defs.
31585         (Makefile.am): Update sys/select.h rule.
31586
31587         sys_ioctl: Avoid #define replacements in C++ mode.
31588         * lib/sys_ioctl.in.h: Include c++defs.h.
31589         (ioctl): In C++, define a namespaced alias symbol.
31590         * modules/sys_ioctl (Depends-on): Add c++defs.
31591         (Makefile.am): Update sys/ioctl.h rule.
31592
31593         string: Avoid #define replacements in C++ mode.
31594         * lib/string.in.h: Include c++defs.h.
31595         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31596         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31597         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31598         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31599         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31600         * modules/string (Depends-on): Add c++defs.
31601         (Makefile.am): Update string.h rule.
31602
31603         stdlib: Avoid #define replacements in C++ mode.
31604         * lib/stdlib.in.h: Include c++defs.h.
31605         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31606         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31607         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31608         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31609         symbol.
31610         * modules/stdlib (Depends-on): Add c++defs.
31611         (Makefile.am): Update stdlib.h rule.
31612
31613         stdio: Avoid #define replacements in C++ mode.
31614         * lib/stdio.in.h: Include c++defs.h.
31615         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31616         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31617         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31618         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31619         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31620         namespaced alias symbol.
31621         * modules/stdio (Depends-on): Add c++defs.
31622         (Makefile.am): Update stdio.h rule.
31623
31624         spawn: Avoid #define replacements in C++ mode.
31625         * lib/spawn.in.h: Include c++defs.h.
31626         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31627         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31628         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31629         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31630         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31631         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31632         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31633         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31634         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31635         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31636         In C++, define a namespaced alias symbol.
31637         * modules/spawn (Depends-on): Add c++defs.
31638         (Makefile.am): Update spawn.h rule.
31639
31640         signal: Avoid #define replacements in C++ mode.
31641         * lib/signal.in.h: Include c++defs.h.
31642         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31643         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31644         namespaced alias symbol.
31645         * modules/signal (Depends-on): Add c++defs.
31646         (Makefile.am): Update signal.h rule.
31647
31648         search: Avoid #define replacements in C++ mode.
31649         * lib/search.in.h: Include c++defs.h.
31650         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31651         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31652         symbol.
31653         * modules/search (Depends-on): Add c++defs.
31654         (Makefile.am): Update search.h rule.
31655
31656         math: Avoid #define replacements in C++ mode.
31657         * lib/math.in.h: Include c++defs.h.
31658         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
31659         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
31660         trunc, truncl): In C++, define a namespaced alias symbol.
31661         * modules/math (Depends-on): Add c++defs.
31662         (Makefile.am): Update math.h rule.
31663
31664         locale: Avoid #define replacements in C++ mode.
31665         * lib/locale.in.h: Include c++defs.h.
31666         (duplocale): In C++, define a namespaced alias symbol.
31667         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
31668         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
31669         * modules/locale (Depends-on): Add c++defs.
31670         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
31671
31672         langinfo: Avoid #define replacements in C++ mode.
31673         * lib/langinfo.in.h: Include c++defs.h.
31674         (nl_langinfo): In C++, define a namespaced alias symbol.
31675         * modules/langinfo (Depends-on): Add c++defs.
31676         (Makefile.am): Update langinfo.h rule.
31677
31678         iconv-h: Avoid #define replacements in C++ mode.
31679         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
31680         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
31681         symbol.
31682         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31683         whenever iconv is present.
31684         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
31685         (Makefile.am): Update iconv.h rule.
31686
31687         glob: Avoid #define replacements in C++ mode.
31688         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
31689         (_gl_glob_errfunc_fn): New type.
31690         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
31691         symbol.
31692         * modules/glob (Depends-on): Add c++defs, warn-on-use.
31693         (Makefile.am): Update glob.h rule.
31694
31695         fcntl-h: Avoid #define replacements in C++ mode.
31696         * lib/fcntl.in.h: Include c++defs.h.
31697         (fcntl, open, openat): In C++, define a namespaced alias symbol.
31698         * modules/fcntl-h (Depends-on): Add c++defs.
31699         (Makefile.am): Update fcntl.h rule.
31700
31701         dirent: Avoid #define replacements in C++ mode.
31702         * lib/dirent.in.h: Include c++defs.h.
31703         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
31704         namespaced alias symbol.
31705         (dirfd): Update declaration.
31706         * modules/dirent (Depends-on): Add c++defs.
31707         (Makefile.am): Update dirent.h rule.
31708
31709         ctype: Make it usable in C++ code.
31710         * lib/ctype.in.h: Include c++defs.h.
31711         (isblank): Declare as extern "C".
31712         * modules/ctype (Depends-on): Add c++defs.
31713         (Makefile.am): Update ctype.h rule.
31714
31715         New module 'c++defs'.
31716         * modules/c++defs: New file.
31717         * build-aux/c++defs.h: New file.
31718         Reported by John W. Eaton <jwe@gnu.org>.
31719
31720 2010-03-07  Bruno Haible  <bruno@clisp.org>
31721
31722         logb: Provide missing declaration for Cygwin.
31723         * lib/math.in.h (logb): New declaration.
31724         * m4/logb.m4: New file.
31725         * modules/logb (Files): Add m4/logb.m4.
31726         (Depends-on): Add math.
31727         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
31728         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
31729         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
31730         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
31731         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
31732
31733 2010-03-07  Bruno Haible  <bruno@clisp.org>
31734
31735         Fix test-cond link error.
31736         * tests/test-cond.c: Include <stdio.h>.
31737
31738 2010-03-07  Bruno Haible  <bruno@clisp.org>
31739
31740         Fix test-dirent-safer link error.
31741         * modules/dirent-safer-tests (Makefile.am): Define
31742         test_dirent_safer_LDADD.
31743
31744 2010-03-07  Bruno Haible  <bruno@clisp.org>
31745
31746         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
31747         among default module list.
31748
31749 2010-03-07  Bruno Haible  <bruno@clisp.org>
31750
31751         Fix link error on platforms with GNU libiconv.
31752         * modules/unistr/u8-strcoll-tests (Makefile): Define
31753         test_u8_strcoll_LDADD.
31754         * modules/unistr/u16-strcoll-tests (Makefile): Define
31755         test_u16_strcoll_LDADD.
31756         * modules/unistr/u32-strcoll-tests (Makefile): Define
31757         test_u32_strcoll_LDADD.
31758
31759 2010-03-07  Bruno Haible  <bruno@clisp.org>
31760
31761         Use POSIX declarations for socket functions.
31762         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
31763         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
31764         rpl_sendto): Change declaration to match POSIX.
31765         * lib/connect.c (rpl_connect): Likewise.
31766         * lib/accept.c (rpl_accept): Likewise.
31767         * lib/bind.c (rpl_bind): Likewise.
31768         * lib/getpeername.c (rpl_getpeername): Likewise.
31769         * lib/getsockname.c (rpl_getsockname): Likewise.
31770         * lib/recv.c (rpl_recv): Likewise.
31771         * lib/send.c (rpl_send): Likewise.
31772         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31773         * lib/sendto.c (rpl_sendto): Likewise.
31774
31775 2010-03-06  Bruno Haible  <bruno@clisp.org>
31776
31777         Clarify access, euidaccess, faccessat.
31778         * doc/posix-functions/faccessat.texi: Mention security problem under
31779         "Other problems", not "Portability problems".
31780         * doc/posix-functions/access.texi: Likewise. Mention a related security
31781         problem.
31782         * doc/glibc-functions/euidaccess.texi: Mention security problems.
31783         * lib/euidaccess.c: Add comments about platforms.
31784         * lib/unistd.in.h (access, euidaccess): Add warnings.
31785
31786 2010-03-07  Bruno Haible  <bruno@clisp.org>
31787
31788         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
31789         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
31790         (POSIX_SPAWN_SETSCHEDULER): Likewise.
31791         (POSIX_SPAWN_USEVFORK): Define in a way that works when
31792         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31793         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
31794         declare when POSIX_SPAWN_SETSCHEDULER is zero.
31795         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
31796         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
31797         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
31798         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
31799         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
31800         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
31801         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
31802         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
31803         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
31804         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
31805         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
31806         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
31807         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
31808         Likewise.
31809         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
31810         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
31811         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
31812         Likewise.
31813         * tests/test-spawn.c (main): Make it work when
31814         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31815
31816 2010-03-07  Bruno Haible  <bruno@clisp.org>
31817
31818         Fix incorrect Makefile.am generation in German locale.
31819         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31820         Execute sed command with character range in C locale.
31821
31822 2010-03-06  Bruno Haible  <bruno@clisp.org>
31823
31824         Tests for module 'iconv-h'.
31825         * modules/iconv-h-tests: New file.
31826         * tests/test-iconv-h.c: New file.
31827
31828         New module 'iconv-h'.
31829         * modules/iconv-h: New file.
31830         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
31831         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
31832         (configure.ac): Remove gl_ICONV_H.
31833         (Makefile.am): Remove rule for iconv.h.
31834
31835 2010-03-06  Bruno Haible  <bruno@clisp.org>
31836
31837         More consistent naming of *.m4 files.
31838         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
31839         * modules/wctype (Files): Update.
31840
31841         More consistent naming of *.m4 files.
31842         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
31843         * modules/wchar (Files): Update.
31844
31845 2010-03-06  Jim Meyering  <meyering@redhat.com>
31846
31847         euidaccess: relax license to LGPLv2+
31848         * modules/euidaccess (License): Relax to LGPLv2+.
31849
31850 2010-03-06  Bruno Haible  <bruno@clisp.org>
31851
31852         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
31853         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
31854         (Makefile.am): Augment lib_SOURCES instead.
31855
31856 2010-03-04  Jim Meyering  <meyering@redhat.com>
31857
31858         utime: remove obsolete module
31859         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
31860         unnecessary for years, and has been marked as obsolete for 10 months.
31861         * modules/utime: Remove file.
31862         * lib/utime.c: Remove file.
31863         * m4/utime.m4: Remove file.
31864         * m4/utimes-null.m4: Remove file.
31865         * doc/posix-functions/utime.texi (utime): Remove reference to
31866         the module.  Move the sole "fixed by gnulib" item into the
31867         "problems not fixed by Gnulib" list.
31868         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
31869
31870 2010-03-05  Simon Josefsson  <simon@josefsson.org>
31871
31872         * modules/exit (License): Relax license to LGPLv2+.
31873         (Status): Mark as obsolete.
31874         * NEWS: Mention deprecated 'exit' module.
31875         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
31876         of now obsolete 'exit'.
31877
31878 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31879
31880         fts-lgpl: remove unused module
31881         * modules/fts-lgpl: Remove.
31882         * MODULES.html.sh (func_all_modules): Adjust.
31883         * check-module (find_included_lib_files): Adjust.
31884         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
31885
31886 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
31887
31888         copy-acl: enhance Solaris ACL error handling
31889         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
31890         * lib/set-mode-acl.c (qset_acl): Likewise.
31891
31892 2010-03-02  Bruno Haible  <bruno@clisp.org>
31893
31894         spawn: Don't override the system defined values on FreeBSD 8.
31895         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
31896         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
31897         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
31898         if HAVE_POSIX_SPAWN is 1.
31899         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
31900
31901 2010-03-01  Bruno Haible  <bruno@clisp.org>
31902
31903         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
31904         regarding Automake.
31905
31906 2010-02-25  Bruno Haible  <bruno@clisp.org>
31907
31908         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
31909         * gnulib-tool: Define 'echo' as a function only before the ksh alias
31910         setting, not afterwards.
31911         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
31912
31913 2010-02-24  Eric Blake  <eblake@redhat.com>
31914
31915         bootstrap, git-version-gen: use timestamp
31916         * build-aux/git-version-gen (scriptversion): Force UTC.
31917         * build-aux/bootstrap (scriptversion): New variable.
31918
31919         bootstrap: allow older git
31920         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
31921         older than 1.6.4.  Requested by the libvirt project.
31922
31923 2010-02-23  Eric Blake  <eblake@redhat.com>
31924
31925         warn-on-use: work with old autoconf
31926         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
31927         AS_VAR semantics of autoconf 2.60.
31928         Reported by Bruno Haible.
31929
31930         bootstrap: improve some comments
31931         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
31932         clarification comments.
31933
31934         gettimeofday: provide correct function
31935         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
31936         when replacement is declared, otherwise provide gettimeofday.
31937         Reported by Michael Goffioul.
31938
31939 2010-02-23  Jim Meyering  <meyering@redhat.com>
31940
31941         lib-ignore: relax license to "unlimited", not LGPLv2+
31942         * modules/lib-ignore (License): Relax to "unlimited".
31943
31944 2010-02-23  Jim Meyering  <meyering@redhat.com>
31945
31946         lib-ignore: relax license to LGPLv2+
31947         * modules/lib-ignore (License): Relax to LGPLv2+.
31948
31949 2010-02-22  Eric Blake  <eblake@redhat.com>
31950
31951         lseek: avoid bash 3.2 broken pipe bug
31952         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
31953         warning from bash 3.2.
31954         Reported by Ben Pfaff, with analysis from Bruno Haible.
31955
31956         bootstrap: support non-FSF copyright holder
31957         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
31958         bootstrap.conf override of COPYRIGHT_HOLDER.
31959         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
31960
31961         bootstrap: interoperate with gettext 0.14.1
31962         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
31963
31964         bootstrap: allow for alternate submodule location
31965         * build-aux/bootstrap (gnulib_path): New variable; use instead of
31966         hardcoding submodule location.
31967         (gnulib_mk): Allow direct use of Makefile.am.
31968
31969         bootstrap: use GNULIB_SRCDIR to reduce disk usage
31970         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
31971         rather than reconfiguring where the submodule points.
31972
31973         gettimeofday: restore support for platforms that lack function
31974         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
31975         replacement if function is missing.
31976         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
31977         * modules/sys_time (Makefile.am): Substitute it.
31978         * lib/sys_time.in.h (gettimeofday): Check it.
31979         Reported by Michael Goffioul.
31980
31981 2010-02-21  Bruno Haible  <bruno@clisp.org>
31982
31983         * lib/stdio.in.h (obstack_printf): Fix typo.
31984
31985 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
31986
31987         vc-list-files: use bzr ls's -R option
31988         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
31989         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
31990
31991 2010-02-21  Jim Meyering  <meyering@redhat.com>
31992
31993         init.sh: fix EXEEXT shims to work also for names like test-prog
31994         * tests/init.sh: Re-exec a better shell, when needed.
31995         If the current shell lacks support for posix $(...), an init.sh-using
31996         test will now try to find a shell that supports that.  If EXEEXT is
31997         nonempty, we also require support for hyphen-in-alias-name and shell
31998         substitutions like ${var#glob}.  Failure to find such a shell results
31999         in a skipped test.
32000
32001 2010-02-21  Bruno Haible  <bruno@clisp.org>
32002
32003         Really work around around "broken pipe" error message from bash 3.2.
32004         * gnulib-tool (func_reset_sigpipe): Remove function.
32005         (echo): In bash 3.2, define to a function that uses printf.
32006         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32007
32008 2010-02-20  Bruno Haible  <bruno@clisp.org>
32009
32010         Restore support for automake 1.9.6 with autoconf 2.61.
32011         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32012         Reported by James Youngman <jay@gnu.org>.
32013
32014 2010-02-20  Bruno Haible  <bruno@clisp.org>
32015
32016         Improve *printf warning condition.
32017         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32018         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32019         and the function is overridden due to SIGPIPE emulation.
32020
32021 2010-02-20  Bruno Haible  <bruno@clisp.org>
32022
32023         * lib/stdio.in.h: Tweak comments.
32024
32025 2010-02-19  Bruno Haible  <bruno@clisp.org>
32026
32027         Make it easier to find modules. New gnulib-tool option '--find'.
32028         * gnulib-tool: New option --find.
32029         (func_usage): Document it.
32030         (func_sanitize_modulelist): New function, extracted from
32031         func_all_modules.
32032         (func_all_modules): Invoke it.
32033         * doc/gnulib-tool.texi (Which modules?): New node.
32034
32035 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32036
32037         * lib/sys_select.in.h: Provide select replacement even if
32038         sys/select.h exists on a system, for Interix.
32039
32040 2010-02-18  Jim Meyering  <meyering@redhat.com>
32041
32042         init.sh: don't use $(...) just yet
32043         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32044         to accommodate e.g., Solaris' /bin/sh.
32045
32046 2010-02-17  Bruno Haible  <bruno@clisp.org>
32047
32048         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32049         Reported by Ludovic Courtès <ludo@gnu.org>.
32050
32051 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32052
32053         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32054         linking with -lintl.
32055
32056 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32057
32058         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32059         if not provided by the system's netdb.h.  Reported by
32060         ludo@gnu.org (Ludovic Courtès).
32061
32062 2010-02-15  Jim Meyering  <meyering@redhat.com>
32063
32064         init.sh: improve portability and efficiency
32065         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32066         "dummy" in a for loop.
32067         Use '!', not '^' to select the complement of a character set used
32068         in a "case" statement.
32069         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32070         Suggestions from Eric Blake.
32071
32072         init.sh: automatically accommodate programs with the .exe suffix
32073         Automatically arrange for an invocation of "prog" to execute the
32074         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32075         may use the simpler "prog", yet still work when built on a system
32076         that requires specifying the added suffix.
32077         Do this by constructing a function named "prog" that invokes
32078         "prog.exe" for each .exe file in selected directories.
32079         * tests/init.sh (find_exe_basenames_): New function.
32080         (create_exe_shim_functions_): New function.
32081         (path_prepend_): Use it.
32082
32083         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32084         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32085         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32086
32087 2010-02-14  Jim Meyering  <meyering@redhat.com>
32088
32089         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32090         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32091         (sc_prohibit_hash_pjw_without_use): New rule.
32092
32093         maint.mk: allow the default upload destination dir to be overridden
32094         * top/maint.mk (upload_dest_dir_): Define with a default that
32095         preserves the status quo.
32096         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32097         Reported by Peter Simons.
32098
32099         maint.mk: prohibit inclusion of "hash.h" without_use
32100         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32101
32102 2010-02-10  Jim Meyering  <meyering@redhat.com>
32103
32104         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32105         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32106
32107 2010-02-09  Eric Blake  <ebb9@byu.net>
32108         and Bruno Haible  <bruno@clisp.org>
32109
32110         obstack-printf-posix: ensure declaration
32111         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32112         extracted from gl_FUNC_OBSTACK_PRINTF.
32113         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32114         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32115         Likewise.
32116         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32117         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32118         0.
32119
32120 2010-02-08  Bruno Haible  <bruno@clisp.org>
32121
32122         gnulib-tool: Fix typo in 2010-02-07 commit.
32123         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32124         Reported by Eric Blake.
32125
32126 2010-02-07  Bruno Haible  <bruno@clisp.org>
32127
32128         gnulib-tool: Fix up caching patches.
32129         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32130         option --no-cache. Use associative arrays when supported by the shell.
32131         (sed_comments): New variable.
32132         (modcache): Renamed from do_cache.
32133         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32134         abbreviate unnecessarily.
32135         (have_associative): New variable.
32136         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32137         way also for ksh and zsh.
32138         (func_init_sed_convert_to_cache_statements): New function, extracted
32139         from func_cache_lookup_module. Add support for associative arrays.
32140         Don't set the c_MODULE_cached variable here. Ignore all lines before
32141         the first field header. Remove only the final newline, not all trailing
32142         newlines. Support empty fields correctly. Limit the use of 'eval' to
32143         assignments.
32144         (func_get_description, func_get_status, func_get_notice,
32145         func_get_applicability, func_get_filelist, func_get_dependencies,
32146         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32147         func_get_automake_snippet, func_get_include_directive,
32148         func_get_link_directive, func_get_license, func_get_maintainer):
32149         Update documentation. List the unoptimized code first. Add support for
32150         associative arrays. Limit the use of 'eval' to assignments.
32151         (func_get_applicability): Undo stylistic pessimisations.
32152         (func_get_automake_snippet, func_get_include_directive): Reduce code
32153         duplication.
32154         (func_modules_transitive_closure, func_modules_add_dummy,
32155         func_modules_notice, func_modules_to_filelist, func_add_file,
32156         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32157         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32158         func_create_testdir, func_create_megatestdir): Update documentation.
32159
32160 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32161
32162         * gnulib-tool (func_cache_lookup_module): Store the module name
32163         belonging to the cache variable; error out if two different
32164         module names map to the same cache variable name.
32165
32166 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32167
32168         gnulib-tool: Make caching optional.
32169         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32170         Update matching short versions of --no-changelog.
32171         (func_usage): Update.
32172         (sed_extract_cache_prog): Renamed from ...
32173         (sed_extract_prog): ... this; revert to old extraction script.
32174         (func_get_description, func_get_status)
32175         (func_get_notice, func_get_applicability, func_get_filelist)
32176         (func_get_dependencies, func_get_autoconf_early_snippet)
32177         (func_get_autoconf_snippet, func_get_automake_snippet)
32178         (func_get_include_directive, func_get_link_directive)
32179         (func_get_license, func_get_maintainer): If $do_cache is false,
32180         use old, non-caching extraction scripts.
32181         Suggestion by Bruno Haible.
32182
32183 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32184
32185         gnulib-tool: cache module metainformation.
32186         * gnulib-tool (sed_extract_prog): Match newline before each
32187         header, and rewrite header to a shell variable suffix.
32188         (func_cache_var, func_cache_lookup_module): New functions,
32189         to turn a module name into a cache variable prefix, and to
32190         look up and cache module metainformation.
32191         (func_get_description, func_get_status)
32192         (func_get_notice, func_get_applicability, func_get_filelist)
32193         (func_get_dependencies, func_get_autoconf_early_snippet)
32194         (func_get_autoconf_snippet, func_get_automake_snippet)
32195         (func_get_include_directive, func_get_link_directive)
32196         (func_get_license, func_get_maintainer): Use
32197         func_cache_lookup_module.
32198
32199 2010-02-07  Bruno Haible  <bruno@clisp.org>
32200
32201         fnctl: Fix missing dependency.
32202         * modules/fcntl (Depends-on): Add getdtablesize.
32203         Reported by John W. Eaton <jwe@gnu.org>.
32204
32205 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32206
32207         Argp: fix recognition of short alias options.
32208
32209         * lib/argp-parse.c (convert_options): Fix improper use of
32210         `|' between character values.
32211         * tests/test-argp.c (group1_option): New alias option
32212         --read (-r).
32213         (group1_parser): Special handling for 'r'.
32214         (test15): New test case.
32215         (test_fun): Add test15.
32216         * tests/test-argp-2.sh: Update expected --help and --usage
32217         outputs.
32218
32219 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32220
32221         * tests/test-argp.c: Fix indentation.
32222
32223 2010-02-04  Eric Blake  <ebb9@byu.net>
32224
32225         gettimeofday: expose type of second argument
32226         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32227         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32228         * tests/test-gettimeofday.c: Use it to silence warning.
32229         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32230         the issue.
32231
32232 2010-02-03  Jim Meyering  <meyering@redhat.com>
32233
32234         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32235         * lib/regcomp.c (TYPE_SIGNED): Define.
32236         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32237
32238         regcomp.c: avoid a new -Wshadow warning
32239         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32240
32241 2010-02-01  Jim Meyering  <meyering@redhat.com>
32242
32243         removing useless parentheses in cpp #define directives
32244         For motivation, see commit c0221df4, "define STREQ(a,b)
32245         consistently, removing useless parentheses"
32246         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32247         * lib/mountlist.c (MNT_IGNORE): Likewise.
32248         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32249
32250 2010-02-01  Eric Blake  <ebb9@byu.net>
32251
32252         sys_time: use link-warning
32253         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32254         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32255         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32256         * modules/sys_time (Depends-on): Add warn-on-use.
32257         (Makefile.am): Always build replacement.
32258         (configure.ac): Update substitutions.
32259         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32260         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32261         bother with SYS_TIME_H.
32262         * modules/gettimeofday (configure.ac): Declare indicator.
32263         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32264         in use.
32265
32266         closein-tests: silence compiler warning
32267         * tests/test-closein.c (main): Ignore fread result.
32268         * modules/closein-tests (Depends-on): Add ignore-value.
32269
32270         tests: silence warning about system return
32271         * tests/test-areadlink-with-size.c (main): Ignore system result.
32272         * tests/test-areadlink.c (main): Likewise.
32273         * tests/test-areadlinkat-with-size.c (main): Likewise.
32274         * tests/test-areadlinkat.c (main): Likewise.
32275         * tests/test-canonicalize-lgpl.c (main): Likewise.
32276         * tests/test-canonicalize.c (main): Likewise.
32277         * tests/test-chown.c (main): Likewise.
32278         * tests/test-fchownat.c (main): Likewise.
32279         * tests/test-fdutimensat.c (main): Likewise.
32280         * tests/test-fstatat.c (main): Likewise.
32281         * tests/test-futimens.c (main): Likewise.
32282         * tests/test-lchown.c (main): Likewise.
32283         * tests/test-link.c (main): Likewise.
32284         * tests/test-linkat.c (main): Likewise.
32285         * tests/test-lstat.c (main): Likewise.
32286         * tests/test-mkdir.c (main): Likewise.
32287         * tests/test-mkdirat.c (main): Likewise.
32288         * tests/test-mkfifo.c (main): Likewise.
32289         * tests/test-mkfifoat.c (main): Likewise.
32290         * tests/test-mknod.c (main): Likewise.
32291         * tests/test-readlink.c (main): Likewise.
32292         * tests/test-remove.c (main): Likewise.
32293         * tests/test-rename.c (main): Likewise.
32294         * tests/test-renameat.c (main): Likewise.
32295         * tests/test-rmdir.c (main): Likewise.
32296         * tests/test-symlink.c (main): Likewise.
32297         * tests/test-symlinkat.c (main): Likewise.
32298         * tests/test-unlink.c (main): Likewise.
32299         * tests/test-unlinkat.c (main): Likewise.
32300         * tests/test-utimens.c (main): Likewise.
32301         * tests/test-utimensat.c (main): Likewise.
32302         * modules/areadlink-tests (Depends-on): Add ignore-value.
32303         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32304         * modules/areadlinkat-tests (Depends-on): Likewise.
32305         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32306         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32307         * modules/canonicalize-tests (Depends-on): Likewise.
32308         * modules/chown-tests (Depends-on): Likewise.
32309         * modules/fdutimensat-tests (Depends-on): Likewise.
32310         * modules/futimens-tests (Depends-on): Likewise.
32311         * modules/lchown-tests (Depends-on): Likewise.
32312         * modules/link-tests (Depends-on): Likewise.
32313         * modules/linkat-tests (Depends-on): Likewise.
32314         * modules/lstat-tests (Depends-on): Likewise.
32315         * modules/mkdir-tests (Depends-on): Likewise.
32316         * modules/mkfifo-tests (Depends-on): Likewise.
32317         * modules/mkfifoat-tests (Depends-on): Likewise.
32318         * modules/mknod-tests (Depends-on): Likewise.
32319         * modules/openat-tests (Depends-on): Likewise.
32320         * modules/readlink-tests (Depends-on): Likewise.
32321         * modules/remove-tests (Depends-on): Likewise.
32322         * modules/rename-tests (Depends-on): Likewise.
32323         * modules/renameat-tests (Depends-on): Likewise.
32324         * modules/rmdir-tests (Depends-on): Likewise.
32325         * modules/symlink-tests (Depends-on): Likewise.
32326         * modules/symlinkat-tests (Depends-on): Likewise.
32327         * modules/unlink-tests (Depends-on): Likewise.
32328         * modules/utimens-tests (Depends-on): Likewise.
32329         * modules/utimensat-tests (Depends-on): Likewise.
32330
32331 2010-01-31  Bruno Haible  <bruno@clisp.org>
32332
32333         Perform the same test for many <math.h> functions.
32334         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
32335         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
32336         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
32337         of gl_MATHFUNC.
32338         * modules/acos (configure.ac): Likewise.
32339         * modules/asin (configure.ac): Likewise.
32340         * modules/atan (configure.ac): Likewise.
32341         * modules/atan2 (configure.ac): Likewise.
32342         * modules/cbrt (configure.ac): Likewise.
32343         * modules/copysign (configure.ac): Likewise.
32344         * modules/cos (configure.ac): Likewise.
32345         * modules/cosh (configure.ac): Likewise.
32346         * modules/erf (configure.ac): Likewise.
32347         * modules/erfc (configure.ac): Likewise.
32348         * modules/exp (configure.ac): Likewise.
32349         * modules/fmod (configure.ac): Likewise.
32350         * modules/hypot (configure.ac): Likewise.
32351         * modules/j0 (configure.ac): Likewise.
32352         * modules/j1 (configure.ac): Likewise.
32353         * modules/jn (configure.ac): Likewise.
32354         * modules/lgamma (configure.ac): Likewise.
32355         * modules/log (configure.ac): Likewise.
32356         * modules/log10 (configure.ac): Likewise.
32357         * modules/log1p (configure.ac): Likewise.
32358         * modules/pow (configure.ac): Likewise.
32359         * modules/remainder (configure.ac): Likewise.
32360         * modules/sin (configure.ac): Likewise.
32361         * modules/sinh (configure.ac): Likewise.
32362         * modules/tan (configure.ac): Likewise.
32363         * modules/tanh (configure.ac): Likewise.
32364         * modules/y0 (configure.ac): Likewise.
32365         * modules/y1 (configure.ac): Likewise.
32366         * modules/yn (configure.ac): Likewise.
32367         Suggested by Paolo Bonzini.
32368
32369 2010-01-31  Bruno Haible  <bruno@clisp.org>
32370
32371         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32372
32373 2010-01-31  Bruno Haible  <bruno@clisp.org>
32374
32375         Work around getdelim() bug on FreeBSD 8.0.
32376         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32377         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32378         not work.
32379         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32380         is 1.
32381         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32382         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32383         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32384         a non-zero size.
32385         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32386
32387 2010-01-31  Bruno Haible  <bruno@clisp.org>
32388
32389         Work around getline() bug on FreeBSD 8.0.
32390         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32391         and a non-zero size.
32392         * tests/test-getline.c (main): Likewise.
32393         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32394         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
32395
32396 2010-01-28  Eric Blake  <ebb9@byu.net>
32397
32398         regex: fix build failure
32399         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
32400         platforms.
32401
32402 2010-01-28  Jim Meyering  <meyering@redhat.com>
32403
32404         regex: do not ignore memory allocation failure
32405         * lib/regex_internal.c (create_cd_newstate): Detect
32406         re_node_set_init_copy failure.   Extracted from glibc commit
32407         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32408
32409         regex: sync more white-space changes from libc
32410         * lib/regex_internal.c: White-space only changes.
32411         * lib/regexec.c: Likewise.
32412
32413         regex: add many uses of __attribute_warn_unused_result__
32414         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
32415         * lib/regexec.c: Likewise.
32416         Extracted from a messy glibc commit.
32417
32418         regcomp.c: spelling and merge-artifact from glibc
32419         * lib/regcomp.c: Merge remainder of glibc's
32420         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32421
32422         regcomp.c: sync white-space changes from glibc
32423         * lib/regcomp.c: Merge to accommodate white space
32424         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32425
32426         regcomp.c: do not ignore internal return values
32427         * lib/regcomp.c: Do not ignore internal return values.
32428         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
32429         but without its white-space changes and spelling fixes.
32430
32431         regex_internal.h: define __attribute_warn_unused_result__
32432         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
32433
32434         maint: add a syntax-check rule to check for vulnerable Makefile.in
32435         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
32436
32437 2010-01-27  Jim Meyering  <meyering@redhat.com>
32438
32439         ncftpput-ftp: clean up spaces
32440         * build-aux/ncftpput-ftp: Make Copyright line consistent.
32441         Remove trailing blanks.
32442
32443 2010-01-27  Simon Josefsson  <simon@josefsson.org>
32444
32445         * build-aux/git-version-gen: Fix copyright statement.
32446         * build-aux/gnupload: Likewise.
32447         * tests/test-arcfour.c: Likewise.
32448         * tests/test-arctwo.c: Likewise.
32449         * tests/test-count-one-bits.c: Likewise.
32450         * tests/test-crc.c: Likewise.
32451         * tests/test-des.c: Likewise.
32452         * tests/test-gc-arcfour.c: Likewise.
32453         * tests/test-gc-arctwo.c: Likewise.
32454         * tests/test-gc-des.c: Likewise.
32455         * tests/test-gc-hmac-md5.c: Likewise.
32456         * tests/test-gc-hmac-sha1.c: Likewise.
32457         * tests/test-gc-md2.c: Likewise.
32458         * tests/test-gc-md4.c: Likewise.
32459         * tests/test-gc-md5.c: Likewise.
32460         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32461         * tests/test-gc-rijndael.c: Likewise.
32462         * tests/test-gc-sha1.c: Likewise.
32463         * tests/test-gc.c: Likewise.
32464         * tests/test-gethostname.c: Likewise.
32465         * tests/test-gettimeofday.c: Likewise.
32466         * tests/test-hash.c: Likewise.
32467         * tests/test-hmac-md5.c: Likewise.
32468         * tests/test-hmac-sha1.c: Likewise.
32469         * tests/test-md2.c: Likewise.
32470         * tests/test-md4.c: Likewise.
32471         * tests/test-md5.c: Likewise.
32472         * tests/test-memchr.c: Likewise.
32473         * tests/test-memchr2.c: Likewise.
32474         * tests/test-memcmp.c: Likewise.
32475         * tests/test-memmem.c: Likewise.
32476         * tests/test-memrchr.c: Likewise.
32477         * tests/test-rawmemchr.c: Likewise.
32478         * tests/test-read-file.c: Likewise.
32479         * tests/test-rijndael.c: Likewise.
32480         * tests/test-sockets.c: Likewise.
32481         * tests/test-strchrnul.c: Likewise.
32482         * tests/test-strstr.c: Likewise.
32483         * tests/test-strtod.c: Likewise.
32484         * build-aux/ncftpput-ftp: Likewise.
32485
32486 2010-01-26  Eric Blake  <ebb9@byu.net>
32487
32488         ignore-value: update recommended header name
32489         * modules/ignore-value (Include): Only use <> for headers that
32490         exist in glibc.
32491
32492 2010-01-26  Jim Meyering  <meyering@redhat.com>
32493
32494         test-userspec.c: avoid compiler warnings
32495         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
32496         and "initialization discards qualifiers..." warnings.
32497         Put the first "uid" in its own scope, and make char* members "const".
32498
32499 2010-01-25  Bruno Haible  <bruno@clisp.org>
32500
32501         gnulib-tool: Make warning diagnostics consistent.
32502         * gnulib-tool (func_warning): New function.
32503         Use it everywhere where gnulib-tool produces output to stderr and it is
32504         not a fatal error.
32505
32506 2010-01-25  Bruno Haible  <bruno@clisp.org>
32507
32508         Fix test dependencies.
32509         * modules/xstrtol-tests (Depends-on): Add inttypes.
32510         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32511
32512 2010-01-25 Pádraig Brady <P@draigBrady.com>
32513
32514         syntax-check: detect incorrect boolean macro values in config.h
32515         * modules/maintainer-makefile (configure.ac): Parameterize the location
32516         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32517         The logic is from Eric Blake and the location indicated by Jim Meyering.
32518         Note the more natural CONFIG_HEADER name is prohibited by automake
32519         for backwards compatibility reasons.
32520         * top/maint.mk (sc_Wundef_boolean): New rule.
32521
32522 2010-01-25  Jim Meyering  <meyering@redhat.com>
32523
32524         bootstrap: detect MacOS 10.6's shasum, too
32525         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32526         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32527
32528 2010-01-23  Jim Meyering  <meyering@redhat.com>
32529
32530         xstrtoll: new module
32531         * modules/xstrtoll: New file.
32532         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32533         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32534         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32535         ./configure fails if you use this module and lack "long long".
32536         * modules/xstrtoll-tests: New module.
32537         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32538         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32539         new init.sh-based test framework.
32540
32541 2010-01-24  Bruno Haible  <bruno@clisp.org>
32542
32543         Tests for module 'yn'.
32544         * modules/yn-tests: New file.
32545         * tests/test-yn.c: New file.
32546
32547         Tests for module 'y1'.
32548         * modules/y1-tests: New file.
32549         * tests/test-y1.c: New file.
32550
32551         Tests for module 'y0'.
32552         * modules/y0-tests: New file.
32553         * tests/test-y0.c: New file.
32554
32555         Tests for module 'tanh'.
32556         * modules/tanh-tests: New file.
32557         * tests/test-tanh.c: New file.
32558
32559         Tests for module 'tan'.
32560         * modules/tan-tests: New file.
32561         * tests/test-tan.c: New file.
32562
32563         Tests for module 'sqrt'.
32564         * modules/sqrt-tests: New file.
32565         * tests/test-sqrt.c: New file.
32566
32567         Tests for module 'sinh'.
32568         * modules/sinh-tests: New file.
32569         * tests/test-sinh.c: New file.
32570
32571         Tests for module 'sin'.
32572         * modules/sin-tests: New file.
32573         * tests/test-sin.c: New file.
32574
32575         Tests for module 'rint'.
32576         * modules/rint-tests: New file.
32577         * tests/test-rint.c: New file.
32578
32579         Tests for module 'remainder'.
32580         * modules/remainder-tests: New file.
32581         * tests/test-remainder.c: New file.
32582
32583         Tests for module 'pow'.
32584         * modules/pow-tests: New file.
32585         * tests/test-pow.c: New file.
32586
32587         Tests for module 'nextafter'.
32588         * modules/nextafter-tests: New file.
32589         * tests/test-nextafter.c: New file.
32590
32591         Tests for module 'modf'.
32592         * modules/modf-tests: New file.
32593         * tests/test-modf.c: New file.
32594
32595         Tests for module 'logb'.
32596         * modules/logb-tests: New file.
32597         * tests/test-logb.c: New file.
32598
32599         Tests for module 'log1p'.
32600         * modules/log1p-tests: New file.
32601         * tests/test-log1p.c: New file.
32602
32603         Tests for module 'log10'.
32604         * modules/log10-tests: New file.
32605         * tests/test-log10.c: New file.
32606
32607         Tests for module 'log'.
32608         * modules/log-tests: New file.
32609         * tests/test-log.c: New file.
32610
32611         Tests for module 'lgamma'.
32612         * modules/lgamma-tests: New file.
32613         * tests/test-lgamma.c: New file.
32614
32615         Tests for module 'ldexp'.
32616         * modules/ldexp-tests: New file.
32617         * tests/test-ldexp.c: New file.
32618
32619         Tests for module 'jn'.
32620         * modules/jn-tests: New file.
32621         * tests/test-jn.c: New file.
32622
32623         Tests for module 'j1'.
32624         * modules/j1-tests: New file.
32625         * tests/test-j1.c: New file.
32626
32627         Tests for module 'j0'.
32628         * modules/j0-tests: New file.
32629         * tests/test-j0.c: New file.
32630
32631         Tests for module 'hypot'.
32632         * modules/hypot-tests: New file.
32633         * tests/test-hypot.c: New file.
32634
32635         Tests for module 'fmod'.
32636         * modules/fmod-tests: New file.
32637         * tests/test-fmod.c: New file.
32638
32639         Tests for module 'fabs'.
32640         * modules/fabs-tests: New file.
32641         * tests/test-fabs.c: New file.
32642
32643         Tests for module 'exp'.
32644         * modules/exp-tests: New file.
32645         * tests/test-exp.c: New file.
32646
32647         Tests for module 'erfc'.
32648         * modules/erfc-tests: New file.
32649         * tests/test-erfc.c: New file.
32650
32651         Tests for module 'erf'.
32652         * modules/erf-tests: New file.
32653         * tests/test-erf.c: New file.
32654
32655         Tests for module 'cosh'.
32656         * modules/cosh-tests: New file.
32657         * tests/test-cosh.c: New file.
32658
32659         Tests for module 'cos'.
32660         * modules/cos-tests: New file.
32661         * tests/test-cos.c: New file.
32662
32663         Tests for module 'copysign'.
32664         * modules/copysign-tests: New file.
32665         * tests/test-copysign.c: New file.
32666
32667         Tests for module 'cbrt'.
32668         * modules/cbrt-tests: New file.
32669         * tests/test-cbrt.c: New file.
32670
32671         Tests for module 'atan2'.
32672         * modules/atan2-tests: New file.
32673         * tests/test-atan2.c: New file.
32674
32675         Tests for module 'atan'.
32676         * modules/atan-tests: New file.
32677         * tests/test-atan.c: New file.
32678
32679         Tests for module 'asin'.
32680         * modules/asin-tests: New file.
32681         * tests/test-asin.c: New file.
32682
32683         Tests for module 'acos'.
32684         * modules/acos-tests: New file.
32685         * tests/test-acos.c: New file.
32686
32687 2010-01-24  Bruno Haible  <bruno@clisp.org>
32688
32689         Fix tests for common <math.h> functions.
32690         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
32691         code snippet that references the function pointer, rather than merely
32692         calling the function. Substitute the FUNC_LIBM variable.
32693         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
32694         * modules/acos (configure.ac): Likewise.
32695         * modules/asin (configure.ac): Likewise.
32696         * modules/atan (configure.ac): Likewise.
32697         * modules/atan2 (configure.ac): Likewise.
32698         * modules/cbrt (configure.ac): Likewise.
32699         * modules/copysign (configure.ac): Likewise.
32700         * modules/cos (configure.ac): Likewise.
32701         * modules/cosh (configure.ac): Likewise.
32702         * modules/erf (configure.ac): Likewise.
32703         * modules/erfc (configure.ac): Likewise.
32704         * modules/exp (configure.ac): Likewise.
32705         * modules/fabs (configure.ac): Likewise.
32706         * modules/fmod (configure.ac): Likewise.
32707         * modules/hypot (configure.ac): Likewise.
32708         * modules/j0 (configure.ac): Likewise.
32709         * modules/j1 (configure.ac): Likewise.
32710         * modules/jn (configure.ac): Likewise.
32711         * modules/ldexp (configure.ac): Likewise.
32712         * modules/lgamma (configure.ac): Likewise.
32713         * modules/log (configure.ac): Likewise.
32714         * modules/log10 (configure.ac): Likewise.
32715         * modules/log1p (configure.ac): Likewise.
32716         * modules/logb (configure.ac): Likewise.
32717         * modules/modf (configure.ac): Likewise.
32718         * modules/nextafter (configure.ac): Likewise.
32719         * modules/pow (configure.ac): Likewise.
32720         * modules/remainder (configure.ac): Likewise.
32721         * modules/rint (configure.ac): Likewise.
32722         * modules/sin (configure.ac): Likewise.
32723         * modules/sinh (configure.ac): Likewise.
32724         * modules/tan (configure.ac): Likewise.
32725         * modules/tanh (configure.ac): Likewise.
32726         * modules/y0 (configure.ac): Likewise.
32727         * modules/y1 (configure.ac): Likewise.
32728         * modules/yn (configure.ac): Likewise.
32729
32730 2010-01-24  Bruno Haible  <bruno@clisp.org>
32731
32732         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
32733         * tests/test-acosl.c (x): New variable.
32734         (main): Store argument in x and fetch it from x.
32735         * tests/test-asinl.c (x): New variable.
32736         (main): Store argument in x and fetch it from x.
32737         * tests/test-atanl.c (x): New variable.
32738         (main): Store argument in x and fetch it from x.
32739         * tests/test-cosl.c (x): New variable.
32740         (main): Store argument in x and fetch it from x.
32741         * tests/test-expl.c (x): New variable.
32742         (main): Store argument in x and fetch it from x.
32743         * tests/test-logl.c (x): New variable.
32744         (main): Store argument in x and fetch it from x.
32745         * tests/test-sinl.c (x): New variable.
32746         (main): Store argument in x and fetch it from x.
32747         * tests/test-sqrtl.c (x): New variable.
32748         (main): Store argument in x and fetch it from x.
32749         * tests/test-tanl.c (x): New variable.
32750         (main): Store argument in x and fetch it from x.
32751
32752 2010-01-24  Bruno Haible  <bruno@clisp.org>
32753
32754         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
32755         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
32756         assignments to the initial TESTS_ENVIRONMENT.
32757         * doc/gnulib.texi (Unit test modules): Document it.
32758         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
32759         TESTS_ENVIRONMENT.
32760         * modules/btowc-tests (Makefile.am): Likewise.
32761         * modules/c-stack-tests (Makefile.am): Likewise.
32762         * modules/c-strcase-tests (Makefile.am): Likewise.
32763         * modules/copy-file-tests (Makefile.am): Likewise.
32764         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
32765         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
32766         * modules/mbrtowc-tests (Makefile.am): Likewise.
32767         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32768         * modules/mbscasestr-tests (Makefile.am): Likewise.
32769         * modules/mbschr-tests (Makefile.am): Likewise.
32770         * modules/mbscspn-tests (Makefile.am): Likewise.
32771         * modules/mbsinit-tests (Makefile.am): Likewise.
32772         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32773         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
32774         * modules/mbspbrk-tests (Makefile.am): Likewise.
32775         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32776         * modules/mbsrchr-tests (Makefile.am): Likewise.
32777         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
32778         * modules/mbsspn-tests (Makefile.am): Likewise.
32779         * modules/mbsstr-tests (Makefile.am): Likewise.
32780         * modules/nl_langinfo-tests (Makefile.am): Likewise.
32781         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
32782         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32783         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32784         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32785         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32786         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
32787         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32788         * modules/wcrtomb-tests (Makefile.am): Likewise.
32789         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
32790         * modules/wcsrtombs-tests (Makefile.am): Likewise.
32791         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
32792         assignments from TESTS_ENVIRONMENT.
32793         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
32794         augmentation.
32795         * modules/argp-version-etc-tests (Makefile.am): Likewise.
32796         * modules/atexit-tests (Makefile.am): Likewise.
32797         * modules/binary-io-tests (Makefile.am): Likewise.
32798         * modules/closein-tests (Makefile.am): Likewise.
32799         * modules/dprintf-posix-tests (Makefile.am): Likewise.
32800         * modules/exclude-tests (Makefile.am): Likewise.
32801         * modules/fflush-tests (Makefile.am): Likewise.
32802         * modules/fpending-tests (Makefile.am): Likewise.
32803         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32804         * modules/freadahead-tests (Makefile.am): Likewise.
32805         * modules/freadptr-tests (Makefile.am): Likewise.
32806         * modules/freadseek-tests (Makefile.am): Likewise.
32807         * modules/fseek-tests (Makefile.am): Likewise.
32808         * modules/fseeko-tests (Makefile.am): Likewise.
32809         * modules/ftell-tests (Makefile.am): Likewise.
32810         * modules/ftello-tests (Makefile.am): Likewise.
32811         * modules/idpriv-drop-tests (Makefile.am): Likewise.
32812         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
32813         * modules/lseek-tests (Makefile.am): Likewise.
32814         * modules/parse-duration-tests (Makefile.am): Likewise.
32815         * modules/perror-tests (Makefile.am): Likewise.
32816         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
32817         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
32818         * modules/pipe-tests (Makefile.am): Likewise.
32819         * modules/pread-tests (Makefile.am): Likewise.
32820         * modules/printf-posix-tests (Makefile.am): Likewise.
32821         * modules/select-tests (Makefile.am): Likewise.
32822         * modules/sigpipe-tests (Makefile.am): Likewise.
32823         * modules/tsearch-tests (Makefile.am): Likewise.
32824         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
32825         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
32826         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32827         * modules/uniwidth/width-tests (Makefile.am): Likewise.
32828         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
32829         * modules/version-etc-tests (Makefile.am): Likewise.
32830         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32831         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32832         * modules/xalloc-die-tests (Makefile.am): Likewise.
32833         * modules/xprintf-posix-tests (Makefile.am): Likewise.
32834         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32835         * modules/xstrtol-tests (Makefile.am): Likewise.
32836         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32837         * modules/yesno-tests (Makefile.am): Likewise.
32838         Suggested by Jim Meyering.
32839
32840 2010-01-24  Bruno Haible  <bruno@clisp.org>
32841
32842         More documentation.
32843         * doc/gnulib.texi (Writing modules): New chapter.
32844         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
32845         the new chapter.
32846
32847 2010-01-24  Jim Meyering  <meyering@redhat.com>
32848
32849         maint.mk: do not prepend "./" after filtering
32850         * top/maint.mk (_prepend_srcdir_prefix): New variable
32851         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
32852         "./" when $(srcdir) is ".".
32853
32854         define STREQ(a,b) consistently, removing useless parentheses
32855         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
32856         since the only risk is that "a" or "b" contains an unparenthesized
32857         comma, but if either did that, STREQ would have 3 or more arguments.
32858         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
32859         * lib/fts.c (STREQ): Remove unnecessary parentheses.
32860         * lib/hash-triple.c (STREQ): Likewise.
32861         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
32862         * lib/getugroups.c (STREQ): Likewise.
32863
32864 2010-01-23  Jim Meyering  <meyering@redhat.com>
32865
32866         maint.mk: fix syntax-check in a non-srcdir build directory
32867         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
32868         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
32869
32870 2010-01-22  Jim Meyering  <meyering@redhat.com>
32871
32872         userspec: add unit tests
32873         * tests/test-userspec.c: New file.
32874         * modules/userspec-tests: Likewise.
32875
32876 2010-01-21  Jim Meyering  <meyering@redhat.com>
32877
32878         maint.mk: handle source file names containing "." robustly
32879         * top/maint.mk (_dot_escaped_srcdir): Define.
32880         (VC_LIST): Use it in LHS of sed substitution.
32881
32882 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
32883
32884         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
32885         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
32886         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
32887         from a non-srcdir build.
32888
32889 2010-01-20  Eric Blake  <ebb9@byu.net>
32890
32891         warn-on-use: use instead of link-warning
32892         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
32893         * modules/unistd (Depends-on, Makefile.am): Likewise.
32894         * modules/arpa_inet (Depends-on): Replace link-warning with
32895         warn-on-use.
32896         (Makefile.am): Update rules accordingly.
32897         * modules/ctype (Depends-on, Makefile.am): Likewise.
32898         * modules/dirent (Depends-on, Makefile.am): Likewise.
32899         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
32900         * modules/inttypes (Depends-on, Makefile.am): Likewise.
32901         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32902         * modules/locale (Depends-on, Makefile.am): Likewise.
32903         * modules/math (Depends-on, Makefile.am): Likewise.
32904         * modules/search (Depends-on, Makefile.am): Likewise.
32905         * modules/signal (Depends-on, Makefile.am): Likewise.
32906         * modules/spawn (Depends-on, Makefile.am): Likewise.
32907         * modules/stdlib (Depends-on, Makefile.am): Likewise.
32908         * modules/string (Depends-on, Makefile.am): Likewise.
32909         * modules/strings (Depends-on, Makefile.am): Likewise.
32910         * modules/sys_file (Depends-on, Makefile.am): Likewise.
32911         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
32912         * modules/sys_select (Depends-on, Makefile.am): Likewise.
32913         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
32914         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
32915         * modules/sys_times (Depends-on, Makefile.am): Likewise.
32916         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32917         * modules/wchar (Depends-on, Makefile.am): Likewise.
32918         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
32919         should be poisoned.
32920         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
32921         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
32922         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
32923         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32924         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32925         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32926         * m4/math_h.m4 (gl_MATH_H): Likewise.
32927         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32928         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32929         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32930         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32931         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32932         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32933         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
32934         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
32935         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
32936         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32937         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32938         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32939         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32940         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32941         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32942         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32943         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
32944         GL_LINK_WARNING.
32945         * lib/ctype.in.h: Likewise.
32946         * lib/dirent.in.h: Likewise.
32947         * lib/fcntl.in.h: Likewise.
32948         * lib/inttypes.in.h: Likewise.
32949         * lib/langinfo.in.h: Likewise.
32950         * lib/locale.in.h: Likewise.
32951         * lib/math.in.h: Likewise.
32952         * lib/search.in.h: Likewise.
32953         * lib/signal.in.h: Likewise.
32954         * lib/spawn.in.h: Likewise.
32955         * lib/stdio.in.h: Likewise.
32956         * lib/stdlib.in.h: Likewise.
32957         * lib/string.in.h: Likewise.
32958         * lib/strings.in.h: Likewise.
32959         * lib/sys_file.in.h: Likewise.
32960         * lib/sys_ioctl.in.h: Likewise.
32961         * lib/sys_select.in.h: Likewise.
32962         * lib/sys_socket.in.h: Likewise.
32963         * lib/sys_stat.in.h: Likewise.
32964         * lib/sys_times.in.h: Likewise.
32965         * lib/sys_utsname.in.h: Likewise.
32966         * lib/unistd.in.h: Likewise.
32967         * lib/wchar.in.h: Likewise.
32968
32969 2010-01-20  Bruno Haible  <bruno@clisp.org>
32970
32971         Avoid duplicate -lm.
32972         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
32973         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
32974         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
32975         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
32976         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
32977         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
32978         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
32979         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
32980         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
32981         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
32982         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
32983         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32984         Reported by Paolo Bonzini.
32985
32986 2010-01-19  Bruno Haible  <bruno@clisp.org>
32987
32988         langinfo, nl_langinfo: Relicense under LGPLv2+.
32989         * modules/langinfo (License): Change to LGPLv2+.
32990         * modules/nl_langinfo (License): Likewise.
32991         Patch by David Lutterkort <lutter@redhat.com>.
32992
32993 2010-01-19  Bruno Haible  <bruno@clisp.org>
32994
32995         Avoid compilation error with cc on OSF/1 5.1.
32996         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
32997         statement, not before.
32998         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32999
33000 2010-01-18  Bruno Haible  <bruno@clisp.org>
33001
33002         Avoid a link error due to the __printf__ symbol.
33003         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33004         and 2.6.x.
33005         (__format__, __printf__): Remove definitions.
33006         * lib/argp-fmtstream.h: Likewise.
33007         * lib/argp.h: Likewise.
33008         * lib/error.h: Likewise.
33009         * lib/vasnprintf.h: Likewise.
33010         * lib/xprintf.h: Likewise.
33011         * lib/xvasprintf.h: Likewise.
33012         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33013
33014 2010-01-18  Bruno Haible  <bruno@clisp.org>
33015
33016         Tests for module 'tanl'.
33017         * modules/tanl-tests: New file.
33018         * tests/test-tanl.c: New file.
33019
33020         Tests for module 'sqrtl'.
33021         * modules/sqrtl-tests: New file.
33022         * tests/test-sqrtl.c: New file.
33023
33024         Tests for module 'sinl'.
33025         * modules/sinl-tests: New file.
33026         * tests/test-sinl.c: New file.
33027
33028         Tests for module 'logl'.
33029         * modules/logl-tests: New file.
33030         * tests/test-logl.c: New file.
33031
33032         Tests for module 'expl'.
33033         * modules/expl-tests: New file.
33034         * tests/test-expl.c: New file.
33035
33036         Tests for module 'cosl'.
33037         * modules/cosl-tests: New file.
33038         * tests/test-cosl.c: New file.
33039
33040         Tests for module 'atanl'.
33041         * modules/atanl-tests: New file.
33042         * tests/test-atanl.c: New file.
33043
33044         Tests for module 'asinl'.
33045         * modules/asinl-tests: New file.
33046         * tests/test-asinl.c: New file.
33047
33048         Tests for module 'acosl'.
33049         * modules/acosl-tests: New file.
33050         * tests/test-acosl.c: New file.
33051
33052         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33053         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33054         tanl): Use the standard gnulib idiom.
33055         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33056         * lib/sinl.c: Likewise.
33057         * lib/tanl.c: Don't include trigl.c.
33058         (kernel_tanl): Make static.
33059         * lib/sincosl.c: Include trigl.h first.
33060         * lib/trigl.c: Likewise.
33061         * m4/acosl.m4: New file.
33062         * m4/asinl.m4: New file.
33063         * m4/atanl.m4: New file.
33064         * m4/cosl.m4: New file.
33065         * m4/expl.m4: New file.
33066         * m4/logl.m4: New file.
33067         * m4/sinl.m4: New file.
33068         * m4/sqrtl.m4: New file.
33069         * m4/tanl.m4: New file.
33070         * m4/mathl.m4: Remove file.
33071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33072         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33073         Don't initialize GNULIB_MATHL.
33074         * modules/acosl: New file.
33075         * modules/asinl: New file.
33076         * modules/atanl: New file.
33077         * modules/cosl: New file.
33078         * modules/expl: New file.
33079         * modules/logl: New file.
33080         * modules/sinl: New file.
33081         * modules/sqrtl: New file.
33082         * modules/tanl: New file.
33083         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33084         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33085         substitute GNULIB_MATHL.
33086         * modules/mathl: Rewritten.
33087         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33088         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33089         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33090         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33091         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33092         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33093         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33094         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33095         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33096
33097 2010-01-18  Bruno Haible  <bruno@clisp.org>
33098
33099         sqrt: Make gl_FUNC_SQRT requirable.
33100         * m4/sqrt.m4: New file.
33101         * modules/sqrt (Files): Add it.
33102         (configure.ac): Invoke gl_FUNC_SQRT.
33103
33104 2010-01-18  Bruno Haible  <bruno@clisp.org>
33105
33106         New modules for common <math.h> functions.
33107         * m4/mathfunc.m4: New file.
33108         * modules/acos: New file.
33109         * modules/asin: New file.
33110         * modules/atan: New file.
33111         * modules/atan2: New file.
33112         * modules/cbrt: New file.
33113         * modules/copysign: New file.
33114         * modules/cos: New file.
33115         * modules/cosh: New file.
33116         * modules/erf: New file.
33117         * modules/erfc: New file.
33118         * modules/exp: New file.
33119         * modules/fabs: New file.
33120         * modules/fmod: New file.
33121         * modules/hypot: New file.
33122         * modules/j0: New file.
33123         * modules/j1: New file.
33124         * modules/jn: New file.
33125         * modules/ldexp: New file.
33126         * modules/lgamma: New file.
33127         * modules/log: New file.
33128         * modules/log10: New file.
33129         * modules/log1p: New file.
33130         * modules/logb: New file.
33131         * modules/modf: New file.
33132         * modules/nextafter: New file.
33133         * modules/pow: New file.
33134         * modules/remainder: New file.
33135         * modules/rint: New file.
33136         * modules/sin: New file.
33137         * modules/sinh: New file.
33138         * modules/sqrt: New file.
33139         * modules/tan: New file.
33140         * modules/tanh: New file.
33141         * modules/y0: New file.
33142         * modules/y1: New file.
33143         * modules/yn: New file.
33144         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33145         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33146         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33147         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33148         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33149         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33150         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33151         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33152         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33153         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33154         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33155         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33156         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33157         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33158         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33159         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33160         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33161         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33162         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33163         * doc/posix-functions/log.texi: Mention the 'log' module.
33164         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33165         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33166         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33167         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33168         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33169         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33170         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33171         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33172         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33173         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33174         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33175         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33176         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33177         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33178         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33179         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33180
33181 2010-01-18  Jim Meyering  <meyering@redhat.com>
33182
33183         ignore-value: relax license to LGPLv2+
33184         * modules/ignore-value (License): Relax to LGPLv2+.
33185
33186         getdate: don't leak when TZ contains two or more '"'s
33187         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33188         double quote in TZ after the first one.
33189
33190         readtokens: do not leak internal token_lengths buffer
33191         * lib/readtokens.c (readtokens): Free the local, lengths,
33192         when the supplied "token_lengths" parameter is NULL.
33193
33194 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33195
33196         Fix a couple of missing LIBTHREAD link failures on AIX.
33197         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33198         $(LIBTHREAD).
33199         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33200
33201         Link test-poll against INET_PTON_LIB.
33202         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33203         for inet_pton on Solaris 10.
33204
33205 2010-01-17  Bruno Haible  <bruno@clisp.org>
33206
33207         unistdio/*-sprintf: Fix typo in module description.
33208         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33209         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33210         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33211         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33212         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33213         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33214         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33215         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33216
33217 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33218
33219         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33220         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33221         variables in shell case patterns, for AIX and HP-UX ksh.
33222
33223         Split large sed scripts, for HP-UX sed.
33224         * modules/stdio: Split sed scripts around 50 sed commands,
33225         to avoid HP-UX limit of 99 commands, in the near future.
33226         * modules/string: Likewise.
33227         * modules/unistd: Likewise.
33228
33229         gnulib-tool: avoid writing in the current directory.
33230         * gnulib-tool (func_emit_lib_Makefile_am)
33231         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33232         not in the current directory, so concurrent gnulib-tool
33233         instances do not interfere.
33234
33235 2010-01-16  Jim Meyering  <meyering@redhat.com>
33236
33237         doc: update users.txt
33238         * users.txt: Add grep.
33239         (diffutils, gzip): Update URLs.
33240
33241 2010-01-12  Bruno Haible  <bruno@clisp.org>
33242
33243         posix_spawn: Avoid test failure on Cygwin.
33244         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33245         characters.
33246         Reported by Simon Josefsson.
33247
33248 2010-01-12  Bruno Haible  <bruno@clisp.org>
33249
33250         * tests/test-cond.c (main): When skipping the test, show the reason.
33251
33252 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33253
33254         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33255
33256 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33257
33258         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33259         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33260
33261 2010-01-12  Eric Blake  <ebb9@byu.net>
33262
33263         build: guarantee AS_VAR_IF
33264         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33265         (gl_AS_VAR_IF): Move...
33266         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33267         Reported by Simon Josefsson.
33268
33269 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33270
33271         * lib/stdio.in.h: Fix typo.
33272
33273 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33274
33275         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33276         libgpg-error.
33277
33278 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33279
33280         * tests/test-xalloc-die.sh: Use $EXEEXT.
33281
33282 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33283             Bruno Haible  <bruno@clisp.org>
33284
33285         getlogin, getlogin_r: Avoid test failure.
33286         * tests/test-getlogin.c: Include <stdio.h>.
33287         (main): Skip the test when the function fails because stdin is not a
33288         tty.
33289         * tests/test-getlogin_r.c: Include <stdio.h>.
33290         (main): Skip the test when the function fails because stdin is not a
33291         tty.
33292
33293 2010-01-11  Eric Blake  <ebb9@byu.net>
33294
33295         tests: avoid more large file warnings
33296         * tests/test-fflush.c: Avoid warning about ftell use.
33297         * tests/test-fseek.c: Avoid warning about fseek use.
33298
33299 2010-01-10  Bruno Haible  <bruno@clisp.org>
33300
33301         nproc: Work better on Linux when /proc and /sys are not mounted.
33302         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33303         as lower bound when, on glibc/Linux systems,
33304         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33305         Suggested by Pádraig Brady <P@draigbrady.com>.
33306         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33307
33308         nproc: Refactor.
33309         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33310         extracted from num_processors.
33311         (num_processors): Call it.
33312
33313 2010-01-11  Jim Meyering  <meyering@redhat.com>
33314
33315         utimecmp: avoid new warning from upcoming gcc-4.5.0
33316         * lib/utimecmp.c (BILLION): Define using #define rather than an
33317         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33318
33319 2010-01-11  Eric Blake  <ebb9@byu.net>
33320
33321         math: add portability warnings for classification macros
33322         * modules/math (Depends-on): Add warn-on-use.
33323         (Makefile.am): Provide new substitutions.
33324         * m4/math_h.m4 (gl_MATH_H): Require inline.
33325         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
33326         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
33327         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
33328         implement warnings.
33329
33330         unistd: warn on use of environ without module
33331         * modules/unistd (Depends-on): Add warn-on-use.
33332         (Makefile.am): Provide new substitutions.
33333         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
33334         * lib/unistd.in.h (environ): Wrap with a warning helper function.
33335
33336         stdio: warn on suspicious uses
33337         * modules/stdio (Depends-on): Add warn-on-use.
33338         (Makefile.am): Provide new substitutions.
33339         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
33340         fseeko.
33341         * lib/stdio.in.h (gets): Always warn on use.
33342         (fseek, ftell): Adjust when warnings are issued, and honor
33343         _GL_NO_LARGE_FILES as a way to silence the warning.
33344         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
33345         any warning about large file offsets.
33346         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
33347         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
33348         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
33349         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
33350         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
33351         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
33352         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
33353         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
33354
33355         warn-on-use: new module
33356         * modules/warn-on-use: New file.
33357         * build-aux/warn-on-use.h: Likewise.
33358         * m4/warn-on-use.m4: Likewise.
33359         * MODULES.html.sh (Support for building): Mention it.
33360
33361 2010-01-10  Bruno Haible  <bruno@clisp.org>
33362
33363         Tests for module 'unistr/u32-strdup'.
33364         * modules/unistr/u32-strdup-tests: New file.
33365         * tests/unistr/test-u32-strdup.c: New file.
33366
33367         Tests for module 'unistr/u16-strdup'.
33368         * modules/unistr/u16-strdup-tests: New file.
33369         * tests/unistr/test-u16-strdup.c: New file.
33370
33371         Tests for module 'unistr/u8-strdup'.
33372         * modules/unistr/u8-strdup-tests: New file.
33373         * tests/unistr/test-u8-strdup.c: New file.
33374         * tests/unistr/test-strdup.h: New file.
33375
33376         Tests for module 'unistr/u32-strncmp'.
33377         * modules/unistr/u32-strncmp-tests: New file.
33378         * tests/unistr/test-u32-strncmp.c: New file.
33379
33380         Tests for module 'unistr/u16-strncmp'.
33381         * modules/unistr/u16-strncmp-tests: New file.
33382         * tests/unistr/test-u16-strncmp.c: New file.
33383
33384         Tests for module 'unistr/u8-strncmp'.
33385         * modules/unistr/u8-strncmp-tests: New file.
33386         * tests/unistr/test-u8-strncmp.c: New file.
33387         * tests/unistr/test-strncmp.h: New file.
33388
33389         Tests for module 'unistr/u32-strcoll'.
33390         * modules/unistr/u32-strcoll-tests: New file.
33391         * tests/unistr/test-u32-strcoll.c: New file.
33392
33393         Tests for module 'unistr/u16-strcoll'.
33394         * modules/unistr/u16-strcoll-tests: New file.
33395         * tests/unistr/test-u16-strcoll.c: New file.
33396
33397         Tests for module 'unistr/u8-strcoll'.
33398         * modules/unistr/u8-strcoll-tests: New file.
33399         * tests/unistr/test-u8-strcoll.c: New file.
33400
33401         Tests for module 'unistr/u32-strcmp'.
33402         * modules/unistr/u32-strcmp-tests: New file.
33403         * tests/unistr/test-u32-strcmp.c: New file.
33404         * tests/unistr/test-u32-strcmp.h: New file.
33405
33406         Tests for module 'unistr/u16-strcmp'.
33407         * modules/unistr/u16-strcmp-tests: New file.
33408         * tests/unistr/test-u16-strcmp.c: New file.
33409         * tests/unistr/test-u16-strcmp.h: New file.
33410
33411         Tests for module 'unistr/u8-strcmp'.
33412         * modules/unistr/u8-strcmp-tests: New file.
33413         * tests/unistr/test-u8-strcmp.c: New file.
33414         * tests/unistr/test-u8-strcmp.h: New file.
33415         * tests/unistr/test-strcmp.h: New file.
33416
33417         Tests for module 'unistr/u32-strncat'.
33418         * modules/unistr/u32-strncat-tests: New file.
33419         * tests/unistr/test-u32-strncat.c: New file.
33420
33421         Tests for module 'unistr/u16-strncat'.
33422         * modules/unistr/u16-strncat-tests: New file.
33423         * tests/unistr/test-u16-strncat.c: New file.
33424
33425         Tests for module 'unistr/u8-strncat'.
33426         * modules/unistr/u8-strncat-tests: New file.
33427         * tests/unistr/test-u8-strncat.c: New file.
33428         * tests/unistr/test-strncat.h: New file.
33429
33430         Tests for module 'unistr/u32-strcat'.
33431         * modules/unistr/u32-strcat-tests: New file.
33432         * tests/unistr/test-u32-strcat.c: New file.
33433
33434         Tests for module 'unistr/u16-strcat'.
33435         * modules/unistr/u16-strcat-tests: New file.
33436         * tests/unistr/test-u16-strcat.c: New file.
33437
33438         Tests for module 'unistr/u8-strcat'.
33439         * modules/unistr/u8-strcat-tests: New file.
33440         * tests/unistr/test-u8-strcat.c: New file.
33441         * tests/unistr/test-strcat.h: New file.
33442
33443         Tests for module 'unistr/u32-stpncpy'.
33444         * modules/unistr/u32-stpncpy-tests: New file.
33445         * tests/unistr/test-u32-stpncpy.c: New file.
33446
33447         Tests for module 'unistr/u16-stpncpy'.
33448         * modules/unistr/u16-stpncpy-tests: New file.
33449         * tests/unistr/test-u16-stpncpy.c: New file.
33450
33451         Tests for module 'unistr/u8-stpncpy'.
33452         * modules/unistr/u8-stpncpy-tests: New file.
33453         * tests/unistr/test-u8-stpncpy.c: New file.
33454         * tests/unistr/test-stpncpy.h: New file.
33455
33456         Tests for module 'unistr/u32-strncpy'.
33457         * modules/unistr/u32-strncpy-tests: New file.
33458         * tests/unistr/test-u32-strncpy.c: New file.
33459
33460         Tests for module 'unistr/u16-strncpy'.
33461         * modules/unistr/u16-strncpy-tests: New file.
33462         * tests/unistr/test-u16-strncpy.c: New file.
33463
33464         Tests for module 'unistr/u8-strncpy'.
33465         * modules/unistr/u8-strncpy-tests: New file.
33466         * tests/unistr/test-u8-strncpy.c: New file.
33467         * tests/unistr/test-strncpy.h: New file.
33468
33469         Tests for module 'unistr/u32-stpcpy'.
33470         * modules/unistr/u32-stpcpy-tests: New file.
33471         * tests/unistr/test-u32-stpcpy.c: New file.
33472
33473         Tests for module 'unistr/u16-stpcpy'.
33474         * modules/unistr/u16-stpcpy-tests: New file.
33475         * tests/unistr/test-u16-stpcpy.c: New file.
33476
33477         Tests for module 'unistr/u8-stpcpy'.
33478         * modules/unistr/u8-stpcpy-tests: New file.
33479         * tests/unistr/test-u8-stpcpy.c: New file.
33480         * tests/unistr/test-stpcpy.h: New file.
33481
33482         Tests for module 'unistr/u32-strcpy'.
33483         * modules/unistr/u32-strcpy-tests: New file.
33484         * tests/unistr/test-u32-strcpy.c: New file.
33485
33486         Tests for module 'unistr/u16-strcpy'.
33487         * modules/unistr/u16-strcpy-tests: New file.
33488         * tests/unistr/test-u16-strcpy.c: New file.
33489
33490         Tests for module 'unistr/u8-strcpy'.
33491         * modules/unistr/u8-strcpy-tests: New file.
33492         * tests/unistr/test-u8-strcpy.c: New file.
33493         * tests/unistr/test-strcpy.h: New file.
33494
33495         Tests for module 'unistr/u32-strnlen'.
33496         * modules/unistr/u32-strnlen-tests: New file.
33497         * tests/unistr/test-u32-strnlen.c: New file.
33498
33499         Tests for module 'unistr/u16-strnlen'.
33500         * modules/unistr/u16-strnlen-tests: New file.
33501         * tests/unistr/test-u16-strnlen.c: New file.
33502
33503         Tests for module 'unistr/u8-strnlen'.
33504         * modules/unistr/u8-strnlen-tests: New file.
33505         * tests/unistr/test-u8-strnlen.c: New file.
33506         * tests/unistr/test-strnlen.h: New file.
33507
33508         Tests for module 'unistr/u32-strlen'.
33509         * modules/unistr/u32-strlen-tests: New file.
33510         * tests/unistr/test-u32-strlen.c: New file.
33511
33512         Tests for module 'unistr/u16-strlen'.
33513         * modules/unistr/u16-strlen-tests: New file.
33514         * tests/unistr/test-u16-strlen.c: New file.
33515
33516         Tests for module 'unistr/u8-strlen'.
33517         * modules/unistr/u8-strlen-tests: New file.
33518         * tests/unistr/test-u8-strlen.c: New file.
33519
33520         Tests for module 'unistr/u32-prev'.
33521         * modules/unistr/u32-prev-tests: New file.
33522         * tests/unistr/test-u32-prev.c: New file.
33523
33524         Tests for module 'unistr/u16-prev'.
33525         * modules/unistr/u16-prev-tests: New file.
33526         * tests/unistr/test-u16-prev.c: New file.
33527
33528         Tests for module 'unistr/u8-prev'.
33529         * modules/unistr/u8-prev-tests: New file.
33530         * tests/unistr/test-u8-prev.c: New file.
33531
33532         Tests for module 'unistr/u32-next'.
33533         * modules/unistr/u32-next-tests: New file.
33534         * tests/unistr/test-u32-next.c: New file.
33535
33536         Tests for module 'unistr/u16-next'.
33537         * modules/unistr/u16-next-tests: New file.
33538         * tests/unistr/test-u16-next.c: New file.
33539
33540         Tests for module 'unistr/u8-next'.
33541         * modules/unistr/u8-next-tests: New file.
33542         * tests/unistr/test-u8-next.c: New file.
33543
33544         Tests for module 'unistr/u32-strmbtouc'.
33545         * modules/unistr/u32-strmbtouc-tests: New file.
33546         * tests/unistr/test-u32-strmbtouc.c: New file.
33547
33548         Tests for module 'unistr/u16-strmbtouc'.
33549         * modules/unistr/u16-strmbtouc-tests: New file.
33550         * tests/unistr/test-u16-strmbtouc.c: New file.
33551
33552         Tests for module 'unistr/u8-strmbtouc'.
33553         * modules/unistr/u8-strmbtouc-tests: New file.
33554         * tests/unistr/test-u8-strmbtouc.c: New file.
33555
33556         Tests for module 'unistr/u32-strmblen'.
33557         * modules/unistr/u32-strmblen-tests: New file.
33558         * tests/unistr/test-u32-strmblen.c: New file.
33559
33560         Tests for module 'unistr/u16-strmblen'.
33561         * modules/unistr/u16-strmblen-tests: New file.
33562         * tests/unistr/test-u16-strmblen.c: New file.
33563
33564         Tests for module 'unistr/u8-strmblen'.
33565         * modules/unistr/u8-strmblen-tests: New file.
33566         * tests/unistr/test-u8-strmblen.c: New file.
33567
33568         Tests for module 'unistr/u32-cpy-alloc'.
33569         * modules/unistr/u32-cpy-alloc-tests: New file.
33570         * tests/unistr/test-u32-cpy-alloc.c: New file.
33571
33572         Tests for module 'unistr/u16-cpy-alloc'.
33573         * modules/unistr/u16-cpy-alloc-tests: New file.
33574         * tests/unistr/test-u16-cpy-alloc.c: New file.
33575
33576         Tests for module 'unistr/u8-cpy-alloc'.
33577         * modules/unistr/u8-cpy-alloc-tests: New file.
33578         * tests/unistr/test-u8-cpy-alloc.c: New file.
33579         * tests/unistr/test-cpy-alloc.h: New file.
33580
33581         Tests for module 'unistr/u32-mbsnlen'.
33582         * modules/unistr/u32-mbsnlen-tests: New file.
33583         * tests/unistr/test-u32-mbsnlen.c: New file.
33584
33585         Tests for module 'unistr/u16-mbsnlen'.
33586         * modules/unistr/u16-mbsnlen-tests: New file.
33587         * tests/unistr/test-u16-mbsnlen.c: New file.
33588
33589         Tests for module 'unistr/u8-mbsnlen'.
33590         * modules/unistr/u8-mbsnlen-tests: New file.
33591         * tests/unistr/test-u8-mbsnlen.c: New file.
33592
33593         Tests for module 'unistr/u32-chr'.
33594         * modules/unistr/u32-chr-tests: New file.
33595         * tests/unistr/test-u32-chr.c: New file.
33596
33597         Tests for module 'unistr/u16-chr'.
33598         * modules/unistr/u16-chr-tests: New file.
33599         * tests/unistr/test-u16-chr.c: New file.
33600
33601         Tests for module 'unistr/u8-chr'.
33602         * modules/unistr/u8-chr-tests: New file.
33603         * tests/unistr/test-u8-chr.c: New file.
33604         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33605
33606         Tests for module 'unistr/u32-cmp2'.
33607         * modules/unistr/u32-cmp2-tests: New file.
33608         * tests/unistr/test-u32-cmp2.c: New file.
33609
33610         Tests for module 'unistr/u16-cmp2'.
33611         * modules/unistr/u16-cmp2-tests: New file.
33612         * tests/unistr/test-u16-cmp2.c: New file.
33613
33614         Tests for module 'unistr/u8-cmp2'.
33615         * modules/unistr/u8-cmp2-tests: New file.
33616         * tests/unistr/test-u8-cmp2.c: New file.
33617         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33618
33619         Tests for module 'unistr/u32-cmp'.
33620         * modules/unistr/u32-cmp-tests: New file.
33621         * tests/unistr/test-u32-cmp.c: New file.
33622
33623         Tests for module 'unistr/u16-cmp'.
33624         * modules/unistr/u16-cmp-tests: New file.
33625         * tests/unistr/test-u16-cmp.c: New file.
33626
33627         Tests for module 'unistr/u8-cmp'.
33628         * modules/unistr/u8-cmp-tests: New file.
33629         * tests/unistr/test-u8-cmp.c: New file.
33630         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33631
33632         Tests for module 'unistr/u32-set'.
33633         * modules/unistr/u32-set-tests: New file.
33634         * tests/unistr/test-u32-set.c: New file.
33635
33636         Tests for module 'unistr/u16-set'.
33637         * modules/unistr/u16-set-tests: New file.
33638         * tests/unistr/test-u16-set.c: New file.
33639
33640         Tests for module 'unistr/u8-set'.
33641         * modules/unistr/u8-set-tests: New file.
33642         * tests/unistr/test-u8-set.c: New file.
33643         * tests/unistr/test-set.h: New file.
33644
33645         Tests for module 'unistr/u32-move'.
33646         * modules/unistr/u32-move-tests: New file.
33647         * tests/unistr/test-u32-move.c: New file.
33648
33649         Tests for module 'unistr/u16-move'.
33650         * modules/unistr/u16-move-tests: New file.
33651         * tests/unistr/test-u16-move.c: New file.
33652
33653         Tests for module 'unistr/u8-move'.
33654         * modules/unistr/u8-move-tests: New file.
33655         * tests/unistr/test-u8-move.c: New file.
33656         * tests/unistr/test-move.h: New file.
33657
33658         Tests for module 'unistr/u32-cpy'.
33659         * modules/unistr/u32-cpy-tests: New file.
33660         * tests/unistr/test-u32-cpy.c: New file.
33661
33662         Tests for module 'unistr/u16-cpy'.
33663         * modules/unistr/u16-cpy-tests: New file.
33664         * tests/unistr/test-u16-cpy.c: New file.
33665
33666         Tests for module 'unistr/u8-cpy'.
33667         * modules/unistr/u8-cpy-tests: New file.
33668         * tests/unistr/test-u8-cpy.c: New file.
33669         * tests/unistr/test-cpy.h: New file.
33670
33671 2010-01-09  Bruno Haible  <bruno@clisp.org>
33672
33673         Tests for module 'unistr/u32-uctomb'.
33674         * modules/unistr/u32-uctomb-tests: New file.
33675         * tests/unistr/test-u32-uctomb.c: New file.
33676
33677         Tests for module 'unistr/u16-uctomb'.
33678         * modules/unistr/u16-uctomb-tests: New file.
33679         * tests/unistr/test-u16-uctomb.c: New file.
33680
33681         Tests for module 'unistr/u8-uctomb'.
33682         * modules/unistr/u8-uctomb-tests: New file.
33683         * tests/unistr/test-u8-uctomb.c: New file.
33684
33685         Tests for module 'unistr/u32-mbtoucr'.
33686         * modules/unistr/u32-mbtoucr-tests: New file.
33687         * tests/unistr/test-u32-mbtoucr.c: New file.
33688
33689         Tests for module 'unistr/u16-mbtoucr'.
33690         * modules/unistr/u16-mbtoucr-tests: New file.
33691         * tests/unistr/test-u16-mbtoucr.c: New file.
33692
33693         Tests for module 'unistr/u8-mbtoucr'.
33694         * modules/unistr/u8-mbtoucr-tests: New file.
33695         * tests/unistr/test-u8-mbtoucr.c: New file.
33696
33697         Tests for module 'unistr/u32-mbtouc'.
33698         * modules/unistr/u32-mbtouc-tests: New file.
33699         * tests/unistr/test-u32-mbtouc.c: New file.
33700
33701         Tests for module 'unistr/u16-mbtouc'.
33702         * modules/unistr/u16-mbtouc-tests: New file.
33703         * tests/unistr/test-u16-mbtouc.c: New file.
33704
33705         Tests for module 'unistr/u8-mbtouc'.
33706         * modules/unistr/u8-mbtouc-tests: New file.
33707         * tests/unistr/test-u8-mbtouc.c: New file.
33708
33709         Tests for module 'unistr/u32-mbtouc-unsafe'.
33710         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
33711         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
33712         * tests/unistr/test-u32-mbtouc.h: New file.
33713
33714         Tests for module 'unistr/u16-mbtouc-unsafe'.
33715         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
33716         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
33717         * tests/unistr/test-u16-mbtouc.h: New file.
33718
33719         Tests for module 'unistr/u8-mbtouc-unsafe'.
33720         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
33721         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
33722         * tests/unistr/test-u8-mbtouc.h: New file.
33723
33724         Tests for module 'unistr/u32-mblen'.
33725         * modules/unistr/u32-mblen-tests: New file.
33726         * tests/unistr/test-u32-mblen.c: New file.
33727
33728         Tests for module 'unistr/u16-mblen'.
33729         * modules/unistr/u16-mblen-tests: New file.
33730         * tests/unistr/test-u16-mblen.c: New file.
33731
33732         Tests for module 'unistr/u8-mblen'.
33733         * modules/unistr/u8-mblen-tests: New file.
33734         * tests/unistr/test-u8-mblen.c: New file.
33735
33736         Tests for module 'unistr/u32-to-u16'.
33737         * modules/unistr/u32-to-u16-tests: New file.
33738         * tests/unistr/test-u32-to-u16.c: New file.
33739
33740         Tests for module 'unistr/u32-to-u8'.
33741         * modules/unistr/u32-to-u8-tests: New file.
33742         * tests/unistr/test-u32-to-u8.c: New file.
33743
33744         Tests for module 'unistr/u16-to-u32'.
33745         * modules/unistr/u16-to-u32-tests: New file.
33746         * tests/unistr/test-u16-to-u32.c: New file.
33747
33748         Tests for module 'unistr/u16-to-u8'.
33749         * modules/unistr/u16-to-u8-tests: New file.
33750         * tests/unistr/test-u16-to-u8.c: New file.
33751
33752         Tests for module 'unistr/u8-to-u32'.
33753         * modules/unistr/u8-to-u32-tests: New file.
33754         * tests/unistr/test-u8-to-u32.c: New file.
33755
33756         Tests for module 'unistr/u8-to-u16'.
33757         * modules/unistr/u8-to-u16-tests: New file.
33758         * tests/unistr/test-u8-to-u16.c: New file.
33759
33760         Tests for module 'unistr/u32-check'.
33761         * modules/unistr/u32-check-tests: New file.
33762         * tests/unistr/test-u32-check.c: New file.
33763
33764         Tests for module 'unistr/u16-check'.
33765         * modules/unistr/u16-check-tests: New file.
33766         * tests/unistr/test-u16-check.c: New file.
33767
33768         Tests for module 'unistr/u8-check'.
33769         * modules/unistr/u8-check-tests: New file.
33770         * tests/unistr/test-u8-check.c: New file.
33771
33772         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
33773         (category_equals): New function.
33774         (main): Add more tests.
33775         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
33776
33777         * tests/unictype/test-bidi_byname.c (main): Add more tests.
33778
33779 2010-01-10  Bruno Haible  <bruno@clisp.org>
33780
33781         unistr/u*-strcoll: Try harder to distinguish different strings.
33782         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
33783         compare s1 and s2 to see if they are different.
33784
33785 2010-01-10  Bruno Haible  <bruno@clisp.org>
33786
33787         unistr/u*-stpncpy: Fix the return value.
33788         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
33789         description of the return value consistent with stpncpy in glibc.
33790         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
33791         written non-NUL unit.
33792
33793 2010-01-10  Bruno Haible  <bruno@clisp.org>
33794
33795         unistr/u*-next: Add missing dependencies.
33796         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
33797         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
33798         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
33799
33800 2010-01-10  Bruno Haible  <bruno@clisp.org>
33801
33802         unistr/u8-mbsnlen: Fix return value for incomplete character.
33803         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
33804         u8_mblen.
33805         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
33806         Remove unistr/u8-mblen.
33807         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
33808         u16_mblen.
33809         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
33810         Remove unistr/u16-mblen.
33811
33812 2010-01-10  Bruno Haible  <bruno@clisp.org>
33813
33814         wchar: Fix compilation error when <wchar.h> is used from coreutils.
33815         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
33816         Reported by Brian Gough <bjg@gnu.org> and
33817         Chris Clayton <chris2553@googlemail.com> via
33818         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
33819
33820 2010-01-09  Bruno Haible  <bruno@clisp.org>
33821
33822         unistr/u16-to-u32: Reject invalid input.
33823         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
33824         u16_mbtouc.
33825         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
33826         Remove unistr/u16-mbtouc.
33827
33828         unistr/u16-to-u8: Reject invalid input.
33829         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
33830         u16_mbtouc.
33831         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
33832         Remove unistr/u16-mbtouc.
33833
33834         unistr/u8-to-u32: Reject invalid input.
33835         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
33836         u8_mbtouc.
33837         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
33838         Remove unistr/u8-mbtouc.
33839
33840         unistr/u8-to-u16: Reject invalid input.
33841         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
33842         u8_mbtouc.
33843         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
33844         Remove unistr/u8-mbtouc.
33845
33846 2010-01-09  Bruno Haible  <bruno@clisp.org>
33847
33848         Tests for module 'getlogin'.
33849         * modules/getlogin-tests: New file.
33850         * tests/test-getlogin.c: New file.
33851
33852         New module 'getlogin'.
33853         * lib/unistd.in.h (getlogin): New declaration.
33854         * lib/getlogin.c: New file.
33855         * m4/getlogin.m4: New file.
33856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
33857         HAVE_GETLOGIN.
33858         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
33859         HAVE_GETLOGIN.
33860         * modules/getlogin: New file.
33861         * doc/posix-functions/getlogin.texi: Mention the new module.
33862         Reported by John W. Eaton <jwe@gnu.org>.
33863
33864 2010-01-09  Bruno Haible  <bruno@clisp.org>
33865
33866         getlogin_r: Support for native Windows.
33867         * lib/getlogin_r.c: Include <windows.h>
33868         (getlogin_r): Implement for native Windows.
33869         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
33870         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
33871         via John W. Eaton <jwe@gnu.org>.
33872
33873 2010-01-09  Bruno Haible  <bruno@clisp.org>
33874
33875         getlogin_r: Small fixes.
33876         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
33877         succeeds.
33878         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
33879         before testing whether getlogin_r is declared. No need to set
33880         HAVE_DECL_GETLOGIN_R to 1.
33881         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
33882
33883 2010-01-09  Bruno Haible  <bruno@clisp.org>
33884
33885         * lib/unistd.in.h (getlogin_r): Add comment.
33886
33887 2010-01-09  Bruno Haible  <bruno@clisp.org>
33888
33889         Tests for module 'getlogin_r'.
33890         * modules/getlogin_r-tests: New file.
33891         * tests/test-getlogin_r.c: New file.
33892
33893 2010-01-09  Jim Meyering  <meyering@redhat.com>
33894
33895         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
33896         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
33897         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
33898
33899 2010-01-08  Simon Josefsson  <simon@josefsson.org>
33900
33901         * lib/dup2.c (rpl_dup2): Improve comment.
33902
33903 2010-01-08  Eric Blake  <ebb9@byu.net>
33904
33905         maint.mk: allow packages to add makefile @@ exceptions
33906         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
33907         (sc_makefile_check): Rename...
33908         (sc_makefile_at_at_check): ...to this, and use hook.
33909
33910         dup2: work around mingw bug
33911         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
33912         Reported by Simon Josefsson.
33913
33914 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
33915
33916         glob: Fix C++ compilation.
33917         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
33918         C++.
33919
33920 2010-01-07  Bruno Haible  <bruno@clisp.org>
33921
33922         Fix indentation of wctype.in.h, broken since 2007-01-06.
33923         * lib/wctype.in.h: Fix indentation of preprocessor directives.
33924
33925 2010-01-07  Bruno Haible  <bruno@clisp.org>
33926
33927         mbslen: Avoid collision with system function.
33928         * lib/string.in.h [MirBSD]: Include <wchar.h>.
33929         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
33930         * m4/mbslen.m4: New file.
33931         * modules/mbslen (Files): Add it.
33932         (configure.ac): Invoke gl_MBSLEN.
33933         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
33934         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
33935         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
33936         via Ian Beckwith <ianb@erislabs.net>.
33937
33938 2010-01-07  Bruno Haible  <bruno@clisp.org>
33939
33940         dirent: Document the last fix.
33941         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
33942
33943 2010-01-07  Bruno Haible  <bruno@clisp.org>
33944
33945         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
33946         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
33947         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
33948         va_list are defined.
33949         * doc/posix-headers/stdio.texi: Document the bug of missing types.
33950         Reported by Eric Blake.
33951
33952 2010-01-07  Bruno Haible  <bruno@clisp.org>
33953
33954         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
33955         * modules/xlist (Depends-on): Add 'list',
33956         * modules/xoset (Depends-on): Add 'oset'.
33957         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33958
33959 2010-01-07  Bruno Haible  <bruno@clisp.org>
33960
33961         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
33962         * doc/posix-functions/strncasecmp.texi: Likewise.
33963
33964 2010-01-07  Bruno Haible  <bruno@clisp.org>
33965
33966         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
33967
33968 2010-01-07  John W. Eaton  <jwe@octave.org>
33969
33970         wctype: allow C++ use
33971         * lib/wctype.in.h: Add extern "C" block for C++.
33972
33973 2010-01-06  Eric Blake  <ebb9@byu.net>
33974
33975         maint.mk: detect incorrect GFDL usage
33976         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
33977
33978 2010-01-06  Jim Meyering  <meyering@redhat.com>
33979         and Eric Blake  <ebb9@byu.net>
33980
33981         maint.mk: ignore multi-line copyright in NEWS
33982         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
33983
33984 2010-01-06  Eric Blake  <ebb9@byu.net>
33985
33986         select: add missing dependency
33987         * modules/select-tests (Depends-on): Move sockets dependency...
33988         * modules/select (Depends-on): ...here.
33989         Reported by Ian Beckwith.
33990
33991         doc: regenerate INSTALL
33992         * doc/INSTALL: Reflect recent autoconf update.
33993         * doc/INSTALL.ISO: Likewise.
33994         * doc/INSTALL.UTF-8: Likewise.
33995
33996         pread: fix compilation on glibc
33997         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
33998         Reported by Ralf Wildenhues.
33999
34000         dirent: fix test failure
34001         * lib/dirent.in.h (includes): Guarantee ino_t.
34002         Reported by Ralf Wildenhues.
34003
34004 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34005
34006         linkat, renameat: avoid bad free
34007         * lib/at-func2.c (at_func2): Fix typo.
34008         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34009
34010 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34011
34012         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34013         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34014         to avoid failure of symlink test later.
34015
34016 2010-01-06  Eric Blake  <ebb9@byu.net>
34017
34018         stdio, unistd: guarantee ssize_t
34019         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34020         2008 are exposed when needed.
34021         * lib/stdio.in.h (includes): Likewise.
34022         Reported by Ralf Wildenhues.
34023
34024 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34025
34026         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34027         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34028         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34029
34030 2010-01-06  Jim Meyering  <meyering@redhat.com>
34031
34032         readtokens: this module *does* require xalloc.h
34033         It uses only functions that were omitted by the old syntax-check rule.
34034         * lib/readtokens.c: Include "xalloc.h" once again.
34035         * modules/readtokens (Depends-on): Add xalloc.
34036         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34037
34038 2010-01-05  Eric Blake  <ebb9@byu.net>
34039
34040         maint: support 'make announcement' from a VPATH build
34041         * top/maint.mk (announcement): Look for correct NEWS file.
34042
34043 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34044
34045         utimens (fdutimens): ignore a negative FD, per contract
34046         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34047         when we have a valid file descriptor.  Otherwise, using a brand
34048         new glibc (with just-patched futimens that now fails with EBADF)
34049         would cause this function to fail with ENOSYS.
34050         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34051         See also http://bugzilla.redhat.com/552320.
34052
34053 2010-01-05  Eric Blake  <ebb9@byu.net>
34054
34055         strcase: document what it provides
34056         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34057         gnulib module.
34058         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34059         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34060
34061 2010-01-05  Jim Meyering  <meyering@redhat.com>
34062
34063         maint: remove useless inclusions of "xalloc.h"
34064         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34065         * lib/readtokens.c: Likewise.
34066         * lib/same.c: Likewise.
34067         * modules/getloadavg (Depends-on): Remove xalloc.
34068         * modules/readtokens: Likewise.
34069         * modules/same: Likewise.
34070
34071         maint.mk: include 4 more function names in alloca.h-checking regexp
34072         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34073         regexp.  Before, we would give a false-positive (saying alloca.h
34074         is included unnecessarily) when the only uses involved omitted symbols.
34075
34076         xalloc.h: use consistent formatting
34077         * lib/xalloc.h: Move declarations to start in the first column.
34078
34079 2010-01-05  Eric Blake  <ebb9@byu.net>
34080
34081         mkdir: avoid xalloc
34082         * lib/mkdir.c (includes): Drop unused header.
34083         Reported by John W. Eaton.
34084
34085 2010-01-04  Jim Meyering  <meyering@redhat.com>
34086
34087         nl_langinfo: avoid configure-time syntax error
34088         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34089         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34090         the empty string.  Don't let that provoke a shell syntax error.
34091
34092         regcomp, regexec, fnmatch: avoid array bounds read error
34093         * lib/regcomp.c (build_equiv_class): From glibc:
34094         Use only the low 24 bits of a findidx return value as an index
34095         into the weights array.  Patch by Ulrich Drepper:
34096         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34097         * lib/regexec.c (check_node_accept_bytes): Likewise.
34098         * lib/fnmatch_loop.c (FCT): Likewise.
34099
34100         regcomp: skip collseq lookup when there are no rules
34101         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34102         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34103
34104         regcomp: recognize ill-formed { } expressions
34105         * lib/regcomp.c (parse_dup_op): From glibc:
34106         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34107
34108         regcomp: fix typo in comment
34109         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34110         s/satisfy/satisfies/.
34111
34112         regcomp: sync from glibc: remove dead store
34113         * lib/regcomp.c (duplicate_node_closure): Remove useless
34114         search_duplicated_node call and dead store.
34115
34116         regcomp: sync from glibc; always use nl_langinfo
34117         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34118         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34119         * modules/regex (Depends-on): Add nl_langinfo.
34120
34121 2010-01-04  Eric Blake  <ebb9@byu.net>
34122
34123         fdopendir: fix configure test
34124         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34125
34126 2010-01-01  Bruno Haible  <bruno@clisp.org>
34127
34128         wchar: Remove unused configure check.
34129         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34130
34131 2010-01-01  Eric Blake  <ebb9@byu.net>
34132
34133         headers: make check of system header explicit
34134         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34135         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34136         ourselves.
34137         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34138         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34139         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34140         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34141         internals.
34142         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34143         missing.
34144         Suggested by Bruno Haible.
34145
34146 2010-01-01  Jim Meyering  <meyering@redhat.com>
34147
34148         ChangeLog: tweak to eliminate unnecessary copyright line
34149         * ChangeLog: Remove a copyright line that was mistakenly updated
34150         by today's update-copyright run.  Reported by Eric Blake.
34151
34152         test-update-copyright: don't let envvar setting cause test failure
34153         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34154
34155 2010-01-01  Bruno Haible  <bruno@clisp.org>
34156
34157         localename: Avoid gcc warning.
34158         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34159         function if it is not used.
34160
34161 2010-01-01  Jim Meyering  <meyering@redhat.com>
34162
34163         update nearly all FSF copyright year lists to include 2010
34164         Use the same procedure as for 2009, outlined in
34165         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34166
34167         version-etc: set COPYRIGHT_YEAR to 2010
34168         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34169
34170 2009-12-31  Eric Blake  <ebb9@byu.net>
34171
34172         doc: correct availability of cygwin 1.5.x getopt
34173         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34174         variables.
34175         * doc/posix-functions/opterr.texi (opterr): Likewise.
34176         * doc/posix-functions/optind.texi (optind): Likewise.
34177         * doc/posix-functions/optopt.texi (optopt): Likewise.
34178         * doc/posix-functions/tzname.texi (tzname): Likewise.
34179
34180         openat: update maintainer
34181         * modules/openat (Maintainer): Add myself.
34182
34183         utimens: avoid shadowing warning
34184         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34185         buffers into one, to avoid shadowing, as well as avoiding a
34186         redundant stat.
34187         Reported by Jim Meyering.
34188
34189         test-dup2: avoid compiler warning
34190         * tests/test-dup2.c (is_inheritable): Only define if used.
34191
34192 2010-01-01  Bruno Haible  <bruno@clisp.org>
34193
34194         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34195         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34196         defined, use wctomb instead of wcrtomb.
34197
34198 2010-01-01  Bruno Haible  <bruno@clisp.org>
34199
34200         iconv: Reject native Solaris iconv.
34201         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34202         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34203
34204 2009-12-31  Bruno Haible  <bruno@clisp.org>
34205
34206         * tests/test-signal.c (main): Remove test of 'SIG'.
34207
34208 2009-12-31  Bruno Haible  <bruno@clisp.org>
34209
34210         spawn: Fix incomplete fix.
34211         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34212         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34213         warnings for GNULIB_POSIXCHECK again.
34214         Reported by Eric Blake.
34215
34216 2009-12-31  Bruno Haible  <bruno@clisp.org>
34217
34218         Avoid namespace pollution on glibc systems.
34219         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34220         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34221         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34222         glibc systems.
34223
34224 2009-12-31  Bruno Haible  <bruno@clisp.org>
34225
34226         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34227         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34228         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34229         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34230         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34231         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34232         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34233
34234 2009-12-31  Bruno Haible  <bruno@clisp.org>
34235
34236         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34237         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34238         afterwards.
34239
34240 2009-12-31  Bruno Haible  <bruno@clisp.org>
34241
34242         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34243         SYS_UTSNAME_H.
34244
34245 2009-12-31  Bruno Haible  <bruno@clisp.org>
34246
34247         spawn: Fix misapplied patch.
34248         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34249         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34250         warnings for GNULIB_POSIXCHECK.
34251
34252 2009-12-31  Bruno Haible  <bruno@clisp.org>
34253
34254         times: Update after sys_times changed.
34255         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34256         * modules/times (Files): Add it.
34257         (configure.ac): Invoke gl_FUNC_TIMES.
34258
34259 2009-12-31  Bruno Haible  <bruno@clisp.org>
34260
34261         Use AC_C_INLINE where necessary.
34262         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34263         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34264         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34265         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34266         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34267         * m4/mbiter.m4 (gl_MBITER): Likewise.
34268         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34269         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34270         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34271         * modules/u64 (configure.ac): Likewise.
34272
34273 2009-12-31  Bruno Haible  <bruno@clisp.org>
34274
34275         Use AC_C_INLINE instead of module 'inline' where possible.
34276         * modules/inline (Description): Clarify purpose.
34277         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34278         * modules/count-one-bits (Depends-on): Remove inline.
34279         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34280         * modules/openat (Depends-on): Remove inline.
34281         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34282         instead of depending on module 'inline'.
34283         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34284         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34285         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34286         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34287         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34288         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34289         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34290         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34291         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34292         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34293         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34294         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34295         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34296         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34297         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34298         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34299         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34300         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34301         Likewise.
34302         * modules/unictype/property-ascii-hex-digit (Depends-on,
34303         configure.ac): Likewise.
34304         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34305         configure.ac): Likewise.
34306         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34307         configure.ac): Likewise.
34308         * modules/unictype/property-bidi-block-separator (Depends-on,
34309         configure.ac): Likewise.
34310         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34311         configure.ac): Likewise.
34312         * modules/unictype/property-bidi-common-separator (Depends-on,
34313         configure.ac): Likewise.
34314         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34315         Likewise.
34316         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34317         configure.ac): Likewise.
34318         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34319         configure.ac): Likewise.
34320         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
34321         configure.ac): Likewise.
34322         * modules/unictype/property-bidi-european-digit (Depends-on,
34323         configure.ac): Likewise.
34324         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
34325         configure.ac): Likewise.
34326         * modules/unictype/property-bidi-left-to-right (Depends-on,
34327         configure.ac): Likewise.
34328         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
34329         configure.ac): Likewise.
34330         * modules/unictype/property-bidi-other-neutral (Depends-on,
34331         configure.ac): Likewise.
34332         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
34333         Likewise.
34334         * modules/unictype/property-bidi-segment-separator (Depends-on,
34335         configure.ac): Likewise.
34336         * modules/unictype/property-bidi-whitespace (Depends-on,
34337         configure.ac): Likewise.
34338         * modules/unictype/property-combining (Depends-on, configure.ac):
34339         Likewise.
34340         * modules/unictype/property-composite (Depends-on, configure.ac):
34341         Likewise.
34342         * modules/unictype/property-currency-symbol (Depends-on,
34343         configure.ac): Likewise.
34344         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
34345         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
34346         Likewise.
34347         * modules/unictype/property-default-ignorable-code-point (Depends-on,
34348         configure.ac): Likewise.
34349         * modules/unictype/property-deprecated (Depends-on, configure.ac):
34350         Likewise.
34351         * modules/unictype/property-diacritic (Depends-on, configure.ac):
34352         Likewise.
34353         * modules/unictype/property-extender (Depends-on, configure.ac):
34354         Likewise.
34355         * modules/unictype/property-format-control (Depends-on, configure.ac):
34356         Likewise.
34357         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34358         Likewise.
34359         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34360         Likewise.
34361         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34362         Likewise.
34363         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34364         Likewise.
34365         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34366         Likewise.
34367         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34368         Likewise.
34369         * modules/unictype/property-id-start (Depends-on, configure.ac):
34370         Likewise.
34371         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34372         Likewise.
34373         * modules/unictype/property-ids-binary-operator (Depends-on,
34374         configure.ac): Likewise.
34375         * modules/unictype/property-ids-trinary-operator (Depends-on,
34376         configure.ac): Likewise.
34377         * modules/unictype/property-ignorable-control (Depends-on,
34378         configure.ac): Likewise.
34379         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34380         Likewise.
34381         * modules/unictype/property-join-control (Depends-on, configure.ac):
34382         Likewise.
34383         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34384         Likewise.
34385         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34386         Likewise.
34387         * modules/unictype/property-logical-order-exception (Depends-on,
34388         configure.ac): Likewise.
34389         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34390         Likewise.
34391         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34392         * modules/unictype/property-non-break (Depends-on, configure.ac):
34393         Likewise.
34394         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
34395         Likewise.
34396         * modules/unictype/property-numeric (Depends-on, configure.ac):
34397         Likewise.
34398         * modules/unictype/property-other-alphabetic (Depends-on,
34399         configure.ac): Likewise.
34400         * modules/unictype/property-other-default-ignorable-code-point
34401         (Depends-on, configure.ac): Likewise.
34402         * modules/unictype/property-other-grapheme-extend (Depends-on,
34403         configure.ac): Likewise.
34404         * modules/unictype/property-other-id-continue (Depends-on,
34405         configure.ac): Likewise.
34406         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
34407         Likewise.
34408         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
34409         Likewise.
34410         * modules/unictype/property-other-math (Depends-on, configure.ac):
34411         Likewise.
34412         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
34413         Likewise.
34414         * modules/unictype/property-paired-punctuation (Depends-on,
34415         configure.ac): Likewise.
34416         * modules/unictype/property-paragraph-separator (Depends-on,
34417         configure.ac): Likewise.
34418         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
34419         Likewise.
34420         * modules/unictype/property-pattern-white-space (Depends-on,
34421         configure.ac): Likewise.
34422         * modules/unictype/property-private-use (Depends-on, configure.ac):
34423         Likewise.
34424         * modules/unictype/property-punctuation (Depends-on, configure.ac):
34425         Likewise.
34426         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
34427         Likewise.
34428         * modules/unictype/property-radical (Depends-on, configure.ac):
34429         Likewise.
34430         * modules/unictype/property-sentence-terminal (Depends-on,
34431         configure.ac): Likewise.
34432         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
34433         Likewise.
34434         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
34435         * modules/unictype/property-terminal-punctuation (Depends-on,
34436         configure.ac): Likewise.
34437         * modules/unictype/property-titlecase (Depends-on, configure.ac):
34438         Likewise.
34439         * modules/unictype/property-unassigned-code-value (Depends-on,
34440         configure.ac): Likewise.
34441         * modules/unictype/property-unified-ideograph (Depends-on,
34442         configure.ac): Likewise.
34443         * modules/unictype/property-uppercase (Depends-on, configure.ac):
34444         Likewise.
34445         * modules/unictype/property-variation-selector (Depends-on,
34446         configure.ac): Likewise.
34447         * modules/unictype/property-white-space (Depends-on, configure.ac):
34448         Likewise.
34449         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
34450         Likewise.
34451         * modules/unictype/property-xid-start (Depends-on, configure.ac):
34452         Likewise.
34453         * modules/unictype/property-zero-width (Depends-on, configure.ac):
34454         Likewise.
34455         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
34456         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
34457         Likewise.
34458
34459 2009-12-31  Bruno Haible  <bruno@clisp.org>
34460
34461         Remove unnecessary AC_C_INLINE invocation.
34462         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
34463         since 2009-08-21.
34464
34465 2009-12-31  Jim Meyering  <meyering@redhat.com>
34466
34467         maint.mk: don't require explicit gpg_key_ID in cfg.mk
34468         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
34469         With this change, we can all remove the gpg_key_ID = ... definition
34470         from our respective cfg.mk files.
34471
34472         maint.mk: create announcement template in ~/, not in /tmp
34473         * top/maint.mk (emit_upload_commands): Adjust.
34474         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
34475         Remove temporary file, .ci-msg.
34476
34477 2009-12-31  Eric Blake  <ebb9@byu.net>
34478
34479         link-warning: always build headers with link warnings
34480         * modules/arpa_inet (Makefile.am): Always build replacement
34481         header.
34482         * modules/ctype (Makefile.am): Likewise.
34483         * modules/dirent (Makefile.am): Likewise.
34484         * modules/inttypes (Makefile.am): Likewise.
34485         * modules/langinfo (Makefile.am): Likewise.
34486         * modules/locale (Makefile.am): Likewise.
34487         * modules/spawn (Makefile.am): Likewise.
34488         * modules/sys_file (Makefile.am): Likewise.
34489         * modules/sys_ioctl (Makefile.am): Likewise.
34490         * modules/sys_select (Makefile.am): Likewise.
34491         * modules/sys_socket (Makefile.am): Likewise.
34492         * modules/sys_times (Makefile.am): Likewise.
34493         * modules/sys_utsname (Makefile.am): Likewise.
34494         * modules/sys_wait (Makefile.am): Likewise.
34495         * modules/wchar (Makefile.am): Likewise.
34496         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
34497         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
34498         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
34499         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
34500         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
34501         Likewise.
34502         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34503         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34504         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34505         Likewise.
34506         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34507         Likewise.
34508         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34509         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34510         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34511         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34512         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34513         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34514         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34515         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34516         (gl_WCHAR_H_DEFAULTS): Likewise.
34517
34518 2009-12-31  Eric Blake  <ebb9@byu.net>
34519
34520         signal, spawn: use link warnings
34521         * lib/signal.in.h (sigset_t): Make unconditional.
34522         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34523         (sigpending, sigprocmask, sigaction): Add link warnings.
34524         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34525         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34526         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34527         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34528         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34529         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34530         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34531         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34532         (posix_spawn_file_actions_destroy)
34533         (posix_spawn_file_actions_addopen)
34534         (posix_spawn_file_actions_addclose)
34535         (posix_spawn_file_actions_adddup2): Likewise.
34536         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34537         * tests/test-signal.c (main): Enhance test.
34538
34539         spawn: improve wrapper support
34540         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34541         (gl_SPAWN_H_DEFAULTS): New defaults.
34542         * modules/spawn (Makefile.am): Substitute them.
34543         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34544         Only declare if missing or broken.
34545
34546         sys_times, sys_utsname: use include_next
34547         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34548         header.
34549         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34550         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34551         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34552         * modules/sys_times (Depends-on): Add include_next.
34553         (Makefile.am): Substitute additional values.
34554         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34555         * lib/sys_times.in.h (includes): Include native header, if
34556         available.
34557         * lib/sys_utsname.in.h (includes): Likewise.
34558         * tests/test-sys_times.c (main): Enhance test.
34559
34560         fdutimensat: revert prior patch
34561         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34562         utimens.h.
34563         Reported by Bruno Haible.
34564
34565 2009-12-30  Eric Blake  <ebb9@byu.net>
34566
34567         sys_wait: drop link-warning dependency
34568         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34569         link-warning efforts.
34570         * lib/sys_wait.in.h: Likewise.
34571
34572         fdutimensat: remove bogus dependency
34573         * modules/fdutimensat (Depends-on): Drop inline.
34574
34575         unistd: fix typo
34576         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34577
34578 2009-12-30  Bruno Haible  <bruno@clisp.org>
34579
34580         Fix compilation error with Solaris cc.
34581         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34582         * lib/unicase/u16-is-invariant.c: Likewise.
34583         * lib/unicase/u32-is-invariant.c: Likewise.
34584         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34585
34586 2009-12-30  Bruno Haible  <bruno@clisp.org>
34587
34588         Fix test crash.
34589         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34590         locales.
34591         Reported by Simon Josefsson <simon@josefsson.org>.
34592
34593 2009-12-30  Bruno Haible  <bruno@clisp.org>
34594
34595         Fix compilation error on most platforms.
34596         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34597         Reported by Simon Josefsson <simon@josefsson.org>
34598         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34599
34600 2009-12-30  Eric Blake  <ebb9@byu.net>
34601
34602         futimens, utimensat: work around ntfs-3g bug
34603         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34604         a ctime bug is present, and expand workaround to cover ntfs-3g.
34605         * lib/utimens.c (fdutimens, lutimens): Likewise.
34606         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34607         (validate_timespec): Adjust return value.
34608         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34609         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34610         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34611
34612 2009-12-29  Eric Blake  <ebb9@byu.net>
34613
34614         link-warning: make usage consistent
34615         * modules/ctype (Depends-on): Add link-warning.
34616         (Makefile.am): Update rules accordingly.
34617         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34618         * modules/locale (Depends-on, Makefile.am): Likewise.
34619         * modules/sys_file (Makefile.am): Likewise.
34620         * modules/getopt-posix (Makefile.am): Delete unused link warning
34621         efforts.
34622         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34623         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34624         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34625         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34626
34627         stdio: remove unused variables
34628         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34629         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34630         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34631
34632         tests: test more substitute headers
34633         * modules/ctype-tests: New file.
34634         * modules/dirent-tests: Likewise.
34635         * modules/spawn-tests: Likewise.
34636         * modules/sys_file-tests: Likewise.
34637         * modules/sys_ioctl-tests: Likewise.
34638         * modules/sys_wait-tests: Likewise.
34639         * tests/test-ctype.c: Likewise.
34640         * tests/test-dirent.c: Likewise.
34641         * tests/test-spawn.c: Likewise.
34642         * tests/test-sys_file.c: Likewise.
34643         * tests/test-sys_ioctl.c: Likewise.
34644         * tests/test-sys_wait.c: Likewise.
34645         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34646         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34647         whether or not flock is in use.
34648
34649         tests: remove License section from module
34650         * modules/arpa_inet-tests: Remove unneeded section.
34651         * modules/byteswap-tests: Likewise.
34652         * modules/ceilf-tests: Likewise.
34653         * modules/ceill-tests: Likewise.
34654         * modules/crypto/des-tests: Likewise.
34655         * modules/crypto/gc-arcfour-tests: Likewise.
34656         * modules/crypto/gc-arctwo-tests: Likewise.
34657         * modules/crypto/gc-des-tests: Likewise.
34658         * modules/crypto/gc-hmac-md5-tests: Likewise.
34659         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34660         * modules/crypto/gc-md2-tests: Likewise.
34661         * modules/crypto/gc-md4-tests: Likewise.
34662         * modules/crypto/gc-md5-tests: Likewise.
34663         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34664         * modules/crypto/gc-rijndael-tests: Likewise.
34665         * modules/crypto/gc-sha1-tests: Likewise.
34666         * modules/crypto/gc-tests: Likewise.
34667         * modules/crypto/md2-tests: Likewise.
34668         * modules/crypto/md4-tests: Likewise.
34669         * modules/fcntl-h-tests: Likewise.
34670         * modules/floorf-tests: Likewise.
34671         * modules/floorl-tests: Likewise.
34672         * modules/frexp-nolibm-tests: Likewise.
34673         * modules/frexp-tests: Likewise.
34674         * modules/frexpl-nolibm-tests: Likewise.
34675         * modules/frexpl-tests: Likewise.
34676         * modules/getaddrinfo-tests: Likewise.
34677         * modules/inttypes-tests: Likewise.
34678         * modules/isfinite-tests: Likewise.
34679         * modules/isinf-tests: Likewise.
34680         * modules/ldexpl-tests: Likewise.
34681         * modules/locale-tests: Likewise.
34682         * modules/math-tests: Likewise.
34683         * modules/netdb-tests: Likewise.
34684         * modules/netinet_in-tests: Likewise.
34685         * modules/printf-frexp-tests: Likewise.
34686         * modules/printf-frexpl-tests: Likewise.
34687         * modules/priv-set-tests: Likewise.
34688         * modules/random_r-tests: Likewise.
34689         * modules/round-tests: Likewise.
34690         * modules/roundf-tests: Likewise.
34691         * modules/roundl-tests: Likewise.
34692         * modules/search-tests: Likewise.
34693         * modules/select-tests: Likewise.
34694         * modules/signal-tests: Likewise.
34695         * modules/stdbool-tests: Likewise.
34696         * modules/stddef-tests: Likewise.
34697         * modules/stdint-tests: Likewise.
34698         * modules/stdio-tests: Likewise.
34699         * modules/stdlib-tests: Likewise.
34700         * modules/string-tests: Likewise.
34701         * modules/strings-tests: Likewise.
34702         * modules/sys_select-tests: Likewise.
34703         * modules/sys_socket-tests: Likewise.
34704         * modules/sys_stat-tests: Likewise.
34705         * modules/sys_time-tests: Likewise.
34706         * modules/sys_utsname-tests: Likewise.
34707         * modules/sysexits-tests: Likewise.
34708         * modules/time-tests: Likewise.
34709         * modules/trunc-tests: Likewise.
34710         * modules/truncf-tests: Likewise.
34711         * modules/truncl-tests: Likewise.
34712         * modules/tsearch-tests: Likewise.
34713         * modules/unistd-tests: Likewise.
34714         * modules/wchar-tests: Likewise.
34715         * modules/wctype-tests: Likewise.
34716
34717         tests: fix license on several tests
34718         * tests/test-des.c: Update to GPLv3+.
34719         * tests/test-flock.c: Likewise.
34720         * tests/test-fsync.c: Likewise.
34721         * tests/test-futimens.h: Likewise.
34722         * tests/test-gc-arcfour.c: Likewise.
34723         * tests/test-gc-arctwo.c: Likewise.
34724         * tests/test-gc-des.c: Likewise.
34725         * tests/test-gc-hmac-md5.c: Likewise.
34726         * tests/test-gc-hmac-sha1.c: Likewise.
34727         * tests/test-gc-md2.c: Likewise.
34728         * tests/test-gc-md4.c: Likewise.
34729         * tests/test-gc-md5.c: Likewise.
34730         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34731         * tests/test-gc-rijndael.c: Likewise.
34732         * tests/test-gc-sha1.c: Likewise.
34733         * tests/test-gc.c: Likewise.
34734         * tests/test-getcwd.c: Likewise.
34735         * tests/test-link.c: Likewise.
34736         * tests/test-link.h: Likewise.
34737         * tests/test-lutimens.h: Likewise.
34738         * tests/test-md2.c: Likewise.
34739         * tests/test-md4.c: Likewise.
34740         * tests/test-mkdir.h: Likewise.
34741         * tests/test-rename.c: Likewise.
34742         * tests/test-rename.h: Likewise.
34743         * tests/test-safe-alloc.c: Likewise.
34744         * tests/test-utimens-common.h: Likewise.
34745         * tests/test-utimens.h: Likewise.
34746
34747         maint: sync license texts
34748         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
34749         * doc/gpl-3.0.texi: Revert copyright year update.
34750         * doc/lgpl-3.0.texi: Likewise.
34751
34752 2009-12-29  Jim Meyering  <meyering@redhat.com>
34753
34754         update nearly all FSF copyright year lists to include 2009
34755         The files named by the following are exempted:
34756             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
34757               test -f "$dst" && { echo "$dst"; continue; }
34758               test -d "$dst" || continue
34759               echo "$dst"/$(basename "$src")
34760             done > exempt
34761             git ls-files tests/unictype >> exempt
34762         In the remaining files, convert to all-interval notation if
34763         - there is already at least one year interval like 2000-2003
34764         - the file is maintained by me
34765         - the file is in lib/uni*/, where that style already prevails
34766         Otherwise, use update-copyright's default.
34767
34768 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34769         and Eric Blake  <ebb9@byu.net>
34770
34771         tests: don't require debug system() to pass
34772         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
34773         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34774         * tests/test-unlink.h (test_unlink_func): Likewise.
34775         * tests/test-fstatat.c (main): ...into callers.
34776         * tests/test-lstat.c (main): Likewise.
34777         * tests/test-rmdir.c (main): Likewise.
34778         * tests/test-unlink.c (main): Likewise.
34779         * tests/test-unlinkat.c (main): Likewise.
34780         * tests/test-areadlink-with-size.c (main): Don't require a
34781         debug-only system call to pass, aiding cross-testing to mingw.
34782         * tests/test-areadlink.c (main): Likewise.
34783         * tests/test-areadlinkat-with-size.c (main): Likewise.
34784         * tests/test-areadlinkat.c (main): Likewise.
34785         * tests/test-canonicalize-lgpl.c (main): Likewise.
34786         * tests/test-canonicalize.c (main): Likewise.
34787         * tests/test-chown.c (main): Likewise.
34788         * tests/test-fchownat.c (main): Likewise.
34789         * tests/test-lchown.c (main): Likewise.
34790         * tests/test-fdutimensat.c (main): Likewise.
34791         * tests/test-futimens.c (main): Likewise.
34792         * tests/test-link.c (main): Likewise.
34793         * tests/test-linkat.c (main): Likewise.
34794         * tests/test-mkdir.c (main): Likewise.
34795         * tests/test-mkdirat.c (main): Likewise.
34796         * tests/test-mkfifo.c (main): Likewise.
34797         * tests/test-mkfifoat.c (main): Likewise.
34798         * tests/test-mknod.c (main): Likewise.
34799         * tests/test-readlink.c (main): Likewise.
34800         * tests/test-remove.c (main): Likewise.
34801         * tests/test-rename.c (main): Likewise.
34802         * tests/test-renameat.c (main): Likewise.
34803         * tests/test-symlink.c (main): Likewise.
34804         * tests/test-symlinkat.c (main): Likewise.
34805         * tests/test-utimens.c (main): Likewise.
34806         * tests/test-utimensat.c (main): Likewise.
34807
34808 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34809
34810         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
34811         on $(UNUSED_PARAMETER_H) to avoid build failure.
34812
34813 2009-12-28  Jim Meyering  <meyering@redhat.com>
34814
34815         update-copyright: you may specify a max. line length other than 72
34816         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34817
34818         maint: use consistent FSF copyright line syntax
34819         * lib/posixtm.c: Add missing comma in FSF copyright line.
34820         * lib/posixtm.h: Likewise.
34821         * lib/getugroups.c: Add missing ", Inc.".
34822
34823         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
34824         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
34825         FSF copyright line.  Remove trailing blanks.
34826
34827 2009-12-28  Eric Blake  <ebb9@byu.net>
34828
34829         test-dup2: reduce dependencies
34830         * modules/cloexec (Configure.ac): Set witness.
34831         * modules/dup2-tests (Depends-on): Drop cloexec.
34832         * tests/test-dup2.c (main): Skip portion of test if cloexec module
34833         not present.
34834         Suggested by Bruno Haible.
34835
34836 2009-12-26  Bruno Haible  <bruno@clisp.org>
34837
34838         Remove an unneeded dependency.
34839         * modules/fseterr (Depends-on): Remove dup2.
34840
34841 2009-12-26  Eric Blake  <ebb9@byu.net>
34842
34843         tests: use macros.h in more places
34844         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
34845         (ASSERT_STREAM): Provide default of stderr.
34846         * tests/test-dirent-safer.c: Include macros.h, using alternate
34847         stream for assertions.
34848         * tests/test-dup-safer.c: Likewise.
34849         * tests/test-freopen-safer.c: Likewise.
34850         * tests/test-getopt.c: Likewise.
34851         * tests/test-openat-safer.c: Likewise.
34852         * tests/test-pipe.c: Likewise.
34853         * tests/test-popen-safer.c: Likewise.
34854         * modules/dirent-safer-tests (Files): Include macros.h.
34855         * modules/unistd-safer-tests (Files): Likewise.
34856         * modules/freopen-safer-tests (Files): Likewise.
34857         * modules/getopt-posix-tests (Files): Likewise.
34858         * modules/openat-safer-tests (Files): Likewise.
34859         * modules/pipe-tests (Files): Likewise.
34860
34861 2009-12-26  Bruno Haible  <bruno@clisp.org>
34862
34863         javacomp: Portability fix.
34864         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
34865         that it also works on Solaris.
34866
34867 2009-12-26  Bruno Haible  <bruno@clisp.org>
34868
34869         localename: Fix storage allocation of gl_locale_name_thread's result.
34870         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
34871         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
34872         all platforms that have 'uselocale'.
34873         (gl_locale_name_thread_unsafe): New function, extracted from
34874         gl_locale_name_thread.
34875         (gl_locale_name_thread): Call struniq on all platforms that have
34876         'uselocale'.
34877         * tests/test-localename.c (test_locale_name_thread): Check that the
34878         resulting strings are permanently allocated.
34879         * modules/localename-tests (Depends-on): Add strdup.
34880
34881 2009-12-26  Bruno Haible  <bruno@clisp.org>
34882
34883         * tests/test-localename.c (categories): Fill in the strings.
34884
34885 2009-12-26  Jim Meyering  <meyering@redhat.com>
34886
34887         isdir: complete the removal of m4/isdir.m4
34888         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
34889
34890         isdir: clean up, since at least grep still uses it
34891         * lib/isdir.c: Include "isdir.h".
34892         (S_ISDIR): Remove now-unneeded definition.
34893         * modules/isdir (Files): Add lib/isdir.h.
34894         * lib/isdir.h: New file, with declaration.
34895         * m4/isdir.m4: Remove file -- unneeded.
34896
34897 2009-12-25  Bruno Haible  <bruno@clisp.org>
34898
34899         selinux-h: Make generated .h files standalone.
34900         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
34901         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
34902         * lib/se-selinux.in.h: Likewise.
34903         * modules/selinux-h (Depends-on): Add unused-parameter.
34904         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
34905         selinux/selinux.h and selinux/context.h.
34906         Suggested by Eric Blake.
34907
34908 2009-12-25  Bruno Haible  <bruno@clisp.org>
34909
34910         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
34911         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
34912         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
34913         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
34914         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
34915
34916 2009-12-24  Bruno Haible  <bruno@clisp.org>
34917
34918         openat: Fix warning.
34919         * lib/openat-proc.c: Include <unistd.h>.
34920
34921 2009-12-24  Bruno Haible  <bruno@clisp.org>
34922
34923         New module 'unused-parameter'.
34924         * build-aux/unused-parameter.h: New file, extracted from earlier
34925         gnulib-common.m4.
34926         * modules/unused-parameter: New file.
34927         * lib/unistr.h: Include unused-parameter.h.
34928         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
34929         _GL_UNUSED.
34930         * modules/unistr/base (Depends-on): Add unused-parameter.
34931
34932 2009-12-24  Bruno Haible  <bruno@clisp.org>
34933
34934         Add missing dependencies to 'extensions' module.
34935         * m4/extensions.m4: Add comment.
34936         * modules/accept4 (Depends-on): Add extensions.
34937         * modules/dup3 (Depends-on): Likewise.
34938         * modules/fcntl (Depends-on): Likewise.
34939         * modules/futimens (Depends-on): Likewise.
34940         * modules/mknod (Depends-on): Likewise.
34941         * modules/pipe2 (Depends-on): Likewise.
34942         * modules/stat-time (Depends-on): Likewise.
34943         * modules/strcasestr-simple (Depends-on): Likewise.
34944         * modules/strsignal (Depends-on): Likewise.
34945         * modules/utimensat (Depends-on): Likewise.
34946         * modules/localcharset (Depends-on): Likewise. Needed because of
34947         gl_FCNTL_O_FLAGS.
34948         * modules/wcrtomb (Depends-on): Likewise. Needed because of
34949         AC_TYPE_MBSTATE_T.
34950         * modules/wcsnrtombs (Depends-on): Likewise.
34951         * modules/wcsrtombs (Depends-on): Likewise.
34952
34953 2009-12-24  Bruno Haible  <bruno@clisp.org>
34954
34955         binary-io: Avoid gcc warning due to SET_BINARY.
34956         * lib/binary-io.h (SET_BINARY): Cast the result to void.
34957         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
34958
34959 2009-12-24  Bruno Haible  <bruno@clisp.org>
34960
34961         Avoid future namespace pollution on glibc systems.
34962         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
34963         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
34964         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
34965         glibc systems.
34966
34967 2009-12-24  Bruno Haible  <bruno@clisp.org>
34968
34969         Refactor common macros used in tests.
34970         * tests/macros.h: New file.
34971         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
34972         and/or <stdlib.h>, if appropriate.
34973         (ASSERT, SIZEOF): Remove macros.
34974         * tests/test-areadlink-with-size.c: Likewise.
34975         * tests/test-areadlinkat.c: Likewise.
34976         * tests/test-areadlinkat-with-size.c: Likewise.
34977         * tests/test-argmatch.c: Likewise.
34978         * tests/test-argv-iter.c: Likewise.
34979         * tests/test-array-mergesort.c: Likewise.
34980         * tests/test-array_list.c: Likewise.
34981         * tests/test-array_oset.c: Likewise.
34982         * tests/test-avltree_list.c: Likewise.
34983         * tests/test-avltree_oset.c: Likewise.
34984         * tests/test-avltreehash_list.c: Likewise.
34985         * tests/test-base64.c: Likewise.
34986         * tests/test-binary-io.c: Likewise.
34987         * tests/test-bitrotate.c: Likewise.
34988         * tests/test-btowc.c: Likewise.
34989         * tests/test-byteswap.c: Likewise.
34990         * tests/test-c-ctype.c: Likewise.
34991         * tests/test-c-stack.c: Likewise.
34992         * tests/test-c-strcasecmp.c: Likewise.
34993         * tests/test-c-strcasestr.c: Likewise.
34994         * tests/test-c-strncasecmp.c: Likewise.
34995         * tests/test-c-strstr.c: Likewise.
34996         * tests/test-canonicalize-lgpl.c: Likewise.
34997         * tests/test-canonicalize.c: Likewise.
34998         * tests/test-carray_list.c: Likewise.
34999         * tests/test-ceilf1.c: Likewise.
35000         * tests/test-ceilf2.c: Likewise.
35001         * tests/test-ceill.c: Likewise.
35002         * tests/test-chown.c: Likewise.
35003         * tests/test-cloexec.c: Likewise.
35004         * tests/test-copy-acl.c: Likewise.
35005         * tests/test-copy-file.c: Likewise.
35006         * tests/test-count-one-bits.c: Likewise.
35007         * tests/test-dprintf-posix.c: Likewise.
35008         * tests/test-dup2.c: Likewise.
35009         * tests/test-dup3.c: Likewise.
35010         * tests/test-duplocale.c: Likewise.
35011         * tests/test-fbufmode.c: Likewise.
35012         * tests/test-fchdir.c: Likewise.
35013         * tests/test-fchownat.c: Likewise.
35014         * tests/test-fcntl-safer.c: Likewise.
35015         * tests/test-fcntl.c: Likewise.
35016         * tests/test-fdopendir.c: Likewise.
35017         * tests/test-fdutimensat.c: Likewise.
35018         * tests/test-fflush2.c: Likewise.
35019         * tests/test-file-has-acl.c: Likewise.
35020         * tests/test-filevercmp.c: Likewise.
35021         * tests/test-flock.c: Likewise.
35022         * tests/test-floorf1.c: Likewise.
35023         * tests/test-floorf2.c: Likewise.
35024         * tests/test-floorl.c: Likewise.
35025         * tests/test-fnmatch.c: Likewise.
35026         * tests/test-fopen.h: Likewise.
35027         * tests/test-fpending.c: Likewise.
35028         * tests/test-fprintf-posix.c: Likewise.
35029         * tests/test-fpurge.c: Likewise.
35030         * tests/test-freadable.c: Likewise.
35031         * tests/test-freadahead.c: Likewise.
35032         * tests/test-freading.c: Likewise.
35033         * tests/test-freadptr.c: Likewise.
35034         * tests/test-freadptr2.c: Likewise.
35035         * tests/test-freadseek.c: Likewise.
35036         * tests/test-freopen.c: Likewise.
35037         * tests/test-frexp.c: Likewise.
35038         * tests/test-frexpl.c: Likewise.
35039         * tests/test-fseek.c: Likewise.
35040         * tests/test-fseeko.c: Likewise.
35041         * tests/test-fstatat.c: Likewise.
35042         * tests/test-fstrcmp.c: Likewise.
35043         * tests/test-fsync.c: Likewise.
35044         * tests/test-ftell.c: Likewise.
35045         * tests/test-ftello.c: Likewise.
35046         * tests/test-func.c: Likewise.
35047         * tests/test-futimens.c: Likewise.
35048         * tests/test-fwritable.c: Likewise.
35049         * tests/test-fwriting.c: Likewise.
35050         * tests/test-getcwd.c: Likewise.
35051         * tests/test-getdate.c: Likewise.
35052         * tests/test-getdelim.c: Likewise.
35053         * tests/test-getdtablesize.c: Likewise.
35054         * tests/test-getgroups.c: Likewise.
35055         * tests/test-getline.c: Likewise.
35056         * tests/test-getndelim2.c: Likewise.
35057         * tests/test-glob.c: Likewise.
35058         * tests/test-hash.c: Likewise.
35059         * tests/test-i-ring.c: Likewise.
35060         * tests/test-iconv-utf.c: Likewise.
35061         * tests/test-iconv.c: Likewise.
35062         * tests/test-idpriv-drop.c: Likewise.
35063         * tests/test-idpriv-droptemp.c: Likewise.
35064         * tests/test-inet_ntop.c: Likewise.
35065         * tests/test-inet_pton.c: Likewise.
35066         * tests/test-isblank.c: Likewise.
35067         * tests/test-isfinite.c: Likewise.
35068         * tests/test-isinf.c: Likewise.
35069         * tests/test-isnan.c: Likewise.
35070         * tests/test-isnand.h: Likewise.
35071         * tests/test-isnanf.h: Likewise.
35072         * tests/test-isnanl.h: Likewise.
35073         * tests/test-lchown.c: Likewise.
35074         * tests/test-ldexpl.c: Likewise.
35075         * tests/test-link.c: Likewise.
35076         * tests/test-linkat.c: Likewise.
35077         * tests/test-linked_list.c: Likewise.
35078         * tests/test-linkedhash_list.c: Likewise.
35079         * tests/test-localename.c: Likewise.
35080         * tests/test-lseek.c: Likewise.
35081         * tests/test-lstat.c: Likewise.
35082         * tests/test-mbmemcasecmp.c: Likewise.
35083         * tests/test-mbmemcasecoll.c: Likewise.
35084         * tests/test-mbrtowc.c: Likewise.
35085         * tests/test-mbscasecmp.c: Likewise.
35086         * tests/test-mbscasestr1.c: Likewise.
35087         * tests/test-mbscasestr2.c: Likewise.
35088         * tests/test-mbscasestr3.c: Likewise.
35089         * tests/test-mbscasestr4.c: Likewise.
35090         * tests/test-mbschr.c: Likewise.
35091         * tests/test-mbscspn.c: Likewise.
35092         * tests/test-mbsinit.c: Likewise.
35093         * tests/test-mbsncasecmp.c: Likewise.
35094         * tests/test-mbsnrtowcs.c: Likewise.
35095         * tests/test-mbspbrk.c: Likewise.
35096         * tests/test-mbspcasecmp.c: Likewise.
35097         * tests/test-mbsrchr.c: Likewise.
35098         * tests/test-mbsrtowcs.c: Likewise.
35099         * tests/test-mbsspn.c: Likewise.
35100         * tests/test-mbsstr1.c: Likewise.
35101         * tests/test-mbsstr2.c: Likewise.
35102         * tests/test-mbsstr3.c: Likewise.
35103         * tests/test-memchr.c: Likewise.
35104         * tests/test-memchr2.c: Likewise.
35105         * tests/test-memcmp.c: Likewise.
35106         * tests/test-memmem.c: Likewise.
35107         * tests/test-memrchr.c: Likewise.
35108         * tests/test-mkdir.c: Likewise.
35109         * tests/test-mkdirat.c: Likewise.
35110         * tests/test-mkfifo.c: Likewise.
35111         * tests/test-mkfifoat.c: Likewise.
35112         * tests/test-mknod.c: Likewise.
35113         * tests/test-nanosleep.c: Likewise.
35114         * tests/test-nl_langinfo.c: Likewise.
35115         * tests/test-obstack-printf.c: Likewise.
35116         * tests/test-open.c: Likewise.
35117         * tests/test-openat.c: Likewise.
35118         * tests/test-pipe-filter-gi1.c: Likewise.
35119         * tests/test-pipe-filter-gi2-main.c: Likewise.
35120         * tests/test-pipe-filter-ii1.c: Likewise.
35121         * tests/test-pipe-filter-ii2-main.c: Likewise.
35122         * tests/test-pipe2.c: Likewise.
35123         * tests/test-popen.h: Likewise.
35124         * tests/test-posixtm.c: Likewise.
35125         * tests/test-pread.c: Likewise.
35126         * tests/test-printf-frexp.c: Likewise.
35127         * tests/test-printf-frexpl.c: Likewise.
35128         * tests/test-printf-posix.c: Likewise.
35129         * tests/test-priv-set.c: Likewise.
35130         * tests/test-quotearg.c: Likewise.
35131         * tests/test-random_r.c: Likewise.
35132         * tests/test-rawmemchr.c: Likewise.
35133         * tests/test-rbtree_list.c: Likewise.
35134         * tests/test-rbtree_oset.c: Likewise.
35135         * tests/test-rbtreehash_list.c: Likewise.
35136         * tests/test-readlink.c: Likewise.
35137         * tests/test-remove.c: Likewise.
35138         * tests/test-rename.c: Likewise.
35139         * tests/test-renameat.c: Likewise.
35140         * tests/test-rmdir.c: Likewise.
35141         * tests/test-round1.c: Likewise.
35142         * tests/test-roundf1.c: Likewise.
35143         * tests/test-roundl.c: Likewise.
35144         * tests/test-safe-alloc.c: Likewise.
35145         * tests/test-sameacls.c: Likewise.
35146         * tests/test-set-mode-acl.c: Likewise.
35147         * tests/test-setenv.c: Likewise.
35148         * tests/test-sigaction.c: Likewise.
35149         * tests/test-signbit.c: Likewise.
35150         * tests/test-sleep.c: Likewise.
35151         * tests/test-snprintf-posix.c: Likewise.
35152         * tests/test-snprintf.c: Likewise.
35153         * tests/test-sprintf-posix.c: Likewise.
35154         * tests/test-stat-time.c: Likewise.
35155         * tests/test-stat.c: Likewise.
35156         * tests/test-strcasestr.c: Likewise.
35157         * tests/test-strchrnul.c: Likewise.
35158         * tests/test-strerror.c: Likewise.
35159         * tests/test-striconv.c: Likewise.
35160         * tests/test-striconveh.c: Likewise.
35161         * tests/test-striconveha.c: Likewise.
35162         * tests/test-strsignal.c: Likewise.
35163         * tests/test-strstr.c: Likewise.
35164         * tests/test-strtod.c: Likewise.
35165         * tests/test-strverscmp.c: Likewise.
35166         * tests/test-symlink.c: Likewise.
35167         * tests/test-symlinkat.c: Likewise.
35168         * tests/test-trunc1.c: Likewise.
35169         * tests/test-trunc2.c: Likewise.
35170         * tests/test-truncf1.c: Likewise.
35171         * tests/test-truncf2.c: Likewise.
35172         * tests/test-truncl.c: Likewise.
35173         * tests/test-uname.c: Likewise.
35174         * tests/test-unlink.c: Likewise.
35175         * tests/test-unlinkat.c: Likewise.
35176         * tests/test-unsetenv.c: Likewise.
35177         * tests/test-usleep.c: Likewise.
35178         * tests/test-utimens.c: Likewise.
35179         * tests/test-utimensat.c: Likewise.
35180         * tests/test-vasnprintf-posix.c: Likewise.
35181         * tests/test-vasnprintf-posix2.c: Likewise.
35182         * tests/test-vasnprintf.c: Likewise.
35183         * tests/test-vasprintf-posix.c: Likewise.
35184         * tests/test-vasprintf.c: Likewise.
35185         * tests/test-vdprintf-posix.c: Likewise.
35186         * tests/test-vfprintf-posix.c: Likewise.
35187         * tests/test-vprintf-posix.c: Likewise.
35188         * tests/test-vsnprintf-posix.c: Likewise.
35189         * tests/test-vsnprintf.c: Likewise.
35190         * tests/test-vsprintf-posix.c: Likewise.
35191         * tests/test-wcrtomb.c: Likewise.
35192         * tests/test-wcsnrtombs.c: Likewise.
35193         * tests/test-wcsrtombs.c: Likewise.
35194         * tests/test-wctype.c: Likewise.
35195         * tests/test-wcwidth.c: Likewise.
35196         * tests/test-xfprintf-posix.c: Likewise.
35197         * tests/test-xmemdup0.c: Likewise.
35198         * tests/test-xprintf-posix.c: Likewise.
35199         * tests/test-xvasprintf.c: Likewise.
35200         * tests/unicase/test-locale-language.c: Likewise.
35201         * tests/unicase/test-mapping-part1.h: Likewise.
35202         * tests/unicase/test-predicate-part1.h: Likewise.
35203         * tests/unicase/test-u8-casecmp.c: Likewise.
35204         * tests/unicase/test-u8-casecoll.c: Likewise.
35205         * tests/unicase/test-u8-casefold.c: Likewise.
35206         * tests/unicase/test-u8-is-cased.c: Likewise.
35207         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35208         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35209         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35210         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35211         * tests/unicase/test-u8-tolower.c: Likewise.
35212         * tests/unicase/test-u8-totitle.c: Likewise.
35213         * tests/unicase/test-u8-toupper.c: Likewise.
35214         * tests/unicase/test-u16-casecmp.c: Likewise.
35215         * tests/unicase/test-u16-casecoll.c: Likewise.
35216         * tests/unicase/test-u16-casefold.c: Likewise.
35217         * tests/unicase/test-u16-is-cased.c: Likewise.
35218         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35219         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35220         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35221         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35222         * tests/unicase/test-u16-tolower.c: Likewise.
35223         * tests/unicase/test-u16-totitle.c: Likewise.
35224         * tests/unicase/test-u16-toupper.c: Likewise.
35225         * tests/unicase/test-u32-casecmp.c: Likewise.
35226         * tests/unicase/test-u32-casecoll.c: Likewise.
35227         * tests/unicase/test-u32-casefold.c: Likewise.
35228         * tests/unicase/test-u32-is-cased.c: Likewise.
35229         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35230         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35231         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35232         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35233         * tests/unicase/test-u32-tolower.c: Likewise.
35234         * tests/unicase/test-u32-totitle.c: Likewise.
35235         * tests/unicase/test-u32-toupper.c: Likewise.
35236         * tests/unicase/test-ulc-casecmp.c: Likewise.
35237         * tests/unicase/test-ulc-casecoll.c: Likewise.
35238         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35239         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35240         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35241         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35242         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35243         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35244         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35245         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35246         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35247         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35248         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35249         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35250         * tests/unictype/test-bidi_byname.c: Likewise.
35251         * tests/unictype/test-bidi_name.c: Likewise.
35252         * tests/unictype/test-bidi_of.c: Likewise.
35253         * tests/unictype/test-bidi_test.c: Likewise.
35254         * tests/unictype/test-block_list.c: Likewise.
35255         * tests/unictype/test-block_of.c: Likewise.
35256         * tests/unictype/test-block_test.c: Likewise.
35257         * tests/unictype/test-categ_and.c: Likewise.
35258         * tests/unictype/test-categ_and_not.c: Likewise.
35259         * tests/unictype/test-categ_byname.c: Likewise.
35260         * tests/unictype/test-categ_name.c: Likewise.
35261         * tests/unictype/test-categ_none.c: Likewise.
35262         * tests/unictype/test-categ_of.c: Likewise.
35263         * tests/unictype/test-categ_or.c: Likewise.
35264         * tests/unictype/test-categ_test_withtable.c: Likewise.
35265         * tests/unictype/test-combining.c: Likewise.
35266         * tests/unictype/test-decdigit.c: Likewise.
35267         * tests/unictype/test-digit.c: Likewise.
35268         * tests/unictype/test-mirror.c: Likewise.
35269         * tests/unictype/test-numeric.c: Likewise.
35270         * tests/unictype/test-pr_byname.c: Likewise.
35271         * tests/unictype/test-pr_test.c: Likewise.
35272         * tests/unictype/test-predicate-part1.h: Likewise.
35273         * tests/unictype/test-scripts.c: Likewise.
35274         * tests/unictype/test-sy_c_ident.c: Likewise.
35275         * tests/unictype/test-sy_java_ident.c: Likewise.
35276         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35277         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35278         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35279         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35280         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35281         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35282         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35283         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35284         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35285         * tests/uninorm/test-compat-decomposition.c: Likewise.
35286         * tests/uninorm/test-composition.c: Likewise.
35287         * tests/uninorm/test-decomposing-form.c: Likewise.
35288         * tests/uninorm/test-decomposition.c: Likewise.
35289         * tests/uninorm/test-u8-nfc.c: Likewise.
35290         * tests/uninorm/test-u8-nfd.c: Likewise.
35291         * tests/uninorm/test-u8-nfkc.c: Likewise.
35292         * tests/uninorm/test-u8-nfkd.c: Likewise.
35293         * tests/uninorm/test-u8-normcmp.c: Likewise.
35294         * tests/uninorm/test-u8-normcoll.c: Likewise.
35295         * tests/uninorm/test-u16-nfc.c: Likewise.
35296         * tests/uninorm/test-u16-nfd.c: Likewise.
35297         * tests/uninorm/test-u16-nfkc.c: Likewise.
35298         * tests/uninorm/test-u16-nfkd.c: Likewise.
35299         * tests/uninorm/test-u16-normcmp.c: Likewise.
35300         * tests/uninorm/test-u16-normcoll.c: Likewise.
35301         * tests/uninorm/test-u32-nfc.c: Likewise.
35302         * tests/uninorm/test-u32-nfd.c: Likewise.
35303         * tests/uninorm/test-u32-nfkc.c: Likewise.
35304         * tests/uninorm/test-u32-nfkd.c: Likewise.
35305         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35306         * tests/uninorm/test-u32-normcmp.c: Likewise.
35307         * tests/uninorm/test-u32-normcoll.c: Likewise.
35308         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35309         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35310         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35311         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35312         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35313         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35314         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35315         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35316         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35317         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35318         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35319         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35320         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35321         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35322         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35323         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35324         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35325         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35326         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35327         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35328         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35329         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35330         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35331         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35332         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35333         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35334         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35335         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35336         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35337         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
35338         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
35339         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
35340         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
35341         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35342         * tests/uniwidth/test-u8-width.c: Likewise.
35343         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35344         * tests/uniwidth/test-u16-width.c: Likewise.
35345         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35346         * tests/uniwidth/test-u32-width.c: Likewise.
35347         * tests/uniwidth/test-uc_width.c: Likewise.
35348         * tests/uniwidth/test-uc_width2.c: Likewise.
35349         * modules/acl-tests (Files): Add tests/macros.h.
35350         * modules/areadlink-tests (Files): Likewise.
35351         * modules/areadlink-with-size-tests (Files): Likewise.
35352         * modules/areadlinkat-tests (Files): Likewise.
35353         * modules/areadlinkat-with-size-tests (Files): Likewise.
35354         * modules/argmatch-tests (Files): Likewise.
35355         * modules/argv-iter-tests (Files): Likewise.
35356         * modules/array-list-tests (Files): Likewise.
35357         * modules/array-mergesort-tests (Files): Likewise.
35358         * modules/array-oset-tests (Files): Likewise.
35359         * modules/avltree-list-tests (Files): Likewise.
35360         * modules/avltree-oset-tests (Files): Likewise.
35361         * modules/avltreehash-list-tests (Files): Likewise.
35362         * modules/base64-tests (Files): Likewise.
35363         * modules/binary-io-tests (Files): Likewise.
35364         * modules/bitrotate-tests (Files): Likewise.
35365         * modules/btowc-tests (Files): Likewise.
35366         * modules/byteswap-tests (Files): Likewise.
35367         * modules/c-ctype-tests (Files): Likewise.
35368         * modules/c-stack-tests (Files): Likewise.
35369         * modules/c-strcase-tests (Files): Likewise.
35370         * modules/c-strcasestr-tests (Files): Likewise.
35371         * modules/c-strstr-tests (Files): Likewise.
35372         * modules/canonicalize-lgpl-tests (Files): Likewise.
35373         * modules/canonicalize-tests (Files): Likewise.
35374         * modules/carray-list-tests (Files): Likewise.
35375         * modules/ceilf-tests (Files): Likewise.
35376         * modules/ceill-tests (Files): Likewise.
35377         * modules/chown-tests (Files): Likewise.
35378         * modules/cloexec-tests (Files): Likewise.
35379         * modules/copy-file-tests (Files): Likewise.
35380         * modules/count-one-bits-tests (Files): Likewise.
35381         * modules/dprintf-posix-tests (Files): Likewise.
35382         * modules/dup2-tests (Files): Likewise.
35383         * modules/dup3-tests (Files): Likewise.
35384         * modules/duplocale-tests (Files): Likewise.
35385         * modules/fbufmode-tests (Files): Likewise.
35386         * modules/fchdir-tests (Files): Likewise.
35387         * modules/fcntl-safer-tests (Files): Likewise.
35388         * modules/fcntl-tests (Files): Likewise.
35389         * modules/fdopendir-tests (Files): Likewise.
35390         * modules/fdutimensat-tests (Files): Likewise.
35391         * modules/fflush-tests (Files): Likewise.
35392         * modules/filevercmp-tests (Files): Likewise.
35393         * modules/flock-tests (Files): Likewise.
35394         * modules/floorf-tests (Files): Likewise.
35395         * modules/floorl-tests (Files): Likewise.
35396         * modules/fnmatch-tests (Files): Likewise.
35397         * modules/fopen-safer-tests (Files): Likewise.
35398         * modules/fopen-tests (Files): Likewise.
35399         * modules/fpending-tests (Files): Likewise.
35400         * modules/fprintf-posix-tests (Files): Likewise.
35401         * modules/fpurge-tests (Files): Likewise.
35402         * modules/freadable-tests (Files): Likewise.
35403         * modules/freadahead-tests (Files): Likewise.
35404         * modules/freading-tests (Files): Likewise.
35405         * modules/freadptr-tests (Files): Likewise.
35406         * modules/freadseek-tests (Files): Likewise.
35407         * modules/freopen-tests (Files): Likewise.
35408         * modules/frexp-nolibm-tests (Files): Likewise.
35409         * modules/frexp-tests (Files): Likewise.
35410         * modules/frexpl-nolibm-tests (Files): Likewise.
35411         * modules/frexpl-tests (Files): Likewise.
35412         * modules/fseek-tests (Files): Likewise.
35413         * modules/fseeko-tests (Files): Likewise.
35414         * modules/fstrcmp-tests (Files): Likewise.
35415         * modules/fsync-tests (Files): Likewise.
35416         * modules/ftell-tests (Files): Likewise.
35417         * modules/ftello-tests (Files): Likewise.
35418         * modules/func-tests (Files): Likewise.
35419         * modules/futimens-tests (Files): Likewise.
35420         * modules/fwritable-tests (Files): Likewise.
35421         * modules/fwriting-tests (Files): Likewise.
35422         * modules/getcwd-tests (Files): Likewise.
35423         * modules/getdate-tests (Files): Likewise.
35424         * modules/getdelim-tests (Files): Likewise.
35425         * modules/getdtablesize-tests (Files): Likewise.
35426         * modules/getgroups-tests (Files): Likewise.
35427         * modules/getline-tests (Files): Likewise.
35428         * modules/getndelim2-tests (Files): Likewise.
35429         * modules/glob-tests (Files): Likewise.
35430         * modules/hash-tests (Files): Likewise.
35431         * modules/i-ring-tests (Files): Likewise.
35432         * modules/iconv-tests (Files): Likewise.
35433         * modules/iconv_open-utf-tests (Files): Likewise.
35434         * modules/idpriv-drop-tests (Files): Likewise.
35435         * modules/idpriv-droptemp-tests (Files): Likewise.
35436         * modules/inet_ntop-tests (Files): Likewise.
35437         * modules/inet_pton-tests (Files): Likewise.
35438         * modules/isblank-tests (Files): Likewise.
35439         * modules/isfinite-tests (Files): Likewise.
35440         * modules/isinf-tests (Files): Likewise.
35441         * modules/isnan-tests (Files): Likewise.
35442         * modules/isnand-nolibm-tests (Files): Likewise.
35443         * modules/isnand-tests (Files): Likewise.
35444         * modules/isnanf-nolibm-tests (Files): Likewise.
35445         * modules/isnanf-tests (Files): Likewise.
35446         * modules/isnanl-nolibm-tests (Files): Likewise.
35447         * modules/isnanl-tests (Files): Likewise.
35448         * modules/lchown-tests (Files): Likewise.
35449         * modules/ldexpl-tests (Files): Likewise.
35450         * modules/link-tests (Files): Likewise.
35451         * modules/linkat-tests (Files): Likewise.
35452         * modules/linked-list-tests (Files): Likewise.
35453         * modules/linkedhash-list-tests (Files): Likewise.
35454         * modules/localename-tests (Files): Likewise.
35455         * modules/lseek-tests (Files): Likewise.
35456         * modules/lstat-tests (Files): Likewise.
35457         * modules/mbmemcasecmp-tests (Files): Likewise.
35458         * modules/mbmemcasecoll-tests (Files): Likewise.
35459         * modules/mbrtowc-tests (Files): Likewise.
35460         * modules/mbscasecmp-tests (Files): Likewise.
35461         * modules/mbscasestr-tests (Files): Likewise.
35462         * modules/mbschr-tests (Files): Likewise.
35463         * modules/mbscspn-tests (Files): Likewise.
35464         * modules/mbsinit-tests (Files): Likewise.
35465         * modules/mbsncasecmp-tests (Files): Likewise.
35466         * modules/mbsnrtowcs-tests (Files): Likewise.
35467         * modules/mbspbrk-tests (Files): Likewise.
35468         * modules/mbspcasecmp-tests (Files): Likewise.
35469         * modules/mbsrchr-tests (Files): Likewise.
35470         * modules/mbsrtowcs-tests (Files): Likewise.
35471         * modules/mbsspn-tests (Files): Likewise.
35472         * modules/mbsstr-tests (Files): Likewise.
35473         * modules/memchr-tests (Files): Likewise.
35474         * modules/memchr2-tests (Files): Likewise.
35475         * modules/memcmp-tests (Files): Likewise.
35476         * modules/memmem-tests (Files): Likewise.
35477         * modules/memrchr-tests (Files): Likewise.
35478         * modules/mkdir-tests (Files): Likewise.
35479         * modules/mkfifo-tests (Files): Likewise.
35480         * modules/mkfifoat-tests (Files): Likewise.
35481         * modules/mknod-tests (Files): Likewise.
35482         * modules/nanosleep-tests (Files): Likewise.
35483         * modules/nl_langinfo-tests (Files): Likewise.
35484         * modules/obstack-printf-tests (Files): Likewise.
35485         * modules/open-tests (Files): Likewise.
35486         * modules/openat-tests (Files): Likewise.
35487         * modules/pipe-filter-gi-tests (Files): Likewise.
35488         * modules/pipe-filter-ii-tests (Files): Likewise.
35489         * modules/pipe2-tests (Files): Likewise.
35490         * modules/popen-safer-tests (Files): Likewise.
35491         * modules/popen-tests (Files): Likewise.
35492         * modules/posixtm-tests (Files): Likewise.
35493         * modules/pread-tests (Files): Likewise.
35494         * modules/printf-frexp-tests (Files): Likewise.
35495         * modules/printf-frexpl-tests (Files): Likewise.
35496         * modules/printf-posix-tests (Files): Likewise.
35497         * modules/priv-set-tests (Files): Likewise.
35498         * modules/quotearg-tests (Files): Likewise.
35499         * modules/random_r-tests (Files): Likewise.
35500         * modules/rawmemchr-tests (Files): Likewise.
35501         * modules/rbtree-list-tests (Files): Likewise.
35502         * modules/rbtree-oset-tests (Files): Likewise.
35503         * modules/rbtreehash-list-tests (Files): Likewise.
35504         * modules/readlink-tests (Files): Likewise.
35505         * modules/remove-tests (Files): Likewise.
35506         * modules/rename-tests (Files): Likewise.
35507         * modules/renameat-tests (Files): Likewise.
35508         * modules/rmdir-tests (Files): Likewise.
35509         * modules/round-tests (Files): Likewise.
35510         * modules/roundf-tests (Files): Likewise.
35511         * modules/roundl-tests (Files): Likewise.
35512         * modules/safe-alloc-tests (Files): Likewise.
35513         * modules/setenv-tests (Files): Likewise.
35514         * modules/sigaction-tests (Files): Likewise.
35515         * modules/signbit-tests (Files): Likewise.
35516         * modules/sleep-tests (Files): Likewise.
35517         * modules/snprintf-posix-tests (Files): Likewise.
35518         * modules/snprintf-tests (Files): Likewise.
35519         * modules/sprintf-posix-tests (Files): Likewise.
35520         * modules/stat-tests (Files): Likewise.
35521         * modules/stat-time-tests (Files): Likewise.
35522         * modules/strcasestr-tests (Files): Likewise.
35523         * modules/strchrnul-tests (Files): Likewise.
35524         * modules/strerror-tests (Files): Likewise.
35525         * modules/striconv-tests (Files): Likewise.
35526         * modules/striconveh-tests (Files): Likewise.
35527         * modules/striconveha-tests (Files): Likewise.
35528         * modules/strsignal-tests (Files): Likewise.
35529         * modules/strstr-tests (Files): Likewise.
35530         * modules/strtod-tests (Files): Likewise.
35531         * modules/strverscmp-tests (Files): Likewise.
35532         * modules/symlink-tests (Files): Likewise.
35533         * modules/symlinkat-tests (Files): Likewise.
35534         * modules/trunc-tests (Files): Likewise.
35535         * modules/truncf-tests (Files): Likewise.
35536         * modules/truncl-tests (Files): Likewise.
35537         * modules/uname-tests (Files): Likewise.
35538         * modules/unicase/cased-tests (Files): Likewise.
35539         * modules/unicase/ignorable-tests (Files): Likewise.
35540         * modules/unicase/locale-language-tests (Files): Likewise.
35541         * modules/unicase/tolower-tests (Files): Likewise.
35542         * modules/unicase/totitle-tests (Files): Likewise.
35543         * modules/unicase/toupper-tests (Files): Likewise.
35544         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35545         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35546         * modules/unicase/u8-casefold-tests (Files): Likewise.
35547         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35548         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35549         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35550         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35551         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35552         * modules/unicase/u8-tolower-tests (Files): Likewise.
35553         * modules/unicase/u8-totitle-tests (Files): Likewise.
35554         * modules/unicase/u8-toupper-tests (Files): Likewise.
35555         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35556         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35557         * modules/unicase/u16-casefold-tests (Files): Likewise.
35558         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35559         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35560         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35561         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35562         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35563         * modules/unicase/u16-tolower-tests (Files): Likewise.
35564         * modules/unicase/u16-totitle-tests (Files): Likewise.
35565         * modules/unicase/u16-toupper-tests (Files): Likewise.
35566         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35567         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35568         * modules/unicase/u32-casefold-tests (Files): Likewise.
35569         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35570         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35571         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35572         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35573         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35574         * modules/unicase/u32-tolower-tests (Files): Likewise.
35575         * modules/unicase/u32-totitle-tests (Files): Likewise.
35576         * modules/unicase/u32-toupper-tests (Files): Likewise.
35577         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35578         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35579         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35580         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35581         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35582         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35583         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35584         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35585         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35586         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35587         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35588         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35589         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35590         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35591         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35592         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35593         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35594         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35595         * modules/unictype/block-list-tests (Files): Likewise.
35596         * modules/unictype/block-of-tests (Files): Likewise.
35597         * modules/unictype/block-test-tests (Files): Likewise.
35598         * modules/unictype/category-C-tests (Files): Likewise.
35599         * modules/unictype/category-Cc-tests (Files): Likewise.
35600         * modules/unictype/category-Cf-tests (Files): Likewise.
35601         * modules/unictype/category-Cn-tests (Files): Likewise.
35602         * modules/unictype/category-Co-tests (Files): Likewise.
35603         * modules/unictype/category-Cs-tests (Files): Likewise.
35604         * modules/unictype/category-L-tests (Files): Likewise.
35605         * modules/unictype/category-Ll-tests (Files): Likewise.
35606         * modules/unictype/category-Lm-tests (Files): Likewise.
35607         * modules/unictype/category-Lo-tests (Files): Likewise.
35608         * modules/unictype/category-Lt-tests (Files): Likewise.
35609         * modules/unictype/category-Lu-tests (Files): Likewise.
35610         * modules/unictype/category-M-tests (Files): Likewise.
35611         * modules/unictype/category-Mc-tests (Files): Likewise.
35612         * modules/unictype/category-Me-tests (Files): Likewise.
35613         * modules/unictype/category-Mn-tests (Files): Likewise.
35614         * modules/unictype/category-N-tests (Files): Likewise.
35615         * modules/unictype/category-Nd-tests (Files): Likewise.
35616         * modules/unictype/category-Nl-tests (Files): Likewise.
35617         * modules/unictype/category-No-tests (Files): Likewise.
35618         * modules/unictype/category-P-tests (Files): Likewise.
35619         * modules/unictype/category-Pc-tests (Files): Likewise.
35620         * modules/unictype/category-Pd-tests (Files): Likewise.
35621         * modules/unictype/category-Pe-tests (Files): Likewise.
35622         * modules/unictype/category-Pf-tests (Files): Likewise.
35623         * modules/unictype/category-Pi-tests (Files): Likewise.
35624         * modules/unictype/category-Po-tests (Files): Likewise.
35625         * modules/unictype/category-Ps-tests (Files): Likewise.
35626         * modules/unictype/category-S-tests (Files): Likewise.
35627         * modules/unictype/category-Sc-tests (Files): Likewise.
35628         * modules/unictype/category-Sk-tests (Files): Likewise.
35629         * modules/unictype/category-Sm-tests (Files): Likewise.
35630         * modules/unictype/category-So-tests (Files): Likewise.
35631         * modules/unictype/category-Z-tests (Files): Likewise.
35632         * modules/unictype/category-Zl-tests (Files): Likewise.
35633         * modules/unictype/category-Zp-tests (Files): Likewise.
35634         * modules/unictype/category-Zs-tests (Files): Likewise.
35635         * modules/unictype/category-and-not-tests (Files): Likewise.
35636         * modules/unictype/category-and-tests (Files): Likewise.
35637         * modules/unictype/category-byname-tests (Files): Likewise.
35638         * modules/unictype/category-name-tests (Files): Likewise.
35639         * modules/unictype/category-none-tests (Files): Likewise.
35640         * modules/unictype/category-of-tests (Files): Likewise.
35641         * modules/unictype/category-or-tests (Files): Likewise.
35642         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35643         * modules/unictype/combining-class-tests (Files): Likewise.
35644         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35645         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35646         * modules/unictype/ctype-blank-tests (Files): Likewise.
35647         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35648         * modules/unictype/ctype-digit-tests (Files): Likewise.
35649         * modules/unictype/ctype-graph-tests (Files): Likewise.
35650         * modules/unictype/ctype-lower-tests (Files): Likewise.
35651         * modules/unictype/ctype-print-tests (Files): Likewise.
35652         * modules/unictype/ctype-punct-tests (Files): Likewise.
35653         * modules/unictype/ctype-space-tests (Files): Likewise.
35654         * modules/unictype/ctype-upper-tests (Files): Likewise.
35655         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35656         * modules/unictype/decimal-digit-tests (Files): Likewise.
35657         * modules/unictype/digit-tests (Files): Likewise.
35658         * modules/unictype/mirror-tests (Files): Likewise.
35659         * modules/unictype/numeric-tests (Files): Likewise.
35660         * modules/unictype/property-alphabetic-tests (Files): Likewise.
35661         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
35662         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
35663         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
35664         Likewise.
35665         * modules/unictype/property-bidi-block-separator-tests (Files):
35666         Likewise.
35667         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
35668         Likewise.
35669         * modules/unictype/property-bidi-common-separator-tests (Files):
35670         Likewise.
35671         * modules/unictype/property-bidi-control-tests (Files): Likewise.
35672         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
35673         Likewise.
35674         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
35675         Likewise.
35676         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
35677         Likewise.
35678         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
35679         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
35680         Likewise.
35681         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
35682         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
35683         Likewise.
35684         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
35685         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
35686         * modules/unictype/property-bidi-segment-separator-tests (Files):
35687         Likewise.
35688         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
35689         * modules/unictype/property-byname-tests (Files): Likewise.
35690         * modules/unictype/property-combining-tests (Files): Likewise.
35691         * modules/unictype/property-composite-tests (Files): Likewise.
35692         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
35693         * modules/unictype/property-dash-tests (Files): Likewise.
35694         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
35695         * modules/unictype/property-default-ignorable-code-point-tests (Files):
35696         Likewise.
35697         * modules/unictype/property-deprecated-tests (Files): Likewise.
35698         * modules/unictype/property-diacritic-tests (Files): Likewise.
35699         * modules/unictype/property-extender-tests (Files): Likewise.
35700         * modules/unictype/property-format-control-tests (Files): Likewise.
35701         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
35702         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
35703         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
35704         * modules/unictype/property-hex-digit-tests (Files): Likewise.
35705         * modules/unictype/property-hyphen-tests (Files): Likewise.
35706         * modules/unictype/property-id-continue-tests (Files): Likewise.
35707         * modules/unictype/property-id-start-tests (Files): Likewise.
35708         * modules/unictype/property-ideographic-tests (Files): Likewise.
35709         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
35710         * modules/unictype/property-ids-trinary-operator-tests (Files):
35711         Likewise.
35712         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
35713         * modules/unictype/property-iso-control-tests (Files): Likewise.
35714         * modules/unictype/property-join-control-tests (Files): Likewise.
35715         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
35716         * modules/unictype/property-line-separator-tests (Files): Likewise.
35717         * modules/unictype/property-logical-order-exception-tests (Files):
35718         Likewise.
35719         * modules/unictype/property-lowercase-tests (Files): Likewise.
35720         * modules/unictype/property-math-tests (Files): Likewise.
35721         * modules/unictype/property-non-break-tests (Files): Likewise.
35722         * modules/unictype/property-not-a-character-tests (Files): Likewise.
35723         * modules/unictype/property-numeric-tests (Files): Likewise.
35724         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
35725         * modules/unictype/property-other-default-ignorable-code-point-tests
35726         (Files): Likewise.
35727         * modules/unictype/property-other-grapheme-extend-tests (Files):
35728         Likewise.
35729         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
35730         * modules/unictype/property-other-id-start-tests (Files): Likewise.
35731         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
35732         * modules/unictype/property-other-math-tests (Files): Likewise.
35733         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
35734         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
35735         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
35736         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
35737         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
35738         * modules/unictype/property-private-use-tests (Files): Likewise.
35739         * modules/unictype/property-punctuation-tests (Files): Likewise.
35740         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
35741         * modules/unictype/property-radical-tests (Files): Likewise.
35742         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
35743         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
35744         * modules/unictype/property-space-tests (Files): Likewise.
35745         * modules/unictype/property-terminal-punctuation-tests (Files):
35746         Likewise.
35747         * modules/unictype/property-test-tests (Files): Likewise.
35748         * modules/unictype/property-titlecase-tests (Files): Likewise.
35749         * modules/unictype/property-unassigned-code-value-tests (Files):
35750         Likewise.
35751         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
35752         * modules/unictype/property-uppercase-tests (Files): Likewise.
35753         * modules/unictype/property-variation-selector-tests (Files): Likewise.
35754         * modules/unictype/property-white-space-tests (Files): Likewise.
35755         * modules/unictype/property-xid-continue-tests (Files): Likewise.
35756         * modules/unictype/property-xid-start-tests (Files): Likewise.
35757         * modules/unictype/property-zero-width-tests (Files): Likewise.
35758         * modules/unictype/scripts-tests (Files): Likewise.
35759         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
35760         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
35761         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
35762         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
35763         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
35764         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
35765         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
35766         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
35767         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
35768         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
35769         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
35770         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
35771         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
35772         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
35773         * modules/uninorm/composition-tests (Files): Likewise.
35774         * modules/uninorm/decomposing-form-tests (Files): Likewise.
35775         * modules/uninorm/decomposition-tests (Files): Likewise.
35776         * modules/uninorm/filter-tests (Files): Likewise.
35777         * modules/uninorm/nfc-tests (Files): Likewise.
35778         * modules/uninorm/nfd-tests (Files): Likewise.
35779         * modules/uninorm/nfkc-tests (Files): Likewise.
35780         * modules/uninorm/nfkd-tests (Files): Likewise.
35781         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
35782         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
35783         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
35784         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
35785         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
35786         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
35787         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
35788         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35789         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
35790         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
35791         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
35792         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
35793         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35794         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
35795         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
35796         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
35797         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
35798         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35799         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
35800         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
35801         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
35802         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
35803         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35804         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
35805         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
35806         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
35807         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
35808         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
35809         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
35810         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
35811         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
35812         * modules/uniwidth/u8-width-tests (Files): Likewise.
35813         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
35814         * modules/uniwidth/u16-width-tests (Files): Likewise.
35815         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
35816         * modules/uniwidth/u32-width-tests (Files): Likewise.
35817         * modules/uniwidth/width-tests (Files): Likewise.
35818         * modules/unlink-tests (Files): Likewise.
35819         * modules/unsetenv-tests (Files): Likewise.
35820         * modules/usleep-tests (Files): Likewise.
35821         * modules/utimens-tests (Files): Likewise.
35822         * modules/utimensat-tests (Files): Likewise.
35823         * modules/vasnprintf-posix-tests (Files): Likewise.
35824         * modules/vasnprintf-tests (Files): Likewise.
35825         * modules/vasprintf-posix-tests (Files): Likewise.
35826         * modules/vasprintf-tests (Files): Likewise.
35827         * modules/vdprintf-posix-tests (Files): Likewise.
35828         * modules/vfprintf-posix-tests (Files): Likewise.
35829         * modules/vprintf-posix-tests (Files): Likewise.
35830         * modules/vsnprintf-posix-tests (Files): Likewise.
35831         * modules/vsnprintf-tests (Files): Likewise.
35832         * modules/vsprintf-posix-tests (Files): Likewise.
35833         * modules/wcrtomb-tests (Files): Likewise.
35834         * modules/wcsnrtombs-tests (Files): Likewise.
35835         * modules/wcsrtombs-tests (Files): Likewise.
35836         * modules/wctype-tests (Files): Likewise.
35837         * modules/wcwidth-tests (Files): Likewise.
35838         * modules/xmemdup0-tests (Files): Likewise.
35839         * modules/xprintf-posix-tests (Files): Likewise.
35840         * modules/xvasprintf-tests (Files): Likewise.
35841
35842 2009-12-24  Eric Blake  <ebb9@byu.net>
35843
35844         test-nanosleep: fix typo
35845         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
35846         patch.
35847         Reported by Bruno Haible.
35848
35849 2009-12-24  Bruno Haible  <bruno@clisp.org>
35850
35851         Reduce namespace pollution on glibc systems.
35852         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
35853         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
35854         systems.
35855         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
35856         <getopt.h> on glibc systems.
35857         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
35858         systems.
35859         * lib/fcntl.c: Include <unistd.h> here instead.
35860
35861 2009-12-24  Bruno Haible  <bruno@clisp.org>
35862
35863         * lib/stdlib.in.h (includes): Fix typo in today's commit.
35864
35865 2009-12-24  Eric Blake  <ebb9@byu.net>
35866
35867         tests: add signature checks
35868         * tests/signature.h (SIGNATURE_CHECK): New file.
35869         * modules/atexit-tests (Files): Use it.
35870         * modules/btowc-tests (Files): Likewise.
35871         * modules/canonicalize-lgpl-tests (Files): Likewise.
35872         * modules/ceilf-tests (Files): Likewise.
35873         * modules/ceill-tests (Files): Likewise.
35874         * modules/chown-tests (Files): Likewise.
35875         * modules/dprintf-posix-tests (Files): Likewise.
35876         * modules/dup2-tests (Files): Likewise.
35877         * modules/dup3-tests (Files): Likewise.
35878         * modules/duplocale-tests (Files): Likewise.
35879         * modules/fchdir-tests (Files): Likewise.
35880         * modules/fcntl-tests (Files): Likewise.
35881         * modules/fdopendir-tests (Files): Likewise.
35882         * modules/fflush-tests (Files): Likewise.
35883         * modules/flock-tests (Files): Likewise.
35884         * modules/floorf-tests (Files): Likewise.
35885         * modules/floorl-tests (Files): Likewise.
35886         * modules/fnmatch-tests (Files): Likewise.
35887         * modules/fopen-tests (Files): Likewise.
35888         * modules/fprintf-posix-tests (Files): Likewise.
35889         * modules/freopen-tests (Files): Likewise.
35890         * modules/frexp-nolibm-tests (Files): Likewise.
35891         * modules/frexp-tests (Files): Likewise.
35892         * modules/frexpl-nolibm-tests (Files): Likewise.
35893         * modules/frexpl-tests (Files): Likewise.
35894         * modules/fseek-tests (Files): Likewise.
35895         * modules/fseeko-tests (Files): Likewise.
35896         * modules/fsync-tests (Files): Likewise.
35897         * modules/ftell-tests (Files): Likewise.
35898         * modules/ftello-tests (Files): Likewise.
35899         * modules/futimens-tests (Files): Likewise.
35900         * modules/getaddrinfo-tests (Files): Likewise.
35901         * modules/getcwd-tests (Files): Likewise.
35902         * modules/getdelim-tests (Files): Likewise.
35903         * modules/getdtablesize-tests (Files): Likewise.
35904         * modules/getgroups-tests (Files): Likewise.
35905         * modules/gethostname-tests (Files): Likewise.
35906         * modules/getline-tests (Files): Likewise.
35907         * modules/getopt-posix-tests (Files): Likewise.
35908         * modules/gettimeofday-tests (Files): Likewise.
35909         * modules/glob-tests (Files): Likewise.
35910         * modules/iconv-tests (Files): Likewise.
35911         * modules/inet_ntop-tests (Files): Likewise.
35912         * modules/inet_pton-tests (Files): Likewise.
35913         * modules/isblank-tests (Files): Likewise.
35914         * modules/lchown-tests (Files): Likewise.
35915         * modules/ldexpl-tests (Files): Likewise.
35916         * modules/link-tests (Files): Likewise.
35917         * modules/linkat-tests (Files): Likewise.
35918         * modules/lseek-tests (Files): Likewise.
35919         * modules/lstat-tests (Files): Likewise.
35920         * modules/mbrtowc-tests (Files): Likewise.
35921         * modules/mbsinit-tests (Files): Likewise.
35922         * modules/mbsnrtowcs-tests (Files): Likewise.
35923         * modules/mbsrtowcs-tests (Files): Likewise.
35924         * modules/memchr-tests (Files): Likewise.
35925         * modules/memcmp-tests (Files): Likewise.
35926         * modules/memmem-tests (Files): Likewise.
35927         * modules/memrchr-tests (Files): Likewise.
35928         * modules/mkdir-tests (Files): Likewise.
35929         * modules/mkfifo-tests (Files): Likewise.
35930         * modules/mkfifoat-tests (Files): Likewise.
35931         * modules/mknod-tests (Files): Likewise.
35932         * modules/nanosleep-tests (Files): Likewise.
35933         * modules/nl_langinfo-tests (Files): Likewise.
35934         * modules/obstack-printf-tests (Files): Likewise.
35935         * modules/open-tests (Files): Likewise.
35936         * modules/openat-tests (Files): Likewise.
35937         * modules/perror-tests (Files): Likewise.
35938         * modules/pipe2-tests (Files): Likewise.
35939         * modules/poll-tests (Files): Likewise.
35940         * modules/popen-tests (Files): Likewise.
35941         * modules/posix_spawn-tests (Files): Likewise.
35942         * modules/posix_spawnp-tests (Files): Likewise.
35943         * modules/pread-tests (Files): Likewise.
35944         * modules/printf-posix-tests (Files): Likewise.
35945         * modules/pty-tests (Files): Likewise.
35946         * modules/random_r-tests (Files): Likewise.
35947         * modules/rawmemchr-tests (Files): Likewise.
35948         * modules/readlink-tests (Files): Likewise.
35949         * modules/remove-tests (Files): Likewise.
35950         * modules/rename-tests (Files): Likewise.
35951         * modules/renameat-tests (Files): Likewise.
35952         * modules/rmdir-tests (Files): Likewise.
35953         * modules/round-tests (Files): Likewise.
35954         * modules/roundf-tests (Files): Likewise.
35955         * modules/roundl-tests (Files): Likewise.
35956         * modules/select-tests (Files): Likewise.
35957         * modules/setenv-tests (Files): Likewise.
35958         * modules/sigaction-tests (Files): Likewise.
35959         * modules/sleep-tests (Files): Likewise.
35960         * modules/snprintf-posix-tests (Files): Likewise.
35961         * modules/snprintf-tests (Files): Likewise.
35962         * modules/sprintf-posix-tests (Files): Likewise.
35963         * modules/stat-tests (Files): Likewise.
35964         * modules/strcasestr-tests (Files): Likewise.
35965         * modules/strchrnul-tests (Files): Likewise.
35966         * modules/strerror-tests (Files): Likewise.
35967         * modules/strsignal-tests (Files): Likewise.
35968         * modules/strstr-tests (Files): Likewise.
35969         * modules/strtod-tests (Files): Likewise.
35970         * modules/strverscmp-tests (Files): Likewise.
35971         * modules/symlink-tests (Files): Likewise.
35972         * modules/symlinkat-tests (Files): Likewise.
35973         * modules/times-tests (Files): Likewise.
35974         * modules/trunc-tests (Files): Likewise.
35975         * modules/truncf-tests (Files): Likewise.
35976         * modules/truncl-tests (Files): Likewise.
35977         * modules/tsearch-tests (Files): Likewise.
35978         * modules/uname-tests (Files): Likewise.
35979         * modules/unlink-tests (Files): Likewise.
35980         * modules/unsetenv-tests (Files): Likewise.
35981         * modules/usleep-tests (Files): Likewise.
35982         * modules/utimensat-tests (Files): Likewise.
35983         * modules/vasprintf-tests (Files): Likewise.
35984         * modules/vdprintf-posix-tests (Files): Likewise.
35985         * modules/vfprintf-posix-tests (Files): Likewise.
35986         * modules/vprintf-posix-tests (Files): Likewise.
35987         * modules/vsnprintf-posix-tests (Files): Likewise.
35988         * modules/vsnprintf-tests (Files): Likewise.
35989         * modules/vsprintf-posix-tests (Files): Likewise.
35990         * modules/wcrtomb-tests (Files): Likewise.
35991         * modules/wcsnrtombs-tests (Files): Likewise.
35992         * modules/wcsrtombs-tests (Files): Likewise.
35993         * modules/wcwidth-tests (Files): Likewise.
35994         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
35995         * tests/test-isinf.c (isinf): Likewise.
35996         * tests/test-isnan.c (isnan): Likewise.
35997         * tests/test-signbit.c (signbit): Likewise.
35998         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
35999         declaration, either as macro or with correct signature.
36000         (select): Ensure function under test is declared with correct
36001         signature in correct header.
36002         * tests/test-atexit.c (atexit): Likewise.
36003         * tests/test-btowc.c (btowc): Likewise.
36004         * tests/test-canonicalize-lgpl.c (realpath)
36005         (canonicalize_file_name): Likewise.
36006         * tests/test-ceilf1.c (ceilf): Likewise.
36007         * tests/test-ceill.c (ceill): Likewise.
36008         * tests/test-chown.c (chown): Likewise.
36009         * tests/test-dprintf-posix.c (dprintf): Likewise.
36010         * tests/test-dup2.c (dup2): Likewise.
36011         * tests/test-dup3.c (dup3): Likewise.
36012         * tests/test-duplocale.c (duplocale): Likewise.
36013         * tests/test-fchdir.c (fchdir): Likewise.
36014         * tests/test-fchownat.c (fchownat): Likewise.
36015         * tests/test-fcntl.c (fcntl): Likewise.
36016         * tests/test-fdopendir.c (fdopendir): Likewise.
36017         * tests/test-fflush.c (fflush): Likewise.
36018         * tests/test-flock.c (flock): Likewise.
36019         * tests/test-floorf1.c (floorf): Likewise.
36020         * tests/test-floorl.c (floorl): Likewise.
36021         * tests/test-fnmatch.c (fnmatch): Likewise.
36022         * tests/test-fopen.c (fopen): Likewise.
36023         * tests/test-fprintf-posix.c (fprintf): Likewise.
36024         * tests/test-freopen.c (freopen): Likewise.
36025         * tests/test-frexp.c (frexp): Likewise.
36026         * tests/test-frexpl.c (frexpl): Likewise.
36027         * tests/test-fseek.c (fseek): Likewise.
36028         * tests/test-fseeko.c (fseeko): Likewise.
36029         * tests/test-fstatat.c (fstatat): Likewise.
36030         * tests/test-fsync.c (fsync): Likewise.
36031         * tests/test-ftell.c (ftell): Likewise.
36032         * tests/test-ftello.c (ftello): Likewise.
36033         * tests/test-futimens.c (futimens): Likewise.
36034         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36035         (gai_strerror): Likewise.
36036         * tests/test-getcwd.c (getcwd): Likewise.
36037         * tests/test-getdelim.c (getdelim): Likewise.
36038         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36039         * tests/test-getgroups.c (getgroups): Likewise.
36040         * tests/test-gethostname.c (gethostname): Likewise.
36041         * tests/test-getline.c (getline): Likewise.
36042         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36043         Likewise.
36044         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36045         * tests/test-glob.c (glob, globfree): Likewise.
36046         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36047         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36048         * tests/test-inet_pton.c (inet_pton): Likewise.
36049         * tests/test-isblank.c (isblank): Likewise.
36050         * tests/test-lchown.c (lchown): Likewise.
36051         * tests/test-ldexpl.c (ldexpl): Likewise.
36052         * tests/test-link.c (link): Likewise.
36053         * tests/test-linkat.c (linkat): Likewise.
36054         * tests/test-lseek.c (lseek): Likewise.
36055         * tests/test-lstat.c (lstat): Likewise.
36056         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36057         * tests/test-mbsinit.c (mbsinit): Likewise.
36058         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36059         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36060         * tests/test-memchr.c (memchr): Likewise.
36061         * tests/test-memcmp.c (memcmp): Likewise.
36062         * tests/test-memmem.c (memmem): Likewise.
36063         * tests/test-memrchr.c (memrchr): Likewise.
36064         * tests/test-mkdir.c (mkdir): Likewise.
36065         * tests/test-mkdirat.c (mkdirat): Likewise.
36066         * tests/test-mkfifo.c (mkfifo): Likewise.
36067         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36068         * tests/test-mknod.c (mknod): Likewise.
36069         * tests/test-nanosleep.c (nanosleep): Likewise.
36070         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36071         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36072         Likewise.
36073         * tests/test-open.c (open): Likewise.
36074         * tests/test-openat.c (openat): Likewise.
36075         * tests/test-perror.c (perror): Likewise.
36076         * tests/test-pipe2.c (pipe2): Likewise.
36077         * tests/test-poll.c (poll): Likewise.
36078         * tests/test-popen.c (popen, pclose): Likewise.
36079         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36080         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36081         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36082         (posix_spawn_file_actions_destroy)
36083         (posix_spawn_file_actions_addclose)
36084         (posix_spawn_file_actions_addopen)
36085         (posix_spawn_file_actions_adddup2): Likewise.
36086         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36087         * tests/test-pread.c (pread): Likewise.
36088         * tests/test-printf-posix.c (printf): Likewise.
36089         * tests/test-pty.c (openpty, forkpty): Likewise.
36090         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36091         (random_r): Likewise.
36092         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36093         * tests/test-readlink.c (readlink): Likewise.
36094         * tests/test-remove.c (remove): Likewise.
36095         * tests/test-rename.c (rename): Likewise.
36096         * tests/test-renameat.c (renameat): Likewise.
36097         * tests/test-rmdir.c (rmdir): Likewise.
36098         * tests/test-round1.c (round): Likewise.
36099         * tests/test-roundf1.c (roundf): Likewise.
36100         * tests/test-roundl.c (roundl): Likewise.
36101         * tests/test-setenv.c (setenv): Likewise.
36102         * tests/test-sigaction.c (sigaction): Likewise.
36103         * tests/test-sleep.c (sleep): Likewise.
36104         * tests/test-snprintf.c (snprintf): Likewise.
36105         * tests/test-sprintf-posix.c (sprintf): Likewise.
36106         * tests/test-stat.c (stat): Likewise.
36107         * tests/test-stpncpy.c (stpncpy): Likewise.
36108         * tests/test-strcasestr.c (strcasestr): Likewise.
36109         * tests/test-strchrnul.c (strchrnul): Likewise.
36110         * tests/test-strerror.c (strerror): Likewise.
36111         * tests/test-strsignal.c (strsignal): Likewise.
36112         * tests/test-strstr.c (strstr): Likewise.
36113         * tests/test-strtod.c (strtod): Likewise.
36114         * tests/test-strverscmp.c (strverscmp): Likewise.
36115         * tests/test-symlink.c (symlink): Likewise.
36116         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36117         * tests/test-times.c (times): Likewise.
36118         * tests/test-trunc1.c (trunc): Likewise.
36119         * tests/test-truncf1.c (truncf): Likewise.
36120         * tests/test-truncl.c (truncl): Likewise.
36121         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36122         Likewise.
36123         * tests/test-uname.c (uname): Likewise.
36124         * tests/test-unlink.c (unlink): Likewise.
36125         * tests/test-unlinkat.c (unlinkat): Likewise.
36126         * tests/test-unsetenv.c (unsetenv): Likewise.
36127         * tests/test-usleep.c (usleep): Likewise.
36128         * tests/test-utimensat.c (utimensat): Likewise.
36129         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36130         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36131         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36132         * tests/test-vprintf-posix.c (vprintf): Likewise.
36133         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36134         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36135         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36136         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36137         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36138         * tests/test-wcwidth.c (wcwidth): Likewise.
36139
36140         build: pull in conditional headers during GNULIB_POSIXCHECK
36141         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36142         definitions from any conditionally-included headers.
36143         * lib/stdlib.in.h (includes): Likewise.
36144         * lib/unistd.in.h (includes): Likewise.
36145
36146 2009-12-24  Bruno Haible  <bruno@clisp.org>
36147
36148         * tests/test-argv-iter.c: Include header file being tested immediately
36149         after config.h.
36150         * tests/test-base64.c: Likewise.
36151         * tests/test-flock.c: Likewise.
36152         * tests/test-fsync.c: Likewise.
36153         * tests/test-getdate.c: Likewise.
36154         * tests/test-getndelim2.c: Likewise.
36155         * tests/test-isfinite.c: Likewise.
36156         * tests/test-isinf.c: Likewise.
36157         * tests/test-strerror.c: Likewise.
36158         * tests/test-strsignal.c: Likewise.
36159
36160 2009-12-23  Eric Blake  <ebb9@byu.net>
36161
36162         unistd: work around cygwin bug
36163         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36164         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36165         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36166
36167 2009-12-23  Bruno Haible  <bruno@clisp.org>
36168
36169         localename: More tests.
36170         * tests/test-localename.c (SIZEOF): New macro.
36171         (categories): New variable.
36172         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36173         test_locale_name_default): Add test w.r.t. thread locale.
36174         (test_locale_name_thread): New function.
36175         (main): Invoke it.
36176
36177         localename: Make aware of thread locale.
36178         * lib/localename.h (gl_locale_name_thread): New declaration.
36179         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36180         behaviour with respect to thread locale.
36181         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36182         <langinfo.h>, glthread/lock.h.
36183         (SIZE_BITS): New macro.
36184         (string_hash): New function.
36185         (struct hash_node): New type.
36186         (HASH_TABLE_SIZE): New macro.
36187         (struniq_hash_table, struniq_lock): New variables.
36188         (struniq): New function.
36189         (gl_locale_name_thread): New function.
36190         (gl_locale_name): Invoke it.
36191         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36192         * modules/localename (Depends-on): Add lock.
36193         Reported by Mike Gran <spk121@yahoo.com>.
36194
36195 2009-12-23  Eric Blake  <ebb9@byu.net>
36196
36197         va-args: new module
36198         * modules/va-args: New file.
36199         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36200         * MODULES.html.sh (Core language properties): Mention it.
36201
36202         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36203         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36204         named alias for __attribute__((__unused__)).
36205         * lib/chown.c: Update client.
36206         * lib/fchmodat.c: Likewise.
36207         * lib/fts.c: Likewise.
36208         * lib/getdate.y: Likewise.
36209         * lib/getgroups.c: Likewise.
36210         * lib/getopt.c: Likewise.
36211         * lib/getugroups.c: Likewise.
36212         * lib/mkdir.c: Likewise.
36213         * lib/mkfifo.c: Likewise.
36214         * lib/mkfifoat.c: Likewise.
36215         * lib/mknod.c: Likewise.
36216         * lib/mknodat.c: Likewise.
36217         * lib/readlink.c: Likewise.
36218         * lib/se-context.in.h: Likewise.
36219         * lib/se-selinux.in.h: Likewise.
36220         * lib/sockets.c: Likewise.
36221         * lib/symlink.c: Likewise.
36222         * lib/symlinkat.c: Likewise.
36223         * lib/unicodeio.c: Likewise.
36224         * lib/unistr.h: Likewise.
36225         * tests/test-areadlink.c: Likewise.
36226         * tests/test-areadlinkat.c: Likewise.
36227         * tests/test-filenamecat.c: Likewise.
36228         * tests/test-fseeko.c: Likewise.
36229         * tests/test-ftello.c: Likewise.
36230         * tests/test-getdate.c: Likewise.
36231         * tests/test-getgroups.c: Likewise.
36232         * tests/test-gethostname.c: Likewise.
36233         * tests/test-quotearg.c: Likewise.
36234         * tests/test-version-etc.c: Likewise.
36235         * tests/test-xalloc-die.c: Likewise.
36236         * tests/test-xfprintf-posix.c: Likewise.
36237         * tests/test-xprintf-posix.c: Likewise.
36238         * tests/test-xvasprintf.c: Likewise.
36239
36240         tests: avoid compiler warnings
36241         * tests/test-fcntl.c (main): Delete unused parameters.
36242         * tests/test-freopen-safer.c (main): Likewise.
36243         * tests/test-xalloc-die.c (main): Mark unused parameters.
36244         * tests/test-fseeko.c (main): Likewise.
36245         * tests/test-ftello.c (main): Likewise.
36246         * tests/test-nanosleep.c (main): Avoid declaration warning.
36247         * tests/test-sleep.c (main): Likewise.
36248         * tests/test-unsetenv.c (main): Silence warning about string
36249         literal.
36250         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36251
36252 2009-12-23  Bruno Haible  <bruno@clisp.org>
36253
36254         * tests/test-localename.c (test_locale_name): New function, extracted
36255         from main. Also test mixed situations.
36256         (test_locale_name_posix, test_locale_name_environ,
36257         test_locale_name_default): New functions.
36258         (main): Invoke them all.
36259         * modules/localename-tests (configure.ac): Test for newlocale.
36260
36261 2009-12-23  Bruno Haible  <bruno@clisp.org>
36262
36263         unistd: Ensure getcwd gets declared before being overridden.
36264         * lib/unistd.in.h: Conditionally include <io.h>.
36265
36266 2009-12-22  Bruno Haible  <bruno@clisp.org>
36267
36268         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36269         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36270         (gl_WCHAR_H): Invoke it.
36271         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36272         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36273         Reported by Karl Berry <karl@freefriends.org>.
36274
36275 2009-12-22  Eric Blake  <ebb9@byu.net>
36276
36277         math, unistd: avoid redundant includes
36278         * lib/math.in.h (isnan): No need to re-include <math.h>.
36279         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36280
36281         getsubopt: work around cygwin bug
36282         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36283         avoid conflicting with system getsubopt.
36284         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36285         bug.
36286
36287         getopt: synchronize from glibc
36288         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36289         parameter order.  Adjust all callers.
36290         (_getopt_internal_r, main): Adjust quoting in error messages.
36291         Drop considerations for outdated POSIX 1003.2 error message.
36292         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36293         callers.
36294         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36295
36296         test-getopt: test stderr behavior
36297         * modules/getopt-posix-tests (Depends-on): Add dup2.
36298         * tests/test-getopt.c (ASSERT): Avoid stderr.
36299         (main): Move stderr to a temporary file.
36300         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36301         Instead, add parameter to inform caller if output occurred.
36302         (test_getopt): Adjust all existing tests to expect silence, and
36303         add new tests of leading ":".
36304         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36305         glibc shortcomings with leading "-:" or "+:" in optstring.
36306         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36307         Likewise.
36308         * doc/posix-functions/getopt.texi (getopt): Likewise.
36309
36310         test-getopt: enhance test
36311         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36312         supports optind=0.
36313         * tests/test-getopt.c (OPTIND_MIN): Move...
36314         * tests/test-getopt.h (OPTIND_MIN): ...here.
36315         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36316         Require that optind=0 works, since modern BSD supports it in
36317         addition to optreset, and since coreutils expects it.
36318         (test_getopt_long_only): New test.
36319         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36320         glibc shortcomings with 'W;', and enforcement of optind=0.
36321         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36322         Likewise.
36323
36324 2009-12-21  Bruno Haible  <bruno@clisp.org>
36325
36326         localename: Improvements for MacOS X and Cygwin.
36327         * lib/localename.h (gl_locale_name_environ): New declaration.
36328         * lib/localename.c (gl_locale_name_environ): New function, extracted from
36329         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
36330         (gl_locale_name_posix): Invoke it.
36331         (gl_locale_name_default): Add comments. Use Windows native API also on
36332         Cygwin.
36333
36334 2009-12-21  Bruno Haible  <bruno@clisp.org>
36335
36336         Update list of Win32 locale ids.
36337         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
36338         (LANG_SAMI): Renamed from LANG_SAAMI.
36339         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
36340         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
36341         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
36342         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
36343         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
36344         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
36345         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
36346         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
36347         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
36348         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
36349         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
36350         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
36351         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
36352         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
36353         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
36354         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
36355         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
36356         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
36357         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36358         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36359         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36360         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36361         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36362         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36363         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36364         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36365         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36366         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36367         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36368         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36369         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36370         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36371         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36372         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36373         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36374         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36375         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36376         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36377         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36378         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36379         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36380         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36381         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36382         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36383         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36384         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36385         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36386         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36387         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36388         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36389         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36390         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36391         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36392         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36393         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36394         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
36395         Add more languages and countries for Sami, Sorbian. Add more countries
36396         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
36397         for Pashto. Change country for Syriac, Tswana.
36398
36399 2009-12-21  Eric Blake  <ebb9@byu.net>
36400
36401         test-utimens: avoid spurious failure
36402         * tests/test-chown.h (nap): Factor...
36403         * tests/nap.h: ...into new file.
36404         * tests/test-lchown.h (nap): Avoid duplication.
36405         * tests/test-utimens-common.h (nap): Use shared implementation,
36406         necessary on file systems with 1-second resolution.
36407         * modules/chown-tests (Files): Include new file.
36408         * modules/fdutimensat-tests (Files): Likewise.
36409         * modules/futimens-tests (Files): Likewise.
36410         * modules/lchown-tests (Files): Likewise.
36411         * modules/openat-tests (Files): Likewise.
36412         * modules/utimens-tests (Files): Likewise.
36413         * modules/utimensat-tests (Files): Likewise.
36414
36415 2009-12-19  Eric Blake  <ebb9@byu.net>
36416
36417         futimens, utimensat: work around Linux bug
36418         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
36419         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36420         * lib/utimensat.c (rpl_utimensat): Work around it.
36421         * lib/futimens.c (rpl_futimens): Adjust comment.
36422
36423         utimens: work around Linux ctime bug
36424         * lib/utimens.c (detect_ctime_bug): New helper function.
36425         (update_timespec): Differentiate between workaround needed for
36426         this bug vs. what is needed for systems that lack utimensat.
36427         (fdutimens, lutimens): Work around bug.
36428
36429         utimens: check for ctime update
36430         * tests/test-utimens-common.h (check_ctime): Define.
36431         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
36432         * tests/test-futimens.h (test_futimens): Likewise.
36433         * tests/test-lutimens.h (test_lutimens): Likewise.
36434         * doc/posix-functions/futimens.texi (futimens): Document the bug.
36435         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36436
36437 2009-12-19  Bruno Haible  <bruno@clisp.org>
36438
36439         dprintf-posix: Check against memory leak fixed on 2009-12-15.
36440         * tests/test-dprintf-posix2.sh: New file.
36441         * tests/test-dprintf-posix2.c: New file.
36442         * modules/dprintf-posix-tests (Files): Add them.
36443         (configure.ac): Check for getrlimit and setrlimit.
36444         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36445
36446 2009-12-19  Bruno Haible  <bruno@clisp.org>
36447
36448         fprintf-posix: Check against memory leak fixed on 2009-12-15.
36449         * tests/test-fprintf-posix3.sh: New file.
36450         * tests/test-fprintf-posix3.c: New file.
36451         * modules/fprintf-posix-tests (Files): Add them.
36452         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36453
36454 2009-12-19  Eric Blake  <ebb9@byu.net>
36455
36456         dirfd: fix prototype
36457         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
36458         * lib/dirfd.c (dirfd): Likewise.
36459
36460         canonicalize: reduce memory usage
36461         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
36462         allocation to size.
36463         Reported by Solar Designer <solar@openwall.com>.
36464
36465 2009-12-19  Bruno Haible  <bruno@clisp.org>
36466
36467         New module attribute 'Applicability'.
36468         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
36469         * gnulib-tool: New option --extract-applicability.
36470         (func_usage): Document it.
36471         (sed_extract_prog): Recognize it.
36472         (func_get_applicability): New function.
36473         (func_import): Generalize handling of 'link-warning' module.
36474         * modules/link-warning (Applicability): New section.
36475         * modules/arg-nonnull (Applicability): New section.
36476         Repoted by Simon Josefsson <simon@josefsson.org>.
36477
36478 2009-12-19  Bruno Haible  <bruno@clisp.org>
36479
36480         fflush: tweak
36481         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
36482         * lib/fseeko.c (rpl_fseeko): Likewise.
36483
36484 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
36485
36486         * lib/gl_list.h: Fix typo in comment.
36487
36488 2009-12-16  Eric Blake  <ebb9@byu.net>
36489
36490         fcntl: use to simplify other modules
36491         * modules/cloexec (Depends-on): Add fcntl.
36492         * modules/fchdir (Depends-on): Likewise.
36493         * modules/fd-safer-flag (Depends-on): Likewise.
36494         * modules/unistd-safer (Depends-on): Likewise.
36495         * modules/dup3 (configure.ac): Set module indicator.
36496         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
36497         missing.
36498         * lib/fchdir.c (_gl_register_dup): Fix comment.
36499         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
36500         * lib/dup-safer.c (dup_safer): Likewise.
36501         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
36502         * lib/dup3.c (dup3): Likewise.
36503         * tests/test-fchdir.c (main): Enhance test.
36504         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
36505
36506         fcntl: port portions of fcntl to mingw
36507         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36508         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36509         replacement for mingw.
36510         * modules/fcntl (Description): Update.
36511         (Depends-on): Add dup2.
36512         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36513         * modules/fcntl-h (Makefile.am): Substitute it.
36514         * lib/fcntl.in.h (fcntl): Update declaration.
36515         (F_DUPFD, F_GETFD): New macros, when needed.
36516         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36517         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36518         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36519         we now guarantee.
36520
36521         fcntl: work around cygwin bug in F_DUPFD
36522         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36523         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36524         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36525         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36526         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36527
36528         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36529         * modules/fcntl (Files): List new files.
36530         (configure.ac): Run a test.
36531         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36532         * lib/fcntl.c (rpl_fcntl): Likewise.
36533         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36534         (gl_FCNTL_H): Always replace fcntl.h.
36535         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36536         * lib/fcntl.in.h (fcntl): Declare replacement.
36537         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36538         needed, plus a witness.
36539         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36540         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36541         * tests/test-fcntl.c: New file.
36542         * modules/fcntl-tests: Likewise.
36543
36544         binary-io: avoid potential compilation warning
36545         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36546         directives.
36547
36548         fflush: avoid compilation error on NetBSD
36549         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36550         between off_t and fpos_t, since the latter is sometimes a struct.
36551         * lib/fseeko.c (rpl_fseeko): Likewise.
36552         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36553
36554 2009-12-15  Eric Blake  <ebb9@byu.net>
36555
36556         fcntl-h, stdio, sys_ioctl: fix declarations
36557         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36558         function must not take arguments.
36559         * lib/sys_ioctl.in.h (ioctl): Likewise.
36560         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36561         (open): Add a link warning.
36562
36563 2009-12-15  Jim Meyering  <meyering@redhat.com>
36564
36565         areadlink, areadlink-with-size: relax license to LGPLv2+
36566         * modules/areadlink (License): Relax to LGPLv2+.
36567         * modules/areadlink-with-size (License): Likewise.
36568
36569 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36570             Bruno Haible  <bruno@clisp.org>
36571
36572         *printf: Fix memory leak.
36573         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36574         * lib/vfprintf.c (vfprintf): Likewise.
36575         * lib/dprintf.c (dprintf): Likewise.
36576         * lib/vdprintf.c (vdprintf): Likewise.
36577
36578 2009-12-14  Eric Blake  <ebb9@byu.net>
36579
36580         accept4: adjust module dependencies
36581         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36582
36583         utimens: one more try at avoiding compiler warning
36584         * lib/utimens.c (lutimens): Lower scope of result.
36585
36586 2009-12-13  Bruno Haible  <bruno@clisp.org>
36587
36588         Move the malloc checking from module 'list' to new module 'xlist'.
36589         * modules/xlist: New file.
36590         * lib/gl_xlist.h: New file.
36591         * lib/gl_xlist.c: New file.
36592         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36593         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36594         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36595         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36596         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36597         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36598         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36599         gl_sortedlist_nx_add): New declarations.
36600         (struct gl_list_implementation): Rename and change methods accordingly.
36601         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
36602         (gl_list_nx_create): Renamed from gl_list_create.
36603         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36604         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36605         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36606         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36607         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36608         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36609         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36610         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36611         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
36612         gl_list_create_empty.
36613         (gl_list_nx_create): Renamed from gl_list_create.
36614         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36615         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36616         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36617         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36618         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36619         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36620         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36621         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36622         * lib/gl_array_list.c: Don't include xalloc.h.
36623         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36624         NULL upon out-of-memory.
36625         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36626         out-of-memory.
36627         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36628         Change return type to 'int'.
36629         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36630         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36631         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36632         upon out-of-memory.
36633         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36634         upon out-of-memory.
36635         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36636         upon out-of-memory.
36637         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36638         upon out-of-memory.
36639         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36640         out-of-memory.
36641         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36642         Update.
36643         (gl_array_list_implementation): Update.
36644         * lib/gl_carray_list.c: Don't include xalloc.h.
36645         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36646         Return NULL upon out-of-memory.
36647         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36648         out-of-memory.
36649         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36650         Change return type to 'int'.
36651         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36652         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36653         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36654         upon out-of-memory.
36655         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36656         upon out-of-memory.
36657         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
36658         out-of-memory.
36659         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
36660         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
36661         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
36662         Update.
36663         (gl_carray_list_implementation): Update.
36664         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
36665         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
36666         gl_linked_create_empty. Return NULL upon out-of-memory.
36667         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
36668         out-of-memory.
36669         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
36670         Change return type to 'int'. Return -1 upon out-of-memory.
36671         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
36672         out-of-memory.
36673         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
36674         upon out-of-memory.
36675         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
36676         upon out-of-memory.
36677         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
36678         NULL upon out-of-memory.
36679         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
36680         upon out-of-memory.
36681         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
36682         out-of-memory.
36683         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
36684         Update.
36685         * lib/gl_linked_list.c: Don't include xalloc.h.
36686         (gl_linked_list_implementation): Update.
36687         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
36688         (add_to_bucket): Change return type to 'int'.
36689         (gl_linkedhash_list_implementation): Update.
36690         * lib/gl_anytree_list1.h (free_subtree): New function.
36691         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
36692         gl_tree_create_empty. Return NULL upon out-of-memory.
36693         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
36694         Change return type to 'int'. Return -1 upon out-of-memory.
36695         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
36696         out-of-memory.
36697         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
36698         (gl_tree_remove_node): New function, moved here from
36699         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
36700         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
36701         Update.
36702         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
36703         malloc, not xmalloc. Return NULL upon out-of-memory.
36704         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36705         out-of-memory.
36706         (gl_tree_remove_node_from_tree): New function, extracted from
36707         gl_tree_remove_node.
36708         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36709         upon out-of-memory.
36710         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36711         out-of-memory.
36712         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36713         upon out-of-memory.
36714         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36715         upon out-of-memory.
36716         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36717         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
36718         not xmalloc. Return NULL upon out-of-memory.
36719         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36720         out-of-memory.
36721         (gl_tree_remove_node_from_tree): New function, extracted from
36722         gl_tree_remove_node.
36723         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36724         upon out-of-memory.
36725         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36726         out-of-memory.
36727         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36728         upon out-of-memory.
36729         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36730         upon out-of-memory.
36731         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36732         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
36733         gl_anytree_list1.h before gl_anyavltree_list2.h.
36734         (gl_avltree_list_implementation): Update.
36735         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
36736         gl_anytree_list1.h before gl_anyavltree_list2.h.
36737         (gl_rbtree_list_implementation): Update.
36738         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
36739         Change return type to 'int'. Return -1 upon out-of-memory. Use
36740         __builtin_expect.
36741         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
36742         (gl_avltreehash_list_implementation): Update.
36743         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
36744         (gl_rbtreehash_list_implementation): Update.
36745         * modules/array-list (Depends-on): Remove xalloc.
36746         * modules/carray-list (Depends-on): Likewise.
36747         * modules/linked-list (Depends-on): Likewise.
36748         * modules/linkedhash-list (Depends-on): Likewise.
36749         * modules/avltree-list (Depends-on): Likewise.
36750         * modules/rbtree-list (Depends-on): Likewise.
36751         * modules/avltreehash-list (Depends-on): Likewise.
36752         * modules/rbtreehash-list (Depends-on): Likewise.
36753
36754         * modules/xsublist: New file.
36755         * lib/gl_xsublist.h: New file.
36756         * lib/gl_xsublist.c: New file.
36757         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
36758         (gl_sublist_nx_create): New declaration.
36759         * lib/gl_sublist.c: Don't include xalloc.h.
36760         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
36761         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
36762         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
36763         Change return type to 'int'. Return -1 upon out-of-memory.
36764         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
36765         upon out-of-memory.
36766         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
36767         NULL upon out-of-memory.
36768         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
36769         upon out-of-memory.
36770         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
36771         NULL upon out-of-memory.
36772         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
36773         NULL upon out-of-memory.
36774         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
36775         upon out-of-memory.
36776         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
36777         (gl_sublist_list_implementation): Update.
36778         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
36779         upon out-of-memory.
36780         * modules/sublist (Depends-on): Remove xalloc.
36781
36782         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
36783         * tests/test-carray_list.c: Likewise.
36784         * tests/test-linked_list.c: Likewise.
36785         * tests/test-linkedhash_list.c: Likewise.
36786         * tests/test-avltree_list.c: Likewise.
36787         * tests/test-rbtree_list.c: Likewise.
36788         * tests/test-avltreehash_list.c: Likewise.
36789         * tests/test-rbtreehash_list.c: Likewise.
36790         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
36791         * modules/carray-list-tests (Makefile.am): Likewise.
36792         * modules/linked-list-tests (Makefile.am): Likewise.
36793         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36794         * modules/avltree-list-tests (Makefile.am): Likewise.
36795         * modules/rbtree-list-tests (Makefile.am): Likewise.
36796         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36797         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36798
36799         * NEWS: Mention the changes.
36800
36801         * lib/clean-temp.c: Include gl_xlist.h.
36802         * modules/clean-temp (Depends-on): Add xlist.
36803
36804         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
36805         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
36806
36807         * tests/test-array_oset.c: Include gl_xlist.h.
36808         * modules/array-oset-tests (Depends-on): Add xlist.
36809
36810         Reported by José E. Marchesi <jemarch@gnu.org>.
36811
36812 2009-12-13  Bruno Haible  <bruno@clisp.org>
36813
36814         Move the malloc checking from module 'oset' to new module 'xoset'.
36815         * modules/xoset: New file.
36816         * lib/gl_xoset.h: New file.
36817         * lib/gl_xoset.c: New file.
36818         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
36819         declarations.
36820         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
36821         (struct gl_oset_implementation): Rename and change methods accordingly.
36822         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
36823         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36824         'int'. Mark as __warn_unused_result__.
36825         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
36826         gl_oset_create_empty.
36827         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36828         'int'.
36829         * lib/gl_array_oset.c: Don't include xalloc.h.
36830         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
36831         malloc, not xmalloc.
36832         (grow): Change return type to 'int'. Don't call xalloc_die.
36833         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
36834         to 'int'.
36835         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
36836         'int'.
36837         (gl_array_oset_implementation): Update.
36838         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
36839         gl_tree_create_empty.
36840         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
36841         'int'.
36842         * lib/gl_avltree_oset.c: Don't include xalloc.h.
36843         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36844         xmalloc.
36845         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36846         not xmalloc.
36847         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36848         xmalloc.
36849         (gl_avltree_oset_implementation): Update.
36850         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
36851         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36852         xmalloc.
36853         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36854         not xmalloc.
36855         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36856         xmalloc.
36857         (gl_rbtree_oset_implementation): Update.
36858         * modules/array-oset (Depends-on): Remove xalloc.
36859         * modules/avltree-oset (Depends-on): Likewise.
36860         * modules/rbtree-oset (Depends-on): Likewise.
36861         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
36862         * tests/test-avltree_oset.c: Likewise.
36863         * tests/test-rbtree_oset.c: Likewise.
36864         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
36865         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
36866         * modules/rbtree-oset-tests (Makefile.am): Likewise.
36867         * NEWS: Mention the change.
36868
36869 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
36870
36871         maint.mk: allow a project to override release-prep commands
36872         * top/maint.mk (alpha, beta, stable): Move release-preparatory
36873         commands into a new rule.
36874         (release-prep): New rule.
36875         (release-prep-hook): New overridable variable.
36876
36877 2009-12-13  Bruno Haible  <bruno@clisp.org>
36878
36879         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
36880
36881 2009-12-13  Jim Meyering  <meyering@redhat.com>
36882
36883         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
36884         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
36885
36886 2009-12-12  Bruno Haible  <bruno@clisp.org>
36887
36888         duplocale: Tweak.
36889         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
36890
36891 2009-12-12  Karl Berry  <karl@gnu.org>
36892
36893         * config/srclist.txt (strtoll.c): tab changes, no more sync.
36894
36895 2009-12-12  Bruno Haible  <bruno@clisp.org>
36896
36897         * m4/po.m4: Undo incorrect untabification.
36898
36899 2009-12-12  Bruno Haible  <bruno@clisp.org>
36900
36901         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
36902         * modules/c-strtod (Depends-on): Add locale.
36903         * modules/c-strtold (Depends-on): Likewise.
36904
36905 2009-12-12  Bruno Haible  <bruno@clisp.org>
36906
36907         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
36908
36909 2009-12-11  Eric Blake  <ebb9@byu.net>
36910
36911         setenv: relax requirement in light of POSIX ruling
36912         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
36913         not NULL.
36914         * tests/test-setenv.c (main): Relax test.
36915         * tests/test-unsetenv.c (main): Likewise.
36916         * doc/posix-functions/setenv.texi (setenv): Document this.
36917         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
36918
36919 2009-12-11  Bruno Haible  <bruno@clisp.org>
36920
36921         New module 'fd-safer-flag'.
36922         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
36923         * lib/dup-safer.c (dup_safer_flag): Remove function.
36924         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
36925         * lib/fd-safer.c (fd_safer_flag): Remove function.
36926         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
36927         * modules/cloexec (configure.ac): Drop indicator macro.
36928         * modules/fd-safer-flag: New file.
36929         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
36930         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
36931         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
36932
36933 2009-12-11  Bruno Haible  <bruno@clisp.org>
36934
36935         Tests for module 'nl_langinfo'.
36936         * modules/nl_langinfo-tests: New file.
36937         * tests/test-nl_langinfo.sh: New file.
36938         * tests/test-nl_langinfo.c: New file.
36939
36940         New module 'nl_langinfo'.
36941         * lib/nl_langinfo.c: New file.
36942         * m4/nl_langinfo.m4: New file.
36943         * modules/nl_langinfo: New file.
36944         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
36945
36946 2009-12-11  Bruno Haible  <bruno@clisp.org>
36947
36948         Tests for module 'langinfo'.
36949         * modules/langinfo-tests: New file.
36950         * tests/test-langinfo.c: New file.
36951
36952         New module 'langinfo'.
36953         * lib/langinfo.in.h: New file.
36954         * m4/langinfo_h.m4: New file.
36955         * modules/langinfo: New file.
36956         * doc/posix-headers/langinfo.texi: Mention the new module.
36957
36958 2009-12-11  Bruno Haible  <bruno@clisp.org>
36959
36960         * lib/config.charset: Untabify.
36961
36962 2009-12-11  Bruno Haible  <bruno@clisp.org>
36963
36964         * modules/unistd-safer (configure.ac): Drop indicator macro.
36965
36966 2009-12-11  Bruno Haible  <bruno@clisp.org>
36967
36968         Move pipe2-safer code to its own file.
36969         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
36970         * lib/pipe-safer.c (pipe2_safer): Remove function.
36971         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
36972         (Makefile.am): Add it to lib_SOURCES.
36973
36974 2009-12-10  Bruno Haible  <bruno@clisp.org>
36975
36976         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
36977
36978 2009-12-10  Bruno Haible  <bruno@clisp.org>
36979
36980         Declare which arguments expect non-NULL values, for GCC and clang.
36981         * build-aux/arg-nonnull.h: New file.
36982         * modules/arg-nonnull: New file.
36983         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
36984         (inet_ntop, inet_pton): Use it.
36985         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
36986         (closedir, dirfd, opendir, scandir, alphasort): Use it.
36987         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
36988         (open, openat): Use it.
36989         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
36990         (fnmatch): Use it.
36991         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
36992         (getopt, getopt_long, getopt_long_only): Use it.
36993         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
36994         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
36995         Use it.
36996         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
36997         (iconv_open): Use it.
36998         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
36999         (strtoimax, strtoumax): Use it.
37000         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37001         (duplocale): Use it.
37002         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37003         (frexp, frexpl): Use it.
37004         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37005         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37006         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37007         (tsearch, tfind, tdelete, twalk): Use it.
37008         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37009         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37010         sigpending): Use it.
37011         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37012         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37013         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37014         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37015         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37016         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37017         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37018         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37019         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37020         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37021         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37022         Use it.
37023         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37024         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37025         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37026         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37027         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37028         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37029         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37030         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37031         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37032         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37033         strtoull, unsetenv): Use it.
37034         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37035         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37036         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37037         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37038         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37039         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37040         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37041         (strcasecmp, strncasecmp): Use it.
37042         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37043         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37044         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37045         rpl_setsockopt): Use it.
37046         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37047         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37048         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37049         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37050         (gettimeofday): Use it.
37051         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37052         (times): Use it.
37053         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37054         (uname): Use it.
37055         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37056         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37057         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37058         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37059         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37060         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37061         unlinkat, write): Use it.
37062         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37063         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37064         * lib/argv-iter.h: Include arg-nonnull.h.
37065         (_ATTRIBUTE_NONNULL_): Remove macro.
37066         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37067         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37068         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37069         optimization.
37070         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37071         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37072         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37073         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37074         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37075         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37076         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37077         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37078         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37079         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37080         * modules/dirent (Depends-on): Add arg-nonnull.
37081         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37082         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37083         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37084         * modules/fnmatch (Depends-on): Add arg-nonnull.
37085         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37086         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37087         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37088         * modules/glob (Depends-on): Add arg-nonnull.
37089         (Makefile.am): Insert arg-nonnull.h into glob.h.
37090         * modules/iconv_open (Depends-on): Add arg-nonnull.
37091         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37092         * modules/inttypes (Depends-on): Add arg-nonnull.
37093         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37094         * modules/locale (Depends-on): Add arg-nonnull.
37095         (Makefile.am): Insert arg-nonnull.h into locale.h.
37096         * modules/math (Depends-on): Add arg-nonnull.
37097         (Makefile.am): Insert arg-nonnull.h into math.h.
37098         * modules/netdb (Depends-on): Add arg-nonnull.
37099         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37100         * modules/search (Depends-on): Add arg-nonnull.
37101         (Makefile.am): Insert arg-nonnull.h into search.h.
37102         * modules/signal (Depends-on): Add arg-nonnull.
37103         (Makefile.am): Insert arg-nonnull.h into signal.h.
37104         * modules/spawn (Depends-on): Add arg-nonnull.
37105         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37106         * modules/stdio (Depends-on): Add arg-nonnull.
37107         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37108         * modules/stdlib (Depends-on): Add arg-nonnull.
37109         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37110         * modules/string (Depends-on): Add arg-nonnull.
37111         (Makefile.am): Insert arg-nonnull.h into string.h.
37112         * modules/strings (Depends-on): Add arg-nonnull.
37113         (Makefile.am): Insert arg-nonnull.h into strings.h.
37114         * modules/sys_socket (Depends-on): Add arg-nonnull.
37115         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37116         * modules/sys_stat (Depends-on): Add arg-nonnull.
37117         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37118         * modules/sys_time (Depends-on): Add arg-nonnull.
37119         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37120         * modules/sys_times (Depends-on): Add arg-nonnull.
37121         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37122         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37123         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37124         * modules/time (Depends-on): Add arg-nonnull.
37125         (Makefile.am): Insert arg-nonnull.h into time.h.
37126         * modules/unistd (Depends-on): Add arg-nonnull.
37127         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37128         * modules/wchar (Depends-on): Add arg-nonnull.
37129         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37130         * modules/argv-iter (Depends-on): Add arg-nonnull.
37131         * tests/test-canonicalize.c (null_ptr): New function.
37132         (main): Use it.
37133         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37134         (main): Use it.
37135         * tests/test-memmem.c (null_ptr): New function.
37136         (main): Use it.
37137         Reported by Jim Meyering.
37138
37139 2009-12-10  Bruno Haible  <bruno@clisp.org>
37140
37141         Use spaces for indentation, not tabs.
37142         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37143         * m4/*.m4: Untabify.
37144         * build-aux/*.h: Untabify.
37145         * tests/**/*.[hc]: Untabify.
37146         * README: New section "Indent with spaces, not TABs", based on
37147         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37148         * NEWS: Mention the change.
37149
37150 2009-12-10  Bruno Haible  <bruno@clisp.org>
37151
37152         pty test: Fix link error.
37153         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37154         test_pty_LDADD.
37155
37156 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37157
37158         * modules/pty: New file.
37159         * modules/pty-tests: New file.
37160         * m4/pty.m4: New file.
37161         * tests/test-pty.c: New file.
37162         * doc/glibc-headers/pty.texi: Modified.
37163         * doc/glibc-functions/forkpty.texi: Modified.
37164         * doc/glibc-functions/openpty.texi: Modified.
37165
37166 2009-12-10  Bruno Haible  <bruno@clisp.org>
37167
37168         Avoid syntax error in C++ mode.
37169         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37170
37171 2009-12-10  Bruno Haible  <bruno@clisp.org>
37172
37173         Use sed with option -e.
37174         * gnulib-tool (func_version, func_emit_copyright_notice,
37175         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37176         option -e to sed.
37177         * modules/link-warning (Makefile.am): Likewise.
37178
37179 2009-12-10  Jim Meyering  <meyering@redhat.com>
37180
37181         mgetgroups: do not write bytes beyond end of malloc'd buffer
37182         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37183         username, we call getgroups with a one-element-shorter buffer,
37184         but still told it the length was original, max_n_groups.
37185
37186 2009-12-09  Eric Blake  <ebb9@byu.net>
37187
37188         cloexec: relax license
37189         * modules/cloexec (Maintainer): Add myself.
37190         (License): Use LGPL, not GPL.
37191
37192         link-warning: optimize generation
37193         * modules/link-warning (Makefile.am): Reduce process usage.
37194
37195 2009-12-09  Bruno Haible  <bruno@clisp.org>
37196
37197         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37198         workaround was added on 2009-11-17.
37199
37200 2009-12-09  Jim Meyering  <meyering@redhat.com>
37201             Bruno Haible  <bruno@clisp.org>
37202
37203         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37204         * modules/link-warning (Makefile.am): Make the comment-removing sed
37205         command more robust in the face of bootstrap-prepended comment lines.
37206
37207 2009-12-09  Bruno Haible  <bruno@clisp.org>
37208
37209         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37210         most one group.
37211
37212 2009-12-09  Simon Josefsson <simon@josefsson.org>
37213             Bruno Haible  <bruno@clisp.org>
37214
37215         * build-aux/link-warning.h: Add copyright notice.
37216         * modules/link-warning (Makefile.am): Generate link-warning.h from
37217         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37218         * NEWS: Mention change in link-warning module.
37219         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37220         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37221         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37222         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37223         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37224         * modules/math (Makefile.am): Add dependency to math.h.
37225         * modules/search (Makefile.am): Add dependency to search.h.
37226         * modules/signal (Makefile.am): Add dependency to signal.h.
37227         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37228         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37229         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37230         * modules/string (Makefile.am): Add dependency to string.h.
37231         * modules/strings (Makefile.am): Add dependency to strings.h.
37232         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37233         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37234         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37235         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37236         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37237         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37238         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37239         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37240         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37241
37242 2009-12-09  Bruno Haible  <bruno@clisp.org>
37243
37244         fchdir: Optimize away rpl_fstat when possible.
37245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37246         REPLACE_OPEN_DIRECTORY.
37247         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37248
37249 2009-12-09  Bruno Haible  <bruno@clisp.org>
37250
37251         * lib/fchdir.c: Update comment.
37252
37253 2009-12-09  Bruno Haible  <bruno@clisp.org>
37254
37255         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37256
37257 2009-12-08  Eric Blake  <ebb9@byu.net>
37258
37259         fchdir: avoid memory leak on re-registration.
37260         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37261
37262 2009-12-08  Jim Meyering  <meyering@redhat.com>
37263
37264         init.sh: avoid Solaris 10 /bin/sh portability problem
37265         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37266         sourced script:
37267           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37268           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37269           bar
37270         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37271         and two tests used that idiom.
37272         * tests/init.sh: Update suggested usage comments.
37273         (path_prepend_): New function, to be used in place
37274         of the --src-path=DIR option.
37275         (setup_): Move PATH-prepending code into path_prepend_.
37276         * tests/test-pread.sh: Adapt to new usage.
37277         * tests/test-xalloc-die.sh: Likewise.
37278
37279 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37280
37281         * doc/gnulib.texi (Glibc pty.h): Add.
37282         * doc/glibc-functions/forkpty.texi: Add.
37283         * doc/glibc-functions/openpty.texi: Add.
37284         Suggested by Bruno Haible.
37285
37286 2009-12-08  Eric Blake  <ebb9@byu.net>
37287
37288         fchdir: fix logic bugs
37289         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37290         * tests/test-fchdir.c (main): Enhance test.
37291         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37292         is in use.
37293
37294         dup2: fix logic bugs
37295         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37296         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37297         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37298         exists.
37299         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37300
37301 2009-12-07  Eric Blake  <ebb9@byu.net>
37302
37303         unlink: fix m4 detection
37304         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37305
37306         unistd-safer: add unit test
37307         * modules/unistd-safer-tests: New file.
37308         * tests/test-dup-safer.c: Likewise.
37309         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37310         * tests/test-dup2.c (setmode): Likewise.
37311         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37312
37313         cloexec: preserve text vs. binary across dup_cloexec
37314         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37315         mode.
37316         * modules/dup2-tests (Depends-on): Add binary-io.
37317         * modules/cloexec-tests (Depends-on): Likewise.
37318         * tests/test-dup2.c (setmode, is_mode): New helpers.
37319         (main): Add tests that translation mode is preserved.
37320         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
37321         Reported by Bruno Haible.
37322
37323         mgetgroups: reduce duplicate listings
37324         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
37325         resulting array.
37326         * tests/test-chown.h (test_chown): Simplify client.
37327         * tests/test-lchown.h (test_lchown): Likewise.
37328
37329 2009-12-06  Bruno Haible  <bruno@clisp.org>
37330
37331         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
37332         value.
37333
37334 2009-12-06  Bruno Haible  <bruno@clisp.org>
37335
37336         * lib/progname.c: Include stdio.h, stdlib.h.
37337         (set_program_name): Reject a NULL argument.
37338
37339 2009-12-05  Eric Blake  <ebb9@byu.net>
37340
37341         pipe2-safer: new module
37342         * modules/pipe2-safer: New file.
37343         * lib/unistd-safer.h (pipe2_safer): New prototype.
37344         * lib/unistd--.h (pipe2): New wrapper.
37345         * lib/pipe-safer.c (pipe2_safer): New function.
37346         * modules/pipe (Depends-on): Add pipe2-safer.
37347         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
37348
37349         stdlib-safer: preserve cloexec flag for mkostemp[s]
37350         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
37351         fd_safer_flag.
37352
37353         unistd-safer: allow preservation of cloexec status via flag
37354         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
37355         prototypes.
37356         * lib/dup-safer.c (dup_safer_flag): New function.
37357         * lib/fd-safer.c (fd_safer_flag): Likewise.
37358         * modules/cloexec (configure.ac): Set witness.
37359
37360         test-dup2: enhance test
37361         * modules/dup2-tests (Depends-on): Add cloexec.
37362         * tests/test-dup2.c (main): Enhance test.
37363
37364         cloexec: add dup_cloexec
37365         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37366         header and comments.
37367         * lib/cloexec.c (set_cloexec_flag): Add comments.
37368         (dup_cloexec): New function, with mingw implementation borrowed
37369         from...
37370         * lib/w32spawn.h (dup_noinherit): ...here.
37371         * modules/execute (Depends-on): Add cloexec.
37372         * modules/pipe (Depends-on): Likewise.
37373         * modules/cloexec (Depends-on): Add dup2.
37374         * modules/cloexec-tests (Files): New file.
37375         * tests/test-cloexec.c: Likewise.
37376
37377         test-xalloc-die: fix test for mingw
37378         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37379         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37380         directory and .exe suffix off argv[0] output.
37381
37382         test-fseeko: fix test for mingw
37383         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37384         than undefining fseek, so test will pass on mingw.
37385
37386 2009-12-05  Bruno Haible  <bruno@clisp.org>
37387
37388         * lib/progname.h (set_program_name): Clarify specification.
37389         * lib/progname.c (set_program_name): Likewise.
37390         Reported by Jim Meyering.
37391
37392 2009-12-05  Jim Meyering  <meyering@redhat.com>
37393
37394         maint.mk: backslash-escape parens in default regexp
37395         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
37396         backslash-escape the literal parentheses.
37397
37398         maint.mk: news-date-check: use grep -E
37399         * top/maint.mk (today): Define a Make variable, not a...
37400         (news-date-check): ...shell variable.
37401         (news-date-regexp): Use the Make variable.
37402         Use grep's -E option.  Change the failing diagnostic to mention
37403         the variable, $(news-date-regexp).
37404
37405 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
37406
37407         maintainer-makefile: allow customization of NEWS entry format
37408         * top/maint.mk (news-date-regexp): New overridable variable.
37409         (news-date-check): Use it.
37410
37411 2009-12-04  Eric Blake  <ebb9@byu.net>
37412
37413         mgetgroups: add xgetgroups, and avoid ENOSYS failures
37414         * lib/mgetgroups.h (xgetgroups): New prototype.
37415         * lib/mgetgroups.c (xgetgroups): New wrapper.
37416         (mgetgroups): Handle ENOSYS.
37417         * modules/mgetgroups (Depends-on): Add realloc.
37418         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
37419
37420         mgetgroups: avoid argument promotion issues with -1
37421         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
37422         for invalid gid_t.
37423         * tests/test-chown.h (getegid, test_chown): Likewise.
37424         * tests/test-lchown.h (getegid, test_lchown): Likewise.
37425
37426 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
37427
37428         exclude: Fix header file problems.
37429         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
37430
37431 2009-12-01  Jim Meyering  <meyering@redhat.com>
37432
37433         fts: fts_open: do not let an empty string cause immediate failure
37434         This is required in support of GNU rm, for which the command
37435         "rm A '' B" must process and remove both A and B, in spite of
37436         the empty string argument.
37437         * lib/fts.c (fts_open): Do not let the presence of an empty string
37438         cause fts_open to fail immediately.  Most fts-using tools must be
37439         able to process all arguments, in order, and can be expected to
37440         diagnose such arguments themselves.
37441
37442 2009-11-30  Eric Blake  <ebb9@byu.net>
37443
37444         utimens: fix compilation error
37445         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
37446         Declare variable at right scope.
37447
37448 2009-11-29  Jim Meyering  <meyering@redhat.com>
37449
37450         bootstrap: handle perl-5.11's changed --version output
37451         * build-aux/bootstrap (get_version): Handle perl separately,
37452         since perl-5.11's --version output is different.
37453
37454 2009-11-28  Jim Meyering  <meyering@redhat.com>
37455
37456         userspec: depend on the inttostr module, too
37457         * modules/userspec (Depends-on): Add inttostr.
37458
37459         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
37460         * lib/userspec.c (parse_with_separator): Do not accept a user ID
37461         number of MAXUID when it evaluates to (uid_t) -1.
37462         Likewise for group ID.  Reported by Matt McCutchen in
37463         <http://savannah.gnu.org/bugs/?28113>
37464
37465         userspec: reformat to use spaces, not TABs
37466         * lib/userspec.c: Expand TABs to spaces.
37467         Add Emacs' "indent-tabs-mode: nil" hint.
37468
37469 2009-11-27  Eric Blake  <ebb9@byu.net>
37470
37471         getopt-gnu: flush out another BSD bug
37472         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
37473         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
37474         flush out BSD bug.
37475         * tests/test-getopt.h (test_getopt): End lists with NULL.
37476         * tests/test-getopt_long.h (test_getopt_long): Likewise.
37477         (test_getopt_long_posix): Enhance test.
37478         * modules/getopt-posix-tests (Depends-on): Add stdbool.
37479         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
37480         getopt-gnu.
37481         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37482         Likewise.
37483
37484 2009-11-27  Simon Josefsson  <simon@josefsson.org>
37485
37486         * modules/idpriv-droptemp-tests (Notice): Fix text.
37487
37488 2009-11-27  Jim Meyering  <meyering@redhat.com>
37489
37490         test-xalloc-die: avoid spurious failure due to libtool argv difference
37491         In a libtool-enabled project, this test would fail due to a difference
37492         in the emitted program name, e.g.,
37493         -test-xalloc-die: memory exhausted
37494         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
37495         Use program to avoid that.
37496         * modules/xalloc-die-tests (Depends-on): Add progname.
37497         * tests/test-xalloc-die.c: Include progname.h".
37498         (program_name): Remove decl.
37499         (main): Call set_program_name.
37500         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
37501
37502 2009-11-26  Richard Jones  <rjones@redhat.com>
37503
37504         w32sock: leave win32 error in place.
37505         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37506
37507 2009-11-26  Eric Blake  <ebb9@byu.net>
37508
37509         init.sh: suggest to use skip_ and fail_ functions in comments
37510         * tests/init.sh: Add a sentence.
37511
37512 2009-11-25  Bruno Haible  <bruno@clisp.org>
37513
37514         init.sh: add documentation in comments
37515         * tests/init.sh: Add some developer and user documentation.
37516
37517 2009-11-26  Jim Meyering  <meyering@redhat.com>
37518
37519         init.sh: accommodate even those who specify bogus srcdir manually
37520         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37521         configure-time tests to be sanitized, so that there is no need to
37522         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37523         (with no double quotes) suffices.  However, since tests may be
37524         invoked manually, and since you may explicitly set srcdir to the
37525         name of a directory containing spaces, do quote its uses here.
37526         * tests/test-pread.sh: Likewise.
37527         Suggested by Bruno Haible.
37528
37529         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37530         * tests/test-pread.sh: Write no data into the pipe, because
37531         test-pread actually reads none.  This avoids a diagnostic,
37532         "bash: echo: write error: Broken pipe", that arises in the unusual
37533         event something is ignoring SIGPIPE, and might be interpreted
37534         as some sort of failure.  Reported by Bruno Haible.
37535
37536 2009-11-25  Jim Meyering  <meyering@redhat.com>
37537
37538         test-pread: cover failure with ESPIPE and EINVAL
37539         * tests/test-pread.c (main): Test for failure, too.
37540         * tests/test-pread.sh: Invoke with stdin on a pipe.
37541         Suggested by Eric Blake.
37542
37543         pread: improvement and fix
37544         * modules/pread (Depends-on): Depend on lseek, for portability to
37545         e.g., mingw.  Suggested by Eric Blake.
37546         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37547
37548         unistd.in.h: correct declaration of pread
37549         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37550         Reported by Richard W.M. Jones.
37551
37552         test-pread.sh: distribute the test script
37553         * modules/pread-tests (Files): Include test-pread.sh.
37554
37555         test-pread.sh: clean up
37556         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37557         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37558         That is unnecessary, since it's always ".".
37559         Suggestion from Eric Blake.
37560
37561         test-pread.sh: make executable
37562         * tests/test-pread.sh: Set executable bit.
37563         Reported by Eric Blake.
37564
37565         correct typo in test-pread.sh
37566         * tests/test-pread.sh: Add #! line.
37567
37568         test pread
37569         * tests/test-pread.c: New file.
37570         * tests/test-pread.sh: Likewise.
37571         * modules/pread-tests: Likewise.
37572
37573         pread: new module
37574         * modules/pread: New file.
37575         * lib/unistd.in.h (pread): Define/declare.
37576         * lib/pread.c (pread): New file.
37577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37578         * modules/unistd (Makefile.am): Substitute witnesses.
37579         * doc/posix-functions/pread.texi (pread): Update.
37580         * MODULES.html.sh: Add pread.
37581
37582 2009-11-25  Jim Meyering  <meyering@redhat.com>
37583
37584         tests/init.sh: new file to be used via most *.sh tests
37585         * tests/init.sh: New file.
37586
37587 2009-11-25  Eric Blake  <ebb9@byu.net>
37588
37589         utimens: work around older Linux failure with symlinks
37590         * lib/utimens.c (lutimensat_works_really): New variable.
37591         (fdutimens, lutimens): Use it to manage kernels that support
37592         nanosecond times on files, but not on symlinks.
37593         Reported by OndÅ™ej Vašík.
37594
37595         utimes: fix configure grammar
37596         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37597
37598 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37599
37600         regex: Fix fastmap for multibyte character ranges.
37601         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37602         characters when a multibyte character range is included.
37603
37604 2009-11-22  Andy Wingo  <wingo@pobox.com>
37605
37606         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37607         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37608
37609 2009-11-24  Bruno Haible  <bruno@clisp.org>
37610
37611         doc: Most *_l functions exist in MacOS X 10.5.
37612         * doc/posix-functions/duplocale.texi: Update platforms list.
37613         * doc/posix-functions/freelocale.texi: Likewise.
37614         * doc/posix-functions/newlocale.texi: Likewise.
37615         * doc/posix-functions/uselocale.texi: Likewise.
37616         * doc/posix-functions/isalnum_l.texi: Likewise.
37617         * doc/posix-functions/isalpha_l.texi: Likewise.
37618         * doc/posix-functions/isblank_l.texi: Likewise.
37619         * doc/posix-functions/iscntrl_l.texi: Likewise.
37620         * doc/posix-functions/isdigit_l.texi: Likewise.
37621         * doc/posix-functions/isgraph_l.texi: Likewise.
37622         * doc/posix-functions/islower_l.texi: Likewise.
37623         * doc/posix-functions/isprint_l.texi: Likewise.
37624         * doc/posix-functions/ispunct_l.texi: Likewise.
37625         * doc/posix-functions/isspace_l.texi: Likewise.
37626         * doc/posix-functions/isupper_l.texi: Likewise.
37627         * doc/posix-functions/iswalnum_l.texi: Likewise.
37628         * doc/posix-functions/iswalpha_l.texi: Likewise.
37629         * doc/posix-functions/iswblank_l.texi: Likewise.
37630         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37631         * doc/posix-functions/iswctype_l.texi: Likewise.
37632         * doc/posix-functions/iswdigit_l.texi: Likewise.
37633         * doc/posix-functions/iswgraph_l.texi: Likewise.
37634         * doc/posix-functions/iswlower_l.texi: Likewise.
37635         * doc/posix-functions/iswprint_l.texi: Likewise.
37636         * doc/posix-functions/iswpunct_l.texi: Likewise.
37637         * doc/posix-functions/iswspace_l.texi: Likewise.
37638         * doc/posix-functions/iswupper_l.texi: Likewise.
37639         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37640         * doc/posix-functions/isxdigit_l.texi: Likewise.
37641         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37642         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37643         * doc/posix-functions/strcoll_l.texi: Likewise.
37644         * doc/posix-functions/strfmon_l.texi: Likewise.
37645         * doc/posix-functions/strftime_l.texi: Likewise.
37646         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37647         * doc/posix-functions/strxfrm_l.texi: Likewise.
37648         * doc/posix-functions/tolower_l.texi: Likewise.
37649         * doc/posix-functions/toupper_l.texi: Likewise.
37650         * doc/posix-functions/towctrans_l.texi: Likewise.
37651         * doc/posix-functions/towlower_l.texi: Likewise.
37652         * doc/posix-functions/towupper_l.texi: Likewise.
37653         * doc/posix-functions/wcscoll_l.texi: Likewise.
37654         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37655         * doc/posix-functions/wctrans_l.texi: Likewise.
37656         * doc/posix-functions/wctype_l.texi: Likewise.
37657         * doc/glibc-functions/strptime_l.texi: Likewise.
37658         * doc/glibc-functions/strtod_l.texi: Likewise.
37659         * doc/glibc-functions/strtof_l.texi: Likewise.
37660         * doc/glibc-functions/strtol_l.texi: Likewise.
37661         * doc/glibc-functions/strtold_l.texi: Likewise.
37662         * doc/glibc-functions/strtoll_l.texi: Likewise.
37663         * doc/glibc-functions/strtoul_l.texi: Likewise.
37664         * doc/glibc-functions/strtoull_l.texi: Likewise.
37665         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37666         * doc/glibc-functions/wcstod_l.texi: Likewise.
37667         * doc/glibc-functions/wcstof_l.texi: Likewise.
37668         * doc/glibc-functions/wcstol_l.texi: Likewise.
37669         * doc/glibc-functions/wcstold_l.texi: Likewise.
37670         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37671         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37672         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37673
37674 2009-11-24  Bruno Haible  <bruno@clisp.org>
37675
37676         duplocale: Fix logic bug.
37677         * lib/duplocale.c: Don't include <langinfo.h>.
37678         (_NL_LOCALE_NAME): Remove macro.
37679         (rpl_duplocale): Use setlocale instead of nl_langinfo.
37680         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
37681
37682 2009-11-23  Jim Meyering  <meyering@redhat.com>
37683
37684         test-update-copyright: don't hard-code /usr/bin/perl
37685         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
37686         perl to print the current year.  Gilles Espinasse reported that
37687         the replaced use of perl was hard-coded as /usr/bin/perl.
37688
37689 2009-11-23  Bruno Haible  <bruno@clisp.org>
37690
37691         duplocale: Add support for glibc 2.3.x.
37692         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
37693
37694 2009-11-22  Bruno Haible  <bruno@clisp.org>
37695
37696         vasnprintf: Tiny optimization.
37697         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
37698         MacOS X.
37699
37700 2009-11-22  Bruno Haible  <bruno@clisp.org>
37701
37702         Tests for module 'duplocale'.
37703         * modules/duplocale-tests: New file.
37704         * tests/test-duplocale.c: New file.
37705
37706         New module 'duplocale'.
37707         * m4/duplocale.m4: New file.
37708         * lib/locale.in.h (duplocale): New declaration.
37709         * lib/duplocale.c: New file.
37710         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
37711         gl_LOCALE_H_DEFAULTS): New macros.
37712         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
37713         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
37714         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
37715         REPLACE_DUPLOCALE.
37716         * modules/duplocale: New file.
37717         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
37718
37719 2009-11-22  Bruno Haible  <bruno@clisp.org>
37720
37721         * modules/locale-tests (configure.ac): Test for newlocale function.
37722         * tests/test-locale.c: When the system has extended locale functions,
37723         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
37724
37725         locale: Make locale_t available when possible.
37726         * lib/locale.in.h: Include <xlocale.h> when it exists.
37727         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
37728         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
37729         * modules/locale (Depends-on): Add extensions.
37730         (Makefile.am): Also substitute HAVE_XLOCALE_H.
37731         * doc/posix-headers/locale.texi: Document the problem with locale_t.
37732
37733 2009-11-22  Bruno Haible  <bruno@clisp.org>
37734
37735         Add comments.
37736         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
37737         invocation.
37738         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37739         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37740         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37741
37742 2009-11-22  Bruno Haible  <bruno@clisp.org>
37743
37744         error: account for the possibility of freopen (stdout).
37745         * lib/error.c: Include <unistd.h>.
37746         (flush_stdout): New function, extracted from error and error_at_line.
37747         Determine stdout's fd dynamically.
37748         (error, error_at_line): Invoke flush_stdout.
37749         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
37750         * modules/error (Depends-on): Add unistd.
37751
37752 2009-11-22  Bruno Haible  <bruno@clisp.org>
37753
37754         diffseq: Add comment.
37755         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
37756
37757 2009-11-22  Jim Meyering  <meyering@redhat.com>
37758
37759         c-stack: avoid defining an unused static function
37760         * lib/c-stack.c (find_stack_direction): Do not define this function
37761         when it will not be used.
37762
37763         diffseq: avoid spurious gcc warnings
37764         * lib/diffseq.h (IF_LINT2): Define.
37765         (compareseq): Use it to initialize two members of "part".
37766         This avoids two used-uninitialized warnings.
37767
37768 2009-11-21  Jim Meyering  <meyering@redhat.com>
37769
37770         c-stack: avoid "ignoring return value of `write'" warning
37771         * lib/c-stack.c: Include "ignore-value.h".
37772         (die): Explicitly ignore each write return value.
37773         * modules/c-stack (Depends-on): Add ignore-value.
37774
37775 2009-11-21  Bruno Haible  <bruno@clisp.org>
37776
37777         diffseq: reduce scope of variable 'best'.
37778         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
37779         variable, earlier used for two different purposes.
37780
37781 2009-11-21  Jim Meyering  <meyering@redhat.com>
37782
37783         diffseq: remove useless assignment to "best"
37784         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
37785         assignment.  At that point "best" is already guaranteed to be zero.
37786
37787 2009-11-20  Eric Blake  <ebb9@byu.net>
37788
37789         build: mention ftp redirector in release announcements
37790         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
37791         values that used to come from cfg.mk; mention FTP redirect URL.
37792         * build-aux/announce-gen: Mention the mirror list.
37793         Suggested by Karl Berry.
37794
37795         nanosleep: improve port to mingw
37796         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
37797         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
37798         LIB_NANOSLEEP, but only when needed.
37799         * modules/select (Link): Document LIBSOCKET.
37800         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
37801         enough.
37802
37803         nanosleep: work around cygwin bug
37804         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
37805         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
37806         bug.
37807         (getnow): Delete, not needed.
37808         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
37809         LIB_CLOCK_GETTIME.
37810         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
37811         clock-time, gettime.
37812         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
37813         bug.
37814         * modules/nanosleep-tests: New test.
37815         * tests/test-nanosleep.c: New file.
37816
37817         sleep: work around cygwin bug
37818         * lib/sleep.c (rpl_sleep): Work around the bug.
37819         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
37820         (gl_PREREQ_SLEEP): Delete unused macro.
37821         * modules/sleep (Depends-on): Add verify.
37822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37823         * modules/unistd (Makefile.am): Substitute witness.
37824         * lib/unistd.in.h (sleep): Update prototype.
37825         * doc/posix-functions/sleep.texi (sleep): Document the bug.
37826         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
37827         * modules/sleep-tests (Depends-on): Check for alarm.
37828
37829 2009-11-20  Jim Meyering  <meyering@redhat.com>
37830
37831         maint.mk: improve sc_prohibit_magic_number_exit
37832         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
37833         so it does not match uses like System.exit(1).
37834         Add comments showing how to correct all offenders.
37835
37836 2009-11-19  Eric Blake  <ebb9@byu.net>
37837
37838         xalloc-die-tests: add missing library
37839         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
37840
37841         test-xvasprintf: silence compiler warnings
37842         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
37843         empty string from gcc.
37844
37845 2009-11-19  Jim Meyering  <meyering@redhat.com>
37846
37847         xfreopen: new module, from coreutils
37848         * modules/xfreopen: New module.
37849         * lib/xfreopen.c: New file.
37850         * lib/xfreopen.h: New file.
37851         * MODULES.html.sh (File stream based Input/Output"): Add it.
37852
37853 2009-11-19  Eric Blake  <ebb9@byu.net>
37854
37855         manywarnings: depend on warnings
37856         * modules/manywarnings (Depends-on): Add warnings.
37857
37858         build: avoid compiler warnings
37859         * lib/select.c (rpl_select): Delete unused variable.
37860         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
37861
37862 2009-11-18  Eric Blake  <ebb9@byu.net>
37863
37864         tests: avoid false negative with --with-packager
37865         * tests/test-version-etc.sh: Discard packager information.
37866         * tests/test-argp-version-etc-1.sh: Likewise.
37867         Reported by Mike Frysinger.
37868
37869         utimens: fix regression on Solaris
37870         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
37871         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
37872         can only change fd timestamps via futimesat.  Instead, use an
37873         additional witness macro to avoid BSD bug.
37874         Reported by Jim Meyering.
37875
37876 2009-11-17  Eric Blake  <ebb9@byu.net>
37877
37878         usleep: use it to simplify tests
37879         * modules/stat-time-tests (Depends-on): Add usleep.
37880         (configure.ac): Drop usleep check.
37881         * modules/chown-tests (Depends-on, configure.ac): Likewise.
37882         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
37883         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
37884         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
37885         * modules/openat-tests (Depends-on, configure.ac): Likewise.
37886         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
37887         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
37888         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
37889         Likewise.
37890         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
37891         * tests/test-lchown.h (nap): Likewise.
37892         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
37893         * tests/test-stat-time.c (nap): Likewise.
37894         * tests/test-utimens-common.h (nap): Update comments.
37895
37896         usleep: new module
37897         * modules/usleep: New file.
37898         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
37899         * lib/usleep.c (usleep): Likewise.
37900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37901         * modules/unistd (Makefile.am): Substitute witnesses.
37902         * lib/unistd.in.h (usleep): Add declaration.
37903         * doc/pastposix-functions/usleep.texi (usleep): Document this.
37904         * MODULES.html.sh (Date and time): Likewise.
37905         * modules/usleep-tests (Depends-on): New test.
37906         * tests/test-usleep.c: New file.
37907
37908         chown: work around OpenBSD bug
37909         * lib/chown.c (rpl_chown): Work around the bug.
37910         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
37911         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
37912         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
37913         * modules/chown (Depends-on): Add stdbool.
37914         * modules/lchown (Depends-on): Likewise.
37915         * doc/posix-functions/chown.texi (chown): Document the bug.
37916         * doc/posix-functions/lchown.texi (lchown): Likewise.
37917         * tests/test-lchown.h (test_chown): Relax test.
37918
37919         mkstemp: avoid conflict with C++ keyword template
37920         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
37921         * lib/mkostemp.c (mkostemp): Likewise.
37922         * lib/mkostemps.c (mkostemps): Likewise.
37923         * lib/mkstemp.c (mkstemp): Likewise.
37924         * lib/mkstemps.c (mkstemps): Likewise.
37925
37926         xalloc-die-tests: optimize
37927         * tests/test-xalloc-die.sh: Reduce number of processes.
37928
37929 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37930
37931         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
37932         patch from ludo@gnu.org (Ludovic Courtès).
37933
37934 2009-11-17  Jim Meyering  <meyering@redhat.com>
37935
37936         version-etc: use proper license string
37937         * modules/version-etc (License): Use LGPL, not LGPLv3+.
37938         * modules/version-etc-fsf: Likewise.
37939
37940 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37941
37942         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
37943         printed to stdout.  Deal with EOL differences.
37944
37945 2009-11-17  Eric Blake  <ebb9@byu.net>
37946
37947         unsetenv: work around Solaris bug
37948         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
37949         * lib/unsetenv.c (rpl_unsetenv): Work around it.
37950         Reported by Jim Meyering.
37951
37952         vasnprintf: avoid compiler warnings
37953         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
37954         variables.
37955         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
37956
37957 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37958
37959         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
37960         settings since xalloc-die is no longer the self test,
37961         xalloc-die.sh is.
37962
37963 2009-11-17  Jim Meyering  <meyering@redhat.com>
37964
37965         test-xalloc-die.sh: make the code agree with the commit log
37966         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
37967         at the end, just in case you happen to have a test-xalloc-die
37968         program in some other PATH directory.
37969
37970         test-xalloc-die.sh: fix a portability bug
37971         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
37972         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
37973         Otherwise, argv[0] (as often seen in diagnostics) would be too
37974         system-dependent, sometimes with, and sometimes without the leading "./".
37975
37976         version-etc-fsf: relax license to LGPLv3+
37977         * modules/version-etc-fsf (License): Relax license.
37978
37979 2009-11-16  Eric Blake  <ebb9@byu.net>
37980
37981         xalloc-die-tests: avoid printing null pointer
37982         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
37983         shell script.
37984         * tests/test-xalloc-die.c (program_name): Declare.
37985         * tests/test-xalloc-die.sh (tmpfiles): New file.
37986
37987         setenv, unsetenv: work around various bugs
37988         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
37989         (setenv) [HAVE_SETENV]: Work around bugs.
37990         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
37991         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
37992         for bugs.
37993         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
37994         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
37995         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
37996         * modules/stdlib (Makefile.am): Update substitutions.
37997         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
37998         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
37999         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38000         * modules/setenv-tests: New test.
38001         * modules/unsetenv-tests: Likewise.
38002         * tests/test-setenv.c: New file.
38003         * tests/test-unsetenv.c: Likewise.
38004
38005 2009-11-16  Jim Meyering  <meyering@redhat.com>
38006
38007         version-etc: relax license to LGPLv3+
38008         * modules/version-etc (License): Relax license.
38009
38010         better AC_REQUIRE expanded-before-required-warning avoidance
38011         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38012         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38013         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38014         which is no longer needed.
38015
38016 2009-11-16  Eric Blake  <ebb9@byu.net>
38017
38018         test-freading: clean up temporary file
38019         * tests/test-freading.c (main): Remove file on success, and use
38020         ASSERT more liberally.
38021         Reported by Jim Meyering.
38022
38023 2009-11-16  Jim Meyering  <meyering@redhat.com>
38024
38025         avoid new AC_REQUIRE expanded-before-required warnings
38026         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38027         merely using it.
38028         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38029         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38030
38031 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38032
38033         * tests/test-xalloc-die.c: New file.
38034         * modules/xalloc-die-tests: New file.
38035         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38036         XFAIL_TESTS so it can be appended by modules.
38037
38038 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38039
38040         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38041         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38042
38043 2009-11-14  Eric Blake  <ebb9@byu.net>
38044
38045         fnmatch: avoid compiler warning
38046         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38047         to silence compiler warning about mismatch signedness in ?:.
38048         Reported by Robert Millan.
38049
38050         intprops: add double-inclusion guard
38051         * lib/intprops.h: Allow idempotent includes.
38052         Suggested by Bruce Korb.
38053
38054         openat: detect Solaris fchownat bug
38055         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38056         penalizing glibc chownat when only lchownat is broken.
38057         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38058         trailing slash bugs.
38059         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38060         * modules/openat-tests (Files): Include more files.
38061         (Depends-on): Add mgetgroups, sleep, stat-time.
38062         (configure.ac): Add additional checks.
38063         (Makefile.am): Build new test.
38064         * tests/test-fchownat.c: New file.
38065
38066         lchown: detect Solaris and FreeBSD bug
38067         * lib/lchown.c (rpl_lchown): Work around bug.
38068         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38070         * modules/unistd (Makefile.am): Populate it.
38071         * lib/unistd.in.h (lchown): Update declaration.
38072         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38073         * modules/lchown-tests: New file.
38074         * tests/test-lchown.h (test_lchown): Likewise.
38075         * tests/test-lchown.c (main): Likewise.
38076
38077         chown: detect Solaris and FreeBSD bug
38078         * lib/chown.c (rpl_chown): Work around bug.
38079         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38080         (gl_PREREQ_CHOWN): Delete.
38081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38082         * modules/unistd (Makefile.am): Populate it.
38083         * lib/unistd.in.h (chown): Update declaration.
38084         * lib/lchown.c (chown): Update client.
38085         * modules/lchown (Depends-on): Add lstat.
38086         * doc/posix-functions/chown.texi (chown): Document the bug.
38087         * doc/posix-functions/getgroups.texi (getgroups): Document
38088         getgroups pitfall.
38089         * modules/chown-tests: New file.
38090         * tests/test-chown.h (test_chown): Likewise.
38091         * tests/test-chown.c (main): Likewise.
38092
38093 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38094
38095         gnulib-tool: correctly detect absence of m4 directories
38096         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38097
38098 2009-11-14  Jim Meyering  <meyering@redhat.com>
38099
38100         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38101         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38102
38103 2009-11-14  John W. Eaton  <jwe@gnu.org>
38104
38105         strftime.h: wrap funtion declaration in extern "C" block
38106         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38107
38108 2009-11-13  Eric Blake  <ebb9@byu.net>
38109
38110         getgroups: avoid compiler warning
38111         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38112
38113         getgroups: work around FreeBSD bug
38114         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38115         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38116         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38117         * tests/test-getgroups.c (main): Fix buffer overrun.
38118
38119         getgroups: avoid compilation failure
38120         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38121         * modules/getgroups (Depends-on): Add stdint.
38122
38123 2009-11-13  Jim Meyering  <meyering@redhat.com>
38124
38125         test-getgroups: avoid compilation failure
38126         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38127
38128 2009-11-13  Eric Blake  <ebb9@byu.net>
38129
38130         mgetgroups: new module, taken from coreutils
38131         * modules/mgetgroups: New file.
38132         * lib/mgetgroups.h: Likewise.
38133         * lib/mgetgroups.c (mgetgroups): Likewise.
38134         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38135         * MODULES.html.sh (Users and groups): Mention it.
38136
38137         getgroups: don't expose GETGROUPS_T to user
38138         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38139         an element at a time if GETGROUPS_T is wrong size.
38140         * lib/getugroups.h (getugroups): Change signature.
38141         * lib/unistd.in.h (getgroups): Likewise.
38142         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38143         signature needs fixing.
38144         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38145         AC_TYPE_GETGROUPS.
38146         * modules/group-member (Depends-on): Add getgroups.
38147         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38148         (group_member): Rely on getgroups replacement.
38149         * lib/getugroups.c (getugroups): Use gid_t.
38150         * tests/test-getgroups.c (main): Likewise.
38151         * NEWS: Mention the signature change.
38152         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38153         problem with signature.
38154         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38155         GETGROUPS_T is still useful for setgroups.
38156
38157         getgroups, getugroups: provide stubs for mingw
38158         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38159         * lib/getugroups.c (getugroups): Likewise.
38160         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38161         function.  Modernize replacement scheme.
38162         (gl_PREREQ_GETGROUPS): Delete.
38163         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38164         * modules/getgroups (configure.ac): Declare witness.
38165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38166         * modules/unistd (Depends-on): Substitute witness.
38167         * lib/unistd.in.h (getgroups): Declare replacement.
38168
38169         getgroups: avoid calling exit
38170         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38171         drop xalloc.
38172         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38173         dependencies.
38174         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38175         exiting, in the rare case of malloc failure.
38176
38177         getgroups: fix logic error
38178         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38179         has more than 20 groups.
38180         * modules/getgroups-tests: New test.
38181         * tests/test-getgroups.c: New file.
38182
38183 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38184
38185         * tests/test-base64.c: Improve.
38186
38187 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38188
38189         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38190         Blake <ebb9@byu.net>.
38191
38192 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38193
38194         * tests/test-xvasprintf.c: Add %s%s related checks.
38195
38196 2009-11-12  Eric Blake  <ebb9@byu.net>
38197
38198         version-etc: match standards.texi style
38199         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38200         and use <> only for URLs.
38201
38202 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38203
38204         fts: do not fail on a submount during traversal
38205         * lib/fts.c (fts_build): Read the stat info again after opening
38206         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38207         Original report at http://bugzilla.redhat.com/501848.
38208
38209 2009-11-12  Jim Meyering  <meyering@redhat.com>
38210
38211         bootstrap: sync from coreutils
38212         * build-aux/bootstrap (bootstrap_epilogue): New function.
38213         Use git_modules_config in one more place.  This make bootstrap's
38214         --gnulib-srcdir option more useful for testing.
38215
38216         bootstrap: generalize autoheader check
38217         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38218         AC_CONFIG_HEADERS.
38219
38220 2009-11-11  Eric Blake  <ebb9@byu.net>
38221
38222         mkfifoat: use new modules for Solaris and BSD bugs
38223         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38224         * lib/mkfifoat.c (mknodat): Split...
38225         * lib/mknodat.c (mknodat): ...into new file.
38226         * modules/mkfifoat (Files): Ship new file.
38227         (Depends-on): Add mkfifo, mknod.
38228         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38229         (Depends-on): Add symlink.
38230         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38231         redundant with test_mkfifo.h.
38232         (do_mkfifoat, do_mknodat): New helpers.
38233
38234         mknod: new module
38235         * modules/mknod: New file.
38236         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38237         * lib/mknod.c (mknod): Likewise.
38238         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38239         defaults.
38240         * modules/sys_stat (Makefile.am): Substitute them.
38241         * lib/sys_stat.in.h (mknod): Declare replacement.
38242         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38243         Document it.
38244         * doc/posix-functions/mknod.texi (mknod): Likewise.
38245         * modules/mknod-tests: New test.
38246         * tests/test-mknod.c: Likewise.
38247
38248         mkfifo: new module
38249         * modules/mkfifo: New file.
38250         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38251         * lib/mkfifo.c (mkfifo): Likewise.
38252         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38253         defaults.
38254         * modules/sys_stat (Makefile.am): Substitute them.
38255         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38256         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38257         Document it.
38258         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38259         * modules/mkfifo-tests: New test.
38260         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38261         from test-mkfifoat.c.
38262         * tests/test-mkfifo.c: New file.
38263
38264         readlink: detect FreeBSD bug
38265         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38266         slash on symlink.
38267         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38268         * tests/test-readlink.h (test_readlink): Enhance test.
38269
38270         symlink: detect FreeBSD bug
38271         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38272         slash on symlink.
38273         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38274         * tests/test-symlink.h (test_symlink): Enhance test.
38275
38276 2009-11-10  Eric Blake  <ebb9@byu.net>
38277
38278         link: detect FreeBSD bug
38279         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38280         symlink.
38281         * doc/posix-functions/link.texi (link): Document the bug.
38282         * tests/test-link.h (test_link): Enhance test.
38283         * tests/test-linkat.c (main): Update caller.
38284
38285         unlink, remove: detect FreeBSD bug
38286         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38287         slash on symlink.
38288         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38289         * doc/posix-functions/remove.texi (remove): Likewise.
38290         * tests/test-unlink.h (test_unlink): Enhance test.
38291         * tests/test-remove.c (main): Likewise.
38292
38293 2009-11-09  Eric Blake  <ebb9@byu.net>
38294
38295         rename: detect FreeBSD bug
38296         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38297         slash on symlink.
38298         * modules/renameat-tests (Depends-on): Add filenamecat.
38299         * tests/test-rename.h (test_rename): Allow one more errno.
38300         * tests/test-renameat.c (main): Likewise.
38301         * doc/posix-functions/rename.texi (rename): Document the bug.
38302
38303         open: detect FreeBSD bug
38304         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38305         symlink.
38306         * doc/posix-functions/open.texi (open): Document the bug.
38307         * doc/posix-functions/utimes.texi (utimes): Likewise.
38308         * tests/test-open.h (test_open): Add parameters, and test symlink
38309         handling.
38310         * tests/test-open.c (main): Adjust caller.
38311         * tests/test-fcntl-safer.c (main): Likewise.
38312         * modules/open-tests (Depends-on): Add stdbool, symlink.
38313         * modules/fcntl-safer-tests (Depends-on): Likewise.
38314         * tests/test-openat.c (main): Add test-open tests.
38315
38316         stat: detect FreeBSD bug
38317         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38318         symlink.
38319         * doc/posix-functions/stat.texi (stat): Document the bug.
38320         * tests/test-stat.h (test_stat_func): Add argument.
38321         * tests/test-stat.c (main): Adjust caller.
38322         * tests/test-fstatat.c (main): Likewise.
38323         * modules/stat-tests (Depends-on): Add stdbool, symlink.
38324         Reported by Jim Meyering.
38325
38326 2009-11-09  James Youngman  <jay@gnu.org>
38327
38328         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
38329         * lib/strftime.c: Correct placement of #include "ignore-value.h".
38330
38331 2009-11-08  Jim Meyering  <meyering@redhat.com>
38332
38333         utimens: remove invalid futimesat call
38334         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
38335         It used the file descriptor of the target file as the DIR_FD
38336         parameter and NULL as the file name.  That caused failure with
38337         errno == EFAULT on FreeBSD-8.0-rc2
38338
38339 2009-11-07  Eric Blake  <ebb9@byu.net>
38340
38341         fflush, freadseek: use fseeko, not fseek
38342         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
38343         (clear_ungetc_buffer): Avoid potential problems on large files.
38344         * lib/freadseek.c (freadseek): Likewise.
38345         * modules/freadseek (Depends-on): Add fseeko.
38346         * modules/fseek (configure.ac): Set a witness.
38347         * tests/test-fflush.c (main): Use fseeko.
38348         * tests/test-fpurge.c (fseek): Disable link warning.
38349         * tests/test-freadable.c (fseek): Likewise.
38350         * tests/test-freading.c (fseek): Likewise.
38351         * tests/test-fseeko.c (fseek): Likewise.
38352         * tests/test-ftell.c (fseek): Likewise.
38353         * tests/test-ftello.c (fseek): Likewise.
38354         * tests/test-fwritable.c (fseek): Likewise.
38355         * tests/test-fwriting.c (fseek): Likewise.
38356
38357 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38358
38359         * modules/memchr (Depends-on): Drop getpagesize dependency.
38360
38361 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38362
38363         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38364         Reported by Ludovic Courtès.
38365         * build-aux/pmccabe2html: Improve example usage.
38366         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38367
38368 2009-11-06  Jim Meyering  <meyering@redhat.com>
38369
38370         do-release-commit-and-tag: New module.
38371         Automate the release-commit and tag process.
38372         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38373         * modules/do-release-commit-and-tag: New file.
38374         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38375
38376 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38377
38378         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38379         because test-select.c uses inet_pton.
38380
38381 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38382
38383         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38384         GETADDRINFO_LIB.  Bump serial number.
38385         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38386         Suggested by Eric Blake <ebb9@byu.net>.
38387
38388 2009-11-05  Eric Blake  <ebb9@byu.net>
38389
38390         strtod: detect darwin bug
38391         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38392         Reported by Leo Davis.
38393
38394         freopen-safer: new module
38395         * modules/freopen-safer: New module.
38396         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
38397         * lib/freopen-safer.c (freopen_safer): New file.
38398         * lib/stdio-safer.h (freopen_safer): New declaration.
38399         * lib/stdio--.h (freopen): New override.
38400         * MODULES.html.sh (File stream based Input/Output): Mention it.
38401         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
38402         freopen-safer module.
38403         * doc/posix-functions/stderr.texi (stderr): Likewise.
38404         * doc/posix-functions/stdin.texi (stdin): Likewise.
38405         * doc/posix-functions/stdout.texi (stdout): Likewise.
38406         * modules/freopen-safer-tests: New test.
38407         * tests/test-reopen-safer.c: New file.
38408
38409 2009-11-05  Jim Meyering  <meyering@redhat.com>
38410
38411         maint.mk: Prohibit inclusion of "close-stream.h" without use.
38412         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38413
38414 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38415
38416         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
38417
38418 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38419
38420         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
38421
38422 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38423
38424         Fix link error.
38425         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38426         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38427
38428 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38429
38430         * tests/test-func.c: Also test value of __func__.
38431
38432 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38433
38434         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
38435         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
38436
38437 2009-11-05  Bruno Haible  <bruno@clisp.org>
38438
38439         Fix link error.
38440         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38441         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38442         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
38443
38444 2009-11-05  Bruno Haible  <bruno@clisp.org>
38445
38446         Tests for module 'inet_pton'.
38447         * modules/inet_pton-tests: New file.
38448         * tests/test-inet_pton.c: New file.
38449
38450 2009-11-05  Bruno Haible  <bruno@clisp.org>
38451
38452         Tests for module 'inet_ntop'.
38453         * modules/inet_ntop-tests: New file.
38454         * tests/test-inet_ntop.c: New file.
38455
38456 2009-11-04  Eric Blake  <ebb9@byu.net>
38457
38458         stdlib-safer: wrap all mkstemp variants
38459         * modules/mkostemp (configure.ac): Set witness.
38460         * modules/mkostemps (configure.ac): Likewise.
38461         * modules/mkstemps (configure.ac): Likewise.
38462         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
38463         (mkstemps_safer): Wrap more functions.
38464         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
38465         wrapping.
38466         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
38467         (mkstemps_safer): Implement the wrappers.
38468
38469         mkstemps, mkostemps: new modules
38470         * modules/mkostemps: New module.
38471         * modules/mkstemps: Likewise.
38472         * lib/mkostemps.c (mkostemps): New file.
38473         * lib/mkstemps.c (mkstemps): Likewise.
38474         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
38475         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
38476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
38477         * modules/stdlib (Makefile.am): Substitute them.
38478         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
38479         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
38480         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38481         * doc/gnulib.texi (Glibc stdlib.h): Include them.
38482         * MODULES.html.sh (File system functions): Mention them.
38483
38484         tempname: resync from glibc
38485         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
38486         same values for __GT_FILE as glibc.  Abort even when assertions
38487         are disabled.
38488         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
38489         match its value otherwise.  Allow idempotent inclusion.
38490         * lib/mkdtemp.c (mkdtemp): Adjust caller.
38491         * lib/mkostemp.c (mkostemp): Likewise.
38492         * lib/mkstemp.c (mkstemp): Likewise.
38493         * lib/tmpfile.c (tmpfile): Likewise.
38494         * NEWS: Document this.
38495
38496         utimens: fix use of futimens on older Linux
38497         * lib/utimens.c (fdutimens): Use updated, rather than original,
38498         timespec to avoid bug in older Linux kernel.
38499         Reported by Simon Josefsson.
38500
38501 2009-11-04  Bruno Haible  <bruno@clisp.org>
38502
38503         Make num_processors more flexible and consistent.
38504         * lib/nproc.h (enum nproc_query): New type.
38505         (num_processors): Add a 'query' argument.
38506         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38507         (num_processors): Add a 'query' argument. Test the value of the
38508         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38509         mingw, count the number of CPUs available for the current process.
38510         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38511         Check for sched_getaffinity and sched_getaffinity_np.
38512         * modules/nproc (Depends-on): Add c-ctype, extensions.
38513         * NEWS: Mention the change.
38514
38515 2009-11-03  Bruno Haible  <bruno@clisp.org>
38516
38517         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38518
38519 2009-11-03  Jim Meyering  <meyering@redhat.com>
38520
38521         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38522         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38523         if it is defined.
38524
38525 2009-11-02  Eric Blake  <ebb9@byu.net>
38526
38527         mktime, timegm: share common declaration
38528         * lib/mktime-internal.h: New file.
38529         * lib/mktime.c: Use it rather than open-coding a declaration.
38530         * lib/timegm.c: Likewise.
38531         * modules/mktime (Files): Ship it.
38532         * modules/timegm (Files): Likewise.
38533         Suggested by Bruno Haible.
38534
38535         test-update-copyright: update test to match script changes
38536         * tests/test-update-copyright.sh: Avoid hard-coding perl
38537         location.  Don't update *.bak created by earlier runs.
38538
38539 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38540             Simon Josefsson  <simon@josefsson.org>
38541             Bruno Haible  <bruno@clisp.org>
38542
38543         Fix link error on Solaris 8.
38544         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38545         also in libnsl. Define also INET_PTON_LIB.
38546         * modules/inet_pton (Link): New section.
38547
38548 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38549             Bruno Haible  <bruno@clisp.org>
38550
38551         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38552         * modules/inet_ntop (Link): New section.
38553         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38554
38555 2009-11-02  Eric Blake  <ebb9@byu.net>
38556
38557         maint: avoid compiler warnings in m4 macros
38558         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38559         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38560
38561 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38562
38563         * m4/pmccabe2html.m4: Remove file.
38564         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38565         function.  Change maintainer.
38566         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38567         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38568         Courtès).
38569
38570 2009-10-31  Eric Blake  <ebb9@byu.net>
38571
38572         fseeko: fix m4 regression
38573         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38574         regression from 2009-10-27.
38575         Reported by Ralf Wildenhues.
38576
38577 2009-10-31  Jim Meyering  <meyering@redhat.com>
38578
38579         inttostr: aesthetics and improved (compile-time) safety
38580         Define inttype_is_signed rather than inttype_is_unsigned,
38581         since the sole use is via "#if inttype_is_signed".
38582         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38583         inttype_is_unsigned.
38584         * lib/offtostr.c (inttype_is_signed): Likewise.
38585         * lib/uinttostr.c (inttype_is_signed): Likewise.
38586         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38587         * lib/inttostr.c (inttostr): Use verify to cross-check the
38588         inttype_is_signed value and the signedness of the actual type.
38589         * modules/inttostr (Depends-on): Add verify.
38590
38591 2009-10-30  Eric Blake  <ebb9@byu.net>
38592
38593         build: avoid compiler warnings
38594         * lib/fchmodat.c (lchmod): Mark unused variables.
38595         * lib/getopt.c (_getopt_initialize): Likewise.
38596         * lib/mktime.c (__mktime_internal): Provide prototype.
38597         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38598         older gcc that do not understand #pragma GCC diagnostic.
38599         * lib/uinttostr.c (inttype_is_unsigned): Define.
38600         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38601
38602 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38603
38604         stat: fix compilation on AIX
38605         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38606         only see struct stat64.
38607
38608 2009-10-30  Eric Blake  <ebb9@byu.net>
38609
38610         exclude: make more robust
38611         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38612         rather than masking a coding bug.
38613         Suggested by Bruno Haible.
38614
38615 2009-10-30  Jim Meyering  <meyering@redhat.com>
38616
38617         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38618         Rather than putting #!/usr/bin/perl on the first line,
38619         start with a variant of what's recommended by "man perlrun" that
38620         invokes the first "perl" program from your shell's search path.
38621         * build-aux/gitlog-to-changelog: Replace #!... as above.
38622         Add a "Local Variables" perl mode setting.
38623         Prompted by a patch from Ludovic Courtès.
38624         Improved by Eric Blake.
38625         * build-aux/useless-if-before-free: Likewise.
38626         * build-aux/announce-gen: Likewise.
38627         * build-aux/update-copyright: Likewise.
38628
38629 2009-10-29  Eric Blake  <ebb9@byu.net>
38630
38631         filenamecat-lgpl: adjust clients
38632         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38633         filenamecat.
38634         * modules/renameat (Depends-on): Likewise.
38635
38636         filenamecat: split into filenamecat-lgpl
38637         * modules/filenamecat-lgpl: New module.
38638         * modules/filenamecat (Files): Move library-safe files into
38639         filenamecat-lgpl.
38640         (Depends-on): Add filenamecat-lgpl.
38641         (configure.ac): Declare witness.
38642         * lib/filenamecat.h (file_name_concat): Only declare when using
38643         GPL module.
38644         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38645         Move...
38646         * lib/filenamecat-lgpl.c: ...into new file.
38647         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38648         (gl_FILE_NAME_CONCAT): Use it.
38649         * MODULES.html.sh (File system functions): Mention new module.
38650
38651         argp: avoid memory leak
38652         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38653         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38654         base_name, since the latter malloc()s and can call exit().
38655         Leak introduced 2006-07-03.
38656
38657         dirname-lgpl: adjust clients that don't need full dirname
38658         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
38659         * modules/filenamecat (Depends-on): Likewise.
38660         * modules/linkat (Depends-on): Likewise.
38661         * modules/mkancesdirs (Depends-on): Likewise.
38662         * modules/mkdir (Depends-on): Likewise.
38663         * modules/openat (Depends-on): Likewise.
38664         * modules/savewd (Depends-on): Likewise.
38665         * modules/rename (Depends-on): Likewise.
38666         (License): Relax license.
38667         * modules/mkdir-tests (Depends-on): Drop progname.
38668         (Makefile.am): Delete unneeded LDADD.
38669         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
38670
38671         dirname: split into dirname-lgpl
38672         * modules/dirname-lgpl: New module.
38673         * modules/dirname (Files): Move library-safe files into
38674         dirname-lgpl.
38675         (Depends-on): Add dirname-lgpl.
38676         (configure.ac): Declare witness.
38677         * modules/double-slash-root (License): Relax license.
38678         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
38679         module.
38680         * lib/dirname.c (dir_len, mdir_name): Move...
38681         * lib/dirname-lgpl.c: ...into new file.
38682         * lib/basename.c (last_component, base_len): Move...
38683         * lib/basename-lgpl.c: ...into new file.
38684         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
38685         (gl_DIRNAME): Use it.
38686         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
38687         Mention new module.
38688         * modules/dirname-tests (Depends-on): Add progname.
38689         * tests/test-dirname.c (program_name): Delete.
38690
38691         mkdir: make safe for libraries
38692         * modules/mkdir (Depends-on): Drop xalloc.
38693         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
38694         exit.
38695
38696         tests: avoid some compiler warnings
38697         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
38698         literals.
38699         * tests/test-memchr.c (main): Avoid type mismatch.
38700         * tests/test-arpa_inet.c (main): Avoid unused parameters.
38701         * tests/test-base64.c (main): Likewise.
38702         * tests/test-getdelim.c (main): Likewise.
38703         * tests/test-gethostname.c (main): Likewise.
38704         * tests/test-getline.c (main): Likewise.
38705         * tests/test-netinet_in.c (main): Likewise.
38706         * tests/test-select.c (open_server_socket, main): Likewise.
38707         * tests/test-select-stdin.c (main): Likewise.
38708         * tests/test-sockets.c (main): Likewise.
38709         * tests/test-strsignal.c (main): Likewise.
38710         * tests/test-sys_select.c (main): Likewise.
38711         * tests/test-sys_socket.c (main): Likewise.
38712         * tests/test-u64.c (main): Likewise.
38713         * tests/test-xfprintf-posix.c (main): Likewise.
38714         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
38715
38716         sockets: avoid compiler warning
38717         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
38718
38719         maint: detect usage(1) and other suspicious exits
38720         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
38721
38722 2009-10-29  Jim Meyering  <meyering@redhat.com>
38723
38724         timespec: long-to-int truncation could make timespec_cmp malfunction
38725         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
38726         a multiple of 2^32 nanoseconds as no difference.
38727
38728 2009-10-28  Jim Meyering  <meyering@redhat.com>
38729
38730         fprintftime: wrap macro code argument in "do {...} while(0)"
38731         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
38732         cpy macro must be a statement that can be followed by a semicolon.
38733         Now that the else clause contains a comment and is hence longer
38734         than one line, I require curly braces.  That in turn requires
38735         that we wrap this code block in the standard do...while(0).
38736
38737         fprintftime: remove stray semicolon from previous change
38738         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
38739
38740         fprintftime: avoid a warning about ignored fwrite return value
38741         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
38742         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
38743         that is unsafe.
38744         * modules/fprintftime (Depends-on): Add ignore-value.
38745
38746         exclude: avoid an unwarranted warning
38747         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
38748
38749 2009-10-27  Eric Blake  <ebb9@byu.net>
38750
38751         fseek: avoid compilation failure when fflush is replaced
38752         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
38753         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
38754         module is in use.
38755         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
38756         module is not in use; since REPLACE_FSEEK worked otherwise.
38757         (GNULIB_FTELLO): Likewise for ftell.
38758         Reported by Ian Beckwith and others.
38759
38760 2009-10-27  Bruno Haible  <bruno@clisp.org>
38761
38762         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
38763         Reported by Jim Meyering.
38764
38765 2009-10-27  Jim Meyering  <jim@meyering.net>
38766             Bruno Haible  <bruno@clisp.org>
38767
38768         Avoid warning despite dropping the return value of fwrite.
38769         * lib/unicodeio.c: Include ignore-value.h.
38770         (fwrite_success_callback): Explicitly ignore fwrite's return value.
38771         * modules/unicodeio (Depends-on): Add ignore-value.
38772
38773 2009-10-26  Eric Blake  <ebb9@byu.net>
38774
38775         areadlinkat: fix fallback path
38776         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
38777         pointer and zero.
38778
38779 2009-10-22  Pádraig Brady  <P@draigBrady.com>
38780
38781         Use a better IO block size for modern systems
38782         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
38783         * lib/md2.c: Likewise.
38784         * lib/md4.c: Likewise.
38785         * lib/md5.c: Likewise.
38786         * lib/sha1.c: Likewise.
38787         * lib/sha256.c: Likewise.
38788         * lib/sha512.c: Likewise.
38789
38790 2009-10-22  Eric Blake  <ebb9@byu.net>
38791
38792         tests: avoid several compiler warnings
38793         * tests/test-getcwd.c (main): Avoid buffer underflow.
38794         * tests/test-getdate.c (main): String literals are not safe with
38795         putenv, so use setenv.  Declare unused argument.
38796         * modules/getdate-tests (Depends-on): Add setenv.
38797         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
38798         problems with string literals in char *.
38799         * tests/test-hash.c (main): Avoid shadowing declaration.
38800         (insert_new): Treat string literals as char const *.
38801         * tests/test-getopt.h (test_getopt): Likewise.
38802         (getopt_loop): Alter types to minimize casting elsewhere.
38803         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
38804         (test_getopt_long_posix): Likewise.
38805         (do_getopt_long): Add wrapper to minimize casting.
38806         * tests/test-atexit.c (clear_temp_file): Use void.
38807         * tests/test-areadlink-with-size.c (main): Declare unused
38808         arguments.
38809         * tests/test-areadlink.c (main): Likewise.
38810         * tests/test-areadlinkat-with-size.c (main): Likewise.
38811         * tests/test-areadlinkat.c (main): Likewise.
38812         * tests/test-canonicalize-lgpl.c (main): Likewise.
38813         * tests/test-canonicalize.c (main): Likewise.
38814         * tests/test-dirent-safer.c (main): Likewise.
38815         * tests/test-dirname.c (main): Likewise.
38816         * tests/test-dup2.c (main): Likewise.
38817         * tests/test-fchdir.c (main): Likewise.
38818         * tests/test-fcntl-h.c (main): Likewise.
38819         * tests/test-fcntl-safer.c (main): Likewise.
38820         * tests/test-fdopendir.c (main): Likewise.
38821         * tests/test-fdutimensat.c (main): Likewise.
38822         * tests/test-fflush.c (main): Likewise.
38823         * tests/test-filenamecat.c (main): Likewise.
38824         * tests/test-filevercmp.c (main): Likewise.
38825         * tests/test-fopen-safer.c (main): Likewise.
38826         * tests/test-fopen.c (main): Likewise.
38827         * tests/test-fpending.c (main): Likewise.
38828         * tests/test-fpurge.c (main): Likewise.
38829         * tests/test-freading.c (main): Likewise.
38830         * tests/test-fstatat.c (main): Likewise.
38831         * tests/test-fsync.c (main): Likewise.
38832         * tests/test-futimens.c (main): Likewise.
38833         * tests/test-getndelim2.c (main): Likewise.
38834         * tests/test-gettimeofday.c (main): Likewise.
38835         * tests/test-getopt.c (main): Likewise.
38836         * tests/test-i-ring.c (main): Likewise.
38837         * tests/test-inttypes.c (main): Likewise.
38838         * tests/test-link.c (main): Likewise.
38839         * tests/test-lstat.c (main): Likewise.
38840         * tests/test-math.c (main): Likewise.
38841         * tests/test-md5.c (main): Likewise.
38842         * tests/test-memchr2.c (main): Likewise.
38843         * tests/test-memrchr.c (main): Likewise.
38844         * tests/test-mkdir.c (main): Likewise.
38845         * tests/test-mkdirat.c (main): Likewise.
38846         * tests/test-mkfifoat.c (main): Likewise.
38847         * tests/test-open.c (main): Likewise.
38848         * tests/test-openat-safer.c (main): Likewise.
38849         * tests/test-openat.c (main): Likewise.
38850         * tests/test-quotearg.c (main): Likewise.
38851         * tests/test-rawmemchr.c (main): Likewise.
38852         * tests/test-readlink.c (main): Likewise.
38853         * tests/test-remove.c (main): Likewise.
38854         * tests/test-rename.c (main): Likewise.
38855         * tests/test-renameat.c (main): Likewise.
38856         * tests/test-rmdir.c (main): Likewise.
38857         * tests/test-sha1.c (main): Likewise.
38858         * tests/test-signal.c (main): Likewise.
38859         * tests/test-sigaction.c (main): Likewise.
38860         * tests/test-stat.c (main): Likewise.
38861         * tests/test-stat-time.c (main): Likewise.
38862         * tests/test-stddef.c (main): Likewise.
38863         * tests/test-stdint.c (main): Likewise.
38864         * tests/test-stdio.c (main): Likewise.
38865         * tests/test-stdlib.c (main): Likewise.
38866         * tests/test-strchrnul.c (main): Likewise.
38867         * tests/test-strerror.c (main): Likewise.
38868         * tests/test-string.c (main): Likewise.
38869         * tests/test-strtod.c (main): Likewise.
38870         * tests/test-strverscmp.c (main): Likewise.
38871         * tests/test-symlink.c (main): Likewise.
38872         * tests/test-symlinkat.c (main): Likewise.
38873         * tests/test-sys_stat.c (main): Likewise.
38874         * tests/test-sys_time.c (main): Likewise.
38875         * tests/test-time.c (main): Likewise.
38876         * tests/test-unistd.c (main): Likewise.
38877         * tests/test-unlink.c (main): Likewise.
38878         * tests/test-unlinkat.c (main): Likewise.
38879         * tests/test-utimens.c (main): Likewise.
38880         * tests/test-utimensat.c (main): Likewise.
38881         * tests/test-version-etc.c (main): Likewise.
38882         * tests/test-wchar.c (main): Likewise.
38883         * tests/test-wctype.c (main): Likewise.
38884         * tests/test-xprintf-posix.c (main): Likewise.
38885         * tests/test-posixtm.c (main): Likewise.
38886         (STREQ): Delete unused macro.
38887         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
38888         shadowed variables.
38889         * tests/test-memchr.c (main): Likewise.
38890
38891 2009-10-21  Eric Blake  <ebb9@byu.net>
38892
38893         areadlinkat: avoid failure on older glibc
38894         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
38895         rather than mis-comparing 0 against FUNC_RESULT of char*.
38896
38897 2009-10-21  Bruno Haible  <bruno@clisp.org>
38898
38899         * modules/stpncpy (License): Relicense under LGPLv2+.
38900         Reported by David Lutterkort <lutter@redhat.com>.
38901
38902 2009-10-20  Eric Blake  <ebb9@byu.net>
38903
38904         utimensat: work around Solaris 9 bug
38905         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
38906         has trailing slash bugs.
38907         * tests/test-lutimens.h (test_lutimens): Enhance test.
38908         * tests/test-utimens.h (test_utimens): Likewise.
38909         * doc/posix-functions/utime.texi (utime): Enhance documentation.
38910         * doc/posix-functions/utimes.texi (utimes): Likewise.
38911         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38912         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
38913         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
38914         * doc/posix-functions/futimens.texi (futimens): Likewise.
38915
38916         fdutimensat: new module
38917         * modules/fdutimensat: New file.
38918         * lib/fdutimensat.c (fdutimensat): Likewise.
38919         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
38920         * MODULES.html.sh (File system functions): Mention module.
38921         * modules/fdutimensat-tests: New test.
38922         * tests/test-fdutimensat.c: Likewise.
38923
38924         doc: regenerate INSTALL
38925         * doc/INSTALL: Reflect recent autoconf update.
38926         * doc/INSTALL.ISO: Likewise.
38927         * doc/INSTALL.UTF-8: Likewise.
38928
38929 2009-10-20  Pádraig Brady  <P@draigBrady.com>
38930
38931         acl: warn if ACL support is not detected
38932         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
38933
38934 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
38935
38936         * lib/nproc.h: Add extern "C" block for C++.
38937
38938 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
38939             Bruno Haible  <bruno@clisp.org>
38940
38941         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
38942         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
38943         * doc/posix-functions/isalpha.texi: Likewise.
38944         * doc/posix-functions/isblank.texi: Likewise.
38945         * doc/posix-functions/iscntrl.texi: Likewise.
38946         * doc/posix-functions/isdigit.texi: Likewise.
38947         * doc/posix-functions/isgraph.texi: Likewise.
38948         * doc/posix-functions/islower.texi: Likewise.
38949         * doc/posix-functions/isprint.texi: Likewise.
38950         * doc/posix-functions/ispunct.texi: Likewise.
38951         * doc/posix-functions/isspace.texi: Likewise.
38952         * doc/posix-functions/isupper.texi: Likewise.
38953         * doc/posix-functions/isxdigit.texi: Likewise.
38954
38955 2009-10-18  Bruno Haible  <bruno@clisp.org>
38956
38957         Tests for module 'isblank'.
38958         * modules/isblank-tests: New file.
38959         * tests/test-isblank.c: New file.
38960
38961         New module 'isblank'.
38962         * lib/isblank.c: New file.
38963         * m4/isblank.m4: New file.
38964         * modules/isblank: New file.
38965         * doc/posix-functions/isblank.texi: Mention the new module.
38966
38967 2009-10-18  Bruno Haible  <bruno@clisp.org>
38968
38969         New module 'ctype'.
38970         * lib/ctype.in.h: New file.
38971         * m4/ctype.m4: New file.
38972         * modules/ctype: New file.
38973         * doc/posix-headers/ctype.texi: Mention the new module.
38974
38975 2009-10-18  Jim Meyering  <meyering@redhat.com>
38976
38977         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
38978         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
38979         right after its initialization, rather than farther down.
38980         Keeping these in close proximity makes it easier to ensure
38981         that each such variable is initialized.  E.g.,
38982
38983             LIB_CLOCK_GETTIME=
38984             AC_SUBST([LIB_CLOCK_GETTIME])
38985
38986         This change also increments these serial numbers.
38987         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
38988         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38989         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38990
38991 2009-10-18  Bruno Haible  <bruno@clisp.org>
38992
38993         Don't let environment variables perturb build.
38994         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
38995         (gl_PREREQ_GETHRXTIME): ... not here.
38996
38997 2009-10-18  Bruno Haible  <bruno@clisp.org>
38998
38999         Avoid symlink attack in localcharset module.
39000         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39001         (O_NOFOLLOW): Define fallback.
39002         (get_charset_aliases): Don't open the file if it is a symbolic link.
39003         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39004         gl_FCNTL_H.
39005         (gl_FCNTL_H): Require it.
39006         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39007         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39008         Reported by Fergal Glynn <fglynn@veracode.com>.
39009
39010 2009-10-18  Bruno Haible  <bruno@clisp.org>
39011
39012         Implement nproc for mingw.
39013         * lib/nproc.c: Include <windows.h>
39014         (num_processors): On native Windows platforms, try GetSystemInfo.
39015
39016 2009-10-18  Bruno Haible  <bruno@clisp.org>
39017
39018         Implement nproc for IRIX.
39019         * lib/nproc.c: Include <sys/sysmp.h>.
39020         (num_processors): On IRIX systems, try sysmp.
39021         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39022
39023 2009-10-18  Bruno Haible  <bruno@clisp.org>
39024
39025         Implement nproc for HP-UX.
39026         * lib/nproc.c: Include <sys/pstat.h>
39027         (num_processors): On HP-UX systems, try pstat_getdynamic.
39028         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39029         pstat_getdynamic.
39030
39031 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39032             Bruno Haible  <bruno@clisp.org>
39033
39034         Implement nproc for NetBSD, OpenBSD.
39035         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39036         (ARRAY_SIZE): New macro.
39037         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39038         * m4/nproc.m4: New file.
39039         * modules/nproc (Files): Add m4/nproc.m4.
39040         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39041         (Makefile.am): Instead, augment lib_SOURCES.
39042
39043 2009-10-18  Bruno Haible  <bruno@clisp.org>
39044
39045         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39046         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39047         sys/param.h.
39048
39049 2009-10-16  Eric Blake  <ebb9@byu.net>
39050
39051         utimensat: new module
39052         * modules/utimensat: New file.
39053         * lib/utimensat.c (utimensat): Likewise.
39054         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39055         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39056         so we can work around Linux bugs.
39057         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39058         * modules/sys_stat (Makefile.am): Substitute them.
39059         * lib/sys_stat.in.h (utimensat): Declare it.
39060         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39061         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39062         * modules/utimensat-tests: New test.
39063         * tests/test-utimensat.c: Likewise.
39064
39065         utimens: let lutimens work on non-symlinks
39066         * lib/utimens.c (lutimens): Fall back to utimens rather than
39067         failing with ENOSYS, when file is not a symlink.
39068         (utimens): Reduce redirection.
39069         * tests/test-lutimens.h (test_lutimens): Update test to cover
39070         non-symlinks.
39071         * tests/test-utimens.h (test_utimens): Update test to cover
39072         symlinks.
39073         * tests/test-utimens.c (main): Update caller.
39074
39075         utimens: cache whether utimensat syscall works
39076         * lib/utimens.c (utimensat_works_really): New cache variable.
39077         (fdutimens, lutimens): Use it to avoid failing syscall.
39078
39079         test-stat-time, test-utimens: improve portability
39080         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39081         ext4 on alpha, and for cygwin.
39082         * tests/test-utimens-common.h: New file.
39083         (nap): Factor delays into single function.
39084         * tests/test-lutimens.h (test_lutimens): Use new header.
39085         * tests/test-futimens.h (test_futimens): Likewise.
39086         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39087         timestamps to occur from same machine, as was done previously for
39088         test_utimens.
39089         * modules/utimens-tests (Files): Ship new file.
39090         * modules/futimens-tests (Files): Likewise.
39091         Reported in part by Jim Meyering.
39092
39093         sys_stat: sort replacement declarations
39094         * lib/sys_stat.in.h: Sort declarations.
39095         * lib/futimens.c (futimens): Fix typo.
39096
39097 2009-10-15  Jim Meyering  <meyering@redhat.com>
39098
39099         don't let environment settings perturb build
39100         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39101         could cause a configure-time and/or build-time malfunction.
39102         Typically, a configure-time function-in-library test is performed
39103         via code like this:
39104
39105           LIB_VAR=
39106           AC_SUBST([LIB_VAR])
39107           prefix_saved_LIBS=$LIBS
39108             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39109                        [test "$ac_cv_search_FUNC" = "none required" ||
39110                         LIB_VAR=$ac_cv_search_FUNC])
39111           LIBS=$prefix_saved_LIBS
39112
39113         However, in each of the files affected by this change, the LIB_VAR=
39114         initialization was omitted.  Thus, when set in the environment, its
39115         value would propagate into generated Makefiles when FUNC is not found
39116         in LIB_NAME.
39117         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39118         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39119         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39120
39121 2009-10-14  Eric Blake  <ebb9@byu.net>
39122
39123         fchdir: avoid infinite recursion in mingw
39124         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39125         recursing.
39126
39127         test-stat-time: port to mingw
39128         * tests/test-stat-time.c (force_unlink): Return a value.
39129         (test_ctime) [W32]: Fix compilation error.
39130         (nap): Don't call usleep with too large an argument.  Use
39131         force_unlink.
39132         * doc/pastposix-functions/usleep.texi (usleep): Document the
39133         portability issue.
39134
39135 2009-10-13  Jim Meyering  <meyering@redhat.com>
39136
39137         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39138         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39139         * modules/pipe-filter-ii: Likewise.
39140         * modules/sys_socket-tests: Likewise.
39141         * modules/tsearch-tests: Likewise.
39142         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39143         (check): Depend on it.
39144
39145 2009-10-12  Eric Blake  <ebb9@byu.net>
39146
39147         utimens-tests: port to NFS file systems
39148         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39149         comparisons to avoid spurious failures from timestamp drift
39150         between NFS machines.
39151
39152 2009-10-12  Eric Blake  <ebb9@byu.net>
39153
39154         stat-time-tests: minor cleanups
39155         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39156         * tests/test-stat-time.c (nap): Separate assignment from call.
39157         Suggested by Paolo Bonzini and Bruno Haible.
39158
39159         sys_stat: guarantee struct timespec
39160         * lib/sys_stat.in.h (includes): Always include <time.h>
39161         * modules/sys_stat (Depends-on): Add time.
39162         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39163         mode_t permission values.
39164         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39165         get at subsecond timestamps.
39166
39167 2009-10-10  Eric Blake  <ebb9@byu.net>
39168
39169         futimens: new module
39170         * modules/futimens: New file.
39171         * lib/futimens.c (futimens): Likewise.
39172         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39173         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39174         we can work around Linux bugs.
39175         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39176         * modules/sys_stat (Makefile.am): Substitute them.
39177         * lib/sys_stat.in.h (futimens): Declare it.
39178         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39179         * doc/posix-functions/futimens.texi (futimens): Likewise.
39180         * modules/futimens-tests: New test.
39181         * tests/test-futimens.c: Likewise.
39182
39183         utimens: introduce fdutimens
39184         * lib/utimens.h (fdutimens): New prototype.
39185         * lib/utimens.c (gl_futimens): Move guts...
39186         (fdutimens): ...to new interface.
39187         * tests/test-utimens.c (do_fdutimens): Use it.
39188
39189         utimens: add UTIME_NOW and UTIME_OMIT support
39190         * lib/utimens.c (validate_timespec, update_timespec): New helper
39191         functions.
39192         (gl_futimens, lutimens): Use them.
39193         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39194         stdbool, sys_stat.
39195         (Link): Mention resulting library dependency.
39196         * modules/utimecmp (Link): Likewise.
39197         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39198         (Makefile.am): Pick up library dependency.
39199         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39200         definition.
39201         * tests/test-sys_stat.c: Test the definitions.
39202         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39203         * NEWS: Document library dependency.
39204
39205         utimecmp: support symlink timestamps
39206         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39207         hashing when possible.  Use pathconf when available.
39208         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39209         * modules/utimecmp (Depends-on): Add lstat.
39210
39211         utimens: add lutimens interface
39212         * lib/utimens.c (lutimens): New function.
39213         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39214         * lib/utimens.h (lutimens): Declare new interface.
39215         * tests/test-utimens.c (main): Enhance test.
39216         * tests/test-lutimens.h (test_lutimens): New file.
39217         * modules/utimens-tests (Files): Distribute it.
39218         (Depends-on): Add symlink.
39219         (configure.ac): Check for usleep.
39220
39221         utimens: validate futimens usage
39222         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39223         fewer syscalls on failure later on.  Avoid compiler warning on
39224         mingw.
39225         * modules/utimens (Depends-on): Add dup2.
39226
39227         utimens: add test
39228         * modules/utimens-tests: New test.
39229         * tests/test-utimens.h: New file.
39230         * tests/test-futimens.h: Likewise.
39231         * tests/test-utimens.c: Likewise.
39232
39233         doc: mention timestamp portability issues
39234         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39235         instead.
39236         * doc/posix-functions/utime.texi (utime): Likewise.
39237         * doc/posix-functions/utimes.texi (utimes): Likewise.
39238         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39239         instead.
39240         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39241         module.
39242         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39243         Mention weakness with symlink timestamps.
39244         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39245         to utimensat/futimens instead.
39246         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39247
39248         test-dup2: enhance test
39249         * tests/test-dup2.c (main): Also check AT_FDCWD.
39250
39251         test-stat-time: avoid more spurious failures
39252         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39253         xfs; and avoid race if the two timestamps cross quantization edge.
39254
39255         relocatable: prefer 'file system' over 'filesystem'
39256         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39257         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39258         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39259         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39260         * lib/relocatable.c (compute_curr_prefix): Likewise.
39261
39262 2009-10-10  Jim Meyering  <meyering@redhat.com>
39263
39264         stat-time-tests: check for the usleep function
39265         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39266
39267 2009-10-10  Bruno Haible  <bruno@clisp.org>
39268
39269         * modules/xnanosleep: Put the Link section after the Include section.
39270
39271 2009-10-09  Eric Blake  <ebb9@byu.net>
39272
39273         dup2: work around FreeBSD 6.1 bug
39274         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39275         * doc/posix-functions/dup2.texi (dup2): Document it.
39276         Reported by Nelson H. F. Beebe and Jim Meyering.
39277
39278         test-stat-time: port to buggy NFS clients
39279         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39280         (test_ctime): Also skip test if mtime and ctime are skewed.
39281
39282         maint: prefer 'file system' over 'filesystem'
39283         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39284         * doc/posix-functions/lstat.texi (lstat): Likewise.
39285         * lib/file-has-acl.c (file_has_acl): Likewise.
39286         * lib/fwriteerror.c [TEST]: Likewise.
39287         * tests/test-areadlink.h (test_areadlink): Likewise.
39288         * tests/test-areadlinkat-with-size.c (main): Likewise.
39289         * tests/test-areadlinkat.c (main): Likewise.
39290         * tests/test-canonicalize-lgpl.c (main): Likewise.
39291         * tests/test-canonicalize.c (main): Likewise.
39292         * tests/test-fstatat.c (main): Likewise.
39293         * tests/test-linkat.c (main): Likewise.
39294         * tests/test-lstat.h (test_lstat_func): Likewise.
39295         * tests/test-mkdir.h (test_mkdir): Likewise.
39296         * tests/test-readlink.h (test_readlink): Likewise.
39297         * tests/test-remove.c (main): Likewise.
39298         * tests/test-rename.h (test_rename): Likewise.
39299         * tests/test-renameat.c (main): Likewise.
39300         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39301         * tests/test-symlink.h (test_symlink): Likewise.
39302         * tests/test-symlinkat.c (main): Likewise.
39303         * tests/test-unlink.h (test_unlink_func): Likewise.
39304         * tests/test-unlinkat.c (main): Likewise.
39305
39306         maint: make realtime library usage explicit
39307         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39308         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39309         * modules/settime (Link): Likewise.
39310         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39311
39312         test-stat-time: speed up execution
39313         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39314         warning on mingw.
39315         (nap): New helper function.
39316         (prepare_test): Use it to reduce sleep time.
39317         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39318         execution.
39319         * modules/stat-time-tests (configure.ac): Check for usleep.
39320
39321 2009-10-09  Jim Meyering  <meyering@redhat.com>
39322
39323         selinux-h: always use getfilecon wrappers
39324         * lib/getfilecon.c: New file.
39325         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
39326         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
39327         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
39328         (fgetfilecon): Provide a stub.
39329         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
39330         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
39331         file unconditionally.
39332         When <selinux/selinux.h> is found, arrange to use wrappers.
39333         * modules/selinux-h (Files): Add getfilecon.c.
39334         (Makefile.am): Substitute include-next-related bits
39335         into the now-always-generated selinux/selinux.h file.
39336         * doc/glibc-functions/lgetfilecon.texi: New file.
39337         * doc/glibc-functions/fgetfilecon.texi: New file.
39338         * doc/glibc-functions/getfilecon.texi: New file.
39339         * doc/glibc-functions/getfilecon-desc.texi: New file.
39340         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
39341         which to pull in the new files.
39342         * MODULES.html.sh (Misc): Add selinux-h.
39343
39344 2009-10-08  Jim Meyering  <meyering@redhat.com>
39345
39346         unistd: fix comment typo
39347         * lib/unistd.in.h (euidaccess): Fix a comment typo.
39348
39349 2009-10-08  Eric Blake  <ebb9@byu.net>
39350
39351         areadlink: use SIZE_MAX consistently
39352         * modules/areadlink (Depends-on): Add stdint.
39353         * modules/areadlink-with-size (Depends-on): Likewise.
39354         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
39355         gives NULL; drop sys/types, since unistd gives size_t; and add
39356         stdint for SIZE_MAX.
39357         (SIZE_MAX): Rely on headers.
39358         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39359         and add stdint.
39360         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39361         (SIZE_MAX): Likewise.
39362         (INITIAL_BUF_SIZE): Turn into enum.
39363         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39364
39365 2009-10-08  Jim Meyering  <meyering@redhat.com>
39366
39367         areadlinkat: avoid compilation failure
39368         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39369         Fix typo in comment.
39370
39371 2009-10-07  Eric Blake  <ebb9@byu.net>
39372
39373         areadlinkat-with-size: new module
39374         * modules/areadlinkat-with-size: New module.
39375         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39376         * lib/areadlink.h (areadlinkat): Declare it.
39377         * MODULES.html.sh (File system functions): Mention it.
39378         * modules/areadlinkat-with-size-tests: New test.
39379         * tests/test-areadlinkat-with-size.c: New file.
39380
39381         xreadlinkat: new module
39382         * modules/xreadlinkat: New module.
39383         * lib/xreadlinkat.c (xreadlinkat): New file.
39384         * lib/xreadlink.h (xreadlinkat): Declare it.
39385         * MODULES.html.sh (File system functions): Mention it.
39386
39387         areadlinkat: new module
39388         * lib/at-func.c (FUNC_FAIL): New define.
39389         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39390         * modules/areadlinkat: New module.
39391         * lib/linkat.c (areadlinkat): Move...
39392         * lib/areadlinkat.c (areadlinkat): ...to new file.
39393         * lib/areadlink.h (areadlinkat): Declare it.
39394         * modules/linkat (Depends-on): Add areadlinkat.
39395         * MODULES.html.sh (File system functions): Mention it.
39396         * modules/areadlinkat-tests: New test.
39397         * tests/test-areadlinkat.c: New file.
39398
39399         areadlink, areadlink-with-size: add tests
39400         * modules/areadlink-tests: New test.
39401         * modules/areadlink-with-size-tests: Likewise.
39402         * tests/test-areadlink.h: New file.
39403         * tests/test-areadlink.c: Likewise.
39404         * tests/test-areadlink-with-size.c: Likewise.
39405
39406         maint: minor cleanups
39407         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
39408         _UNUSED_PARAMETER_ instead.
39409         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
39410         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
39411         * modules/linkat-tests (Files): Distribute test-link.h.
39412
39413         openat, utimens: whitespace cleanup
39414         * lib/openat.c: Prefer space throughout, rather than mix of 8
39415         spaces vs. tabs.
39416         * lib/at-func.c: Likewise.
39417         * lib/utimens.c: Likewise.
39418
39419         openat: avoid using wrong fd
39420         * lib/openat.c (openat_permissive): Reject user's fd if saving the
39421         working directory chooses same fd.
39422         * lib/at-func.c (AT_FUNC_NAME): Likewise.
39423
39424         mkdir, mkdirat: fix cygwin 1.5.x bug
39425         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
39426         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
39427         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
39428         bug.
39429         (gl_PREREQ_MKDIR): Delete unused macro.
39430         * modules/mkdir (Files): Track file rename.
39431         (configure.ac): Update macro name.
39432         * modules/openat (Depends-on): Add mkdir.
39433         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
39434
39435         mkdir, mkdirat: add tests
39436         * modules/mkdir-tests: New test.
39437         * tests/test-mkdir.h: New file.
39438         * tests/test-mkdir.c: Likewise.
39439         * tests/test-mkdirat.c: Likewise.
39440         * modules/openat-tests (Files): Add new files.
39441         (Makefile.am): Run new test.
39442
39443 2009-10-06  Eric Blake  <ebb9@byu.net>
39444
39445         doc: tweak *at function documentation
39446         * doc/posix-functions/faccessat.texi (faccessat): Mention
39447         known issue with replacement.
39448         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
39449         * doc/posix-functions/linkat.texi (linkat): Likewise.
39450         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39451         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39452         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39453         * doc/posix-functions/renameat.texi (renameat): Likewise.
39454         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39455
39456         openat: fix GNU/Hurd bug in unlinkat
39457         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
39458         broken.
39459         * doc/posix-functions/unlink.texi (unlink): Document this.
39460         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
39461
39462         fdopendir: fix GNU/Hurd bug
39463         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
39464         allowing non-directory fds.
39465         * lib/fdopendir.c (rpl_fdopendir): Work around it.
39466         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
39467         * modules/dirent (Makefile.am): Substitute it.
39468         * lib/dirent.in.h (fdopendir): Declare replacement.
39469         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
39470         * tests/test-fdopendir.c (main): Test something other than
39471         /dev/null, since on Hurd that behaves like a directory.
39472
39473         test-symlink: port to GNU/Hurd
39474         * tests/test-symlink.h (test_symlink): Relax expected errno.
39475
39476         doc: tweak more cygwin information
39477         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
39478         now compatible with glibc.
39479         * doc/posix-functions/getopt.texi (getopt): Likewise.
39480
39481         getopt-gnu: add another test
39482         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
39483         guarantee behavior relied on by m4.
39484         * tests/test-getopt.c (main): Use it.
39485         * modules/getopt-posix-tests (Depends-on): Add setenv.
39486         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
39487
39488         getopt: fix compilation on darwin
39489         * lib/getopt.in.h (includes): Leave breadcrumbs during system
39490         include.
39491         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
39492         Reported by Ludovic Courtès.
39493
39494 2009-10-06  Bruno Haible  <bruno@clisp.org>
39495
39496         * modules/size_max (Description): Discourage its use.
39497         Reported by Simon Josefsson.
39498
39499 2009-10-06  Jim Meyering  <meyering@redhat.com>
39500
39501         linkat: avoid compilation failure
39502         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
39503
39504 2009-10-05  Eric Blake  <ebb9@byu.net>
39505
39506         linkat: support Linux 2.6.17
39507         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39508         linkat on Linux, but allow cache variable override.
39509         * lib/linkat.c (rpl_linkat): Define override.
39510         * modules/linkat (Depends-on): Add symlinkat.
39511         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39512         * modules/unistd (Makefile.am): Substitute it.
39513         * lib/unistd.in.h (linkat): Declare replacement.
39514         Reported by Pádraig Brady.
39515
39516         quotearg: port test to systems with C.UTF-8 locale
39517         * tests/test-quotearg.c (struct result_strings): Add another
39518         member, differentiating between C.ASCII and C.UTF-8 handling.
39519         (compare_strings): Add parameter.
39520         (main): Adjust all callers.
39521
39522         getopt: avoid clash with FreeBSD _getopt_internal
39523         * lib/getopt.in.h (_getopt_internal): Override the name.
39524         * lib/getopt_int.h (includes): Pick up any overrides.
39525         Reported by Reuben Thomas.
39526
39527         hash: allow C89 compilation
39528         * lib/hash.c (check_tuning): Move declaration before statement.
39529         Reported by Reuben Thomas.
39530
39531 2009-10-05  Karl Berry  <karl@gnu.org>
39532
39533         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39534
39535 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39536             Bruno Haible  <bruno@clisp.org>
39537
39538         * lib/uname.c (uname): Use a table-driven algorithm to compute
39539         Windows NT versions.
39540
39541 2009-10-04  Bruno Haible  <bruno@clisp.org>
39542
39543         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39544         program_invocation_short_name.
39545         * modules/progname (configure.ac): Test for presence of
39546         program_invocation_short_name.
39547         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39548
39549 2009-10-04  Bruno Haible  <bruno@clisp.org>
39550
39551         * lib/progname.c (set_program_name): Fix comment.
39552         Reported by Jim Meyering.
39553
39554 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39555             Bruno Haible  <bruno@clisp.org>
39556
39557         * lib/uname.c: Include <string.h>.
39558         (uname): Do only one call to GetVersionEx in the common case.
39559
39560 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39561             Bruno Haible  <bruno@clisp.org>
39562
39563         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39564         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39565         (uname): Add support for Windows CE and various non-x86 CPU types.
39566
39567 2009-10-03  Bruno Haible  <bruno@clisp.org>
39568
39569         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39570         invocation to tests/configure.ac.
39571         Reported by Ian Beckwith <ianb@erislabs.net>.
39572
39573 2009-10-02  Eric Blake  <ebb9@byu.net>
39574
39575         fchdir: avoid compiler warning
39576         * lib/fchdir.c (canonicalize_file_name)
39577         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39578
39579         test-open: support mingw errno values
39580         * tests/test-open.h (test_open): Relax test.
39581         * tests/test-fopen.h (test_fopen): Likewise.
39582         * tests/test-openat-safer.c (main): Likewise.
39583
39584         open: fix opening directory on mingw
39585         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39586
39587         test-open: on GNU/Hurd, /dev/null is a directory
39588         * tests/test-fopen.h (main): Rename...
39589         (test_fopen): ...to this.  Use a guaranteed non-directory when
39590         confirming open behavior on trailing slash.
39591         * tests/test-openat-safer.c (main): Likewise.
39592         * tests/test-open.h (main): Likewise....
39593         (test_open): ...to this.
39594         * tests/test-fopen.c (main): Adjust caller.
39595         * tests/test-fopen-safer.c (main): Likewise.
39596         * tests/test-open.c (main): Likewise.
39597         * tests/test-fcntl-safer.c (main): Likewise.
39598         Reported by Samuel Thibault.
39599
39600         rename, fchdir: don't ignore chdir failure
39601         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39602         * lib/rename.c (rpl_rename) [W32]: Likewise.
39603         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39604         an empty destination directory if source cannot be renamed,
39605         although there is still possibility for failure.
39606         * doc/posix-functions/rename.texi (rename): Document the race.
39607         Reported by Jim Meyering.
39608
39609         maint: cleanup whitespace in recent commits
39610         * lib/rename.c (rpl_rename): Remove tabs.
39611         * tests/test-link.h (test_link): Likewise.
39612         * lib/fchdir.c (get_name): Likewise.
39613         Reported by Jim Meyering.
39614
39615 2009-10-02  Ben Pfaff  <blp@gnu.org>
39616
39617         relocatable-prog-wrapper: Add missing dependency on
39618         double-slash-root.
39619         * modules/relocatable-prog-wrapper: Add dependency.
39620         Reported by Ian Beckwith <ianb@erislabs.net>.
39621
39622 2009-10-02  Eric Blake  <ebb9@byu.net>
39623
39624         renameat: fix Solaris bugs
39625         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39626         needed fixing.
39627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39628         * modules/stdio (Makefile.am): Substitute it.
39629         * lib/stdio.in.h (renameat): Declare replacement.
39630         * lib/renameat.c (rpl_renameat): Implement fix.
39631
39632         renameat: new module
39633         * modules/renameat: New file.
39634         * lib/renameat.c (renameat): Likewise.
39635         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39636         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39637         * modules/stdio (Makefile.am): Substitute them.
39638         * lib/stdio.in.h (renameat): Declare it.
39639         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39640         * doc/posix-functions/renameat.texi (renameat): Likewise.
39641         * modules/renameat-tests: New test.
39642         * tests/test-renameat.c: Likewise.
39643
39644         rename: fix mingw bugs
39645         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39646         directory overwrite bugs.
39647
39648         rename: fix another cygwin 1.5 bug
39649         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39650         checks.
39651         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39652         unnecessary cygwin workarounds.  Also work around bug with moving
39653         full directory onto an empty one.
39654         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39655
39656         rename-dest-slash: merge into rename module
39657         * modules/rename-dest-slash (Status): Mark obsolete.
39658         (Depends-on): Add rename.
39659         (Files): Let rename do it all.
39660         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
39661         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
39662         * m4/rename-dest-slash.m4: ...so this file can be deleted.
39663         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
39664         * lib/rename.c (rpl_rename): Update comments.
39665
39666         rename: fix cygwin 1.5.x bugs
39667         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
39668         * lib/rename.c (rpl_rename): Work around them.
39669         * modules/rename (Depends-on): Add same-inode.
39670
39671         rename: fix Solaris 10 bug
39672         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39673         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
39674         was the only bug.
39675
39676         rename: fix Solaris 9 bug
39677         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
39678         on non-directory.  Avoid calling exit.
39679         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
39680         strdup.
39681         * modules/rename-tests (Depends-on): Drop lstat.
39682         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39683         (gl_PREREQ_RENAME): Delete unused macro.
39684
39685         rename-dest-slash: fix NetBSD bug
39686         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
39687         links.
39688         * modules/rename-dest-slash (Depends-on): Add same-inode.
39689
39690         rename-tests: new test, exposes several platform bugs
39691         * modules/rename-tests: New file.
39692         * tests/test-rename.h: Likewise.
39693         * tests/test-rename.c: Likewise.
39694         * doc/posix-functions/rename.texi (rename): Improve documentation,
39695         including bugs that will eventually be fixed in gnulib.
39696
39697 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
39698
39699         * lib/uname.c: Include <stdlib.h>
39700         (uname): Assume version info is available.
39701
39702 2009-10-02  Jim Meyering  <meyering@redhat.com>
39703
39704         gnu-web-doc-update: correct --help output
39705         * build-aux/gnu-web-doc-update: Make --help output relevant.
39706
39707         gnu-web-doc-update: add standard options
39708         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
39709
39710         gnu-web-doc-update: New module.
39711         Use this script to automatically update the on-line web documentation
39712         for your GNU project at http://www.gnu.org/software/$pkg/manual/
39713         * modules/gnu-web-doc-update: New file, from coreutils.
39714         * build-aux/gnu-web-doc-update: New script.
39715
39716 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
39717
39718         link: LoadLibrary is not needed.
39719         * lib/link.c: Use GetModuleHandle.
39720
39721 2009-10-01  Eric Blake  <ebb9@byu.net>
39722
39723         getopt: bump serial number
39724         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
39725         change.
39726
39727         tests: tighten link, rmdir, and remove tests
39728         * tests/test-link.h (includes): No need to use <config.h> here.
39729         Clean up if directory hard link was created, otherwise test for
39730         trailing '.'.
39731         * tests/test-linkat.c (main): Simplify.
39732         * tests/test-remove.c (main): Enhance test for trailing '.'.
39733         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39734
39735 2009-10-01  Jim Meyering  <meyering@redhat.com>
39736
39737         maint.mk: requiring "make major" was annoying, for a "minor" release.
39738         What is intended is "stable", to contrast with alpha and beta,
39739         so require "make stable", not "make major".
39740         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
39741         (get_tool_versions): Likewise.
39742         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
39743
39744 2009-09-30  Ben Pfaff  <blp@gnu.org>
39745
39746         Fix broken build of replacement for Windows tmpfile().
39747         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
39748         flags argument added along with the 'mkostemp' module.
39749
39750 2009-09-28  Bruno Haible  <bruno@clisp.org>
39751
39752         Avoid identifier clash with POSIX function 'remove' defined as a macro.
39753         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
39754         to 'remove_elt'.
39755         (gl_list_remove): Update.
39756         * lib/gl_list.c (gl_list_remove): Update.
39757         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
39758         to 'remove_elt'.
39759         (gl_oset_remove): Update.
39760         * lib/gl_list.c (gl_oset_remove): Update.
39761         Reported by Eric Blake.
39762
39763 2009-09-28  Eric Blake  <ebb9@byu.net>
39764
39765         doc: mention yet more cygwin 1.7 status
39766         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
39767         cygwin.
39768         * doc/glibc-functions/execvpe.texi (execvpe): New file.
39769         * doc/gnulib.texi (Glibc unistd.h): Mention it.
39770
39771         argp: fix test failure
39772         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
39773         that are not upper-case.  Pass correct range to tolower.
39774
39775 2009-09-27  Jim Meyering  <meyering@redhat.com>
39776
39777         test-yesno: work around sparc-dash here-document infelicity
39778         Without this change, the literal \177 byte in a here document
39779         would make dash 0.5.5.1-3 access uninitialized memory.
39780         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
39781         Instead, use a marker, "@", and filter through tr to create the desired
39782         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
39783
39784 2009-09-27  Bruno Haible  <bruno@clisp.org>
39785
39786         Disable untested support for new flavours of ACLs on AIX.
39787         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
39788         progress.
39789         * lib/set-mode-acl.c (qset_acl): Likewise.
39790
39791 2008-12-07  Bruno Haible  <bruno@clisp.org>
39792
39793         Add support for new flavours of ACLs on AIX. (Untested.)
39794         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
39795         (file_has_acl): Add support for newer AIX.
39796         * lib/set-mode-acl.c (qset_acl): Likewise.
39797         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
39798         Rainer Tammer <tammer@tammer.net>.
39799
39800 2009-09-26  Eric Blake  <ebb9@byu.net>
39801
39802         argp: fix compilation of getopt
39803         * lib/getopt.in.h (includes): Use different guard than glibc.
39804         Reported by Sergey Poznyakoff.
39805
39806         doc: mention more cygwin 1.7 status
39807         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
39808         bug.
39809         * doc/posix-functions/execl.texi (execl): Likewise.
39810         * doc/posix-functions/execle.texi (execle): Likewise.
39811         * doc/posix-functions/execlp.texi (execlp): Likewise.
39812         * doc/posix-functions/execv.texi (execv): Likewise.
39813         * doc/posix-functions/execve.texi (execve): Likewise.
39814         * doc/posix-functions/execvp.texi (execvp): Likewise.
39815         * doc/glibc-functions/canonicalize_file_name.texi
39816         (canonicalize_file_name): Cygwin 1.7 now provides this.
39817         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
39818         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
39819         on AT_SYMLINK_NOFOLLOW.
39820
39821 2009-09-24  Eric Blake  <ebb9@byu.net>
39822
39823         test-linkat: make test more robust
39824         * tests/test-linkat.c (main): Avoid collision with EEXIST.
39825
39826         getopt: fix inclusion guards for cygwin
39827         * modules/getopt-posix (Depends-on): Add include-next.
39828         (Makefile.am): Substitute more items in replacement header.
39829         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
39830         <getopt.h>.
39831         * lib/getopt.in.h (includes): Use split inclusion guard, and
39832         prefer <getopt.h> over include <unistd.h> when one is present.
39833         (option): Also override name of 'struct option'.
39834
39835         same-inode: revert prior change; it is not yet ready
39836         * NEWS: Undo mention of this change.
39837         * lib/same-inode.h (same-inode.h): Undo tri-state change.
39838         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39839         * lib/cycle-check.c (cycle_check): Likewise.
39840         * lib/same.c (same_name): Likewise.
39841         * lib/at-func2.c (at_func2): Likewise.
39842
39843 2009-09-23  Eric Blake  <ebb9@byu.net>
39844
39845         linkat: new module
39846         * modules/linkat: New file.
39847         * lib/at-func2.c (at_func2): Likewise.
39848         * lib/linkat.c (linkat): Likewise.
39849         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
39850         * lib/openat-priv.h (at_func2): Add declaration.
39851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39852         * modules/unistd (Makefile.am): Substitute them.
39853         * lib/unistd.in.h (linkat): Declare it.
39854         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39855         * doc/posix-functions/linkat.texi (linkat): Likewise.
39856         * doc/posix-functions/link.texi (link): Tweak wording.
39857         * tests/test-link.c (main): Move guts...
39858         * tests/test-link.h (test_link): ...into new file.
39859         * modules/linkat-tests: New test.
39860         * tests/test-linkat.c: Likewise.
39861         * modules/link-tests (Files): Ship new file.
39862         (Depends-on): Add stdbool.
39863
39864         dirname: add library-safe mdir_name
39865         * lib/dirname.h (mdir_name): New prototype.
39866         * lib/dirname.c (dir_name): Move guts...
39867         (mdir_name): ...to new function that avoids xalloc_die.
39868
39869         fchdir: another mingw fix
39870         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
39871         * lib/fchdir.c (get_name): New helper method; skips canonicalize
39872         on mingw (where it has not yet been ported), and make it optional
39873         elsewhere.
39874         (_gl_register_fd): Use it.
39875
39876         same-inode: make SAME_INODE tri-state, to port to mingw
39877         * NEWS: Mention this change.
39878         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
39879         st_ino always being 0.
39880         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39881         * lib/cycle-check.c (cycle_check): Likewise.
39882         * lib/same.c (same_name): Likewise.
39883
39884         lstat: avoid mingw compilation error
39885         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
39886         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
39887         lstat ourselves.
39888         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
39889         was adequate.
39890         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
39891         the checks for lstat.
39892         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
39893
39894         link: fix test failure on Solaris 9
39895         * lib/link.c (rpl_link): Don't assume link will catch bogus
39896         trailing slash on source.
39897
39898         test-symlinkat: enhance test
39899         * tests/test-readlink.c (main): Move guts...
39900         * tests/test-readlink.h (test_readlink): ...into new file.
39901         * tests/test-symlink.c (main): Move guts...
39902         * tests/test-symlink.h (test_symlink): ...into new file.
39903         * tests/test-symlinkat.c (main): Use new files for further
39904         coverage.
39905         (do_symlink, do_readlink): New helper functions.
39906         * modules/symlink-tests (Files): Ship new file.
39907         (Depends-on): Add stdbool.
39908         * modules/readlink-tests (Files): Ship new file.
39909         (Depends-on): Add stdbool.
39910         * modules/symlinkat-tests (Files): Use new files.
39911
39912 2009-09-23  Eric Blake  <ebb9@byu.net>
39913
39914         readlink: document portability issue with symlink length
39915         * doc/posix-functions/lstat.texi (lstat): Mention that some file
39916         systems have bogus st_size on symlinks, and mention the
39917         areadlink-with-size module.
39918         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39919         * doc/posix-functions/readlink.texi (readlink): Mention the
39920         areadlink module, and ERANGE failure.
39921         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39922         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
39923
39924         readlink: fix Solaris 9 bug with trailing slash
39925         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
39926         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
39927         * doc/posix-functions/readlink.texi (readlink): Document this.
39928         * modules/readlink-tests: New test.
39929         * tests/test-readlink.c: Likewise.
39930
39931         readlink: fix cygwin 1.5.x bug with return type
39932         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
39933         * lib/unistd.in.h (readlink): Use ssize_t.
39934         * lib/readlink.c (readlink): Likewise.
39935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39936         * modules/unistd (Makefile.am): Substitute it.
39937         * lib/unistd.in.h (readlink): Declare replacement.
39938         * doc/posix-functions/readlink.texi (readlink): Document this.
39939
39940         symlink: use throughout gnulib
39941         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
39942         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
39943         symlink is not used.
39944         * modules/symlinkat (Depends-on): Add symlink.
39945         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
39946         * modules/canonicalize-tests (Depends-on): Likewise.
39947         * modules/lstat-tests (Depends-on): Likewise.
39948         * modules/openat-tests (Depends-on): Likewise.
39949         * modules/remove-tests (Depends-on): Likewise.
39950         * modules/rmdir-tests (Depends-on): Likewise.
39951         * modules/unlink-tests (Depends-on): Likewise.
39952         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
39953         * tests/test-canonicalize.c (symlink): Likewise.
39954         * tests/test-fstatat.c (symlink): Likewise.
39955         * tests/test-lstat.c (symlink): Likewise.
39956         * tests/test-remove.c (symlink): Likewise.
39957         * tests/test-rmdir.c (symlink): Likewise.
39958         * tests/test-unlink.c (symlink): Likewise.
39959         * tests/test-unlinkat.c (symlink): Likewise.
39960
39961         symlink: new module, for Solaris 9 bug
39962         * modules/symlink: New file.
39963         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
39964         * lib/symlink.c: Likewise.
39965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39966         * modules/unistd (Makefile.am): Substitute them.
39967         * lib/unistd.in.h (symlink): Declare replacement.
39968         * MODULES.html.sh (File system functions): Mention it.
39969         * doc/posix-functions/symlink.texi (symlink): Likewise.
39970         * modules/symlink-tests: New test.
39971         * tests/test-symlink.c: Likewise.
39972
39973 2009-09-23  Bruno Haible  <bruno@clisp.org>
39974
39975         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
39976         when needed.
39977         Test case: gnulib-tool --import --with-tests atexit inttypes.
39978         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
39979
39980 2009-09-23  Bruno Haible  <bruno@clisp.org>
39981
39982         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
39983         subcommand, not in a subshell.
39984
39985 2009-09-22  Eric Blake  <ebb9@byu.net>
39986
39987         unistd: sort replacement declarations
39988         * lib/unistd.in.h: Sort declarations.
39989
39990         open, openat: minor optimization
39991         * lib/open.c (open): If open succeeded, len is non-zero.
39992         * lib/openat.c (rpl_openat): Likewise.
39993
39994         link-follow: ensure correct result
39995         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
39996         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
39997         distinguish between possible failures.
39998
39999 2009-09-21  Eric Blake  <ebb9@byu.net>
40000
40001         fts: avoid compiler warning
40002         * lib/fts.c (dirent_inode_sort_may_be_useful)
40003         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40004
40005 2009-09-19  Bruno Haible  <bruno@clisp.org>
40006
40007         * lib/progreloc.c (canonicalize_file_name): New declaration.
40008
40009 2009-09-19  Eric Blake  <ebb9@byu.net>
40010
40011         link: fix quoting
40012         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40013
40014         openat: fix openat bugs on Solaris 9
40015         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40016         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40017         * modules/openat (Depends-on): Add open.
40018         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40019         * modules/fcntl-h (Makefile.am): Substitute it.
40020         * lib/fcntl.in.h (openat): Declare replacement.
40021         * doc/posix-functions/openat.texi (openat): Document this.
40022
40023         openat: move fstatat and unlinkat into correct files
40024         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40025         compiled.
40026         * lib/openat.c (fstatat, unlinkat): Move...
40027         * lib/fstatat.c (fstatat): ...into correct files.
40028         * lib/unlinkat.c (unlinkat): Likewise.
40029
40030         openat: fix unlinkat bugs on Solaris 9
40031         * lib/unlinkat.c (unlinkat): New file.
40032         * modules/openat (Depends-on): Add unlink.
40033         (Files): Distribute it.
40034         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40035         trailing slash behavior is broken.
40036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40037         * modules/unistd (Makefile.am): Substitute it.
40038         * lib/unistd.in.h (unlinkat): Declare replacement.
40039         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40040
40041         openat: fix fstatat bugs on Solaris 9
40042         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40043         stat.
40044         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40045
40046         test-unlinkat: enhance test, to expose Solaris 9 bug
40047         * tests/test-unlink.c (main): Factor guts...
40048         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40049         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40050         * tests/test-rmdir.c (main): Adjust caller.
40051         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40052         (unlinker): New helper function.
40053         (rmdirat): Enhance check.
40054         * modules/rmdir-tests (Depends-on): Add stdbool.
40055         * modules/unlink-tests (Depends-on): Likewise.
40056         (Files): Add test-unlink.h.
40057         * modules/openat-tests (Files): Likewise.
40058         (Depends-on): Add unlinkdir.
40059
40060         test-fstatat: new test, to expose Solaris 9 bugs
40061         * tests/test-stat.c (main): Factor guts...
40062         * tests/test-stat.h (test_stat_func): ...into new file.
40063         * tests/test-lstat.c (main): Factor guts...
40064         * tests/test-lstat.h (test_lstat_func): ...into new file.
40065         * tests/test-fstatat.c: New file.
40066         * modules/stat-tests (Files): Add test-stat.h.
40067         * modules/lstat-tests (Files): Add test-lstat.h.
40068         (Depends-on): Add stdbool.
40069         * modules/openat-tests (Depends-on): Add pathmax.
40070         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40071         (Makefile.am): Run new test.
40072
40073         remove: new module, for mingw and Solaris 9 bugs
40074         * modules/remove: New file.
40075         * lib/remove.c: Likewise.
40076         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40077         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40078         * modules/stdio (Makefile.am): Use them.
40079         * lib/stdio.in.h (remove): Declare replacement.
40080         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40081         * doc/posix-functions/remove.texi (remove): Likewise.
40082         * modules/remove-tests: New test.
40083         * tests/test-remove.c: Likewise.
40084
40085         unlink: new module, for Solaris 9 bug
40086         * modules/unlink: New file.
40087         * lib/unlink.c: Likewise.
40088         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40090         * modules/unistd (Makefile.am): Use them.
40091         * lib/unistd.in.h (stat): Declare replacement.
40092         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40093         * doc/posix-functions/unlink.texi (unlink): Likewise.
40094         * modules/unlink-tests: New test.
40095         * tests/test-unlink.c: Likewise.
40096
40097         lstat: fix Solaris 9 bug
40098         * lib/lstat.c (lstat): Also check for trailing slash on
40099         non-symlink, non-directories.  Use stat module to simplify logic.
40100         * doc/posix-functions/lstat.texi (lstat): Document it.
40101         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40102         (configure.ac): Check for symlink.
40103         * tests/test-lstat.c (main): Add more tests.
40104
40105         stat: add as dependency to other modules
40106         * modules/chown (Depends-on): Add stat.
40107         * modules/euidaccess (Depends-on): Likewise.
40108         * modules/fchdir (Depends-on): Likewise.
40109         * modules/isdir (Depends-on): Likewise.
40110         * modules/link (Depends-on): Likewise.
40111         * modules/lstat (Depends-on): Likewise.
40112         * modules/mkdir-p (Depends-on): Likewise.
40113         * modules/modechange (Depends-on): Likewise.
40114         * modules/open (Depends-on): Likewise.
40115         * modules/readlink (Depends-on): Likewise.
40116         * modules/same (Depends-on): Likewise.
40117
40118         stat: fix Solaris 9 bug
40119         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40120         slash.
40121         * lib/stat.c (rpl_stat): Work around it.
40122         * doc/posix-functions/stat.texi (stat): Update documentation.
40123
40124         stat: new module, for mingw bug
40125         * modules/stat: New file.
40126         * lib/stat.c: Likewise.
40127         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40128         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40129         * modules/sys_stat (Makefile.am): Use them.
40130         * lib/sys_stat.in.h (stat): Declare replacement.
40131         * lib/openat.c (fstatat): Deal with lstat and stat being function
40132         macros.
40133         * modules/openat (Depends-on): Add inline.
40134         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40135         * doc/posix-functions/stat.texi (stat): Likewise.
40136         * modules/stat-tests: New test.
40137         * tests/test-stat.c: Likewise.
40138
40139 2009-09-19  Jim Meyering  <meyering@redhat.com>
40140
40141         syntax-check: detect unnecessary inclusion of canonicalize.h
40142         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40143
40144 2009-09-19  Eric Blake  <ebb9@byu.net>
40145
40146         canonicalize-lgpl: adjust clients to use correct header
40147         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40148         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40149         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40150         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40151         * lib/progreloc.c (includes): Likewise.
40152
40153 2009-09-19  Jim Meyering  <meyering@redhat.com>
40154
40155         test-posixtm.c: correct a comment
40156         * tests/test-posixtm.c: Correct first-line comment.
40157         Spotted by Eric Blake.
40158
40159 2009-09-16  Jim Meyering  <meyering@redhat.com>
40160
40161         posixtm-tests: make T const-correct; add a test case
40162         * tests/test-posixtm.c (T): Declare const.
40163         Add a test for -(2^31+1).
40164         Remove useless can-succeed-only-in-2002 test.
40165
40166         posixtm-tests: adjust the sole failing test
40167         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40168         expected output matches what mktime now produces.  Cross-checked via
40169         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40170
40171         posixtm: move #ifdef'd tests into a new module
40172         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40173         * tests/test-posixtm.c: ... this new file.
40174         * modules/posixtm-tests: New module.
40175
40176 2009-09-19  Eric Blake  <ebb9@byu.net>
40177
40178         openat: simplify use of at-func.c
40179         * lib/at-func.c (includes): Include prerequisites here, to
40180         simplify requirements on client files.
40181         * lib/openat-priv.h: Add double-inclusion guard.
40182         * lib/faccessat.c (includes): Simplify.
40183         * lib/fchmodat.c (includes): Likewise.
40184         * lib/fchownat.c (includes): Likewise.
40185         * lib/mkdirat.c (includes): Likewise.
40186         * lib/mkfifoat.c (includes): Likewise.
40187         * lib/symlinkat.c (includes): Likewise.
40188
40189         openat: allow return of fd 0
40190         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40191         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40192         unistd-safer.
40193         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40194         <fcntl.h>; this module does not leak fds.
40195         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40196         must be allowed to return 0, leaving openat_safer to add the
40197         safety.
40198         (openat_permissive): Avoid writing to just-opened fd 2 if
40199         restoring the current directory fails.
40200         * lib/openat-die.c (openat_restore_fail): Add comment.
40201         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40202         (save_cwd): Guarantee safe fd, but without use of open_safer.
40203         * tests/test-openat.c: New test.
40204         * modules/openat-tests (Files, Makefile.am): Distribute and build
40205         new file.
40206
40207         relocatable-prog-wrapper: fix build
40208         * modules/relocatable-prog-wrapper (Files): Update name of
40209         canonicalize m4 file, broken on 2009-09-17.
40210         Reported by emad hajjar <aleppos@hotmail.com>.
40211
40212 2009-09-19  Bruno Haible  <bruno@clisp.org>
40213
40214         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40215         * lib/safe-alloc.c: Likewise.
40216         Reported by Ian Beckwith <ianb@erislabs.net>.
40217
40218 2009-09-18  Bruno Haible  <bruno@clisp.org>
40219
40220         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40221         Reported by <erobles@sensacd.com.mx>.
40222
40223 2009-09-17  Eric Blake  <ebb9@byu.net>
40224
40225         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40226         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40227         slashes when checking if last component is missing.
40228         * tests/test-canonicalize.c (main): Test this.
40229
40230         canonicalize, canonicalize-lgpl: honor // if distinct from /
40231         * modules/canonicalize (Files): Add double-slash-root.m4.
40232         * modules/canonicalize-lgpl (Files): Likewise.
40233         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40234         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40235         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40236         fallback definition.
40237         (canonicalize_filename_mode): Use it to protect //.
40238         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40239         (__realpath): Likewise.
40240         * tests/test-canonicalize.c (main): Test this.
40241         * tests/test-canonicalize-lgpl.c (main): Likewise.
40242         * modules/canonicalize-tests (Depends-on): Add same-inode.
40243         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40244
40245         canonicalize-lgpl: fix glibc bug with trailing slash
40246         * m4/canonicalize-lgpl.m4: Move contents...
40247         * m4/canonicalize.m4: ...here.
40248         (gl_CANONICALIZE_LGPL): Factor realpath check...
40249         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40250         glibc 2.3.5 bug, fixed 2005-04-27.
40251         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40252         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40253         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40254         * modules/canonicalize-lgpl (Files): Manage file rename.
40255         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40256         * modules/stdlib (Makefile.am): Substitute witness.
40257         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40258         is needed.
40259         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40260         replacement is required.
40261         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40262         * doc/glibc-functions/canonicalize_file_name.texi
40263         (canonicalize_file_name): Document this.
40264         * doc/posix-functions/realpath.texi (realpath): Likewise.
40265
40266         canonicalize-lgpl: reject non-directory with trailing slash
40267         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40268         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40269         catches failures in glibc 2.3.5.
40270         * tests/test-canonicalize.c (main): Likewise.
40271
40272         canonicalize-lgpl: use native realpath if it works
40273         * lib/canonicalize-lgpl.c (realpath): Guard with
40274         FUNC_REALPATH_WORKS.
40275         * lib/stdlib.in.h (realpath): Make declaration optional based on
40276         HAVE_REALPATH.
40277         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40278         native realpath works.
40279         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40280         * modules/stdlib (Makefile.am): Substitute witness.
40281
40282         canonicalize, canonicalize-lgpl: use <stdlib.h>
40283         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40284         (Include): Mention <stdlib.h>.
40285         (configure.ac): Mention functions we provide.
40286         * modules/canonicalize (configure.ac): Likewise.
40287         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40288         realpath if canonicalize_file_name is missing.
40289         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40290         * modules/stdlib (Makefile.am): Substitute witnesses.
40291         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40292         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40293         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40294         * NEWS: Document this.
40295         * doc/glibc-functions/canonicalize_file_name.texi
40296         (canonicalize_file_name): Likewise.
40297         * doc/posix-functions/realpath.texi (realpath): Likewise.
40298         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40299
40300         test-canonicalize: consolidate into single C program
40301         * tests/test-canonicalize.sh: Delete; move setup into...
40302         * tests/test-canonicalize.c (main): ...the program, making it
40303         easier to run in debugger.  Add some tests.
40304         * modules/canonicalize-tests (Files): Remove unused file.
40305         (Depends-on): Add progname.
40306         (configure.ac, Makefile.am): Simplify.
40307
40308         test-canonicalize-lgpl: consolidate into single C program
40309         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40310         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40311         easier to run in debugger.  Add some tests.
40312         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40313         (configure.ac, Makefile.am): Simplify.
40314
40315         canonicalize: avoid resolvepath
40316         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40317         unnecessary checks.
40318         * lib/canonicalize.c (includes): Simplify.
40319         (canonicalize_file_name): Drop resolvepath implementation.
40320         * modules/canonicalize (Depends-on): Drop filenamecat.
40321
40322         canonicalize: don't lose errno
40323         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
40324         over calls to free.
40325
40326         canonicalize: simplify errno handling
40327         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
40328         assignment.
40329
40330         canonicalize, canonicalize-lgpl: update module dependencies
40331         * modules/canonicalize (Depends-on): Add extensions, lstat,
40332         pathmax, stdlib.
40333         (Files): Drop pathmax.h.
40334         (configure.ac): Adjust macro name.
40335         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
40336         lstat, stdlib, sys_stat.
40337         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
40338         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
40339         extensions.
40340         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
40341         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
40342         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
40343         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
40344         declaration, if available.
40345         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
40346         we can rely on the readlink module.
40347         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
40348         (includes): Use <unistd.h> unconditionally.
40349
40350 2009-09-17  Eric Blake  <ebb9@byu.net>
40351
40352         maint: make Include sections of modules consistent
40353         * modules/alloca: Use only header name; no need to list #include.
40354         * modules/alloca-opt: Likewise.
40355         * modules/arpa_inet: Likewise.
40356         * modules/canon-host: Likewise.
40357         * modules/configmake: Likewise.
40358         * modules/dirent: Likewise.
40359         * modules/eealloc: Likewise.
40360         * modules/environ: Likewise.
40361         * modules/fchdir: Likewise.
40362         * modules/fcntl: Likewise.
40363         * modules/fcntl-h: Likewise.
40364         * modules/gethrxtime: Likewise.
40365         * modules/gettime: Likewise.
40366         * modules/ignore-value: Likewise.
40367         * modules/inet_ntop: Likewise.
40368         * modules/inet_pton: Likewise.
40369         * modules/inttypes: Likewise.
40370         * modules/isnand-nolibm: Likewise.
40371         * modules/isnanf-nolibm: Likewise.
40372         * modules/mbchar: Likewise.
40373         * modules/mbfile: Likewise.
40374         * modules/mbiter: Likewise.
40375         * modules/mbuiter: Likewise.
40376         * modules/netdb: Likewise.
40377         * modules/netinet_in: Likewise.
40378         * modules/nproc: Likewise.
40379         * modules/pagealign_alloc: Likewise.
40380         * modules/poll: Likewise.
40381         * modules/printf-frexp: Likewise.
40382         * modules/pthread: Likewise.
40383         * modules/putenv: Likewise.
40384         * modules/random_r: Likewise.
40385         * modules/relocatable-prog: Likewise.
40386         * modules/search: Likewise.
40387         * modules/select: Likewise.
40388         * modules/selinux-h: Likewise.
40389         * modules/settime: Likewise.
40390         * modules/signal: Likewise.
40391         * modules/size_max: Likewise.
40392         * modules/socklen: Likewise.
40393         * modules/ssize_t: Likewise.
40394         * modules/stdarg: Likewise.
40395         * modules/stdbool: Likewise.
40396         * modules/stddef: Likewise.
40397         * modules/stdint: Likewise.
40398         * modules/stdio: Likewise.
40399         * modules/stdlib: Likewise.
40400         * modules/string: Likewise.
40401         * modules/strings: Likewise.
40402         * modules/sys_file: Likewise.
40403         * modules/sys_ioctl: Likewise.
40404         * modules/sys_select: Likewise.
40405         * modules/sys_socket: Likewise.
40406         * modules/sys_stat: Likewise.
40407         * modules/sys_time: Likewise.
40408         * modules/sys_times: Likewise.
40409         * modules/sys_utsname: Likewise.
40410         * modules/sys_wait: Likewise.
40411         * modules/sysexits: Likewise.
40412         * modules/time: Likewise.
40413         * modules/times: Likewise.
40414         * modules/tmpfile: Likewise.
40415         * modules/trim: Likewise.
40416         * modules/unistd: Likewise.
40417         * modules/wchar: Likewise.
40418         * modules/wctype: Likewise.
40419
40420 2009-09-17  Bruno Haible  <bruno@clisp.org>
40421
40422         Make getdate.y compile on QNX and NetBSD 5 / i386.
40423         * m4/getdate.m4 (gl_GETDATE): Conditionally define
40424         TIME_T_FITS_IN_LONG_INT.
40425         * lib/getdate.y (long_time_t): New type.
40426         (relative_time): Change type of 'seconds' field to long_time_t.
40427         (get_date): Update types of local variables. Check against overflow
40428         during conversion from long_time_t to time_t.
40429         Reported by Matt Kraai <kraai@ftbfs.org>
40430         and Hasso Tepper <hasso@netbsd.org>.
40431
40432 2009-09-17  Bruno Haible  <bruno@clisp.org>
40433
40434         * modules/COPYING: Update copyright years.
40435         * modules/README: Likeiwse.
40436         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
40437         Reported by Ian Beckwith <ianb@erislabs.net>.
40438
40439 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40440
40441         * users.txt: Update references for gnuit package.
40442
40443 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40444
40445         * m4/getdelim.m4: Fix typo in copyright line.
40446
40447 2009-09-17  Bruno Haible  <bruno@clisp.org>
40448
40449         * lib/atoll.c: Use the standard header with GPL copyright.
40450         * lib/argz.in.h: Likewise.
40451         * lib/glob.c: Likewise.
40452         * lib/glob-libc.h: Likewise.
40453         * lib/random_r.c: Likewise.
40454         * lib/siglist.h: Likewise.
40455         * lib/strsignal.c: Likewise.
40456         Reported by Ian Beckwith <ianb@erislabs.net>.
40457
40458 2009-09-17  Eric Blake  <ebb9@byu.net>
40459
40460         rmdir: ensure correct dependency order
40461         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
40462
40463 2009-09-17  Bruno Haible  <bruno@clisp.org>
40464
40465         Disable assertion that fails on NetBSD 5 / i386.
40466         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
40467         Reported by Sam Steingold <sds@gnu.org>
40468         and Hasso Tepper <hasso@netbsd.org>.
40469
40470 2009-09-16  Eric Blake  <ebb9@byu.net>
40471
40472         unlinkdir: port to mingw
40473         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
40474         on which no one can unlink a directory.
40475
40476         stdlib: sort witness names
40477         * modules/stdlib (Makefile.am): Sort replacements.
40478         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40479         * lib/stdlib.in.h: Likewise.
40480
40481         parse-duration-tests: avoid link failure
40482         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
40483         LIBINTL.
40484         Reported by Tom G. Christensen.
40485
40486         openat-tests: ensure unlinkat behaves like rmdir
40487         * tests/test-rmdir.c (main): Factor guts...
40488         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
40489         * modules/rmdir-tests (Files): Ship new file.
40490         * modules/openat-tests: New test.
40491         * tests/test-unlinkat.c: Likewise.
40492
40493         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
40494         * modules/rmdir-errno (Status, Notice): Now obsolete.
40495
40496         rmdir: work around cygwin 1.5.x and mingw bugs
40497         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
40498         * lib/rmdir.c (rmdir): Work around it.
40499         * modules/rmdir (Status, Notice): No longer obsolete.
40500         (Files): Add dos.m4.
40501         (Depends-on): Add unistd.
40502         (configure.ac): Set witnesses.
40503         (License): Relax to LGPLv2+.
40504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40505         * modules/unistd (Makefile.am): Substitute witnesses.
40506         * lib/unistd.in.h (rmdir): Declare replacement.
40507         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40508         * modules/rmdir-tests: New tests.
40509         * tests/test-rmdir.c: Likewise.
40510
40511 2009-09-15  Eric Blake  <ebb9@byu.net>
40512
40513         fchdir: improve use of replacement functions
40514         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40515         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40516         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40517         REPLACE_CLOSEDIR.
40518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40519         * modules/sys_stat (Makefile.am): Substitute correct witness.
40520         * modules/dirent (Makefile.am): Likewise.
40521         * modules/unistd (Makefile.am): Likewise.
40522         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40523         * lib/unistd.in.h (dup): Likewise.
40524         * lib/sys_stat.in.h (fstat): Likewise.
40525
40526         maint: ignore gnulib-tool temp files
40527         * .gitignore: Ignore files created during gnulib-tool --test.
40528
40529 2009-09-13  Jim Meyering  <meyering@redhat.com>
40530
40531         posixtm: don't reject a time that specify "60" as the number of seconds
40532         * lib/posixtm.c (posixtime): The code to reject invalid dates
40533         would also reject a time specified with the .60 suffix.
40534         But POSIX allows that, in order to accommodate leap seconds.
40535         So don't reject it.
40536         (main): Adjust tests accordingly.
40537         * modules/posixtm (Depends-on): Add stpcpy.
40538
40539 2009-09-11  Jim Meyering  <meyering@redhat.com>
40540
40541         announce-gen: include [$release_type] in emitted Subject:
40542         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40543         e.g., [stable] in the emitted Subject: line.
40544
40545 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40546
40547         Remove obsolete macros from several modules.
40548         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40549         obsolete Autoconf macros with their modern counterparts.
40550         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40551         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40552         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40553         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40554         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40555         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40556         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40557         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40558         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40559         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40560         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40561         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40562         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40563         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40564         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40565         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40566         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40567         * m4/time_r.m4 (gl_TIME_R): Likewise.
40568         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40569         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40570         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40571
40572         Fix copyright header in build-aux scripts.
40573         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40574         recommendation.
40575         * build-aux/ncftpput-ftp: Likewise.
40576         * build-aux/update-copyright: Likewise.
40577
40578 2009-09-09  Eric Blake  <ebb9@byu.net>
40579
40580         test-link: allow Linux choice of errno
40581         * tests/test-link.c (main): Relax test for alternate error.
40582
40583         strndup: fix improper m4 caching
40584         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40585         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40586         (gl_PREREQ_STRNDUP): Delete.
40587         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40588         * modules/string (Makefile.am): Substitute it.
40589         * lib/string.in.h (strndup): Modernize prototype.
40590
40591         getcwd: port to mingw
40592         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40593         different from the POSIX assumptions made throughout the getcwd
40594         module; fortunately, the mingw getcwd does not need replacement.
40595         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40596         * modules/getcwd-tests: New test.
40597         * tests/test-getcwd.c: Likewise.
40598
40599         link: fix platform bugs
40600         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40601         * lib/link.c (link): Work around them.  Fix related mingw bug.
40602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40603         * modules/unistd (Makefile.am): Substitute it.
40604         * lib/unistd.in.h (link): Declare replacement.
40605         * doc/posix-functions/link.texi (link): Document this.
40606         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40607
40608         test-link: consolidate into single C program, test more cases
40609         * tests/test-link.sh: Delete.
40610         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40611         at least Cygwin and Solaris.
40612         * modules/link-tests (Files): Remove unused file.
40613         (Depends-on): Add errno, sys_stat.
40614         (Makefile.am): Simplify.
40615
40616 2009-09-08  Bruno Haible  <bruno@clisp.org>
40617
40618         Work around towlower, towupper bug on mingw.
40619         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40620         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40621         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40622         * doc/posix-functions/towupper.texi: Likewise.
40623         Reported by Eric Blake.
40624
40625 2009-09-08  Jim Meyering  <meyering@redhat.com>
40626
40627         build: don't try to run autoheader if we don't use it
40628         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40629         is not used in configure.ac.
40630
40631 2009-09-08  Eric Blake  <ebb9@byu.net>
40632
40633         euidaccess: fix compilation error
40634         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40635
40636         rawmemchr: relax license
40637         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40638         okay.
40639         Reported by Jim Meyering.
40640
40641         mkfifoat: new module
40642         * modules/mkfifoat: New file.
40643         * lib/mkfifoat.c: Likewise.
40644         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40645         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40646         * modules/sys_stat (Makefile.am): Use them.
40647         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40648         * MODULES.html.sh (File system functions): Mention module.
40649         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40650         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40651         * modules/mkfifoat-tests: New test.
40652         * tests/test-mkfifoat.c: Likewise.
40653
40654         strchrnul: relax license
40655         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40656         okay.
40657         Reported by Jim Meyering.
40658
40659 2009-09-08  Eric Blake  <ebb9@byu.net>
40660
40661         fstatat: fix compilation on Solaris
40662         * lib/fstatat.c (includes): Add fcntl.h.
40663         Reported by Pádraig Brady.
40664
40665 2009-09-07  Eric Blake  <ebb9@byu.net>
40666
40667         rename: modernize replacement
40668         * modules/rename (Depends-on): Add stdio.
40669         (configure.ac): Declare witness.
40670         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
40671         stdio take care of replacement.
40672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40673         * modules/stdio (Makefile.am): Substitute them.
40674         * lib/stdio.in.h (rename): Declare replacement.
40675         * lib/rename.c (includes): Allow cross-compilation to non-windows
40676         machines.
40677         * doc/posix-functions/rename.texi (rename): Improve
40678         documentation.
40679
40680         stdio: sort witness names
40681         * modules/stdio (Makefile.am): Sort replacements.
40682         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40683         * lib/stdio.in.h: Likewise.
40684
40685         getcwd: minor cleanups
40686         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
40687         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
40688
40689         openat: provide more convenience names
40690         * modules/faccessat (configure.ac): Add C witness.
40691         * lib/unistd.in.h (readlinkat): Fix typo.
40692         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
40693         convenience wrappers.
40694         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
40695         wrappers in syntax checks.
40696
40697 2009-09-06  Eric Blake  <ebb9@byu.net>
40698
40699         doc: fix comments in recent patches
40700         * lib/faccessat.c: Mention correct function.
40701         * lib/fchmodat.c: Likewise.
40702         * lib/fchownat.c: Likewise.
40703         * lib/symlinkat.c: Likewise.
40704         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
40705         constants.
40706
40707         faccessat, symlinkat: continue cleanup of previous patch
40708         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
40709         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40710         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
40711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
40712         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
40713         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
40714         set.
40715
40716 2009-09-06  Bruno Haible  <bruno@clisp.org>
40717
40718         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
40719         (fstatat): Declare if GNULIB_FSTATAT is set.
40720         (mkdirat): Declare if GNULIB_MKDIRAT is set.
40721         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
40722         (unlinkat): Declare if GNULIB_UNLINKAT is set.
40723         * modules/fcntl-h (Files): Remove m4/openat.m4.
40724         * modules/sys_stat (Files): Remove m4/openat.m4.
40725         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
40726         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
40727         * modules/unistd (Files): Remove m4/openat.m4.
40728         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
40729         GNULIB_OPENAT.
40730         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
40731         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
40732         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
40733         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
40734         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
40735         gl_OPENAT_DEFAULTS.
40736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
40737         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
40738         Don't require gl_OPENAT_DEFAULTS.
40739         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
40740         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
40741         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
40742         (gl_OPENAT_DEFAULTS): Remove macro.
40743
40744 2009-09-06  Bruno Haible  <bruno@clisp.org>
40745
40746         * modules/openat (configure.ac): Remove unneeded witness.
40747
40748 2009-09-06  Bruno Haible  <bruno@clisp.org>
40749
40750         Set errno to ENOSYS when a function is entirely unsupported.
40751         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
40752         EOPNOTSUPP.
40753         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40754         * modules/chown (Depends-on): Remove errno.
40755
40756 2009-09-06  Bruno Haible  <bruno@clisp.org>
40757
40758         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
40759
40760 2009-09-06  Bruno Haible  <bruno@clisp.org>
40761
40762         * lib/sys_stat.in.h: Fix preprocessor command indentation.
40763
40764 2009-09-06  Ben Pfaff  <blp@gnu.org>
40765             Bruno Haible  <bruno@clisp.org>
40766
40767         Work around a glibc bug in strtok_r.
40768         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
40769         Undefine if UNDEFINE_STRTOK_R is set.
40770         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
40771         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40772         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
40773         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
40774         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
40775         UNDEFINE_STRTOK_R.
40776         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
40777
40778 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
40779
40780         exclude: minor fix
40781         * lib/exclude.c: Include wctype.h
40782
40783 2009-09-06  Akim Demaille  <demaille@gostai.com>
40784
40785         bootstrap: improve error message
40786         * build-aux/bootstrap (find_tool): Upon failure, report the list
40787         of candidates.
40788         Honor the initial value of the envvar.
40789
40790 2009-09-05  Eric Blake  <ebb9@byu.net>
40791
40792         symlinkat: new module
40793         * modules/symlinkat: New file.
40794         * lib/symlinkat.c: Likewise.
40795         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
40796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40797         * modules/unistd (Makefile.am): Use them.
40798         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
40799         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
40800         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
40801         * MODULES.html.sh (File system functions): Mention module.
40802         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40803         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40804         * modules/symlinkat-tests: New test.
40805         * tests/test-symlinkat.c: Likewise.
40806
40807         test-openat-safer: add more checks
40808         * tests/test-openat-safer.c (main): Check more code paths.
40809
40810 2009-09-05  Jim Meyering  <meyering@redhat.com>
40811
40812         syntax-check: detect unnecessary inclusion of openat.h
40813         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
40814
40815 2009-09-05  Bruno Haible  <bruno@clisp.org>
40816
40817         Support towlower, towupper.
40818         * doc/posix-functions/towlower.texi: Mention module wctype.
40819         * doc/posix-functions/towupper.texi: Likewise.
40820         * lib/wctype.in.h (towlower, towupper): New functions.
40821         * tests/test-wctype.c: Include stdio.h, stdlib.h.
40822         (ASSERT): New macro.
40823         (e): New variable.
40824         (main): Test also towlower, towupper. Test WEOF argument.
40825         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40826
40827 2009-09-05  Bruno Haible  <bruno@clisp.org>
40828
40829         Fix conversion behaviour when the input is invalid.
40830         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
40831         mark occurring in first pass of indirect conversion.
40832         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
40833         input.
40834         Found by clang's static analyzer.
40835
40836 2009-09-05  Bruno Haible  <bruno@clisp.org>
40837
40838         * tests/test-striconveh.c (main): Test indirect conversion on platforms
40839         where direct conversion is possible.
40840
40841 2009-09-04  Eric Blake  <ebb9@byu.net>
40842
40843         openat: fail with ENOENT on empty name
40844         * lib/openat-proc.c (openat_proc_name): Special-case the empty
40845         buffer.
40846
40847         link-follow: fix logic bug in prior patch
40848         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
40849         reversed sense of yes and no in prior patch.  Avoid confusing
40850         compilation failure with desired semantics.
40851
40852         link-follow: accomodate mingw and cross-compilation
40853         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
40854         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
40855         cross-compilation results to -1, to make linkat easier to
40856         implement when cross-compiling.  Trivially support mingw.
40857         * modules/link-follow (configure.ac): Call new name.
40858         * NEWS: Mention this.
40859
40860 2009-09-03  Eric Blake  <ebb9@byu.net>
40861
40862         faccessat: compile replacement
40863         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
40864         needed.
40865
40866         fts: fix compilation error
40867         * lib/fts.c (includes): Re-add "openat.h", for
40868         openat_needs_fchdir.
40869
40870         faccessat: new module
40871         * modules/faccessat: New file.
40872         * lib/faccessat.c: Likewise.
40873         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40875         * modules/unistd (Makefile.am): Use it.
40876         * lib/unistd.in.h (faccessat): Declare it.
40877         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
40878         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
40879         * MODULES.html.sh (File system functions): Mention it.
40880         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
40881         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40882
40883         euidaccess: prefer POSIX over non-standard implementation
40884         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
40885         * lib/euidaccess.c (euidaccess): Use it if available.
40886
40887         openat: make template easier to use
40888         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
40889         AT_FUNC_F2 to be undefined.
40890         (VALIDATE_FLAG): New macro; use it to reject bad flags.
40891         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
40892         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
40893         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
40894         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
40895         Likewise.
40896         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
40897         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
40898         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
40899         Likewise.
40900
40901         openat: declare in POSIX headers
40902         * NEWS: Mention this.
40903         * modules/openat (configure.ac): Declare witnesses.
40904         (Depends-on): Add fcntl-h, sys_stat, unistd.
40905         (Include): Mention correct headers.
40906         * modules/fcntl-h (Depends-on): Add link-warning.
40907         (Files): Add openat.m4.
40908         (Makefile.am): Substitute witnesses.
40909         * modules/sys_stat (Files, Makefile.am): Likewise.
40910         * modules/unistd (Files, Makefile.am): Likewise.
40911         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
40912         (gl_OPENAT_DEFAULTS): New macro.
40913         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
40914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
40915         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
40916         (SYS_STAT_H): Remove unused variable.
40917         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
40918         * lib/fcntl--.h (includes): Remove unneeded header.
40919         * lib/openat-safer.c (includes): Likewise.
40920         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
40921         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
40922         appropriate headers.
40923         (__OPENAT_PREFIX): Delete.
40924         * lib/fcntl.in.h (openat): Provide declaration.
40925         (AT_FDCWD): Fix Solaris bug.
40926         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
40927         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
40928         * lib/fchmodat.c (includes):  Adjust to find declaration.
40929         * lib/fchownat.c (includes): Likewise.
40930         * lib/mkdirat.c (includes): Likewise.
40931         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
40932         still visible.
40933
40934 2009-09-02  Eric Blake  <ebb9@byu.net>
40935
40936         errno: use consistently
40937         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
40938         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
40939         * lib/canonicalize.c (ELOOP): Likewise.
40940         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
40941         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
40942         * lib/lchown.c (EOPNOTSUPP): Likewise.
40943         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
40944         * lib/savewd.c (ESTALE): Likewise.
40945         * lib/settime.c (ENOSYS): Likewise.
40946         * lib/utimens.c (ENOSYS): Likewise.
40947         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
40948         * lib/chdir-safer.c (ELOOP): Likewise.
40949         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
40950         * modules/c-stack (Depends-on): Add errno.
40951         * modules/canonicalize (Depends-on): Likewise.
40952         * modules/chdir-safer (Depends-on): Likewise.
40953         * modules/fdopendir (Depends-on): Likewise.
40954         * modules/inet_ntop (Depends-on): Likewise.
40955         * modules/inet_pton (Depends-on): Likewise.
40956         * modules/lchown (Depends-on): Likewise.
40957         * modules/openat (Depends-on): Likewise.
40958         * modules/savewd (Depends-on): Likewise.
40959         * modules/settime (Depends-on): Likewise.
40960         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
40961
40962         fts: avoid leaking fds
40963         * modules/fts (Depends-on): Add cloexec.
40964         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
40965         flag.
40966
40967         fts: make directory fds more robust
40968         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
40969         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
40970
40971         backupfile, chdir-long, fts, savedir: make safer
40972         * lib/backupfile.c (includes): Use "dirent--.h", since
40973         numbered_backup can write to stderr during readdir.
40974         * lib/savedir.c (includes): Likewise.
40975         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
40976         emulation can write to stderr on failure.
40977         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
40978         * lib/getcwd.c: Document why opendir_safer is unused.
40979         * lib/glob.c: Likewise.
40980         * lib/scandir.c: Likewise.
40981         * lib/openat-proc.c: Likewise, for open_safer.
40982         * modules/backupfile (Depends-on): Add dirent-safer.
40983         * modules/savedir (Depends-on): Likewise.
40984         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
40985         * modules/chdir-long (Depends-on): Add openat-safer.
40986
40987         openat-safer: new module
40988         * modules/openat-safer: New file.
40989         * lib/openat-safer.c: Likewise.
40990         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
40991         * lib/fcntl-safer.h (openat_safer): Declare.
40992         * lib/fcntl--.h (openat): Override.
40993         * MODULES.html.sh (File descriptor based I/O): Mention it.
40994         * lib/openat.h: Add double-inclusion guards.
40995         * lib/openat.c (includes): Only include "fcntl-safer.h", not
40996         "fcntl--.h", so we can implement openat.
40997         * modules/openat-safer-tests: New test.
40998         * tests/test-openat-safer.c: New file.
40999
41000         dirent-safer: new module
41001         * modules/dirent-safer: New file.
41002         * lib/dirent--.h: Likewise.
41003         * lib/dirent-safer.h: Likewise.
41004         * lib/opendir-safer.c: Likewise.
41005         * m4/dirent-safer.m4: Likewise.
41006         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41007         * modules/dirent-safer-tests: New test.
41008         * tests/test-dirent-safer.c: New file.
41009         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41010
41011         fdopendir: optimize on mingw
41012         * lib/unistd.in.h (_gl_directory_name): New prototype.
41013         * lib/fchdir.c (_gl_directory_name): Implement it.
41014         (fchdir): Use it to simplify implementation.
41015         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41016         fchdir, when available, to avoid calling [f]chdir().
41017
41018         fdopendir: split into its own module
41019         * lib/openat.c (fdopendir): Move...
41020         * lib/fdopendir.c: ...into new file.
41021         * modules/fdopendir: New module.
41022         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41023         * modules/openat (Depends-on): Add fdopendir.
41024         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41025         fdopendir here.
41026         * modules/savedir (Depends-on): Only need fdopendir, not full
41027         openat.
41028         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41029         * lib/openat.h (fdopendir): Drop prototype.
41030         * lib/dirent.in.h (fdopendir): Provide prototype.
41031         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41032         * modules/dirent (Makefile.am): Substitute them.
41033         * MODULES.html.sh (File system functions): Mention it.
41034         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41035         * modules/fdopendir-tests: New file.
41036         * tests/test-fdopendir.c: Likewise.
41037
41038         fchdir: use more consistent macro convention
41039         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41040         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41041         REPLACE_FCHDIR, rather than relying on config.h macros.
41042         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41043         inside a single make-time REPLACE_FCHDIR block, rather than using
41044         the config.h FCHDIR_REPLACEMENT.
41045         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41046         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41047         Manage fstat replacement.
41048         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41049         REPLACE_FCHDIR.
41050         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41051         (Makefile.am): Substitute REPLACE_FCHDIR.
41052         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41053         FCHDIR_REPLACEMENT.
41054         * lib/dup-safer.c (dup_safer): Likewise.
41055         * lib/dup2.c (rpl_dup2): Likewise.
41056         * lib/dup3.c (rpl_dup3): Likewise.
41057         * lib/open.c (rpl_open): Likewise.
41058
41059         fchdir: simplify error handling, and support dup3
41060         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41061         stdbool, malloc-posix, realloc-posix.
41062         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41063         (ensure_dirs_slot): Return false on allocation failure.
41064         (rpl_dup2): Delete.
41065         (_gl_register_dup): New function.
41066         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41067         (_gl_register_fd): Close fd on allocation failure.
41068         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41069         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41070         prototype.
41071         (rpl_dup2_fchdir): Delete prototype.
41072         * lib/open.c (open): Update caller.
41073         * lib/dup2.c (dup2): Track fchdir metadata.
41074         * lib/dup3.c (dup3): Likewise.
41075         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41076         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41077
41078 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41079
41080         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41081         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41082         don't pass arguments to AC_OUTPUT.
41083
41084 2009-09-02  Bruno Haible  <bruno@clisp.org>
41085
41086         * modules/mkdtemp (License): Relicense under LGPLv2+.
41087         Reported by Paolo Bonzini.
41088
41089 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41090
41091         Replace uses of obsolete autoconf macros in Jim's modules.
41092         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41093         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41094         can evoke a warning from autoconf when run with -Wobsolete
41095         enabled.  They were declared obsolete for good reasons (see
41096         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41097         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41098         should not continue using the deprecated macros.
41099         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41100         obsolete Autoconf macros with modern counterparts.
41101         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41102         * m4/dos.m4 (gl_AC_DOS): Likewise.
41103         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41104         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41105         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41106         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41107         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41108         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41109         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41110         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41111         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41112         Likewise.
41113         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41114         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41115         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41116         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41117         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41118         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41119
41120 2009-09-01  Eric Blake  <ebb9@byu.net>
41121
41122         fchdir: fix off-by-one bug in previous patch
41123         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41124         (_gl_unregister_fd): Delete useless if.
41125
41126 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41127
41128         maint.mk: sort the list of syntax-check rules
41129         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41130         easier to get a sense of progress when the rules are run sequentially
41131         and take a long time.
41132
41133 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41134
41135         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41136         * modules/netinet_in: Likewise.
41137         * modules/sys_file: Likewise.
41138         * modules/sys_ioctl: Likewise.
41139         * modules/sys_select: Likewise.
41140         * modules/sys_socket: Likewise.
41141         * modules/sys_stat: Likewise.
41142         * modules/sys_time: Likewise.
41143         * modules/sys_times: Likewise.
41144         * modules/sys_utsname: Likewise.
41145         * modules/sys_wait: Likewise.
41146
41147 2009-09-01  Jim Meyering  <meyering@redhat.com>
41148
41149         fts: help ensure that return values are not ignored
41150         * lib/fts_.h (__GNUC_PREREQ): Define.
41151         (__attribute_warn_unused_result__): Define.
41152         (fts_children, fts_close, fts_open, fts_read): Declare with
41153         __attribute_warn_unused_result__.
41154
41155         fts: fts_close now fails also when closing a dir file descriptor fails
41156         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41157         and propagate to caller, along with errno.
41158
41159         announce-gen: correct formatting in --help output
41160         * build-aux/announce-gen (usage): Move the one-line description in
41161         --help output "up", to where it belongs, just after Usage:.
41162
41163 2009-08-31  Eric Blake  <ebb9@byu.net>
41164
41165         fchdir: port to mingw
41166         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41167         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41168         opened, then use a substitute.
41169         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41170         replacement.
41171         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41172         (_gl_register_fd): No need to check stat if open already filters
41173         all directories.
41174         (fchdir): Fix error condition to match POSIX.
41175         * modules/fchdir (Depends-on): Add sys_stat.
41176         * doc/posix-functions/open.texi (open): Document the limitation.
41177         * modules/fchdir-tests: New file.
41178         * tests/test-fchdir.c: Likewise.
41179
41180         canonicalize: allow cross-testing from cygwin to mingw
41181         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41182         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41183         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41184         Likewise.
41185         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41186         target does not support symlinks.
41187         * tests/test-canonicalize-lgpl.sh: Likewise.
41188
41189         chown: avoid compilation warning on mingw
41190         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41191         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41192         mingw.
41193         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41194         * modules/chown (Depends-on): Add errno.
41195
41196 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41197
41198         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41199         command.
41200
41201 2009-08-31  Jim Meyering  <meyering@redhat.com>
41202
41203         canonicalize: remove useless initialization
41204         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41205         initialization of local, "end".
41206
41207 2009-08-30  Bruno Haible  <bruno@clisp.org>
41208
41209         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41210         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41211         ENOSYS.
41212
41213 2009-08-30  Bruno Haible  <bruno@clisp.org>
41214
41215         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41216         /usr/xpg4/bin/tr when it exists.
41217         * tests/test-pipe-filter-gi1.sh: Likewise.
41218
41219 2009-08-30  Bruno Haible  <bruno@clisp.org>
41220
41221         Work around deficient /usr/bin/id program on Solaris.
41222         * tests/test-file-has-acl.sh (ID): New variable.
41223         * tests/test-set-mode-acl.sh (ID): Likewise.
41224         * tests/test-copy-acl.sh (ID): Likewise.
41225         * tests/test-copy-file.sh (ID): Likewise.
41226
41227 2009-08-30  Bruno Haible  <bruno@clisp.org>
41228
41229         New module 'xstriconveh'.
41230         * lib/xstriconveh.h: New file.
41231         * lib/xstriconveh.c: New file.
41232         * modules/xstriconveh: New file.
41233
41234 2009-08-30  Bruno Haible  <bruno@clisp.org>
41235
41236         Make it easier to use mem_cd_iconveh.
41237         * lib/striconveh.h (iconveh_t): New type.
41238         (iconveh_open, iconveh_close): New declarations.
41239         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41240         with a single 'const iconveh_t *' argument.
41241         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41242         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41243         with a single 'const iconveh_t *' argument.
41244         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41245         * tests/test-striconveh.c (main): Update.
41246         * NEWS: Mention the change.
41247
41248 2009-08-30  Bruno Haible  <bruno@clisp.org>
41249
41250         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41251         problem.
41252
41253 2009-08-30  Bruno Haible  <bruno@clisp.org>
41254
41255         Work around iconv_open problem on Solaris.
41256         * lib/iconv_open-solaris.gperf: New file.
41257         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41258         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41259         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41260         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41261         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41262         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41263
41264 2009-08-29  Jim Meyering  <meyering@redhat.com>
41265
41266         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41267         * top/maint.mk (cvs-check): Remove target; it was just an alias
41268         to the better-named vc-diff-check.
41269         (maintainer-distcheck): Remove rule.  It was used only from
41270         the (alpha/beta/major) target, and all of its commands but one
41271         were coreutils-specific.
41272         (vc-dist): Remove rule.
41273         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41274         Run vc-diff-check, not vc-dist.
41275         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41276
41277 2009-08-27  Bruno Haible  <bruno@clisp.org>
41278
41279         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41280         of 0.
41281
41282 2009-08-27  Bruno Haible  <bruno@clisp.org>
41283
41284         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41285         compilers.
41286         * doc/func.texi: Document the SunPRO C bug.
41287
41288 2009-08-27  Bruno Haible  <bruno@clisp.org>
41289
41290         Fix link error on Solaris.
41291         * tests/test-parse-duration.c (xstrdup): Remove function.
41292
41293 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41294
41295         ignore-value: handle pointer types, too
41296         * lib/ignore-value.h (__attribute__): Remove definition.
41297         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41298         of a more concise and more-often effective "(void) i" statement.
41299         (ignore_ptr): New function to suppress warnings from functions that
41300         return pointers, and to make it explicit that one function doesn't
41301         handle all cases.
41302
41303 2009-08-25  Bruno Haible  <bruno@clisp.org>
41304
41305         dup2: work around a Linux bug.
41306         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41307         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41308         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41309         Reported by Simon Josefsson.
41310
41311 2009-08-25  Jim Meyering  <meyering@redhat.com>
41312
41313         libguestfs uses gnulib
41314         * users.txt: Add libguestfs.
41315
41316 2009-08-24  Eric Blake  <ebb9@byu.net>
41317
41318         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41319         * lib/pipe2.c (includes): Add binary-io.h.
41320         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
41321
41322 2009-08-24  Bruno Haible  <bruno@clisp.org>
41323
41324         Tolerate declared but missing accept4 syscall.
41325         * lib/accept4.c (accept4): Invoke original accept4 function first, if
41326         available.
41327         * lib/sys_socket.in.h (accept4): If the function is already present,
41328         override it.
41329         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
41330         * modules/accept4 (Makefile.am): Compile accept4.c always.
41331         Reported by Paolo Bonzini and Eric Blake.
41332
41333 2009-08-23  Bruno Haible  <bruno@clisp.org>
41334
41335         New module 'accept4'.
41336         * lib/sys_socket.in.h (accept4): New declaration.
41337         * lib/accept4.c: New file.
41338         * m4/accept4.m4: New file.
41339         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41340         GNULIB_ACCEPT4, HAVE_ACCEPT4.
41341         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
41342         HAVE_ACCEPT4.
41343         * modules/accept4: New file.
41344         * doc/glibc-functions/accept4.texi: Mention the new module.
41345
41346 2009-08-24  Jim Meyering  <meyering@redhat.com>
41347
41348         progname: also set global program_invocation_name, when possible
41349         Before this change, a libtool-enabled program that calls glibc's
41350         error function would report the program name as
41351         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
41352         * modules/progname (configure.ac): Check for a declaration of
41353         program_invocation_name.
41354         * lib/progname.c:  Include <errno.h>.
41355         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
41356         Set program_invocation_name.
41357
41358 2009-08-23  Bruno Haible  <bruno@clisp.org>
41359
41360         * lib/dup3.c: Include <string.h>.
41361
41362 2009-08-23  Bruno Haible  <bruno@clisp.org>
41363
41364         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41365         * lib/pipe2.c (pipe2): Likewise.
41366         Suggested by Eric Blake.
41367
41368 2009-08-23  Bruno Haible  <bruno@clisp.org>
41369
41370         Tolerate declared but missing dup3 syscall.
41371         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41372         * lib/unistd.in.h (dup3): If the function is already present,
41373         override it.
41374         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41375         * modules/dup3 (Makefile.am): Compile dup3.c always.
41376         Reported by Paolo Bonzini.
41377
41378 2009-08-23  Bruno Haible  <bruno@clisp.org>
41379
41380         Tolerate declared but missing pipe2 syscall.
41381         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41382         available.
41383         * lib/unistd.in.h (pipe2): If the function is already present,
41384         override it.
41385         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41386         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41387         Reported by Paolo Bonzini.
41388
41389 2009-08-23  Bruno Haible  <bruno@clisp.org>
41390
41391         * lib/pipe2.c (pipe2): Move #ifs inside function.
41392
41393 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41394
41395         quotearg: document limitations of quote_these_too
41396         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
41397         those limitations are created.
41398         * lib/quotearg.h (set_char_quoting): Document that digits and
41399         letters that are special after backslash are not permitted.
41400         (quotearg_char): Cross-reference set_char_quoting documentation.
41401
41402 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
41403
41404         quotearg: implement custom_quoting_style
41405         * lib/quotearg.c: (struct quoting_options): Add left_quote and
41406         right_quote fields.
41407         (set_custom_quoting): New public function.
41408         (quotearg_buffer_restyled): Add left_quote and right_quote
41409         arguments, handle them very much like locale quoting, and update
41410         all uses.
41411         (quotearg_n_custom): New public function.
41412         (quotearg_n_custom_mem): New public function.
41413         (quotearg_custom): New public function.
41414         (quotearg_custom_mem): New public function.
41415         * lib/quotearg.h: Prototype and document new public functions.
41416         (enum quoting_style): For escape_quoting_style and
41417         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
41418         ignored even though they're otherwise like c_quoting_style.
41419         Add custom_quoting_style member and document with comparison to
41420         clocale_quoting_style.
41421         * tests/test-quotearg.c (custom_quotes): New array.
41422         (custom_results): New array.
41423         (main): Extend to test custom quoting.
41424
41425 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41426
41427         quotearg: fix right quote escaping when it's in quote_these_too
41428         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
41429         quote, be sure to prepend only one backslash.
41430         * tests/test-quotearg.c (use_quote_double_quotes): New function.
41431         (main): Test it.
41432
41433 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41434
41435         quotearg-tests: test escaping of embedded locale quotes
41436         * tests/test-quotearg.c (struct result_strings): Add member for
41437         new input.
41438         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
41439         (inputs): Add new input.
41440         (results_g): Add expected results.
41441         (flag_results): Likewise.
41442         (locale_results): Likewise.
41443         (compare_strings): Check those.
41444
41445 2009-08-23  Bruno Haible  <bruno@clisp.org>
41446
41447         Tests for module 'dup3'.
41448         * modules/dup3-tests: New file.
41449         * tests/test-dup3.c: New file.
41450
41451         New module 'dup3'.
41452         * lib/unistd.in.h (dup3): New declaration.
41453         * lib/dup3.c: New file.
41454         * m4/dup3.m4: New file.
41455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
41456         HAVE_DUP3.
41457         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
41458         * modules/dup3: New file.
41459         * doc/glibc-functions/dup3.texi: Mention the new module.
41460
41461 2009-08-23  Bruno Haible  <bruno@clisp.org>
41462
41463         Tweak the dup2 test.
41464         * tests/test-dup2.c (main): Create the test file empty. Verify that an
41465         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
41466         the test file is still empty. Fix argument order of lseek.
41467
41468 2009-08-23  Bruno Haible  <bruno@clisp.org>
41469
41470         Avoid test link errors when the modules getopt-gnu, gettext are used.
41471         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
41472         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41473
41474 2009-08-23  Bruno Haible  <bruno@clisp.org>
41475
41476         Fix getdtablesize() on mingw.
41477         * lib/getdtablesize.c (getdtablesize): Implement differently.
41478         * lib/unistd.in.h (getdtablesize): Improve comment.
41479
41480 2009-08-23  Bruno Haible  <bruno@clisp.org>
41481
41482         New module 'mkostemp'.
41483         Based on Ulrich Drepper's 2007-08-10 change in glibc.
41484         * lib/stdlib.in.h (mksotemp): New declaration.
41485         * lib/mkostemp.c: New file, from glibc with modifications.
41486         * lib/tempname.h (GT_FILE): Remove outdated comment.
41487         (gen_tempname): Add flags argument.
41488         * lib/tempname.c (__GT_BIGFILE): Remove macro.
41489         (__GT_FILE): Map to 1.
41490         (small_open, large_open): Remove macros.
41491         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
41492         * lib/mkstemp.c (mkstemp): Update.
41493         * lib/mkdtemp.c (mkdtemp): Likewise.
41494         * m4/mkostemp.m4: New file.
41495         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
41496         HAVE_MKOSTEMP.
41497         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
41498         HAVE_MKOSTEMP.
41499         * modules/mkostemp: New file, based on modules/mkstemp.
41500         * doc/glibc-functions/mkostemp.texi: Mention the new module.
41501         * NEWS: Mention the change.
41502
41503 2009-08-23  Bruno Haible  <bruno@clisp.org>
41504
41505         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41506         Reported by Eric Blake.
41507
41508 2009-08-23  Bruno Haible  <bruno@clisp.org>
41509
41510         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41511         Reported by Eric Blake.
41512
41513 2009-08-23  Bruno Haible  <bruno@clisp.org>
41514
41515         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41516         * modules/pipe2 (Depends-on): Likewise.
41517
41518 2009-08-23  Eric Blake  <ebb9@byu.net>
41519
41520         fcntl-h: add O_TTY_INIT support
41521         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41522         * tests/test-fcntl-h.c (o): Test it.
41523         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41524
41525         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41526         * modules/fcntl: Move <fcntl.h> header replacement...
41527         * modules/fcntl-h: ...to new name, so as not to collide with
41528         like-named function.
41529         * tests/test-fcntl.c: Rename...
41530         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41531         * modules/fcntl-tests: Rename...
41532         * modules/fcntl-h-tests: ...to this.  Update test file name.
41533         * modules/chdir-long (Depends-on): Update clients.
41534         * modules/chdir-safer (Depends-on): Likewise.
41535         * modules/fcntl-safer (Depends-on): Likewise.
41536         * modules/fts (Depends-on): Likewise.
41537         * modules/mkancesdirs (Depends-on): Likewise.
41538         * modules/mkdir-p (Depends-on): Likewise.
41539         * modules/open (Depends-on): Likewise.
41540         * modules/savewd (Depends-on): Likewise.
41541         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41542         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41543
41544 2009-08-22  Bruno Haible  <bruno@clisp.org>
41545
41546         * modules/binary-io (License): Relicense under LGPL.
41547         * modules/pipe2 (License): Likewise.
41548
41549 2009-08-22  Bruno Haible  <bruno@clisp.org>
41550
41551         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41552         return value.
41553         * lib/pipe-filter-gi.c (filter_init): Likewise.
41554         Reported by Eric Blake.
41555
41556 2009-08-22  Bruno Haible  <bruno@clisp.org>
41557
41558         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41559         * modules/pipe (Depends-on): Add pipe2.
41560
41561 2009-08-22  Bruno Haible  <bruno@clisp.org>
41562
41563         Tests for module 'pipe2'.
41564         * modules/pipe2-tests: New file.
41565         * tests/test-pipe2.c: New file.
41566
41567         New module 'pipe2'.
41568         * lib/unistd.in.h (pipe2): New declaration.
41569         * lib/pipe2.c: New file.
41570         * m4/pipe2.m4: New file.
41571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41572         HAVE_PIPE2.
41573         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41574         * modules/pipe2: New file.
41575         * doc/glibc-functions/pipe2.texi: Mention the new module.
41576
41577 2009-08-22  Bruno Haible  <bruno@clisp.org>
41578
41579         Reference some new glibc functions.
41580         * doc/glibc-functions/accept4.texi: New file.
41581         * doc/glibc-functions/dup3.texi: New file.
41582         * doc/glibc-functions/mkostemp.texi: New file.
41583         * doc/glibc-functions/pipe2.texi: New file.
41584         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41585         (Glibc sys/socket.h): Refer to accept4.
41586         (Glibc unistd.h): Refer to dup3, pipe2.
41587         Reported by Eric Blake.
41588
41589 2009-08-22  Jim Meyering  <meyering@redhat.com>
41590             Bruno Haible  <bruno@clisp.org>
41591
41592         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41593         This makes it so packages using automake-1.11's silent-rules option
41594         can print e.g., a single "GEN    configmake.h" line, rather than
41595         the 30+ statements that perform the job.  If you want to see the
41596         actual commands, you can still run "make V=1".
41597         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41598         so that make output is abbreviated when those variables are defined
41599         appropriately.
41600         * modules/argz: Likewise.
41601         * modules/arpa_inet: Likewise.
41602         * modules/byteswap: Likewise.
41603         * modules/configmake: Likewise.
41604         * modules/dirent: Likewise.
41605         * modules/errno: Likewise.
41606         * modules/fcntl: Likewise.
41607         * modules/float: Likewise.
41608         * modules/fnmatch: Likewise.
41609         * modules/getopt-posix: Likewise.
41610         * modules/glob: Likewise.
41611         * modules/iconv_open: Likewise.
41612         * modules/inttypes: Likewise.
41613         * modules/localcharset: Likewise.
41614         * modules/locale: Likewise.
41615         * modules/math: Likewise.
41616         * modules/netdb: Likewise.
41617         * modules/netinet_in: Likewise.
41618         * modules/poll: Likewise.
41619         * modules/posix_spawnp-tests: Likewise.
41620         * modules/sched: Likewise.
41621         * modules/search: Likewise.
41622         * modules/selinux-h: Likewise.
41623         * modules/signal: Likewise.
41624         * modules/spawn: Likewise.
41625         * modules/stdarg: Likewise.
41626         * modules/stdbool: Likewise.
41627         * modules/stddef: Likewise.
41628         * modules/stdint: Likewise.
41629         * modules/stdio: Likewise.
41630         * modules/stdlib: Likewise.
41631         * modules/string: Likewise.
41632         * modules/strings: Likewise.
41633         * modules/sys_file: Likewise.
41634         * modules/sys_ioctl: Likewise.
41635         * modules/sys_select: Likewise.
41636         * modules/sys_socket: Likewise.
41637         * modules/sys_stat: Likewise.
41638         * modules/sys_time: Likewise.
41639         * modules/sys_times: Likewise.
41640         * modules/sys_utsname: Likewise.
41641         * modules/sys_wait: Likewise.
41642         * modules/sysexits: Likewise.
41643         * modules/time: Likewise.
41644         * modules/unistd: Likewise.
41645         * modules/wchar: Likewise.
41646         * modules/wctype: Likewise.
41647
41648 2009-08-22  Jim Meyering  <meyering@redhat.com>
41649
41650         announce-gen: detect write failure
41651         * build-aux/announce-gen: Add Coda at end.
41652         Remove equivalent-but-more-verbose block at top.
41653
41654 2009-08-19  Akim Demaille  <demaille@gostai.com>
41655
41656         bootstrap: --help to stdout.
41657         * bootstrap (usage): Don't send --help to stderr.
41658         Use a here doc instead of a long string.
41659
41660 2009-08-21  Eric Blake  <ebb9@byu.net>
41661
41662         test-popen-safer: split from test-popen
41663         * tests/test-popen.c (main): Move...
41664         * tests/test-popen.h: ...into new file.
41665         * tests/test-popen-safer2.c: New file.
41666         * modules/popen-tests (Files): Add test-popen.h.
41667         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
41668         Suggested by Bruno Haible.
41669
41670         test-fcntl-safer: split from test-open
41671         * tests/test-open.c (main): Move...
41672         * tests/test-open.h: ...into new file.
41673         * tests/test-fcntl-safer.c: New file.
41674         * modules/open-tests (Files): Add test-open.h.
41675         * modules/fcntl-safer-tests: New file.
41676         Suggested by Bruno Haible.
41677
41678         test-fopen-safer: split from test-fopen
41679         * tests/test-fopen.c (main): Move...
41680         * tests/test-fopen.h: ...into new file.
41681         * tests/test-fopen-safer.c: New file.
41682         * modules/fopen-tests (Files): Add test-fopen.h.
41683         * modules/fopen-safer-tests: New file.
41684         Suggested by Bruno Haible.
41685
41686 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41687
41688         popen-safer: test O_CLOEXEC at run-time.
41689         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
41690
41691 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41692
41693         fcntl: move more flags to the header
41694         * lib/cloexec.c: Do not define FD_CLOEXEC here.
41695         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
41696         * lib/fcntl.in.h: Do both things here.
41697
41698 2009-08-21  Jim Meyering  <meyering@redhat.com>
41699
41700         consistently remove $@-t before redirecting to it
41701         * modules/argz: Remove $@-t and $@ before redirecting to the former.
41702         * modules/alloca-opt: Likewise.
41703         * modules/byteswap: Likewise.
41704         * modules/fnmatch: Likewise.
41705         * modules/getopt-posix: Likewise.
41706         * modules/glob: Likewise.
41707         * modules/poll: Likewise.
41708         * modules/posix_spawnp-tests: Likewise.
41709         * modules/sys_socket: Likewise.
41710         * modules/sysexits: Likewise.
41711
41712 2009-08-21  Eric Blake  <ebb9@byu.net>
41713
41714         popen: simplify access to original popen
41715         * lib/popen.c (rpl_popen): No need to worry about popen being a
41716         macro.
41717         Reported by Bruno Haible.
41718
41719 2009-08-20  Eric Blake  <ebb9@byu.net>
41720
41721         build: avoid some compiler warnings
41722         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
41723         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
41724         type.
41725         (new_exclude_segment, excluded_file_pattern_p)
41726         (excluded_file_name_p): Reduce scope.
41727         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
41728         old-style declaration.
41729
41730 2009-08-20  Simon Josefsson  <simon@josefsson.org>
41731
41732         * tests/test-exclude1.sh: Handle Windows EOL.
41733         * tests/test-exclude2.sh: Likewise.
41734         * tests/test-exclude3.sh: Likewise.
41735         * tests/test-exclude4.sh: Likewise.
41736         * tests/test-exclude5.sh: Likewise.
41737         * tests/test-exclude6.sh: Likewise.
41738         * tests/test-exclude7.sh: Likewise.
41739
41740 2009-08-19  Akim Demaille  <demaille@gostai.com>
41741
41742         bootstrap: find sha1sum when named gsha1sum.
41743         * bootstrap (find_tool): New.
41744         ($SHA1SUM): New.
41745         Use it.
41746
41747 2009-08-20  Jim Meyering  <meyering@redhat.com>
41748
41749         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
41750         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
41751         expression that converts "." in a file name to "\." in the resulting
41752         regexp.  Start with a dummy statement, so that prior shell variable
41753         definitions are expanded portably.  Reported by Simon Josefsson.
41754
41755 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
41756
41757         Fix polling for writeability of a screen buffer.
41758         * lib/poll.c: Distinguish input and screen buffers for the
41759         Win32 implementation.
41760         * lib/select.c: Likewise.
41761
41762 2009-08-19  Eric Blake  <ebb9@byu.net>
41763
41764         popen-safer: prevent popen from clobbering std descriptors
41765         * modules/popen-safer: New file.
41766         * lib/popen-safer.c: Likewise.
41767         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
41768         * lib/stdio--.h (popen): Provide override.
41769         * lib/stdio-safer.h (popen_safer): Provide declaration.
41770         * tests/test-popen.c (includes): Partially test this.
41771         * modules/popen-safer-tests: New file, for more tests.
41772         * tests/test-popen-safer.c: Likewise.
41773         * MODULES.html.sh (file stream based Input/Output): Mention it.
41774
41775         tests: test some of the *-safer modules
41776         * modules/fopen-safer (Depends-on): Add fopen.
41777         * modules/fcntl-safer (Depends-on): Add fcntl.
41778         * modules/stdlib-safer (Depends-on): Add stdlib.
41779         (configure.ac): Set indicator.
41780         * modules/unistd-safer (configure.ac): Likewise.
41781         * modules/tmpfile-safer (configure.ac): Likewise.
41782         (Depends-on): Add tmpfile.
41783         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
41784         active.
41785         * tests/test-fopen.c (includes): Test safer versions when they are
41786         in use.
41787         * tests/test-open.c (includes): Likewise.
41788
41789         popen: fix cygwin 1.5 bug when stdin closed
41790         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
41791         * modules/popen: New file.
41792         * modules/popen-tests: Likewise.
41793         * tests/test-popen.c: Likewise.
41794         * m4/popen.m4: Likewise.
41795         * lib/popen.c: Likewise.
41796         * lib/stdio.in.h (popen): New declaration.
41797         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
41798         * modules/stdio (Makefile.am): Likewise.
41799         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
41800
41801 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
41802
41803         maint.mk: give full control over update-copyright exclusions
41804         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
41805         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
41806         (update-copyright): Don't force inclusion of top-level
41807         ChangeLog.  Don't force exclusion of all COPYING files, but make
41808         them the default exclusion instead.
41809
41810 2009-08-16  Bruno Haible  <bruno@clisp.org>
41811
41812         Fix test failures on Solaris 10.
41813         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
41814         tests when Solaris iconv() is used.
41815         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41816         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41817         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41818         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41819         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41820
41821 2009-08-16  Bruno Haible  <bruno@clisp.org>
41822
41823         Fix test failures on Solaris 10.
41824         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
41825         'tr' program and pass it as first argument.
41826         * tests/test-pipe-filter-gi1.sh: Likewise.
41827         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
41828         program as first argument.
41829         * tests/test-pipe-filter-gi1.c (main): Likewise.
41830
41831 2009-08-16  Eric Blake  <ebb9@byu.net>
41832
41833         fpurge: fix previous commits
41834         * modules/fpurge (Makefile.am): Make replacement conditional,
41835         partially reverting 2007-04-29 change; missed in previous
41836         attempt.
41837         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
41838         is missing.
41839
41840 2009-08-16  Bruno Haible  <bruno@clisp.org>
41841
41842         Clarify fpurge's effect on the file position.
41843         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
41844         * tests/test-fpurge.c (main): Make a second pass for checking the file
41845         position.
41846
41847 2009-08-16  Bruno Haible  <bruno@clisp.org>
41848
41849         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
41850         declaration of fpurge is missing.
41851         * tests/test-fpurge.c (main): Check that the file has not more contents
41852         than expected. Close the file before removing it.
41853
41854 2009-08-15  Eric Blake  <ebb9@byu.net>
41855
41856         fpurge: don't wrap working cygwin implementation
41857         * lib/fpurge.c (fpurge): Fix comment typo.
41858         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
41859         1.7 to avoid replacement.
41860         * tests/test-fpurge.c (main): Enhance test.
41861
41862 2009-08-15  Eric Blake  <ebb9@byu.net>
41863         and Jim Meyering  <meyering@redhat.com>
41864
41865         test-update-copyright: skip if perl is insufficient
41866         * tests/test-update-copyright.sh: Failure to run maintainer tool
41867         should not cause testsuite failure on cygwin 1.5.
41868
41869 2009-08-14  Eric Blake  <ebb9@byu.net>
41870
41871         doc: mention more functions added in cygwin 1.7.0
41872         * doc/posix-headers/limits.texi (limits.h): Update for recent
41873         cygwin additions.
41874         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
41875         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
41876         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
41877         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
41878         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
41879
41880 2009-08-14  Eric Blake  <ebb9@byu.net>
41881
41882         maint.mk: simplify update-copyright rule
41883         * top/maint.mk (update-copyright-local): Delete, and document how
41884         to do it in cfg.mk instead.
41885         (update-copyright-exclude-regexp): Delete, and document how to do
41886         it in .x-update-copyright instead.
41887         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
41888         exclude ChangeLog.
41889
41890 2009-08-14  Bruno Haible  <bruno@clisp.org>
41891
41892         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
41893
41894 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41895
41896         maint.mk: support update-copyright-env
41897         * top/maint.mk (update-copyright-env): Define place-holder.
41898         (update-copyright): Expand $(update-copyright-env) before
41899         invoking update-copyright.
41900
41901 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41902
41903         update-copyright: implement forced reformatting
41904         * build-aux/update-copyright: Implement and document
41905         UPDATE_COPYRIGHT_FORCE.
41906         * tests/test-update-copyright.sh: Test it.
41907
41908 2009-08-14  Eric Blake  <ebb9@byu.net>
41909         and Bruno Haible  <bruno@clisp.org>
41910
41911         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
41912         * tests/test-locale.c: Revert previous patch related to NULL.
41913         * tests/test-stdio.c: Likewise.
41914         * tests/test-stdlib.c: Likewise.
41915         * tests/test-string.c: Likewise.
41916         * tests/test-unistd.c: Likewise.
41917         * modules/time-tests (Depends-on): Add verify.
41918         * modules/wchar-tests (Depends-on): Likewise.
41919         * tests/test-time.c: Test for NULL compliance.
41920         * tests/test-wchar.c: Likewise.
41921         * modules/locale (Depends-on): Add stddef.
41922         * modules/stdio (Depends-on): Likewise.
41923         * modules/stdlib (Depends-on): Likewise.
41924         * modules/string (Depends-on): Likewise.
41925         * modules/time (Depends-on): Likewise.
41926         * modules/unistd (Depends-on): Likewise.
41927         * modules/wchar (Depends-on): Likewise.
41928         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
41929         * lib/stdlib.in.h (includes): Likewise.
41930         * lib/string.in.h (includes): Likewise.
41931         * lib/time.in.h (includes): Likewise.
41932         * lib/unistd.in.h (includes): Likewise.
41933         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
41934         replaced.
41935         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41936         * m4/stddef_h.m4: New file.
41937         * modules/stddef: Likewise.
41938         * lib/stddef.in.h: Likewise.
41939         * modules/stddef-tests: Likewise.
41940         * tests/test-stddef.c: Likewise.
41941         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
41942         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
41943         * doc/posix-headers/locale.texi (locale.h): Likewise.
41944         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
41945         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
41946         * doc/posix-headers/string.texi (string.h): Likewise.
41947         * doc/posix-headers/time.texi (time.h): Likewise.
41948         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
41949         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
41950
41951 2009-08-14  Eric Blake  <ebb9@byu.net>
41952
41953         doc: improve git diff of texinfo files
41954         * .gitattributes: Add rule for *.texi files, with hint on how to
41955         use it.
41956         Copied from m4, and based on a report by Bruno Haible.
41957
41958 2009-08-14  Bruno Haible  <bruno@clisp.org>
41959
41960         Disable multithread support by default on Cygwin 1.5.x for real.
41961         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
41962
41963 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41964
41965         update-copyright: much ado about intervals
41966         * build-aux/update-copyright: Implement and document
41967         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
41968         of copyright year intervals.
41969         Also, document UPDATE_COPYRIGHT_YEAR.
41970         * tests/test-update-copyright.sh: Test it.
41971
41972         update-copyright: convert 2-digit to 4-digit years
41973         * build-aux/update-copyright: Implement and document.
41974         * tests/test-update-copyright.sh: Update.
41975
41976 2009-08-14  Jim Meyering  <meyering@redhat.com>
41977
41978         test-exclude: avoid coreutils "make check" failure
41979         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
41980         just as in test-argmatch.c.
41981
41982 2009-08-13  Eric Blake  <ebb9@byu.net>
41983
41984         test-dup2: fix bad assumption
41985         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
41986         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
41987
41988         test-version-etc: fix CRLF portability issue
41989         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
41990         recognize \r.
41991         * tests/test-argp-version-etc-1.sh: Likewise.
41992
41993         getopt: update client modules
41994         * modules/argp (Depends-on): Use getopt-gnu.
41995         * modules/git-merge-changelog (Depends-on): Likewise.
41996         * modules/long-options (Depends-on): Likewise.
41997         * modules/xstrtol (Depends-on): Likewise.
41998
41999 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42000
42001         * tests/test-version-etc.sh: Don't fail on different
42002         project/version.  Don't fail on CRLF differences.  Rewrite to use
42003         multiple -e instead of multiple sed forks, suggested by Eric Blake
42004         <ebb9@byu.net>.
42005         * tests/test-argp-version-etc-1.sh: Likewise.
42006
42007 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42008
42009         * tests/test-version-etc.sh: Don't fail on different
42010         project/version.
42011
42012 2009-08-12  Bruno Haible  <bruno@clisp.org>
42013
42014         Tests for modules 'getopt-posix', 'getopt-gnu'.
42015         * modules/getopt-posix-tests: New file.
42016         * tests/test-getopt.c: New file.
42017         * tests/test-getopt.h: New file.
42018         * tests/test-getopt_long.h: New file.
42019
42020         New modules 'getopt-posix', 'getopt-gnu'.
42021         * modules/getopt-gnu: New file, renamed from modules/getopt.
42022         * modules/getopt-posix: New file.
42023         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42024         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42025         (gl_GETOPT): Remove macro.
42026         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42027         Disable the test against BSD systems that declare optreset. Test
42028         against mingw bug. Test against lack of support of optional arguments
42029         on many platforms.
42030         * doc/glibc-headers/getopt.texi: Update module name and list of
42031         relevant platforms.
42032         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42033         'getopt-gnu' and more portability problems.
42034         * NEWS: Mention the changes.
42035
42036 2009-08-12  Bruno Haible  <bruno@clisp.org>
42037
42038         Ensure that optarg etc. get declared by <unistd.h>.
42039         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42040         AC_USE_SYSTEM_EXTENSIONS.
42041         * modules/getopt (Depends-on): Add 'extensions'.
42042
42043 2009-08-12  Bruno Haible  <bruno@clisp.org>
42044
42045         Avoid test link errors.
42046         * modules/pipe-filter-ii-tests (Makefile.am): Define
42047         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42048         * modules/pipe-filter-gi-tests (Makefile.am): Define
42049         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42050         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42051
42052 2009-08-12  Bruno Haible  <bruno@clisp.org>
42053
42054         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42055         gl_GETOPT_SUBSTITUTE before.
42056         (gl_GETOPT): Use it.
42057         * m4/argp.m4 (gl_ARGP): Update.
42058         Reported by Sergey Poznyakoff.
42059
42060         * m4/getopt.m4: Reorder macros.
42061         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42062         (gl_GETOPT_SUBSTITUTE): Remove macro.
42063
42064 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42065
42066         Minor improvement in gitlog-to-changelog
42067
42068         * build-aux/gitlog-to-changelog: New option `--format' makes
42069         output format string configurable.
42070
42071 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42072
42073         Optimize exclude: use hash tables for non-wildcard patterns.
42074
42075         * lib/exclude.c: Include hash.h and mbuiter.h
42076         (struct exclude_pattern, exclude_segment): New data types.
42077         (struct exclude): Rewrite.
42078         (fnmatch_pattern_has_wildcards): New function.
42079         (new_exclude_segment, free_exclude_segment): New functions.
42080         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42081         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42082         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42083         * modules/exclude: Depend on hash and mbuiter.
42084
42085         * modules/exclude-tests: New file.
42086         * tests/test-exclude.c: New file.
42087         * tests/test-exclude1.sh: New file.
42088         * tests/test-exclude2.sh: New file.
42089         * tests/test-exclude3.sh: New file.
42090         * tests/test-exclude4.sh: New file.
42091         * tests/test-exclude5.sh: New file.
42092         * tests/test-exclude6.sh: New file.
42093         * tests/test-exclude7.sh: New file.
42094
42095 2009-08-12  Bruno Haible  <bruno@clisp.org>
42096
42097         Ensure that getopt() gets declared by <unistd.h>.
42098         * lib/unistd.in.h: Conditionally include getopt.h.
42099         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42100         Set GNULIB_UNISTD_H_GETOPT.
42101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42102         GNULIB_UNISTD_H_GETOPT.
42103         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42104
42105 2009-08-12  Bruno Haible  <bruno@clisp.org>
42106
42107         Clarify logic.
42108         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42109         gl_replace_getopt instead of GETOPT_H.
42110
42111 2009-08-12  Bruno Haible  <bruno@clisp.org>
42112
42113         * m4/getopt.m4: Add comments.
42114
42115 2009-08-12  Bruno Haible  <bruno@clisp.org>
42116
42117         Disable multithread support by default on Cygwin 1.5.x.
42118         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42119         set gl_use_threads=no if not specified otherwise.
42120
42121 2009-08-11  Bruno Haible  <bruno@clisp.org>
42122
42123         Avoid compilation error on NetBSD 5.0.
42124         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42125         * tests/test-stdio.c: Likewise.
42126         * tests/test-stdlib.c: Likewise.
42127         * tests/test-string.c: Likewise.
42128         * tests/test-unistd.c: Likewise.
42129         Reported by Greg Troxel <gdt@ir.bbn.com>
42130         at <https://savannah.gnu.org/support/?106973>.
42131
42132 2009-08-11  Bruno Haible  <bruno@clisp.org>
42133
42134         * modules/dup2-tests (Depends-on): Remove close.
42135
42136         Undo 2009-07-19 commit.
42137         * modules/acl-tests (Depends-on): Remove close.
42138         * modules/binary-io-tests (Depends-on): Likewise.
42139         * modules/closein-tests (Depends-on): Likewise.
42140         * modules/flock-tests (Depends-on): Likewise.
42141         * modules/fsync-tests (Depends-on): Likewise.
42142         * modules/lseek-tests (Depends-on): Likewise.
42143         * modules/pipe-tests (Depends-on): Likewise.
42144         * modules/posix_spawn-tests (Depends-on): Likewise.
42145         * modules/posix_spawnp-tests (Depends-on): Likewise.
42146         * modules/stat-time-tests (Depends-on): Likewise.
42147         * modules/yesno-tests (Depends-on): Likewise.
42148
42149 2009-08-10  Bruno Haible  <bruno@clisp.org>
42150
42151         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42152
42153 2009-08-10  Bruno Haible  <bruno@clisp.org>
42154
42155         Fix a gcc warning.
42156         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42157
42158 2009-08-10  Bruno Haible  <bruno@clisp.org>
42159
42160         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42161         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42162         not only the first time.
42163         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42164         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42165         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42166         is 1, not only the the first time.
42167
42168 2009-08-10  Bruno Haible  <bruno@clisp.org>
42169
42170         Make it possible to use module 'gethostname' without module 'close'.
42171         * lib/unistd.in.h (close): Evoke a link error only if
42172         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42174         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42175         * modules/unistd (Makefile.am): Substitute
42176         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42177         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42178         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42179         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42180         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42181         * modules/sys_ioctl (Makefile.am): Substitute
42182         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42183         * modules/socket (configure.ac): On native Windows, set
42184         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42185         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42186         Reported by Sam Steingold <sds@gnu.org>.
42187
42188 2009-08-10  Bruno Haible  <bruno@clisp.org>
42189
42190         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42191         * modules/ioctl (configure.ac): Likewise.
42192
42193 2009-08-10  Bruno Haible  <bruno@clisp.org>
42194
42195         Avoid collision between gnulib wrapper and libintl wrapper.
42196         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42197         already defined in intl/printf.c.
42198         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42199         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42200
42201 2009-08-09  Bruno Haible  <bruno@clisp.org>
42202
42203         Make <sys/select.h> really self-contained, also on Solaris 10.
42204         * lib/sys_select.in.h: Include <string.h>.
42205         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42206         Solaris 10 problem.
42207         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42208         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42209         Reported by Jim Meyering.
42210
42211 2009-08-09  Bruno Haible  <bruno@clisp.org>
42212
42213         Avoid warnings from 'aclocal' that are due to a use of macro name
42214         AM_XGETTEXT_OPTION that is not defined in automake.
42215         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42216         automake.
42217         * modules/error (configure.ac): Likewise.
42218         * modules/propername (configure.ac): Likewise.
42219         * modules/vasprintf (configure.ac): Likewise.
42220         * modules/verror (configure.ac): Likewise.
42221         * modules/xprintf (configure.ac): Likewise.
42222         * modules/xvasprintf (configure.ac): Likewise.
42223
42224 2009-08-08  Bruno Haible  <bruno@clisp.org>
42225
42226         Avoid compilation error in C++ mode.
42227         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42228         Reported by Sam Steingold <sds@gnu.org>.
42229
42230 2009-08-08  Bruno Haible  <bruno@clisp.org>
42231
42232         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42233         for the various Unix platforms.
42234         * doc/posix-headers/limits.texi: Update platforms list regarding
42235         HOST_NAME_MAX.
42236         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42237
42238 2009-08-07  Jim Meyering  <meyering@redhat.com>
42239
42240         selinux-at: fix typo in a comment
42241         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42242         Spotted by Paolo Bonzini.
42243
42244         selinux-at: remove redundant m4 code, add documentation
42245         * modules/selinux-at (configure.ac): Remove redundant code.
42246         LIB_SELINUX is already set via the dependent module, selinux-h.
42247         (Include): Add quotes around selinux-at.h.
42248         * lib/selinux-at.h: Add documentation.
42249         Reported by Bruno Haible in
42250         http://marc.info/?l=gnulib-bug&m=124958988300749
42251
42252 2009-08-07  Bruno Haible  <bruno@clisp.org>
42253
42254         Avoid link error on MacOS X 10.3 and 10.4.
42255         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42256         on non-ELF systems.
42257         * lib/argp-pv.c (argp_program_version): Likewise.
42258         Reported by Simon Josefsson.
42259
42260 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42261
42262         * tests/test-version-etc.sh: Use $EXEEXT.
42263
42264 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42265
42266         update-copyright: update documentation to point to maint.mk
42267         * build-aux/update-copyright: Here.
42268
42269 2009-08-06  Jim Meyering  <meyering@redhat.com>
42270
42271         maint.mk: support update-copyright-local
42272         * top/maint.mk (update-copyright-local): Define place-holder.
42273         (update-copyright): Depend on $(update-copyright-local).
42274
42275 2009-08-06  Jim Meyering  <meyering@redhat.com>
42276
42277         selinux-at: new module
42278         Initially written for coreutils, this module will soon be
42279         used by findutils, too.
42280         * MODULES.html.sh [Misc]: Add selinux-at.
42281         * lib/selinux-at.h: New file, from coreutils.
42282         * lib/selinux-at.c: Likewise.
42283         * modules/selinux-at: Likewise.
42284         (License): Change from LGPL to GPL, since it depends
42285         on the GPL'd openat module.
42286
42287         doc: update README
42288         * README: Remove references to cogito.
42289         Remove cvs-repo-updating instructions from 2007.
42290         Don't imply that CVS is better if you have limited disk space.
42291
42292 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42293
42294         update-copyright: support C-style comments
42295         * build-aux/update-copyright: Implement and document.
42296         * tests/test-update-copyright.sh: Test.
42297
42298 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42299
42300         update-copyright: support omitted "(C)"
42301         * build-aux/update-copyright: Implement and document.  Also,
42302         allow variable whitespace before "(C)".
42303         * tests/test-update-copyright.sh: Test.
42304
42305 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42306
42307         update-copyright: don't trip on non-FSF copyright statements
42308         * build-aux/update-copyright: Fix so that the first correctly
42309         formatted FSF copyright statement is recognized no matter what
42310         appears before it.  Update documentation.
42311         * tests/test-update-copyright.sh: Test that.
42312
42313 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42314
42315         update-copyright: clean up code a little
42316         * build-aux/update-copyright: Append "_re" to the name of any
42317         variable holding a regular expression.
42318         Replace "old" and "new" with "stmt" in variable names.
42319         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
42320         handled correctly.
42321         Format code more consistently.
42322
42323 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42324
42325         update-copyright-tests: improve portability
42326         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
42327         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
42328
42329 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42330
42331         update-copyright: support @copyright{} and &copy;
42332         * build-aux/update-copyright: Implement and document.
42333         * tests/test-update-copyright.sh: Test.
42334
42335 2009-08-04  Jim Meyering  <meyering@redhat.com>
42336
42337         update-copyright-tests: correctly test EOL=\r\n handling
42338         * tests/test-update-copyright.sh: Put \r at the end of some lines
42339         for the dos-eol tests.  Based on a patch by Joel E. Denny.
42340
42341         maint.mk: make update-copyright exclusion list more configurable
42342         * top/maint.mk (update-copyright): Default to excluding COPYING,
42343         but allow an override, in case someone does want to update that file.
42344
42345         maint.mk: don't update copyright date in COPYING
42346         * top/maint.mk (update-copyright): Exclude COPYING.
42347
42348         maint.mk: add a copyright-updating rule
42349         * top/maint.mk (update-copyright): New rule.
42350         Derived from coreutils/Makefile.am.
42351
42352         update-copyright: rename some variables
42353         * build-aux/update-copyright: Rename a few variables for clarity.
42354         Tweak syntax.  List Joel E. Denny as coauthor.
42355
42356 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42357
42358         update-copyright: fix bug for 2-digit last year and add tests
42359         * build-aux/update-copyright: Fix bug.
42360         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42361         specified.
42362         * modules/update-copyright-tests: New
42363         * tests/test-update-copyright.sh: New.
42364
42365 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42366
42367         update-copyright: handle leading tabs in line prefix
42368         * build-aux/update-copyright: Count leading tabs as 8 spaces
42369         when computing margin.  This helps with the formatting of
42370         ChangeLogs, for example.
42371         Fix documentation a little.
42372
42373 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42374
42375         update-copyright: support EOL=\r\n
42376         * build-aux/update-copyright: Implement that.
42377
42378 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42379
42380         update-copyright: automatically format copyright statements
42381         * build-aux/update-copyright: Implement that.
42382         Also, be a little more predictable and safer by always failing
42383         when the full copyright format is not perfectly recognized as an
42384         unbroken whole.  Discussed at
42385         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42386         Rewrite documentation.
42387
42388 2009-08-03  Bruno Haible  <bruno@clisp.org>
42389
42390         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42391
42392 2009-08-02  Bruno Haible  <bruno@clisp.org>
42393
42394         Tests for module 'uname'.
42395         * modules/uname-tests: New file.
42396         * tests/test-uname.c: New file.
42397
42398         New module 'uname'.
42399         * lib/uname.c: New file.
42400         * m4/uname.m4: New file.
42401         * modules/uname: New file.
42402         * doc/posix-functions/uname.texi: Mention the new module.
42403
42404 2009-08-02  Bruno Haible  <bruno@clisp.org>
42405
42406         Tests for module 'sys_utsname'.
42407         * modules/sys_utsname-tests: New file.
42408         * tests/test-sys_utsname.c: New file.
42409
42410         New module 'sys_utsname'.
42411         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
42412         * m4/sys_utsname_h.m4: New file.
42413         * modules/sys_utsname: New file.
42414         * doc/posix-headers/sys_utsname.texi: Mention the new module.
42415
42416 2009-08-02  Bruno Haible  <bruno@clisp.org>
42417
42418         Implicitly initialize the sockets library.
42419         * lib/gethostname.c: Include sockets.h.
42420         (rpl_gethostname): Invoke gl_sockets_startup.
42421         * lib/socket.c: Include sockets.h.
42422         (rpl_socket): Invoke gl_sockets_startup.
42423         * modules/gethostname (Depends-on): Add sockets.
42424         * modules/socket (Depends-on): Likewise.
42425         * tests/test-poll.c: Don't include sockets.h.
42426         (main): Don't invoke gl_sockets_startup.
42427         * tests/test-select.c: Don't include sockets.h.
42428         (main): Don't invoke gl_sockets_startup.
42429
42430 2009-08-02  Bruno Haible  <bruno@clisp.org>
42431
42432         Allow multiple calls to gl_sockets_startup.
42433         * lib/sockets.c (initialized_sockets_version): New variable.
42434         (gl_sockets_startup): Do nothing if already called for this or a higher
42435         version.
42436         (gl_sockets_cleanup): Reset initialized_sockets_version.
42437
42438 2009-08-03  Simon Josefsson  <simon@josefsson.org>
42439
42440         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
42441         different project/version.
42442
42443 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
42444             Bruno Haible  <bruno@clisp.org>
42445
42446         Tests for module 'pipe-filter-gi'.
42447         * modules/pipe-filter-gi-tests: New file.
42448         * tests/test-pipe-filter-gi1.sh: New file.
42449         * tests/test-pipe-filter-gi1.c: New file.
42450         * tests/test-pipe-filter-gi2.sh: New file.
42451         * tests/test-pipe-filter-gi2-main.c: New file.
42452         * tests/test-pipe-filter-gi2-child.c: New file.
42453
42454         New module 'pipe-filter-gi'.
42455         * lib/pipe-filter-gi.c: New file.
42456         * modules/pipe-filter-gi: New file.
42457
42458 2009-08-02  Bruno Haible  <bruno@clisp.org>
42459             Paolo Bonzini  <bonzini@gnu.org>
42460
42461         Tests for module 'pipe-filter-ii'.
42462         * modules/pipe-filter-ii-tests: New file.
42463         * tests/test-pipe-filter-ii1.sh: New file.
42464         * tests/test-pipe-filter-ii1.c: New file.
42465         * tests/test-pipe-filter-ii2.sh: New file.
42466         * tests/test-pipe-filter-ii2-main.c: New file.
42467         * tests/test-pipe-filter-ii2-child.c: New file.
42468
42469         New module 'pipe-filter-ii'.
42470         * lib/pipe-filter.h: New file.
42471         * lib/pipe-filter-ii.c: New file.
42472         * lib/pipe-filter-aux.h: New file.
42473         * modules/pipe-filter-ii: New file.
42474
42475 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42476
42477         * lib/gc-libgcrypt.c: Change copyright to FSF.
42478         * lib/gc-gnulib.c: Likewise.
42479
42480 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
42481
42482         * lib/gethostname.c: Include limits.h.
42483
42484 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42485             Bruno Haible  <bruno@clisp.org>
42486
42487         Ensure HOST_NAME_MAX as part of the gethostname module.
42488         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
42489         define also HOST_NAME_MAX.
42490         * tests/test-gethostname.c: Include <limits.h>.
42491         (main): Check also HOST_NAME_MAX.
42492         * doc/posix-headers/limits.texi: Document the mingw problem.
42493
42494 2009-08-02  Bruno Haible  <bruno@clisp.org>
42495
42496         * lib/gethostname.c (gethostname): Fix handling of large len argument.
42497         Add comments.
42498
42499 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42500
42501         * lib/gethostname.c: Add Windows wrapper.
42502         * m4/gethostname.m4: Look for gethostname in -lws2_32.
42503         * modules/gethostname: Depend on sys_socket & errno, for also
42504         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42505         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42506
42507 2009-07-31  Jim Meyering  <meyering@redhat.com>
42508
42509         getloadavg: fix symbol name in comment
42510         * lib/getloadavg.c: Correct a typo I introduced when adding
42511         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42512         Matt Kraai spotted the problem.
42513
42514 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42515
42516         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42517         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42518         code also if ! defined N_NAME_POINTER.
42519         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42520         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42521         but the n_name member is a 12-byte array.
42522
42523 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42524
42525         update-copyright: generalize comment handling
42526         * build-aux/update-copyright: Handle copyright statements
42527         within more comment styles.
42528         Document usage.
42529         Report any file with an external copyright holder or parse failure.
42530
42531 2009-07-29  Jim Meyering  <meyering@redhat.com>
42532
42533         mktime: correct setting of REPLACE_MKTIME
42534         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42535
42536         update-copyright: new module
42537         * modules/update-copyright: New file.
42538         * build-aux/update-copyright: New file.
42539         * MODULES.html.sh (maint+release support): Add update-copyright.
42540
42541 2009-07-27  Bruno Haible  <bruno@clisp.org>
42542
42543         Fix compilation error when <ctime> is used and mktime is replaced.
42544         * lib/time.in.h (mktime): New declaration.
42545         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42546         REPLACE_MKTIME instead of defining mktime in config.h.
42547         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42548         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42549         Reported by Ross McFarland <rwmcfa1@neces.com>.
42550
42551 2009-07-27  Bruno Haible  <bruno@clisp.org>
42552
42553         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42554         Reported by Matt Kraai <mkraai@beckman.com>.
42555
42556 2009-07-25  Jim Meyering  <meyering@redhat.com>
42557
42558         maint.mk: avoid warnings about missing files
42559         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42560         diagnostic when .prev-version does not exist.
42561         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42562         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42563         nonexistent cfg.mk.
42564         Suggestions from Simon Josefsson.
42565
42566 2009-07-25  Bruno Haible  <bruno@clisp.org>
42567
42568         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42569         defined as macros. Needed on QNX 6.4.1.
42570         Reported by Matt Kraai <mkraai@beckman.com>.
42571
42572 2009-07-23  Jim Meyering  <meyering@redhat.com>
42573
42574         maint.mk: invoke "make dist" with a working value of XZ_OPT
42575         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42576
42577 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42578
42579         Make fseeko.c compile on QNX.
42580         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42581
42582 2009-07-22  Peter Simons  <simons@cryp.to>
42583
42584         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42585         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42586         * lib/md4.h: Likewise.
42587         * lib/md5.h: Likewise.
42588         * lib/sha1.h: Likewise.
42589         * lib/sha256.h: Likewise.
42590         * lib/sha512.h: Likewise.
42591
42592         tests-sha1: don't assign literal string to 'char *' variable
42593         * tests/test-sha1.c (main): Declare locals with "const" to match
42594         attributes of the right hand side.
42595
42596 2009-07-21  Eric Blake  <ebb9@byu.net>
42597
42598         dup2: fix more mingw problems
42599         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42600         fd to itself.
42601         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42602         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42603         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42604         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42605         care of mingw bugs.
42606
42607 2009-07-21  Jim Meyering  <meyering@redhat.com>
42608
42609         vc-list-files: avoid failure when /bin/sh is dash
42610         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42611         On some Debian based systems, /bin/sh is a symlink to dash, and running
42612         this command would omit the "/" following each 'tests' prefix:
42613           dash -x build-aux/vc-list-files -C . tests
42614         That is because bash and dash work differently:
42615           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42616           bash ok
42617           dash odd
42618
42619 2009-07-21  Eric Blake  <ebb9@byu.net>
42620
42621         dup2-tests: test previous patch
42622         * modules/dup2-tests: New file.
42623         * tests/test-dup2.c: Likewise.
42624         * tests/test-open.c (main): Avoid unspecified behavior.
42625         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42626         test.
42627
42628         dup2: work around mingw and cygwin 1.5 bug
42629         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42631         * modules/unistd (Makefile.am): Substitute it.
42632         * lib/unistd.in.h (dup2): Declare the replacement.
42633         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42634         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42635         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42636         * modules/execute (Depends-on): Add dup2.
42637         * modules/fseterr (Depends-on): Likewise.
42638         * modules/pipe (Depends-on): Likewise.
42639         * modules/posix_spawn-internal (Depends-on): Likewise.
42640
42641 2009-07-21  Bruno Haible  <bruno@clisp.org>
42642
42643         * modules/.gitattributes: New file.
42644
42645 2009-07-20  Bruno Haible  <bruno@clisp.org>
42646
42647         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42648         (main): Use it.
42649
42650 2009-07-20  Eric Blake  <ebb9@byu.net>
42651
42652         test-pipe: make a bit more robust.
42653         * tests/test-pipe.c (myerr): Allow error messages regardless of
42654         what we do to stderr.
42655         (test_pipe): Rearrange to avoid deadlock.
42656         (child_main): Try a larger read, to ensure we avoided deadlock.
42657         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
42658         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
42659         if misused.
42660
42661 2009-07-19  Jim Meyering  <meyering@redhat.com>
42662
42663         fts: avoid false-positive cycle-detection
42664         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
42665         for each new command line argument.
42666
42667 2009-07-19  Bruno Haible  <bruno@clisp.org>
42668
42669         Fix build error on mingw with the modules sys_select and unistd.
42670         * modules/acl-tests (Depends-on): Add close.
42671         * modules/binary-io-tests (Depends-on): Likewise.
42672         * modules/closein-tests (Depends-on): Likewise.
42673         * modules/flock-tests (Depends-on): Likewise.
42674         * modules/fsync-tests (Depends-on): Likewise.
42675         * modules/lseek-tests (Depends-on): Likewise.
42676         * modules/pipe-tests (Depends-on): Likewise.
42677         * modules/posix_spawn-tests (Depends-on): Likewise.
42678         * modules/posix_spawnp-tests (Depends-on): Likewise.
42679         * modules/stat-time-tests (Depends-on): Likewise.
42680         * modules/yesno-tests (Depends-on): Likewise.
42681
42682 2009-07-19  Bruno Haible  <bruno@clisp.org>
42683
42684         Unify conditionals.
42685         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
42686         macros, not at the compiler macros.
42687         * lib/pipe.c: Likewise.
42688         * lib/execute.c: Likewise.
42689         * lib/spawni.c: Likewise.
42690
42691 2009-07-19  Bruno Haible  <bruno@clisp.org>
42692
42693         Fix handling of closed stdin/stdout/stderr on mingw.
42694         * lib/w32spawn.h: Include unistd.h.
42695         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
42696         file descriptor with O_NOINHERIT flag.
42697         (fd_safer_noinherit): New function, based on fd-safer.c.
42698         (dup_safer_noinherit): New function, based on dup-safer.c.
42699         (undup_safer_noinherit): New function.
42700         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
42701         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
42702         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
42703         instead of fd_safer.
42704         * tests/test-pipe.c: Include <windows.h>.
42705         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
42706         result.
42707
42708         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
42709         from main.
42710         (test_pipe): Pass an extra argument for disambiguation.
42711         (main): Invoke parent_main or child_main.
42712
42713         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
42714         consistently.
42715
42716 2009-07-18  Eric Blake  <ebb9@byu.net>
42717
42718         test-pipe: fix mingw build
42719         * tests/test-pipe.c (main): Avoid fcntl on mingw.
42720
42721 2009-07-18  Bruno Haible  <bruno@clisp.org>
42722
42723         * modules/pipe-tests (Makefile.am): Fix typo.
42724
42725 2009-07-18  Eric Blake  <ebb9@byu.net>
42726
42727         error: fix mingw build
42728         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
42729         Reported by Bruno Haible.
42730
42731         error: avoid undefined use of stdout
42732         * lib/error.c (error, error_at_line): Check that fd 1 is open
42733         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
42734         is handling faults and the close_stdout module wants to report the
42735         detection of closed stdout as an error.
42736
42737 2009-07-17  Eric Blake  <ebb9@byu.net>
42738
42739         pipe: be robust in face of closed fds
42740         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
42741         should cause child to misbehave.
42742         * modules/pipe-tests: New module.
42743         * tests/test-pipe.c: New file.
42744         * tests/test-pipe.sh: New file.
42745         Reported by Akim Demaille.
42746
42747 2009-07-14  Bruno Haible  <bruno@clisp.org>
42748
42749         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
42750         Reported by anonymous kc.
42751
42752 2009-07-07  Jim Meyering  <meyering@redhat.com>
42753
42754         maint.mk: don't look for translatable strings in *.m4 or *.mk
42755         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
42756         when searching for translatable strings.
42757
42758 2009-07-05  Jim Meyering  <meyering@redhat.com>
42759
42760         remove superfluous parentheses in STREQ definition
42761         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
42762         * lib/getugroups.c (STREQ): Likewise.
42763         * lib/fnmatch.c (STREQ): Likewise.
42764         Spotted by Bruno Haible.
42765
42766 2009-07-04  Jim Meyering  <meyering@redhat.com>
42767
42768         argv-iter: new module
42769         * MODULES.html.sh: Add argv-iter.
42770         * lib/argv-iter.c, lib/argv-iter.h: New files.
42771         * modules/argv-iter: New file.
42772         * modules/argv-iter-tests: New file.
42773         * tests/test-argv-iter.c: Test it.
42774
42775 2009-07-04  Bruno Haible  <bruno@clisp.org>
42776
42777         Fix assertion.
42778         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
42779         contains more exact copies of a given entry than file2, leave the extra
42780         copies unpaired rather than aborting.
42781         Reported by Eric Blake.
42782
42783 2009-07-02  Bruno Haible  <bruno@clisp.org>
42784
42785         Speedup git-merge-changelog for git cherry-pick.
42786         * lib/git-merge-changelog.c (struct entries_mapping): New type.
42787         (entries_mapping_get): New function, extracted from compute_mapping.
42788         (entries_mapping_reverse_get): New function.
42789         (compute_mapping): Add a 'full' argument. Return the result in a
42790         'struct entries_mapping'.
42791         (main): Update. Access the mappings through entries_mapping_get.
42792         Reported by Eric Blake.
42793
42794 2009-07-02  Bruno Haible  <bruno@clisp.org>
42795
42796         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
42797         best_i.
42798
42799 2009-07-02  Bruno Haible  <bruno@clisp.org>
42800
42801         Speed up approximate search for matching ChangeLog entries.
42802         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
42803         argument. Call fstrcmp_bounded instead of fstrcmp.
42804         (compute_mapping, try_split_merged_entry, main): Update callers.
42805
42806 2009-07-02  Bruno Haible  <bruno@clisp.org>
42807
42808         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
42809
42810 2009-06-30  Bruno Haible  <bruno@clisp.org>
42811
42812         Reduce the number of uc_is_cased calls.
42813         * lib/unicase.h (casing_suffix_context_t): Add
42814         'first_char_except_ignorable' field.
42815         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
42816         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
42817         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
42818         Update initializer.
42819         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
42820         case-ignorable characters.
42821         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
42822         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
42823         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
42824         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
42825         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
42826
42827 2009-06-30  Bruno Haible  <bruno@clisp.org>
42828
42829         Tests for module 'unicase/ignorable'.
42830         * modules/unicase/ignorable-tests: New file.
42831         * tests/unicase/test-ignorable.c: New file, generated by
42832         gen-uni-tables.
42833
42834         Tests for module 'unicase/cased'.
42835         * modules/unicase/cased-tests: New file.
42836         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
42837         * tests/unicase/test-predicate-part1.h: New file, derived from
42838         tests/unictype/test-predicate-part1.h.
42839         * tests/unicase/test-predicate-part2.h: New file, same as
42840         tests/unictype/test-predicate-part2.h.
42841
42842         Fix evaluation of "Before C" condition of FINAL_SIGMA.
42843         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
42844         (output_casing_properties): New function.
42845         (main): Call it.
42846         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
42847         * lib/unicase/cased.c: Include unictype/bitmap.h.
42848         (uc_is_cased): Define through a bitmap lookup.
42849         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
42850         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
42851         (uc_is_case_ignorable): Define through a bitmap lookup.
42852         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
42853         lib/unictype/bitmap.h.
42854         (Depends-on): Add inline. Clean up.
42855         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
42856         lib/unictype/bitmap.h.
42857         (Depends-on): Add inline. Clean up.
42858         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
42859         recognition.
42860         * tests/unicase/test-u16-tolower.c (main): Likewise.
42861         * tests/unicase/test-u32-tolower.c (main): Likewise.
42862
42863 2009-06-30  Bruno Haible  <bruno@clisp.org>
42864
42865         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
42866         * lib/unicase/u16-casemap.c: Likewise.
42867         * lib/unicase/u32-casemap.c: Likewise.
42868
42869 2009-06-29  Bruno Haible  <bruno@clisp.org>
42870
42871         Define u32_casefold as a wrapper around u32_ct_casefold.
42872         * lib/unicase/u32-casefold.c: Update.
42873         * modules/unicase/u32-casefold (Depends-on): Add
42874         unicase/u32-ct-casefold, unicase/empty-prefix-context,
42875         unicase/empty-suffix-context. Clean up.
42876
42877         Define u16_casefold as a wrapper around u16_ct_casefold.
42878         * lib/unicase/u16-casefold.c: Update.
42879         * modules/unicase/u16-casefold (Depends-on): Add
42880         unicase/u16-ct-casefold, unicase/empty-prefix-context,
42881         unicase/empty-suffix-context. Clean up.
42882
42883         Define u8_casefold as a wrapper around u8_ct_casefold.
42884         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
42885         * lib/unicase/u8-casefold.c: Update.
42886         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
42887         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42888
42889         Define u32_totitle as a wrapper around u32_ct_totitle.
42890         * lib/unicase/u32-totitle.c: Update.
42891         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
42892         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42893
42894         Define u16_totitle as a wrapper around u16_ct_totitle.
42895         * lib/unicase/u16-totitle.c: Update.
42896         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
42897         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42898
42899         Define u8_totitle as a wrapper around u8_ct_totitle.
42900         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
42901         functions.
42902         (FUNC): Delegate to U_CT_TOTITLE.
42903         * lib/unicase/u8-totitle.c: Update.
42904         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
42905         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42906
42907         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
42908         invocation.
42909         * modules/unicase/u32-tolower (Depends-on): Add
42910         unicase/empty-prefix-context, unicase/empty-suffix-context.
42911
42912         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
42913         invocation.
42914         * modules/unicase/u16-tolower (Depends-on): Add
42915         unicase/empty-prefix-context, unicase/empty-suffix-context.
42916
42917         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
42918         * modules/unicase/u8-tolower (Depends-on): Add
42919         unicase/empty-prefix-context, unicase/empty-suffix-context.
42920
42921         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
42922         invocation.
42923         * modules/unicase/u32-toupper (Depends-on): Add
42924         unicase/empty-prefix-context, unicase/empty-suffix-context.
42925
42926         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
42927         invocation.
42928         * modules/unicase/u16-toupper (Depends-on): Add
42929         unicase/empty-prefix-context, unicase/empty-suffix-context.
42930
42931         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
42932         * modules/unicase/u8-toupper (Depends-on): Add
42933         unicase/empty-prefix-context, unicase/empty-suffix-context.
42934
42935         New module 'unicase/u32-ct-casefold'.
42936         * lib/unicase/u32-ct-casefold.c: New file.
42937         * modules/unicase/u32-ct-casefold: New file.
42938
42939         New module 'unicase/u16-ct-casefold'.
42940         * lib/unicase/u16-ct-casefold.c: New file.
42941         * modules/unicase/u16-ct-casefold: New file.
42942
42943         New module 'unicase/u8-ct-casefold'.
42944         * lib/unicase/u8-ct-casefold.c: New file.
42945         * lib/unicase/u-ct-casefold.h: New file, derived from
42946         lib/unicase/u-casefold.h.
42947         * modules/unicase/u8-ct-casefold: New file.
42948
42949         New module 'unicase/u32-ct-totitle'.
42950         * lib/unicase/u32-ct-totitle.c: New file.
42951         * modules/unicase/u32-ct-totitle: New file.
42952
42953         New module 'unicase/u16-ct-totitle'.
42954         * lib/unicase/u16-ct-totitle.c: New file.
42955         * modules/unicase/u16-ct-totitle: New file.
42956
42957         New module 'unicase/u8-ct-totitle'.
42958         * lib/unicase/u8-ct-totitle.c: New file.
42959         * lib/unicase/u-ct-totitle.h: New file, derived from
42960         lib/unicase/u-totitle.h.
42961         * modules/unicase/u8-ct-totitle: New file.
42962
42963         New module 'unicase/u32-ct-tolower'.
42964         * lib/unicase/u32-ct-tolower.c: New file.
42965         * modules/unicase/u32-ct-tolower: New file.
42966
42967         New module 'unicase/u16-ct-tolower'.
42968         * lib/unicase/u16-ct-tolower.c: New file.
42969         * modules/unicase/u16-ct-tolower: New file.
42970
42971         New module 'unicase/u8-ct-tolower'.
42972         * lib/unicase/u8-ct-tolower.c: New file.
42973         * modules/unicase/u8-ct-tolower: New file.
42974
42975         New module 'unicase/u32-ct-toupper'.
42976         * lib/unicase/u32-ct-toupper.c: New file.
42977         * modules/unicase/u32-ct-toupper: New file.
42978
42979         New module 'unicase/u16-ct-toupper'.
42980         * lib/unicase/u16-ct-toupper.c: New file.
42981         * modules/unicase/u16-ct-toupper: New file.
42982
42983         New module 'unicase/u8-ct-toupper'.
42984         * lib/unicase/u8-ct-toupper.c: New file.
42985         * modules/unicase/u8-ct-toupper: New file.
42986
42987         Add context arguments to u*_casemap functions.
42988         * lib/unicase/unicasemap.h: Include unicase.h.
42989         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
42990         suffix_context arguments.
42991         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
42992         functions.
42993         (FUNC): Add prefix_context and suffix_context arguments. Use
42994         uc_is_cased and uc_is_case_ignorable.
42995         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
42996         * lib/unicase/u16-casemap.c: Likewise.
42997         * lib/unicase/u32-casemap.c: Likewise.
42998         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
42999         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43000         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43001         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43002         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43003         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43004
43005         New module 'unicase/u32-suffix-context'.
43006         * lib/unicase/u32-suffix-context.c: New file.
43007         * modules/unicase/u32-suffix-context: New file.
43008
43009         New module 'unicase/u16-suffix-context'.
43010         * lib/unicase/u16-suffix-context.c: New file.
43011         * modules/unicase/u16-suffix-context: New file.
43012
43013         New module 'unicase/u8-suffix-context'.
43014         * lib/unicase/u8-suffix-context.c: New file.
43015         * lib/unicase/u-suffix-context.h: New file.
43016         * modules/unicase/u8-suffix-context: New file.
43017
43018         New module 'unicase/empty-suffix-context'.
43019         * lib/unicase/empty-suffix-context.c: New file.
43020         * modules/unicase/empty-suffix-context: New file.
43021
43022         New module 'unicase/u32-prefix-context'.
43023         * lib/unicase/u32-prefix-context.c: New file.
43024         * modules/unicase/u32-prefix-context: New file.
43025
43026         New module 'unicase/u16-prefix-context'.
43027         * lib/unicase/u16-prefix-context.c: New file.
43028         * modules/unicase/u16-prefix-context: New file.
43029
43030         New module 'unicase/u8-prefix-context'.
43031         * lib/unicase/u8-prefix-context.c: New file.
43032         * lib/unicase/u-prefix-context.h: New file.
43033         * lib/unicase/context.h: New file.
43034         * modules/unicase/u8-prefix-context: New file.
43035
43036         New module 'unicase/empty-prefix-context'.
43037         * lib/unicase/empty-prefix-context.c: New file.
43038         * modules/unicase/empty-prefix-context: New file.
43039
43040         New module 'unicase/ignorable'.
43041         * lib/unicase/ignorable.c: New file.
43042         * modules/unicase/ignorable: New file.
43043
43044         New module 'unicase/cased'.
43045         * lib/unicase/caseprop.h: New file.
43046         * lib/unicase/cased.c: New file.
43047         * modules/unicase/cased: New file.
43048
43049         New functions for case mapping of substrings.
43050         * lib/unicase.h (casing_prefix_context_t): New type.
43051         (unicase_empty_prefix_context): New variable.
43052         (u8_casing_prefix_context, u16_casing_prefix_context,
43053         u32_casing_prefix_context, u8_casing_prefixes_context,
43054         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43055         declarations.
43056         (casing_suffix_context_t): New type.
43057         (unicase_empty_suffix_context): New variable.
43058         (u8_casing_suffix_context, u16_casing_suffix_context,
43059         u32_casing_suffix_context, u8_casing_suffixes_context,
43060         u16_casing_suffixes_context, u32_casing_suffixes_context,
43061         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43062         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43063         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43064         declarations.
43065
43066 2009-06-28  Jim Meyering  <meyering@redhat.com>
43067
43068         boostrap: indent only with spaces
43069         * build-aux/bootstrap: Indent only with spaces, never TABs.
43070
43071         bootstrap: split long lines
43072         * build-aux/bootstrap: Keep line length < 80.
43073
43074         bootstrap: sync from coreutils
43075         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43076         just as autoreconf does.  Verify a list of prerequisite
43077         package-name,version-number pairs if defined in bootstrap.conf.
43078         Refer to README-prereq, if prerequisites are not satisfied.
43079
43080 2009-06-27  Eric Blake  <ebb9@byu.net>
43081
43082         tests: add test for bogus NULL definition
43083         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43084         * tests/test-stdlib.c: Likewise.
43085         * tests/test-string.c: Likewise.
43086         * tests/test-locale.c: Likewise.
43087         * tests/test-unistd.c: Likewise.
43088         * modules/stdio-tests (Depends-on): Add verify.
43089         * modules/stdlib-tests (Depends-on): Likewise.
43090         * modules/string-tests (Depends-on): Likewise.
43091         * modules/locale-tests (Depends-on): Likewise.
43092         * modules/unistd-tests (Depends-on): Likewise.
43093
43094 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43095
43096         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43097         self-explaining comment.
43098         * m4/selinux-selinux-h: Update serial.
43099         (gl_LIBSELINUX): New macro, adding a warning for missing development
43100         packages to code extracted from...
43101         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43102         Add warning for missing development packages here, too.
43103
43104 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43105
43106         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43107
43108 2009-06-25  Eric Blake  <ebb9@byu.net>
43109
43110         version-etc: fix regression
43111         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43112         gcc.
43113         (version_etc): Use it, to catch bugs with trailing NULL.
43114         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43115         (version_etc_va): Fix logic bug.
43116         * modules/version-etc-tests: Add test.
43117         * tests/test-version-etc.c: New file.
43118         * tests/test-version-etc.sh: Likewise.
43119
43120 2009-06-25  Sam Steingold  <sds@gnu.org>
43121
43122         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43123         mbtowc declaration.
43124
43125 2009-06-25  Eric Blake  <ebb9@byu.net>
43126
43127         fpurge: migrate into <stdio.h>
43128         * lib/fpurge.h: Delete...
43129         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43130         * lib/fpurge.c (fpurge): Change declaring header.
43131         * modules/fpurge (Files): Drop deleted file.
43132         (Depends-on): Add stdio.
43133         (configure.ac): Set witness.
43134         * modules/stdio (Makefile.am): Support fpurge macros.
43135         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43136         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43137         * lib/fflush.c: Update client.
43138         * tests/test-fpurge.c: Likewise.
43139         * NEWS: Mention the change.
43140
43141 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43142
43143         * lib/argp-version-etc.c (program_authors): Add const
43144         qualifier.
43145         * lib/version-etc.c: Fix typos in the comments.
43146         * modules/argp-version-etc: Depends on version-etc.
43147
43148 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43149
43150         argp-version-etc: new module.
43151
43152         * lib/argp-version-etc.c: New file.
43153         * lib/argp-version-etc.h: New file.
43154         * modules/argp-version-etc: New file.
43155         * modules/argp-version-etc-tests: New file.
43156         * tests/test-argp-version-etc.c: New test.
43157         * tests/test-argp-version-etc-1.sh: New test.
43158
43159 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43160
43161         Provide additional interfaces and documentation for version-etc
43162         module.
43163
43164         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43165         interfaces.
43166         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43167         prototypes.
43168
43169 2009-06-24  Bruno Haible  <bruno@clisp.org>
43170
43171         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43172         HAVE_LIB${NAME} macro.
43173         Reported by Sam Steingold <sds@gnu.org>.
43174
43175 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43176
43177         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43178         needed.
43179
43180 2009-06-21  Bruno Haible  <bruno@clisp.org>
43181
43182         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43183         work.
43184         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43185         together with LIB${NAME}, LTLIB${NAME}.
43186         Reported by Sam Steingold <sds@gnu.org>.
43187
43188 2009-06-20  Jim Meyering  <meyering@redhat.com>
43189
43190         tests: make sc_require_test_exit_idiom more generic
43191         * top/maint.mk (Exit_witness_file): New overridable variable.
43192         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43193         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43194
43195 2009-06-19  Jim Meyering  <meyering@redhat.com>
43196
43197         hash: reverse order of src/dst parameters in an internal interface
43198         * lib/hash.c (transfer_entries): Reverse order of parameters to
43199         put DST before SRC.  Adjust callers.
43200
43201         tests: test-hash: avoid wholesale duplication
43202         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43203         Instead, use a loop and add a single conditional.
43204
43205         tests: test-hash: allow seed selection via a command line argument
43206         * tests/test-hash.c (get_seed): New function.
43207         (main): Use it.
43208
43209 2009-06-19  Eric Blake  <ebb9@byu.net>
43210
43211         hash: avoid memory leak on allocation failure
43212         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43213         failure.  Factor repeated algorithm...
43214         (transfer_entries): ...into new helper routine.
43215         (hash_delete): React to hash_rehash return value.
43216
43217         hash: reduce memory pressure in hash_rehash no-op case
43218         * lib/hash.c (next_prime): Avoid overflow.
43219         (hash_initialize): Factor bucket size computation...
43220         (compute_bucket_size): ...into new helper function.
43221         (hash_rehash): Use new function and open coding to reduce memory
43222         pressure, and avoid a memory leak in USE_OBSTACK code.
43223         Reported by Jim Meyering.
43224
43225 2009-06-18  Eric Blake  <ebb9@byu.net>
43226
43227         hash: make rotation more obvious
43228         * modules/hash (Depends-on): Add bitrotate and stdint.
43229         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43230         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43231         (SIZE_MAX): Rely on headers for definition.
43232         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43233         (raw_hasher): Use rotr_sz.
43234         Suggested by Jim Meyering.
43235
43236         hash: fix memory leak in last patch
43237         * lib/hash.c (hash_rehash): Avoid memory leak.
43238
43239         hash: avoid no-op rehashing
43240         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43241
43242         hash: provide default callback functions
43243         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43244         (hash_initialize): Use them as defaults.
43245         * tests/test-hash.c (main): Test this.
43246
43247         hash: minor optimization
43248         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43249         when possible.
43250         (hash_initialize): Document this promise.
43251         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43252         * tests/test-hash.c (hash_compare_strings): Test this.
43253
43254 2009-06-18  Bruno Haible  <bruno@clisp.org>
43255
43256         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43257         going to be replaced anyway.
43258
43259 2009-06-18  Bruno Haible  <bruno@clisp.org>
43260
43261         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43262         in one place.
43263         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43264         be replaced anyway.
43265
43266 2009-06-18  Eric Blake  <ebb9@byu.net>
43267
43268         hash: check for resize before insertion
43269         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43270         threshold before insertion, so that a pathological hash_rehash
43271         that fills every bucket can still trigger another rehash.
43272
43273 2009-06-18  Jim Meyering  <meyering@redhat.com>
43274
43275         hash-tests: add a loop around the small tests
43276         * tests/test-hash.c (main): Repeat small tests with selected
43277         small initial table sizes.
43278
43279 2009-06-17  Eric Blake  <ebb9@byu.net>
43280
43281         hash: minor cleanups
43282         * lib/hash.h (hash_entry): Make opaque, by moving...
43283         * lib/hash.c (hash_entry): ...here.
43284         (hash_insert): Clarify restrictions on what can be inserted.
43285         (hash_get_next): Clarify when it is safe to remove an element
43286         during traversal.
43287         (check_tuning): Skip verification when tuning is known safe.
43288         (hash_initialize): Clarify restrictions on tuning.
43289
43290 2009-06-17  Jim Meyering  <jim@meyering.net>
43291         and Eric Blake  <ebb9@byu.net>
43292
43293         hash-tests: new module
43294         * modules/hash-tests: New file.
43295         * tests/test-hash.c: New file.
43296
43297 2009-06-17  Eric Blake  <ebb9@byu.net>
43298
43299         strstr-simple: document new module
43300         * MODULES.html.sh: Document new module.
43301
43302         strstr, strcasestr: replace on platforms with broken memchr
43303         * modules/strstr: Split into...
43304         * modules/strstr-simple: ...new module that does not care about
43305         performance, but does care about glibc bug.
43306         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43307         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43308         if platform memchr is broken, per Debian bug 521737.
43309         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43310         memchr.
43311         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43312         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43313         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43314         * modules/mountlist (Depends-on): Add strstr-simple.
43315         * modules/gen-uni-tables (Depends-on): Likewise.
43316         * modules/argz (Depends-on): Add strstr.
43317
43318 2009-06-17  Bruno Haible  <bruno@clisp.org>
43319
43320         * modules/posix_spawn-internal (Depends-on): Add errno.
43321
43322 2009-06-17  Bruno Haible  <bruno@clisp.org>
43323
43324         Define missing ESTALE on Interix 3.5.
43325         * lib/errno.in.h (ESTALE): Assign a value if missing.
43326         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
43327         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
43328         missing.
43329         * doc/posix-headers/errno.texi: Mention the Interix bug.
43330         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
43331
43332 2009-06-15  Eric Blake  <ebb9@byu.net>
43333
43334         memchr, memchr2: add valgrind exception
43335         * lib/memchr.valgrind: New file.
43336         * lib/memchr2.valgrind: New file.
43337         * modules/memchr (Files): Distribute valgrind file.
43338         * modules/memchr2 (Files): Likewise.
43339
43340         docs: memchr is no longer obsolete
43341         * MODULES.html.sh: Move memchr from obsolete to string.h section.
43342         * lib/string.in.h (memchr): Simplify logic.
43343
43344 2009-06-14  Jim Meyering  <meyering@redhat.com>
43345
43346         link-follow: fix the "checking..." message to not mention trailing slash
43347         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
43348         never considered trailing slashes.
43349
43350 2009-06-14  Bruno Haible  <bruno@clisp.org>
43351
43352         * m4/memchr.m4: Mention also the bug on IA-64.
43353         * doc/posix-functions/memchr.texi: Likewise.
43354
43355 2009-06-12  Eric Blake  <ebb9@byu.net>
43356
43357         memchr: detect broken x86_64 and alpha implementations
43358         * modules/memchr-tests (Depends-on): Move mmap detection...
43359         * modules/memchr (Depends-on): ...here.
43360         (configure.ac): Set indicator.
43361         * lib/string.in.h (memchr): Declare replacement.
43362         * modules/string (Makefile.am): Trigger replacement.
43363         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43364         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43365         bugs.
43366         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43367         * modules/getpagesize (License): Relax license.
43368
43369 2009-06-11  Bruno Haible  <bruno@clisp.org>
43370
43371         * lib/idpriv.h: Add more references.
43372
43373 2009-06-08  Bruno Haible  <bruno@clisp.org>
43374
43375         Tests for module 'idpriv-droptemp'.
43376         * modules/idpriv-droptemp-tests: New file.
43377         * tests/test-idpriv-droptemp.sh: New file.
43378         * tests/test-idpriv-droptemp.su.sh: New file.
43379         * tests/test-idpriv-droptemp.c: New file.
43380
43381         New module 'idpriv-droptemp'.
43382         * lib/idpriv-droptemp.c: New file.
43383         * modules/idpriv-droptemp: New file.
43384
43385 2009-06-08  Bruno Haible  <bruno@clisp.org>
43386
43387         Tests for module 'idpriv-drop'.
43388         * modules/idpriv-drop-tests: New file.
43389         * tests/test-idpriv-drop.sh: New file.
43390         * tests/test-idpriv-drop.su.sh: New file.
43391         * tests/test-idpriv-drop.c: New file.
43392
43393         New module 'idpriv-drop'.
43394         * lib/idpriv.h: New file.
43395         * lib-idpriv-drop.c: New file.
43396         * m4/idpriv.m4: New file.
43397         * modules/idpriv-drop: New file.
43398
43399 2009-06-08  Bruno Haible  <bruno@clisp.org>
43400
43401         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
43402         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43403         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43404         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43405         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43406         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43407         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43408
43409 2009-06-08  Eric Blake  <ebb9@byu.net>
43410
43411         test-strstr: use memory fence, when possible
43412         * tests/test-strstr.c (main): Use memory fence, in order to be
43413         more likely to trigger Debian bug 521737.
43414         * modules/strstr-tests (Files): Pull in additional files.
43415
43416         memchr: no longer obsolete, for wider field testing
43417         * modules/memchr (Status, Notice): Delete, this module is no
43418         longer obsolete.
43419         * modules/vasnprintf (Depends-on): Add memchr.
43420
43421 2009-06-07  Jim Meyering  <meyering@redhat.com>
43422
43423         hash: declare some functions with the warn_unused_result attribute
43424         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
43425
43426 2009-06-07  Bruno Haible  <bruno@clisp.org>
43427
43428         * tests/test-alignof.c: Don't test int64_t if it does not exist.
43429         Reported by Eric Blake.
43430
43431 2009-06-06  Eric Blake  <ebb9@byu.net>
43432
43433         test-alignof: fix typo with long double
43434         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
43435         compiler error.
43436
43437 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
43438
43439         Escape non-texinfo { and }s.
43440         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
43441         markup error.
43442
43443 2009-06-04  Jim Meyering  <meyering@redhat.com>
43444
43445         gitlog-to-changelog: don't infloop on an empty commit log
43446         * build-aux/gitlog-to-changelog: Warn about an empty log message.
43447         Reported by Boris Petersen <transacid@centerim.org>.
43448
43449 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
43450
43451         version-etc: extend for packagers
43452         Add three new configure options, intended for packagers:
43453           --with-packager="packager name"
43454           --with-packager-version="packager-specific version"
43455           --with-packager-bug-reports="packager bug reporting"
43456         An example with coreutils:
43457           $ ./configure \
43458             --with-packager=Gentoo \
43459             --with-packager-bug-report=http://bugs.gentoo.org/ \
43460             --with-packager-version="patchset 1.6"
43461           $ ./src/ls --version | head -n2
43462           ls (GNU coreutils) 7.1-dirty
43463           Packaged by Gentoo (patchset 1.6)
43464         Note that the bug reporting info via --help doesn't show up because
43465         coreutils uses its own custom emit_bug_reporting_address() implementation
43466         in src/system.h.  If it didn't, it'd look like:
43467           $ ./src/ls --help | tail -n4
43468           Report bugs to <bug-coreutils@gnu.org>.
43469           Report Gentoo bugs to <http://bugs.gentoo.org/>.
43470           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
43471           General help using GNU software: <http://www.gnu.org/gethelp/>.
43472         * lib/version-etc.c: Print new information, if provided.
43473         * m4/version-etc.m4: New file.
43474         * modules/version-etc (Files): Add m4/version-etc.m4.
43475         (configure.ac): Add gl_VERSION_ETC.
43476
43477 2009-05-31  Bruno Haible  <bruno@clisp.org>
43478
43479         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
43480         and 'int64_t'.
43481         * modules/alignof-tests (Dependencies): Add stdint.
43482         Reported by Eric Blake.
43483
43484 2009-05-31  Bruno Haible  <bruno@clisp.org>
43485
43486         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
43487         restriction due to compiler bugs.
43488         Reported by Eric Blake.
43489
43490 2009-05-31  Simon Josefsson  <simon@josefsson.org>
43491             Bruno Haible  <bruno@clisp.org>
43492
43493         Fix test-alignof failure.
43494         * lib/alignof.h (alignof_slot): New macro.
43495         (alignof_type): New macro, with the same semantics as the previous
43496         'alignof'.
43497         (alignof): Alias to alignof_slot.
43498         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
43499         check that the results are usable as constant expressions.
43500
43501 2009-05-31  Bruno Haible  <bruno@clisp.org>
43502
43503         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
43504         * tests/test-memchr.c (main): Check that memchr does not read past the
43505         first occurrence of the byte.
43506         * tests/test-strstr.c (main): Update comment.
43507         Suggested by Eric Blake.
43508
43509 2009-05-30  Bruno Haible  <bruno@clisp.org>
43510
43511         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43512         detail how to use dumpbin.
43513         Reported by David Byron <dbyron@dbyron.com>.
43514
43515 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43516
43517         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43518
43519 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43520
43521         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43522
43523 2009-05-28  Bruno Haible  <bruno@clisp.org>
43524
43525         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43526         build-aux/ files.
43527
43528 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43529
43530         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43531
43532 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43533
43534         * gnulib-tool (sed_transform_main_lib_file)
43535         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43536         regexps.
43537
43538 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43539
43540         * tests/test-strstr.c: Add another self-test.
43541         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43542         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43543
43544 2009-05-23  Bruno Haible  <bruno@clisp.org>
43545
43546         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43547         change.
43548
43549 2009-05-21  Bruno Haible  <bruno@clisp.org>
43550
43551         Simplify use of mode_t varargs.
43552         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43553         uses 'mode_t' or 'int'.
43554         * lib/openat.c (openat): Likewise.
43555         * lib/open-safer.c (open_safer): Likewise.
43556         * m4/mode_t.m4: New file.
43557         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43558         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43559         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43560         * modules/open (Files): Add m4/mode_t.m4.
43561         * modules/openat (Files): Likewise.
43562         * modules/fcntl-safer (Files): Likewise.
43563         Suggested by Eric Blake.
43564
43565 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43566
43567         * doc/glibc-functions/fallocate.texi: New file.
43568         * doc/gnulib.texi: Include it.
43569
43570 2009-05-21  Eric Blake  <ebb9@byu.net>
43571             Bruno Haible  <bruno@clisp.org>
43572
43573         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43574         invocations.
43575         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43576
43577 2009-05-21  Eric Blake  <ebb9@byu.net>
43578             Bruno Haible  <bruno@clisp.org>
43579
43580         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43581         include_next. Fix of 2008-11-20 commit.
43582         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43583         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43584         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43585         NEXT_MATH_H.
43586         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43587         instead of NEXT_MATH_H.
43588
43589 2009-05-21  Bruno Haible  <bruno@clisp.org>
43590
43591         Avoid redefinition warnings for SIZE_MAX.
43592         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43593         Reported by Simon Josefsson.
43594
43595 2009-05-21  Bruno Haible  <bruno@clisp.org>
43596
43597         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43598         AC_CACHE_VAL.
43599
43600 2009-05-20  Bruno Haible  <bruno@clisp.org>
43601
43602         Make zeroptr.h work on mingw.
43603         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43604         mprotect.
43605         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43606         * modules/memchr2-tests (configure.ac): Likewise.
43607         * modules/memcmp-tests (configure.ac): Likewise.
43608         * modules/memmem-tests (configure.ac): Likewise.
43609         * modules/memrchr-tests (configure.ac): Likewise.
43610         Reported by Simon Josefsson.
43611
43612 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43613
43614         * tests/test-glob.c: Include string.h for strcmp prototype.
43615
43616 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43617
43618         * modules/getdelim (Depends-on): Add explicit stdint, although it
43619         was implicitly already pulled in via realloc-posix.
43620         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43621
43622 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43623
43624         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43625         G. Christensen" <tgc@jupiterrise.com>.
43626         * m4/sys_socket_h.m4: Check for sa_family_t.
43627         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43628         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43629         * tests/test-sys_socket.c: Check that sa_family_t works.
43630
43631 2009-05-18  Eric Blake  <ebb9@byu.net>
43632
43633         maint.mk: allow gnulib_dir in VPATH build
43634         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43635
43636 2009-05-15  Jim Meyering  <meyering@redhat.com>
43637
43638         maint.mk: Give gnulib_dir a default definition.
43639         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43640         Thus, most packages no longer need to specify this variable in cfg.mk
43641
43642 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43643
43644         rename.m4: fix typos that would make non-mingw cross-configure fail
43645         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43646
43647 2009-05-13  Eric Blake  <ebb9@byu.net>
43648
43649         mmap-anon: avoid out-of-order autoconf expansion
43650         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43651         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43652         * modules/memchr-tests (Depends-on): Add extensions.
43653         * modules/memchr2-tests (Depends-on): Add extensions.
43654         * modules/memcmp-tests (Depends-on): Add extensions.
43655         * modules/memmem-tests (Depends-on): Add extensions.
43656         * modules/memrchr-tests (Depends-on): Add extensions.
43657
43658 2009-05-13  Bruno Haible  <bruno@clisp.org>
43659
43660         Make some tests ISO C 99 compliant.
43661         * tests/zerosize-ptr.h: New file.
43662         * tests/test-memchr.c: Include zerosize-ptr.h.
43663         (main): Use a zero-size object pointer instead of NULL.
43664         * tests/test-memchr2.c: Include zerosize-ptr.h.
43665         (main): Use a zero-size object pointer instead of NULL.
43666         * tests/test-memcmp.c: Include zerosize-ptr.h.
43667         (main): Use a zero-size object pointer instead of NULL.
43668         * tests/test-memmem.c: Include zerosize-ptr.h.
43669         (main): Use a zero-size object pointer instead of NULL.
43670         * tests/test-memrchr.c: Include zerosize-ptr.h.
43671         (main): Use a zero-size object pointer instead of NULL.
43672         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
43673         m4/mmap-anon.m4.
43674         (Depends-on): Add getpagesize.
43675         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43676         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
43677         m4/mmap-anon.m4.
43678         (Depends-on): Add getpagesize.
43679         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43680         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
43681         m4/mmap-anon.m4.
43682         (Depends-on): Add getpagesize.
43683         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43684         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
43685         m4/mmap-anon.m4.
43686         (Depends-on): Add getpagesize.
43687         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43688         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
43689         m4/mmap-anon.m4.
43690         (Depends-on): Add getpagesize.
43691         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43692
43693 2009-05-12  Bruno Haible  <bruno@clisp.org>
43694
43695         Tests for module 'alignof'.
43696         * modules/alignof-tests: New file.
43697         * tests/test-alignof.c: New file.
43698
43699 2009-05-12  Bruno Haible  <bruno@clisp.org>
43700
43701         Fix alignof macro.
43702         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
43703         vendor compilers that are always correct.
43704
43705 2009-05-12  Bruno Haible  <bruno@clisp.org>
43706
43707         Make the MAP_ANONYMOUS detection work on HP-UX 11.
43708         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
43709         not whether its fully works.
43710
43711 2009-05-12  Bruno Haible  <bruno@clisp.org>
43712
43713         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
43714
43715 2009-05-12  Jim Meyering  <meyering@redhat.com>
43716
43717         * top/maint.mk: Adjust backslash alignment.
43718
43719 2009-05-11  Simon Josefsson  <simon@josefsson.org>
43720
43721         * top/maint.mk: Make $(srcdir)/build-aux configurable.
43722
43723 2009-05-11  Eric Blake  <ebb9@byu.net>
43724
43725         argp: avoid undefined behavior
43726         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
43727         macros.
43728
43729 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43730
43731         * tests/test-vc-list-files-git.sh: Do git config of user.email and
43732         user.name to prevent git commit from complaining.
43733
43734 2009-05-10  Bruno Haible  <bruno@clisp.org>
43735
43736         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
43737         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
43738         it rewrites every file name only once.
43739         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
43740
43741 2009-05-08  Bruno Haible  <bruno@clisp.org>
43742
43743         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
43744         instead of 'max'.
43745
43746 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43747
43748         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
43749         sockaddr_storage test.
43750
43751 2009-05-07  Simon Josefsson  <simon@josefsson.org>
43752
43753         * modules/sys_socket (Makefile.am): Substitute
43754         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
43755         * m4/sys_socket_h.m4: Check for sockaddr_storage.
43756         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
43757         * tests/test-sys_socket.c: Check sockaddr_storage.
43758
43759 2009-05-08  Bruno Haible  <bruno@clisp.org>
43760
43761         New module 'alignof'.
43762         * lib/alignof.h: New file.
43763         * modules/alignof: New file.
43764
43765 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43766             Bruno Haible  <bruno@clisp.org>
43767
43768         Fix test-file-has-acl on FreeBSD.
43769         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
43770         mask is implicitly added.
43771         * tests/test-file-has-acl.c: Include <signal.h>.
43772         (main): Terminate the test after 5 seconds.
43773         * modules/acl-tests (configure.ac): Check for alarm function.
43774
43775 2009-05-04  Bruno Haible  <bruno@clisp.org>
43776
43777         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
43778         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
43779         * modules/errno (configure.ac): Drop AC_REQUIRE.
43780         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
43781         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
43782
43783 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43784
43785         * modules/glob-tests: New module.
43786         * tests/test-glob.c: Add.
43787
43788 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43789
43790         * modules/fnmatch-tests: New module.
43791         * tests/test-fnmatch.c: Add.
43792
43793 2009-05-04  Eric Blake  <ebb9@byu.net>
43794
43795         maint: make the new no-submodule-changes rule VPATH-safe
43796         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
43797
43798 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43799             Bruno Haible  <bruno@clisp.org>
43800
43801         acl: Fix infinite loop on FreeBSD.
43802         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
43803         of return value from acl_get_entry.
43804         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
43805         Likewise.
43806
43807 2009-05-03  Bruno Haible  <bruno@clisp.org>
43808
43809         * lib/acl-internal.h (acl_entries): Clarify return value.
43810         * lib/acl_entries.c (acl_entries): Likewise.
43811
43812 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43813
43814         Bug fix in acl module.
43815         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
43816
43817 2009-05-03  Bruno Haible  <bruno@clisp.org>
43818
43819         Create gperf-generated file in the source dir, not in the build dir.
43820         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
43821         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
43822         * modules/unicase/locale-language (unicase/locale-languages.h):
43823         Likewise.
43824         * modules/unicase/special-casing (unicase/special-casing-table.h):
43825         Likewise.
43826         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
43827         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
43828         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
43829         Reported by Ralf Wildenhues.
43830
43831 2009-05-03  Bruno Haible  <bruno@clisp.org>
43832
43833         * modules/fnmatch (Description, configure.ac): Taken from
43834         fnmatch-posix.
43835         * modules/fnmatch-posix: Turn into a symbolic reference to the
43836         'fnmatch' module, and deprecate.
43837         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
43838
43839 2009-05-03  Bruno Haible  <bruno@clisp.org>
43840
43841         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
43842         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
43843         Reported by Ralf Wildenhues.
43844
43845 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43846
43847         * m4/fnmatch.m4: Fix fnmatch re-define.
43848
43849 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43850
43851         priv-set: new module and tests; adapt write-any-file
43852         * lib/priv-set.c: New file.
43853         * lib/priv-set.h: New file.
43854         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
43855         * lib/write-any-file.c: Simplify by using priv-set module.
43856         * m4/priv-set.m4: New file.
43857         * modules/priv-set: New file.
43858         * modules/unlinkdir: Add dependency on priv-set module.
43859         * modules/write-any-file: Likewise.
43860
43861         Tests for module 'priv-set'.
43862         * modules/priv-set-tests: New file.
43863         * tests/test-priv-set.c: New file.
43864
43865 2009-05-03  Jim Meyering  <meyering@redhat.com>
43866             Bruno Haible  <bruno@clisp.org>
43867
43868         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
43869         use the converted UTF-8 variant of the name instead.
43870
43871 2009-05-03  Jim Meyering  <meyering@redhat.com>
43872
43873         tests: tighten some getdate tests
43874         * tests/test-getdate.c (main): Tighten tests: require equality,
43875         not just greater than.  Set TZ envvar to UTC0.
43876
43877 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
43878
43879         getdate: correctly interpret "next monday" when run on a Monday
43880         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
43881         that e.g., "next tues" (when run on a tuesday) results in a date
43882         that is one week in the future, and not today's date.
43883         I.e., add a week when the wday is the same as the current one.
43884         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
43885         and earlier by Martin Bernreuther and Jan Minář.
43886         * tests/test-getdate.c (main): Check that "next DAY" is always in
43887         the future and that "last DAY" is always in the past.
43888
43889 2009-05-02  Jim Meyering  <meyering@redhat.com>
43890
43891         build: ensure that a release build fails when a submodule is unclean
43892         * top/maint.mk (no-submodule-changes): New rule.
43893         (alpha beta major): Depend on it.
43894
43895 2009-05-02  Bruno Haible  <bruno@clisp.org>
43896
43897         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
43898         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
43899         shell variable gl_fnmatch_required to detect which variant is
43900         requested.
43901         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
43902         gl_FUNC_FNMATCH_POSIX.
43903         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
43904         exclude fnmatch-posix.
43905
43906 2009-05-02  Bruno Haible  <bruno@clisp.org>
43907
43908         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
43909         * modules/mbsrtowcs (License): Change to LGPLv2+.
43910         * modules/strnlen1 (License): Likewise.
43911         Reported by Simon Josefsson.
43912
43913 2009-05-02  Bruno Haible  <bruno@clisp.org>
43914
43915         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
43916         "cross".
43917         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
43918         gnulib-tool was called with option --source-base=lib.
43919
43920 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43921
43922         Use automake *-local hooks without commands, for extensibility.
43923         * modules/localcharset (Makefile.am): Rename install-exec-local
43924         rule to install-exec-localcharset, and make it a prerequisite of
43925         install-exec-local.  Likewise, rename the uninstall-local rule to
43926         uninstall-localcharset, and make it a prerequisite of the former.
43927
43928 2009-05-01  Bruno Haible  <bruno@clisp.org>
43929
43930         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
43931         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43932         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
43933         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
43934         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
43935         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43936         m4/locale-zh.m4, m4/codeset.m4.
43937
43938         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43939         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
43940         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43941         m4/locale-zh.m4.
43942
43943         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
43944         REPLACE_WCRTOMB if mbstate_t must be replaced.
43945         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
43946         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
43947
43948 2009-05-01  Bruno Haible  <bruno@clisp.org>
43949
43950         Avoid compiler warnings when redefining macros defined by <libintl.h>.
43951         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
43952         dngettext, dcngettext, textdomain, bindtextdomain,
43953         bind_textdomain_codeset): Undefine before redefining.
43954
43955 2009-04-30  Bruno Haible  <bruno@clisp.org>
43956
43957         Fix bug introduced on 2009-04-25.
43958         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
43959         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
43960         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
43961         is defined.
43962         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
43963         is defined.
43964         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
43965         is defined.
43966         Reported by Elbert_Pol <elbert.pol@gmail.com>.
43967
43968 2009-04-28  Bruno Haible  <bruno@clisp.org>
43969
43970         Comment tweaks.
43971         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
43972         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
43973         * lib/unicase.h (u*_casexfrm): Likewise.
43974         Reported by Paolo Bonzini.
43975
43976 2009-04-28  Bruno Haible  <bruno@clisp.org>
43977
43978         Fix a compilation error.
43979         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
43980         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43981         Reported by Jim Meyering.
43982
43983 2009-04-27  Bruno Haible  <bruno@clisp.org>
43984
43985         New module 'libunistring'.
43986         * modules/libunistring: New file.
43987         * m4/libunistring.m4: New file.
43988         * MODULES.html.sh (Unicode string functions): Add it.
43989
43990 2009-04-27  Eric Blake  <ebb9@byu.net>
43991
43992         maint.mk: allow package-specific header to provide <config.h>
43993         * top/maint.mk (sc_require_config_h): New variable.
43994         (sc_require_config_h, sc_require_config_h_first): Use it.
43995
43996 2009-04-27  Simon Josefsson  <simon@josefsson.org>
43997
43998         * top/maint.mk (sc_avoid_if_before_free): Except
43999         useless-if-before-free script.
44000
44001 2009-04-27  Eric Blake  <ebb9@byu.net>
44002
44003         maintainer-makefile: depend on all required helper scripts
44004         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44005         useless-if-before-free.
44006         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44007         version, rather than assuming gnulib checkout is available.
44008         Reported by Simen Josefsson.
44009
44010 2009-04-26  Bruno Haible  <bruno@clisp.org>
44011
44012         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44013         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44014         "../" or "..".
44015
44016 2009-04-26  Bruno Haible  <bruno@clisp.org>
44017
44018         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44019         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44020         AC_LIB_HAVE_LINKFLAGS.
44021
44022 2009-04-26  Bruno Haible  <bruno@clisp.org>
44023
44024         Simplify calling convention of u*_conv_from_encoding.
44025         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44026         u32_conv_from_encoding): Expect a resultbuf argument and return the
44027         result directly as a pointer.
44028         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44029         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44030         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44031         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44032         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44033         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44034         Update.
44035         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44036         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44037         * lib/vasnprintf.c (VASNPRINTF): Update.
44038         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44039         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44040         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44041         * NEWS: Mention the change.
44042
44043 2009-04-26  Bruno Haible  <bruno@clisp.org>
44044
44045         Simplify calling convention of u*_conv_to_encoding.
44046         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44047         u32_conv_to_encoding): Expect a resultbuf argument and return the
44048         result directly as a pointer.
44049         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44050         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44051         freeing scaled_offsets if mem_iconveha failed.
44052         * lib/unicase/u-casexfrm.h (FUNC): Update.
44053         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44054         * lib/vasnprintf.c (VASNPRINTF): Update.
44055         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44056         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44057         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44058         * NEWS: Mention the change.
44059
44060 2009-04-26  Bruno Haible  <bruno@clisp.org>
44061
44062         Avoid test failures on AIX and OSF/1.
44063         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44064         malloc(0).
44065         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44066         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44067         Likewise.
44068         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44069         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44070         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44071         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44072         * doc/posix-functions/malloc.texi: Document the portability problem
44073         related to malloc(0).
44074
44075 2009-04-26  Bruno Haible  <bruno@clisp.org>
44076
44077         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44078         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44079         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44080
44081 2009-04-25  Bruno Haible  <bruno@clisp.org>
44082
44083         Avoid link error when creating a namespace clean library.
44084         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44085         as macro with arguments if already defined as an alias.
44086         * lib/signbitf.c (gl_signbitf): Don't undefine.
44087         * lib/signbitd.c (gl_signbitd): Don't undefine.
44088         * lib/signbitl.c (gl_signbitl): Don't undefine.
44089
44090 2009-04-25  Jim Meyering  <meyering@redhat.com>
44091
44092         vc-list-files: fix another quoting bug
44093         * build-aux/vc-list-files: Avoid sed backslash expansion
44094         of pathological directory names.
44095
44096 2009-04-25  Eric Blake  <ebb9@byu.net>
44097
44098         vc-list-files: fix shell quoting error
44099         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44100         timestamp.
44101
44102 2009-04-25  Jim Meyering  <meyering@redhat.com>
44103
44104         vc-list-files: restore lost functionality with subdir argument
44105         * build-aux/vc-list-files: When given a non-"." sub-directory
44106         argument, substitute the $dir/ prefix back onto each resulting name.
44107         Otherwise, coreutils' root_tests check would fail.
44108
44109 2009-04-24  Eric Blake  <ebb9@byu.net>
44110
44111         vc-list-files: ignore git symlinks
44112         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44113         than ls-files, to ignore git symlinks.
44114
44115         maint.mk: import improvements from m4
44116         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44117         (move_if_change): Delete unused macro.
44118         (news-date-check, vc-diff-check): Support VPATH builds.
44119         (announcement): Likewise.  Split --bootstrap-tools list...
44120         (boostrap-tools): ...into separate list, which can be overridden
44121         in cfg.mk.
44122         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44123         requiring dependency on useless-if-before-free module.
44124         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44125         Support VPATH builds.
44126
44127 2009-04-24  Jim Meyering  <meyering@redhat.com>
44128
44129         maint.mk: remove coreutils-specific rules and variables
44130         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44131         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44132         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44133
44134         maint.mk: remove obsolete rule
44135         * top/maint.mk (rel-check): Remove rule.
44136         (WGET, WGETFLAGS): Remove now-unused variables.
44137
44138 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44139
44140         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44141         consistency.
44142
44143         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44144         '$(PATH_SEPARATOR)' instead of ':'.
44145
44146 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44147
44148         * lib/getopt1.c (main): Use 'const' for static array.
44149
44150 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44151
44152         * top/maint.mk: Sync with coreutils.
44153         * NEWS: Explain incompatibilities.
44154
44155 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44156             Bruno Haible  <bruno@clisp.org>
44157
44158         Fix cross-compilation results.
44159         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44160         statement, as third argument of AC_TRY_RUN.
44161         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44162         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44163         Likewise.
44164         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44165         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44166         Likewise.
44167         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44168         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44169         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44170
44171 2009-04-20  Bruno Haible  <bruno@clisp.org>
44172
44173         Avoid test failure on mingw.
44174         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44175
44176 2009-04-20  Bruno Haible  <bruno@clisp.org>
44177
44178         Avoid compilation error on mingw.
44179         * modules/localename-tests (Depends-on): Add locale.
44180
44181 2009-04-19  Bruno Haible  <bruno@clisp.org>
44182
44183         Support for building a shared library on Windows platforms.
44184         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44185         (main): Test the presence of UNINORM_NFC here.
44186         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44187         (main): Test the presence of UNINORM_NFD here.
44188         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44189         (main): Test the presence of UNINORM_NFKC here.
44190         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44191         (main): Test the presence of UNINORM_NFKD here.
44192
44193 2009-04-19  Bruno Haible  <bruno@clisp.org>
44194
44195         Avoid a compiler warning.
44196         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44197         Change type of variable 'sequence'.
44198
44199 2009-04-19  Bruno Haible  <bruno@clisp.org>
44200
44201         * modules/configmake (Makefile.am): When the contents of configmake.h
44202         does not change, arrange to preserve its modification time.
44203
44204 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44205
44206         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44207         gettext domain.
44208
44209 2009-04-16  Jim Meyering  <meyering@redhat.com>
44210
44211         useless-if-before-free: improve conversion code
44212         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44213         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44214
44215 2009-04-14  Bruno Haible  <bruno@clisp.org>
44216
44217         * modules/fcntl (Depends-on): Add extensions.
44218         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44219
44220 2009-04-12  Ben Pfaff  <blp@gnu.org>
44221
44222         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44223         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44224
44225 2009-03-20  Ben Pfaff  <blp@gnu.org>
44226
44227         Make rename replace existing destinations on Windows.
44228         * m4/rename.m4: Add test for Mingw.
44229         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44230         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44231         * doc/posix-functions/rename.texi: Document.
44232
44233 2009-04-10  Bruno Haible  <bruno@clisp.org>
44234
44235         New include file "iconveh.h".
44236         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44237         * lib/striconveh.h: Include it.
44238         (enum iconv_ilseq_handler): Remove definition.
44239         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44240         striconveh.h.
44241         * lib/striconveha.c: Include striconveh.h.
44242         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44243         * modules/striconveh (Files): Add lib/iconveh.h.
44244         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44245         lib/striconveh.h.
44246
44247 2009-04-10  Bruno Haible  <bruno@clisp.org>
44248
44249         * lib/uniconv.h: Update comment.
44250
44251 2009-04-10  Bruno Haible  <bruno@clisp.org>
44252
44253         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44254         always.
44255         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44256         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44257         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44258         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44259         "unistring-notinline.h", so that the function gets defined always.
44260         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44261         * lib/unistr/u8-uctomb.c: Likewise.
44262         * lib/unistr/u16-mbtouc.c: Likewise.
44263         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44264         * lib/unistr/u16-uctomb.c: Likewise.
44265         * lib/unistr/u32-mbtouc.c: Likewise.
44266         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44267         * lib/unistr/u32-uctomb.c: Likewise.
44268
44269 2009-04-10  Bruno Haible  <bruno@clisp.org>
44270
44271         Mark 'utime' obsolete.
44272         * modules/utime (Status, Notice): New sections.
44273         Suggested by Jim Meyering.
44274
44275         Fix cross-compile guess for utime test.
44276         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44277         autoconf.
44278         * doc/posix-functions/utime.texi: Give more precisions.
44279         Reported by Jan <ipif@ymail.com>.
44280
44281 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44282
44283         filevercmp: correct today's change
44284         * lib/filevercmp.c: Also handle coreutils' test inputs.
44285         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44286
44287         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44288         for reporting it.
44289         * lib/filevercmp.c: Special handle for "", "." and "..".
44290         * tests/test-filevercmp.c: Enlarge the set suite.
44291
44292 2009-04-07  Jim Meyering  <meyering@redhat.com>
44293
44294         useless-if-before-free: show how to remove braced useless free, too
44295         * build-aux/useless-if-before-free: still only in a comment, though.
44296
44297 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44298
44299         maint.mk: import changes to syntax-check macros from coreutils
44300         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44301         Use them in the relevant macros.
44302
44303 2009-04-06  Bruno Haible  <bruno@clisp.org>
44304
44305         Fix unportable use of bit-fields.
44306         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44307         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44308         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44309
44310 2009-04-06  Bruno Haible  <bruno@clisp.org>
44311
44312         Avoid test failures on AIX and OSF/1.
44313         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44314         that malloc(0) = NULL.
44315         * tests/unicase/test-u8-tolower.c (check): Likewise.
44316         * tests/unicase/test-u8-totitle.c (check): Likewise.
44317         * tests/unicase/test-u8-toupper.c (check): Likewise.
44318         * tests/unicase/test-u16-casefold.c (check): Likewise.
44319         * tests/unicase/test-u16-tolower.c (check): Likewise.
44320         * tests/unicase/test-u16-totitle.c (check): Likewise.
44321         * tests/unicase/test-u16-toupper.c (check): Likewise.
44322         * tests/unicase/test-u32-casefold.c (check): Likewise.
44323         * tests/unicase/test-u32-tolower.c (check): Likewise.
44324         * tests/unicase/test-u32-totitle.c (check): Likewise.
44325         * tests/unicase/test-u32-toupper.c (check): Likewise.
44326         * tests/uninorm/test-u8-nfc.c (check): Likewise.
44327         * tests/uninorm/test-u8-nfd.c (check): Likewise.
44328         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
44329         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
44330         * tests/uninorm/test-u16-nfc.c (check): Likewise.
44331         * tests/uninorm/test-u16-nfd.c (check): Likewise.
44332         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
44333         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
44334         * tests/uninorm/test-u32-nfc.c (check): Likewise.
44335         * tests/uninorm/test-u32-nfd.c (check): Likewise.
44336         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
44337         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
44338
44339 2009-04-05  Bruno Haible  <bruno@clisp.org>
44340
44341         Work around an autoconf limitation.
44342         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
44343         comment line if it would be longer than 3 KB.
44344
44345 2009-04-05  Bruno Haible  <bruno@clisp.org>
44346
44347         Avoid test failure with libiconv-1.13.
44348         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
44349         of the expected test results.
44350
44351 2009-04-05  Bruno Haible  <bruno@clisp.org>
44352
44353         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
44354         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
44355         that it should be installed.
44356
44357 2009-04-05  Bruno Haible  <bruno@clisp.org>
44358
44359         * gnulib-tool: New option --copy-file.
44360         (func_usage): Document it.
44361         (func_dest_tmpfilename): Moved out of func_import.
44362         (func_add_file, func_update_file): New functions, extracted from
44363         func_import.
44364         (func_import): Update.
44365
44366 2009-04-05  Karl Berry  <karl@gnu.org>
44367
44368         * README: prominently mention gnulib-tool.
44369         Rearrange sections so getting the code is near the top.
44370
44371 2009-04-05  Bruno Haible  <bruno@clisp.org>
44372
44373         * lib/unicase.h: Mention u*_cmp2.
44374         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44375         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44376         * lib/unicase/ulc-casecmp.c: Likewise.
44377         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44378         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44379         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44380         unistr/u8-cmp.
44381         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44382         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44383         unistr/u16-cmp.
44384         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44385         unistr/u32-cmp.
44386
44387         * lib/uninorm.h: Mention u*_cmp2.
44388         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44389         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44390         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44391         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44392         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44393         unistr/u8-cmp.
44394         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
44395         unistr/u16-cmp.
44396         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
44397         unistr/u32-cmp.
44398
44399         New module 'unistr/u32-cmp2'.
44400         * lib/unistr/u32-cmp2.c: New file.
44401         * modules/unistr/u32-cmp2: New file.
44402
44403         New module 'unistr/u16-cmp2'.
44404         * lib/unistr/u16-cmp2.c: New file.
44405         * modules/unistr/u16-cmp2: New file.
44406
44407         New module 'unistr/u8-cmp2'.
44408         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
44409         * lib/unistr/u8-cmp2.c: New file.
44410         * lib/unistr/u-cmp2.h: New file.
44411         * modules/unistr/u8-cmp2: New file.
44412
44413 2009-04-05  Bruno Haible  <bruno@clisp.org>
44414
44415         * lib/unictype.h (uc_property_is_valid): New macro.
44416         * tests/unictype/test-pr_byname.c (main): Use it.
44417
44418         * lib/unistr.h: Doc fixes.
44419         * lib/uniconv.h: Doc fixes.
44420         * lib/unictype.h: Doc fixes.
44421
44422 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
44423
44424         Port coreutils 7.2 to Solaris 8.
44425
44426         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
44427         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
44428         for Solaris 8.  This is a bit of a hack, as it means it's the
44429         caller's responsibility to add -lnsl if needed, but most likely it
44430         won't be needed since only getaddrinfo uses this and getaddrinfo
44431         isn't needed on Solaris 8.
44432
44433         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
44434         problem to Solaris 8 encountered with coreutils 7.2, which
44435         resulted in a message "fnmatch.c:292: warning: passing argument 4
44436         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
44437         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
44438
44439 2009-04-03  Simon Josefsson  <simon@josefsson.org>
44440
44441         * m4/ld-version-script.m4: Add FIXME comment.
44442
44443 2009-04-02  Simon Josefsson  <simon@josefsson.org>
44444
44445         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
44446         SOVERSION variable.
44447
44448 2009-04-02  Bruno Haible  <bruno@clisp.org>
44449
44450         * Makefile (info, html, dvi, pdf): Combine the rules.
44451         Suggested by Jim Meyering.
44452
44453 2009-04-01  Bruno Haible  <bruno@clisp.org>
44454
44455         * Makefile (info, html, dvi, pdf): New targets.
44456         Reported by Reuben Thomas <rrt@sc3d.org>.
44457
44458 2009-04-01  Bruno Haible  <bruno@clisp.org>
44459
44460         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
44461         can be put into PATH.
44462         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
44463
44464 2009-04-01  Bruno Haible  <bruno@clisp.org>
44465
44466         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
44467
44468 2009-04-01  Bruno Haible  <bruno@clisp.org>
44469
44470         Rename module 'visibility'.
44471         * modules/lib-symbol-visibility: Renamed from modules/visibility.
44472         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
44473         * doc/gnulib.texi: Update.
44474         * MODULES.html.sh (Misc): Update.
44475         * NEWS: Mention the change.
44476
44477 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44478
44479         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
44480         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
44481         Eric Blake <ebb9@byu.net> for review.
44482         * MODULES.html.sh: Add lib-msvc-compat.
44483         * doc/gnulib.texi: Link to new section.
44484         * m4/ld-output-def.m4: New file.
44485         * doc/ld-output-def.texi: New file.
44486
44487 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44488
44489         Rename ld-version-script to lib-symbol-versions.  Suggested by
44490         Bruno Haible <bruno@clisp.org>.
44491         * modules/ld-version-script: Renamed to lib-symbol-versions.
44492         * doc/ld-version-script.texi: Fix module name.
44493         * MODULES.html.sh: Add lib-symbol-versions.
44494
44495 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44496
44497         * modules/u64-tests: New file.
44498         * tests/test-u64.c: New file.
44499
44500 2009-03-04  Simon Josefsson  <simon@josefsson.org>
44501
44502         * MODULES.html.sh: Mention u64.
44503         * modules/u64: New module.
44504         * modules/crypto/sha512: Depend on u64 module instead of providing
44505         u64.h.
44506
44507 2009-03-27  Eric Blake  <ebb9@byu.net>
44508
44509         test-strerror: make debugging EAI_SYSTEM easier
44510         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44511         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44512         failure was EAI_SYSTEM.
44513
44514 2009-03-25  Bruno Haible  <bruno@clisp.org>
44515
44516         Fix a problem with --enable-relocatable on Solaris 7.
44517         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44518         since 2008-02-24.
44519
44520 2009-03-25  Eric Blake  <ebb9@byu.net>
44521
44522         test-sockets: avoid gcc warning
44523         * tests/test-sockets.c (main): Silence compiler warning.
44524
44525 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44526
44527         New modules nproc, pthread, contributed by Glen Lenker.
44528
44529         * MODULES.html.sh: Add pthread, nproc.
44530         * lib/nproc.c: New file.
44531         * lib/nproc.h: New file.
44532         * lib/pthread.in.h: New file.
44533         * m4/pthread.m4: New file.
44534         * modules/nproc: New file.
44535         * modules/pthread: New file.
44536
44537 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44538
44539         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44540         New variable.
44541
44542 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44543
44544         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44545         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44546         * tests/test-filevercmp.c: Add tests for backup suffixes.
44547
44548 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44549
44550         * modules/stdlib (Depends-on): Add stdint, needed when defining
44551         struct random_data on, for example, HP-UX 10.20.  Reported by
44552         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44553
44554 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44555
44556         * lib/readline.c (readline): Call fflush on stdout after printing
44557         prompt.
44558
44559 2009-03-20  Bruno Haible  <bruno@clisp.org>
44560
44561         Remove dependency from 'close' module to -lws2_32 on native Windows.
44562         * lib/close-hook.h: New file.
44563         * lib/close-hook.c: New file.
44564         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44565         w32sock.h.
44566         (_gl_close_fd_maybe_socket): Remove function.
44567         (rpl_close): Invoke execute_all_close_hooks instead of
44568         _gl_close_fd_maybe_socket.
44569         * lib/sockets.c: Include close-hook.h, w32sock.h.
44570         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44571         (close_sockets_hook): New variable.
44572         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44573         (gl_sockets_cleanup): Unregister it.
44574         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44575         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44576         * modules/close-hook: New file.
44577         * modules/close (Files): Remove lib/w32sock.h.
44578         (Depends-on): Add close-hook.
44579         (Link): Remove section.
44580         * modules/sockets (Files): Add lib/w32sock.h.
44581         (Depends-on): Add close-hook.
44582         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44583         invocation.
44584         * NEWS: Mention that LIB_CLOSE is gone.
44585
44586 2009-03-23  Eric Blake  <ebb9@byu.net>
44587
44588         signal-tests: test previous patch
44589         * tests/test-signal.c: New file.
44590         * modules/signal-tests: Likewise.
44591
44592         signal.h: always support 'volatile sig_atomic_t'
44593         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44594         (gl_SIGNAL_H_DEFAULTS): Add a default.
44595         * modules/signal (Makefile.am): Substitute if needed.
44596         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44597         users can blindly add volatile.
44598         * doc/posix-headers/signal.texi (signal.h): Document it.
44599         Reported by Matthew Woehlke.
44600
44601 2009-03-23  Jim Meyering  <meyering@redhat.com>
44602
44603         pathmax: PATH_MAX: use pathconf only when available
44604         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44605         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44606         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44607         This avoids a link failure in a PSP cross-compilation environment
44608         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44609
44610         * lib/vasnprintf.c (divide): Fix typo in comment.
44611
44612 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44613
44614         * gnulib-tool (func_filter_filelist): Fix comment.
44615
44616 2009-03-20  Bruno Haible  <bruno@clisp.org>
44617
44618         Make sockets.h self-contained.
44619         * lib/sockets.c: Include sockets.h first.
44620         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44621
44622 2009-03-19  Eric Blake  <ebb9@byu.net>
44623
44624         doc: mention more functions added in cygwin 1.7.0
44625         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44626         addition.
44627         * doc/posix-functions/log2f.texi: Likewise.
44628
44629 2009-03-19  Jim Meyering  <meyering@redhat.com>
44630
44631         fsusage: avoid syntax error due to statement-before-declaration
44632         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44633         after all declarations.  Reported by Matthew Woehlke in
44634         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44635
44636 2009-03-18  Eric Blake  <ebb9@byu.net>
44637
44638         build-aux/compile: sync from automake
44639         * build-aux/compile: New file, from automake.
44640         * config/srclist.txt: Mention build-aux/compile.
44641
44642 2009-03-17  Bruno Haible  <bruno@clisp.org>
44643
44644         * lib/git-merge-changelog.c: Fix typo in comment.
44645         Reported by Reuben Thomas <rrt@sc3d.org>.
44646
44647 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44648
44649         * m4/regex.m4: update and improve help for
44650         --without-included-regex.
44651
44652 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44653
44654         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44655         failure on missing include files.
44656
44657 2009-03-17  Eric Blake  <ebb9@byu.net>
44658
44659         doc: mention more functions added in cygwin 1.7.0
44660         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
44661         addition.
44662         * doc/posix-functions/fwscanf.texi: Likewise.
44663         * doc/posix-functions/swprintf.texi: Likewise.
44664         * doc/posix-functions/swscanf.texi: Likewise.
44665         * doc/posix-functions/vfwprintf.texi: Likewise.
44666         * doc/posix-functions/vfwscanf.texi: Likewise.
44667         * doc/posix-functions/vswprintf.texi: Likewise.
44668         * doc/posix-functions/vswscanf.texi: Likewise.
44669         * doc/posix-functions/vwprintf.texi: Likewise.
44670         * doc/posix-functions/vwscanf.texi: Likewise.
44671         * doc/posix-functions/wcscasecmp.texi: Likewise.
44672         * doc/posix-functions/wcsdup.texi: Likewise.
44673         * doc/posix-functions/wcsftime.texi: Likewise.
44674         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44675         * doc/posix-functions/wprintf.texi: Likewise.
44676         * doc/posix-functions/wscanf.texi: Likewise.
44677         * doc/glibc-functions/gethostbyname2.texi: Likewise.
44678
44679 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44680
44681         maint.mk: really add $(AM_MAKEFLAGS)
44682         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
44683         was inadvertently omitted in the last commit.
44684         Spotted by Bruno Haible.
44685
44686         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
44687         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
44688         $(AM_MAKEFLAGS)' rather than plain `make'.
44689
44690         gnulib-tool: execute $MAKE not make
44691         * gnulib-tool: Default $MAKE to 'make'.
44692         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
44693         than make.  Initialize $MAKE in the do-autobuild script.
44694
44695         gnulib-tool: use $MAKE not make in generated files
44696         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
44697         make, in generated files.  Initialize $MAKE in the do-autobuild
44698         script.
44699
44700         * top/GNUmakefile (_have-git-version-gen): Fix typo.
44701
44702         GNUmakefile: disable parallelism only for multiple, recursive targets
44703         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
44704         additions in the Makefile.
44705         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
44706         by Automake.
44707         (.NOTPARALLEL): Only disable parallel builds if multiple targets
44708         are listed on the command line and at least one of them is
44709         listed in $(ALL_RECURSIVE_TARGETS).
44710
44711 2009-03-14  Bruno Haible  <bruno@clisp.org>
44712
44713         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
44714         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
44715         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
44716         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
44717         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
44718         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
44719         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
44720         unistr/u8-uctomb.
44721         * modules/unistr/u8-strchr (Depends-on): Likewise.
44722         * modules/unistr/u8-strrchr (Depends-on): Likewise.
44723         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
44724         unistr/u16-uctomb.
44725         * modules/unistr/u16-strchr (Depends-on): Likewise.
44726         * modules/unistr/u16-strrchr (Depends-on): Likewise.
44727
44728 2009-03-12  Bruno Haible  <bruno@clisp.org>
44729
44730         Work around select() bug on Interix 3.5.
44731         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
44732         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
44733         * m4/select.m4: New file.
44734         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
44735         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
44736         * modules/select (Files): Add m4/select.m4.
44737         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
44738         * modules/nanosleep (Depends-on): Add select.
44739         * modules/poll (Depends-on): Likewise.
44740         * doc/posix-functions/select.texi: Mention the Interix bug.
44741         Reported by Markus Duft <mduft@gentoo.org>.
44742
44743         * lib/select.c: Renamed from lib/winsock-select.c.
44744         * modules/select (Files): Add lib/select.c, remove
44745         lib/winsock-select.c.
44746         (configure.ac): Update.
44747
44748 2009-03-12  Jim Meyering  <meyering@redhat.com>
44749
44750         avoid gcc warnings about unused macro definitions
44751         * lib/readtokens.c (STREQ): Remove unused definition.
44752         * lib/xmalloc.c (SIZE_MAX): Likewise.
44753         * lib/openat-die.c (N_): Likewise.
44754         * lib/mountlist.c (SIZE_MAX): Remove definition.
44755         Instead, include <stdint.h>.
44756         * lib/readutmp.c: Likewise.
44757         * modules/readutmp (Depends-on): Add stdint.
44758         * modules/mountlist (Depends-on): Add stdint.
44759         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
44760
44761 2009-03-10  Bruno Haible  <bruno@clisp.org>
44762
44763         Tests for module 'mbmemcasecoll'.
44764         * modules/mbmemcasecoll-tests: New file.
44765         * tests/test-mbmemcasecoll1.sh: New file.
44766         * tests/test-mbmemcasecoll2.sh: New file.
44767         * tests/test-mbmemcasecoll3.sh: New file.
44768         * tests/test-mbmemcasecoll.c: New file.
44769
44770         New module 'mbmemcasecoll'.
44771         * lib/mbmemcasecoll.h: New file.
44772         * lib/mbmemcasecoll.c: New file.
44773         * modules/mbmemcasecoll: New file.
44774
44775         * tests/test-mbmemcasecmp.h: New file, extracted from
44776         tests/test-mbmemcasecmp.c.
44777         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
44778         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
44779         (main): Update.
44780         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
44781
44782 2009-03-09  Bruno Haible  <bruno@clisp.org>
44783
44784         Tests for module 'mbmemcasecmp'.
44785         * modules/mbmemcasecmp-tests: New file.
44786         * tests/test-mbmemcasecmp1.sh: New file.
44787         * tests/test-mbmemcasecmp2.sh: New file.
44788         * tests/test-mbmemcasecmp3.sh: New file.
44789         * tests/test-mbmemcasecmp.c: New file.
44790
44791         New module 'mbmemcasecmp'.
44792         * lib/mbmemcasecmp.h: New file.
44793         * lib/mbmemcasecmp.c: New file.
44794         * modules/mbmemcasecmp: New file.
44795
44796 2009-03-09  Bruno Haible  <bruno@clisp.org>
44797
44798         Tests for module 'unicase/ulc-casecoll'.
44799         * modules/unicase/ulc-casecoll-tests: New file.
44800         * tests/unicase/test-ulc-casecoll1.sh: New file.
44801         * tests/unicase/test-ulc-casecoll2.sh: New file.
44802         * tests/unicase/test-ulc-casecoll.c: New file.
44803
44804         New module 'unicase/ulc-casecoll'.
44805         * lib/unicase.h (ulc_casecoll): New declaration.
44806         * lib/unicase/ulc-casecoll.c: New file.
44807         * modules/unicase/ulc-casecoll: New file.
44808
44809         New module 'unicase/ulc-casexfrm'.
44810         * lib/unicase.h (ulc_casexfrm): New declaration.
44811         * lib/unicase/ulc-casexfrm.c: New file.
44812         * modules/unicase/ulc-casexfrm: New file.
44813
44814 2009-03-09  Bruno Haible  <bruno@clisp.org>
44815
44816         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
44817         invocations.
44818
44819         * m4/mbscasecmp.m4: Remove file.
44820         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
44821         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
44822
44823         * m4/mbscasestr.m4: Remove file.
44824         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
44825         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
44826
44827         * m4/mbschr.m4: Remove file.
44828         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
44829         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
44830
44831         * m4/mbscspn.m4: Remove file.
44832         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
44833         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
44834
44835         * m4/mbslen.m4: Remove file.
44836         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
44837         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
44838
44839         * m4/mbsncasecmp.m4: Remove file.
44840         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
44841         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
44842
44843         * m4/mbsnlen.m4: Remove file.
44844         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
44845         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
44846
44847         * m4/mbspbrk.m4: Remove file.
44848         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
44849         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
44850
44851         * m4/mbspcasecmp.m4: Remove file.
44852         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
44853         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
44854
44855         * m4/mbsrchr.m4: Remove file.
44856         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
44857         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
44858
44859         * m4/mbssep.m4: Remove file.
44860         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
44861         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
44862
44863         * m4/mbsspn.m4: Remove file.
44864         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
44865         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
44866
44867         * m4/mbsstr.m4: Remove file.
44868         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
44869         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
44870
44871         * m4/mbstok_r.m4: Remove file.
44872         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
44873         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
44874
44875         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
44876
44877         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
44878         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
44879
44880         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
44881
44882 2009-03-08  Bruno Haible  <bruno@clisp.org>
44883
44884         Tests for module 'unicase/ulc-casecmp'.
44885         * modules/unicase/ulc-casecmp-tests: New file.
44886         * tests/unicase/test-ulc-casecmp1.sh: New file.
44887         * tests/unicase/test-ulc-casecmp2.sh: New file.
44888         * tests/unicase/test-ulc-casecmp.c: New file.
44889
44890         New module 'unicase/ulc-casecmp'.
44891         * lib/unicase.h (ulc_casecmp): New declaration.
44892         * lib/unicase/ulc-casecmp.c: New file.
44893         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
44894         'const SRC_UNIT *'.
44895         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
44896         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
44897         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
44898         * modules/unicase/ulc-casecmp: New file.
44899
44900         Tests for module 'unicase/u32-is-cased'.
44901         * modules/unicase/u32-is-cased-tests: New file.
44902         * tests/unicase/test-u32-is-cased.c: New file.
44903
44904         Tests for module 'unicase/u16-is-cased'.
44905         * modules/unicase/u16-is-cased-tests: New file.
44906         * tests/unicase/test-u16-is-cased.c: New file.
44907
44908         Tests for module 'unicase/u8-is-cased'.
44909         * modules/unicase/u8-is-cased-tests: New file.
44910         * tests/unicase/test-u8-is-cased.c: New file.
44911         * tests/unicase/test-is-cased.h: New file.
44912
44913         New module 'unicase/u32-is-cased'.
44914         * lib/unicase/u32-is-cased.c: New file.
44915         * modules/unicase/u32-is-cased: New file.
44916
44917         New module 'unicase/u16-is-cased'.
44918         * lib/unicase/u16-is-cased.c: New file.
44919         * modules/unicase/u16-is-cased: New file.
44920
44921         New module 'unicase/u8-is-cased'.
44922         * lib/unicase/u8-is-cased.c: New file.
44923         * lib/unicase/u-is-cased.h: New file.
44924         * modules/unicase/u8-is-cased: New file.
44925
44926         Tests for module 'unicase/u32-is-casefolded'.
44927         * modules/unicase/u32-is-casefolded-tests: New file.
44928         * tests/unicase/test-u32-is-casefolded.c: New file.
44929
44930         Tests for module 'unicase/u16-is-casefolded'.
44931         * modules/unicase/u16-is-casefolded-tests: New file.
44932         * tests/unicase/test-u16-is-casefolded.c: New file.
44933
44934         Tests for module 'unicase/u8-is-casefolded'.
44935         * modules/unicase/u8-is-casefolded-tests: New file.
44936         * tests/unicase/test-u8-is-casefolded.c: New file.
44937         * tests/unicase/test-is-casefolded.h: New file.
44938
44939         New module 'unicase/u32-is-casefolded'.
44940         * lib/unicase/u32-is-casefolded.c: New file.
44941         * modules/unicase/u32-is-casefolded: New file.
44942
44943         New module 'unicase/u16-is-casefolded'.
44944         * lib/unicase/u16-is-casefolded.c: New file.
44945         * modules/unicase/u16-is-casefolded: New file.
44946
44947         New module 'unicase/u8-is-casefolded'.
44948         * lib/unicase/u8-is-casefolded.c: New file.
44949         * modules/unicase/u8-is-casefolded: New file.
44950
44951         Tests for module 'unicase/u32-is-titlecase'.
44952         * modules/unicase/u32-is-titlecase-tests: New file.
44953         * tests/unicase/test-u32-is-titlecase.c: New file.
44954
44955         Tests for module 'unicase/u16-is-titlecase'.
44956         * modules/unicase/u16-is-titlecase-tests: New file.
44957         * tests/unicase/test-u16-is-titlecase.c: New file.
44958
44959         Tests for module 'unicase/u8-is-titlecase'.
44960         * modules/unicase/u8-is-titlecase-tests: New file.
44961         * tests/unicase/test-u8-is-titlecase.c: New file.
44962         * tests/unicase/test-is-titlecase.h: New file.
44963
44964         New module 'unicase/u32-is-titlecase'.
44965         * lib/unicase/u32-is-titlecase.c: New file.
44966         * modules/unicase/u32-is-titlecase: New file.
44967
44968         New module 'unicase/u16-is-titlecase'.
44969         * lib/unicase/u16-is-titlecase.c: New file.
44970         * modules/unicase/u16-is-titlecase: New file.
44971
44972         New module 'unicase/u8-is-titlecase'.
44973         * lib/unicase/u8-is-titlecase.c: New file.
44974         * modules/unicase/u8-is-titlecase: New file.
44975
44976         Tests for module 'unicase/u32-is-lowercase'.
44977         * modules/unicase/u32-is-lowercase-tests: New file.
44978         * tests/unicase/test-u32-is-lowercase.c: New file.
44979
44980         Tests for module 'unicase/u16-is-lowercase'.
44981         * modules/unicase/u16-is-lowercase-tests: New file.
44982         * tests/unicase/test-u16-is-lowercase.c: New file.
44983
44984         Tests for module 'unicase/u8-is-lowercase'.
44985         * modules/unicase/u8-is-lowercase-tests: New file.
44986         * tests/unicase/test-u8-is-lowercase.c: New file.
44987         * tests/unicase/test-is-lowercase.h: New file.
44988
44989         New module 'unicase/u32-is-lowercase'.
44990         * lib/unicase/u32-is-lowercase.c: New file.
44991         * modules/unicase/u32-is-lowercase: New file.
44992
44993         New module 'unicase/u16-is-lowercase'.
44994         * lib/unicase/u16-is-lowercase.c: New file.
44995         * modules/unicase/u16-is-lowercase: New file.
44996
44997         New module 'unicase/u8-is-lowercase'.
44998         * lib/unicase/u8-is-lowercase.c: New file.
44999         * modules/unicase/u8-is-lowercase: New file.
45000
45001         Tests for module 'unicase/u32-is-uppercase'.
45002         * modules/unicase/u32-is-uppercase-tests: New file.
45003         * tests/unicase/test-u32-is-uppercase.c: New file.
45004
45005         Tests for module 'unicase/u16-is-uppercase'.
45006         * modules/unicase/u16-is-uppercase-tests: New file.
45007         * tests/unicase/test-u16-is-uppercase.c: New file.
45008
45009         Tests for module 'unicase/u8-is-uppercase'.
45010         * modules/unicase/u8-is-uppercase-tests: New file.
45011         * tests/unicase/test-u8-is-uppercase.c: New file.
45012         * tests/unicase/test-is-uppercase.h: New file.
45013
45014         New module 'unicase/u32-is-uppercase'.
45015         * lib/unicase/u32-is-uppercase.c: New file.
45016         * modules/unicase/u32-is-uppercase: New file.
45017
45018         New module 'unicase/u16-is-uppercase'.
45019         * lib/unicase/u16-is-uppercase.c: New file.
45020         * modules/unicase/u16-is-uppercase: New file.
45021
45022         New module 'unicase/u8-is-uppercase'.
45023         * lib/unicase/u8-is-uppercase.c: New file.
45024         * modules/unicase/u8-is-uppercase: New file.
45025
45026         New module 'unicase/u32-is-invariant'.
45027         * lib/unicase/u32-is-invariant.c: New file.
45028         * modules/unicase/u32-is-invariant: New file.
45029
45030         New module 'unicase/u16-is-invariant'.
45031         * lib/unicase/u16-is-invariant.c: New file.
45032         * modules/unicase/u16-is-invariant: New file.
45033
45034         New module 'unicase/u8-is-invariant'.
45035         * lib/unicase/u8-is-invariant.c: New file.
45036         * lib/unicase/invariant.h: New file.
45037         * lib/unicase/u-is-invariant.h: New file.
45038         * modules/unicase/u8-is-invariant: New file.
45039
45040         Tests for module 'unicase/u32-casecoll'.
45041         * modules/unicase/u32-casecoll-tests: New file.
45042         * tests/unicase/test-u32-casecoll.c: New file.
45043
45044         Tests for module 'unicase/u16-casecoll'.
45045         * modules/unicase/u16-casecoll-tests: New file.
45046         * tests/unicase/test-u16-casecoll.c: New file.
45047
45048         Tests for module 'unicase/u8-casecoll'.
45049         * modules/unicase/u8-casecoll-tests: New file.
45050         * tests/unicase/test-u8-casecoll.c: New file.
45051
45052         New module 'unicase/u32-casecoll'.
45053         * lib/unicase/u32-casecoll.c: New file.
45054         * modules/unicase/u32-casecoll: New file.
45055
45056         New module 'unicase/u16-casecoll'.
45057         * lib/unicase/u16-casecoll.c: New file.
45058         * modules/unicase/u16-casecoll: New file.
45059
45060         New module 'unicase/u8-casecoll'.
45061         * lib/unicase/u8-casecoll.c: New file.
45062         * lib/unicase/u-casecoll.h: New file.
45063         * modules/unicase/u8-casecoll: New file.
45064
45065         New module 'unicase/u32-casexfrm'.
45066         * lib/unicase/u32-casexfrm.c: New file.
45067         * modules/unicase/u32-casexfrm: New file.
45068
45069         New module 'unicase/u16-casexfrm'.
45070         * lib/unicase/u16-casexfrm.c: New file.
45071         * modules/unicase/u16-casexfrm: New file.
45072
45073         New module 'unicase/u8-casexfrm'.
45074         * lib/unicase/u8-casexfrm.c: New file.
45075         * lib/unicase/u-casexfrm.h: New file.
45076         * modules/unicase/u8-casexfrm: New file.
45077
45078         Tests for module 'unicase/u32-casecmp'.
45079         * modules/unicase/u32-casecmp-tests: New file.
45080         * tests/unicase/test-u32-casecmp.c: New file.
45081
45082         Tests for module 'unicase/u16-casecmp'.
45083         * modules/unicase/u16-casecmp-tests: New file.
45084         * tests/unicase/test-u16-casecmp.c: New file.
45085
45086         Tests for module 'unicase/u8-casecmp'.
45087         * modules/unicase/u8-casecmp-tests: New file.
45088         * tests/unicase/test-u8-casecmp.c: New file.
45089         * tests/unicase/test-casecmp.h: New file.
45090
45091         New module 'unicase/u32-casecmp'.
45092         * lib/unicase/u32-casecmp.c: New file.
45093         * modules/unicase/u32-casecmp: New file.
45094
45095         New module 'unicase/u16-casecmp'.
45096         * lib/unicase/u16-casecmp.c: New file.
45097         * modules/unicase/u16-casecmp: New file.
45098
45099         New module 'unicase/u8-casecmp'.
45100         * lib/unicase/u8-casecmp.c: New file.
45101         * lib/unicase/u-casecmp.h: New file.
45102         * modules/unicase/u8-casecmp: New file.
45103
45104         Tests for module 'unicase/u32-casefold'.
45105         * modules/unicase/u32-casefold-tests: New file.
45106         * tests/unicase/test-u32-casefold.c: New file.
45107
45108         Tests for module 'unicase/u16-casefold'.
45109         * modules/unicase/u16-casefold-tests: New file.
45110         * tests/unicase/test-u16-casefold.c: New file.
45111
45112         Tests for module 'unicase/u8-casefold'.
45113         * modules/unicase/u8-casefold-tests: New file.
45114         * tests/unicase/test-u8-casefold.c: New file.
45115
45116         New module 'unicase/u32-casefold'.
45117         * lib/unicase/u32-casefold.c: New file.
45118         * modules/unicase/u32-casefold: New file.
45119
45120         New module 'unicase/u16-casefold'.
45121         * lib/unicase/u16-casefold.c: New file.
45122         * modules/unicase/u16-casefold: New file.
45123
45124         New module 'unicase/u8-casefold'.
45125         * lib/unicase/u8-casefold.c: New file.
45126         * lib/unicase/u-casefold.h: New file.
45127         * modules/unicase/u8-casefold: New file.
45128
45129         New module 'unicase/tocasefold'.
45130         * lib/unicase/casefold.h: New file.
45131         * lib/unicase/tocasefold.c: New file.
45132         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45133         * modules/unicase/tocasefold: New file.
45134
45135         Tests for module 'unicase/u32-totitle'.
45136         * modules/unicase/u32-totitle-tests: New file.
45137         * tests/unicase/test-u32-totitle.c: New file.
45138
45139         Tests for module 'unicase/u16-totitle'.
45140         * modules/unicase/u16-totitle-tests: New file.
45141         * tests/unicase/test-u16-totitle.c: New file.
45142
45143         Tests for module 'unicase/u8-totitle'.
45144         * modules/unicase/u8-totitle-tests: New file.
45145         * tests/unicase/test-u8-totitle.c: New file.
45146
45147         New module 'unicase/u32-totitle'.
45148         * lib/unicase/u32-totitle.c: New file.
45149         * modules/unicase/u32-totitle: New file.
45150
45151         New module 'unicase/u16-totitle'.
45152         * lib/unicase/u16-totitle.c: New file.
45153         * modules/unicase/u16-totitle: New file.
45154
45155         New module 'unicase/u8-totitle'.
45156         * lib/unicase/u8-totitle.c: New file.
45157         * lib/unicase/u-totitle.h: New file.
45158         * modules/unicase/u8-totitle: New file.
45159
45160         Tests for module 'unicase/u32-tolower'.
45161         * modules/unicase/u32-tolower-tests: New file.
45162         * tests/unicase/test-u32-tolower.c: New file.
45163
45164         Tests for module 'unicase/u16-tolower'.
45165         * modules/unicase/u16-tolower-tests: New file.
45166         * tests/unicase/test-u16-tolower.c: New file.
45167
45168         Tests for module 'unicase/u8-tolower'.
45169         * modules/unicase/u8-tolower-tests: New file.
45170         * tests/unicase/test-u8-tolower.c: New file.
45171
45172         New module 'unicase/u32-tolower'.
45173         * lib/unicase/u32-tolower.c: New file.
45174         * modules/unicase/u32-tolower: New file.
45175
45176         New module 'unicase/u16-tolower'.
45177         * lib/unicase/u16-tolower.c: New file.
45178         * modules/unicase/u16-tolower: New file.
45179
45180         New module 'unicase/u8-tolower'.
45181         * lib/unicase/u8-tolower.c: New file.
45182         * modules/unicase/u8-tolower: New file.
45183
45184         Tests for module 'unicase/u32-toupper'.
45185         * modules/unicase/u32-toupper-tests: New file.
45186         * tests/unicase/test-u32-toupper.c: New file.
45187
45188         Tests for module 'unicase/u16-toupper'.
45189         * modules/unicase/u16-toupper-tests: New file.
45190         * tests/unicase/test-u16-toupper.c: New file.
45191
45192         Tests for module 'unicase/u8-toupper'.
45193         * modules/unicase/u8-toupper-tests: New file.
45194         * tests/unicase/test-u8-toupper.c: New file.
45195
45196         New module 'unicase/u32-toupper'.
45197         * lib/unicase/u32-toupper.c: New file.
45198         * modules/unicase/u32-toupper: New file.
45199
45200         New module 'unicase/u16-toupper'.
45201         * lib/unicase/u16-toupper.c: New file.
45202         * modules/unicase/u16-toupper: New file.
45203
45204         New module 'unicase/u8-toupper'.
45205         * lib/unicase/u8-toupper.c: New file.
45206         * modules/unicase/u8-toupper: New file.
45207
45208         New module 'unicase/u32-casemap'.
45209         * lib/unicase/u32-casemap.c: New file.
45210         * modules/unicase/u32-casemap: New file.
45211
45212         New module 'unicase/u16-casemap'.
45213         * lib/unicase/u16-casemap.c: New file.
45214         * modules/unicase/u16-casemap: New file.
45215
45216         New module 'unicase/u8-casemap'.
45217         * lib/unicase/unicasemap.h: New file.
45218         * lib/unicase/u8-casemap.c: New file.
45219         * lib/unicase/u-casemap.h: New file.
45220         * modules/unicase/u8-casemap: New file.
45221
45222         New module 'unicase/special-casing'.
45223         * lib/unicase/special-casing.h: New file.
45224         * lib/unicase/special-casing.c: New file.
45225         * lib/unicase/special-casing-table.gperf: New file, generated by
45226         gen-uni-tables.c.
45227         * modules/unicase/special-casing: New file.
45228
45229         Tests for module 'unicase/locale-language'.
45230         * modules/unicase/locale-language-tests: New file.
45231         * tests/unicase/test-locale-language.sh: New file.
45232         * tests/unicase/test-locale-language.c: New file.
45233
45234         New module 'unicase/locale-language'.
45235         * lib/unicase/locale-language.c: New file.
45236         * lib/unicase/locale-languages.gperf: New file.
45237         * modules/unicase/locale-language: New file.
45238
45239         Generate more tables for case conversion and case folding.
45240         * lib/gen-uni-tables.c (SCC_*): New enum items.
45241         (struct special_casing_rule): New type.
45242         (casing_rules, num_casing_rules, allocated_casing_rules): New
45243         variables.
45244         (add_casing_rule, fill_casing_rules): New functions.
45245         (struct casefold_rule): New type.
45246         (casefolding_rules, num_casefolding_rules,
45247         allocated_casefolding_rules): New variables.
45248         (fill_casefolding_rules): New function.
45249         (unicode_casefold): New variable.
45250         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45251         sort_casing_rules, output_casing_rules): New functions.
45252         (main): Accept to more arguments: SpecialCasing.txt and
45253         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45254         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45255         Output mapping for casefolding.
45256
45257         * lib/unicase.h: Include stdbool.h, uninorm.h.
45258         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45259         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45260         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45261         arguments.
45262         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45263         resultp arguments.
45264         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45265         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45266         resultp arguments.
45267         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45268         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45269         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45270         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45271         declarations.
45272         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45273
45274 2009-03-08  Bruno Haible  <bruno@clisp.org>
45275
45276         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45277         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45278         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45279         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45280
45281 2009-03-07  Bruno Haible  <bruno@clisp.org>
45282
45283         Adjust u*_normcmp, u*_normcoll API.
45284         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45285         u16_normcoll, u32_normcoll): Change failure conventions.
45286         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45287         errno and return -1.
45288         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45289
45290 2009-03-07  Bruno Haible  <bruno@clisp.org>
45291
45292         Tests for module 'uninorm/u32-normcoll'.
45293         * modules/uninorm/u32-normcoll-tests: New file.
45294         * tests/uninorm/test-u32-normcoll.c: New file.
45295
45296         Tests for module 'uninorm/u16-normcoll'.
45297         * modules/uninorm/u16-normcoll-tests: New file.
45298         * tests/uninorm/test-u16-normcoll.c: New file.
45299
45300         Tests for module 'uninorm/u8-normcoll'.
45301         * modules/uninorm/u8-normcoll-tests: New file.
45302         * tests/uninorm/test-u8-normcoll.c: New file.
45303
45304 2009-03-07  Bruno Haible  <bruno@clisp.org>
45305
45306         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45307         tests/uninorm/test-u32-normcmp.c.
45308         * tests/uninorm/test-u32-normcmp.c: Include it.
45309         (test_nonascii): New function, extracted from main. Add some more
45310         tests.
45311         (main): Invoke test_ascii and test_nonascii.
45312         * modules/uninorm/u32-normcmp-tests (Files): Add
45313         tests/uninorm/test-u32-normcmp.h.
45314         (Depends-on): Remove uninorm/u32-normcmp.
45315
45316         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45317         tests/uninorm/test-u16-normcmp.c.
45318         * tests/uninorm/test-u16-normcmp.c: Include it.
45319         (test_nonascii): New function, extracted from main. Add some more
45320         tests.
45321         (main): Invoke test_ascii and test_nonascii.
45322         * modules/uninorm/u16-normcmp-tests (Files): Add
45323         tests/uninorm/test-u16-normcmp.h.
45324         (Depends-on): Remove uninorm/u16-normcmp.
45325
45326         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
45327         tests/uninorm/test-u8-normcmp.c.
45328         * tests/uninorm/test-u8-normcmp.c: Include it.
45329         (test_nonascii): New function, extracted from main. Add some more
45330         tests.
45331         (main): Invoke test_ascii and test_nonascii.
45332         * modules/uninorm/u8-normcmp-tests (Files): Add
45333         tests/uninorm/test-u8-normcmp.h.
45334         (Depends-on): Remove uninorm/u8-normcmp.
45335
45336 2009-03-07  Bruno Haible  <bruno@clisp.org>
45337
45338         New module 'uninorm/u32-normcoll'.
45339         * lib/uninorm/u32-normcoll.c: New file.
45340         * modules/uninorm/u32-normcoll: New file.
45341
45342         New module 'uninorm/u16-normcoll'.
45343         * lib/uninorm/u16-normcoll.c: New file.
45344         * modules/uninorm/u16-normcoll: New file.
45345
45346         New module 'uninorm/u8-normcoll'.
45347         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
45348         declarations.
45349         * lib/uninorm/u8-normcoll.c: New file.
45350         * lib/uninorm/u-normcoll.h: New file.
45351         * modules/uninorm/u8-normcoll: New file.
45352
45353         New module 'uninorm/u32-normxfrm'.
45354         * lib/uninorm/u32-normxfrm.c: New file.
45355         * modules/uninorm/u32-normxfrm: New file.
45356
45357         New module 'uninorm/u16-normxfrm'.
45358         * lib/uninorm/u16-normxfrm.c: New file.
45359         * modules/uninorm/u16-normxfrm: New file.
45360
45361         New module 'uninorm/u8-normxfrm'.
45362         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45363         declarations.
45364         * lib/uninorm/u8-normxfrm.c: New file.
45365         * lib/uninorm/u-normxfrm.h: New file.
45366         * modules/uninorm/u8-normxfrm: New file.
45367
45368 2009-03-07  Bruno Haible  <bruno@clisp.org>
45369
45370         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45371         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45372         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45373
45374 2009-03-07  Bruno Haible  <bruno@clisp.org>
45375
45376         New module 'memxfrm'.
45377         * lib/memxfrm.h: New file.
45378         * lib/memxfrm.c: New file.
45379         * modules/memxfrm: New file.
45380
45381 2009-03-07  Bruno Haible  <bruno@clisp.org>
45382
45383         New module 'memcmp2'.
45384         * lib/memcmp2.h: New file.
45385         * lib/memcmp2.c: New file.
45386         * modules/memcmp2: New file.
45387
45388 2009-03-07  Bruno Haible  <bruno@clisp.org>
45389
45390         Tests for module 'uninorm/decomposing-form'.
45391         * modules/uninorm/decomposing-form-tests: New file.
45392         * tests/uninorm/test-decomposing-form.c: New file.
45393
45394         New module 'uninorm/decomposing-form'.
45395         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
45396         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
45397         Add 'decomposing_variant' field.
45398         * lib/uninorm/decomposing-form.c: New file.
45399         * lib/uninorm/nfc.c (uninorm_nfc): Update.
45400         * lib/uninorm/nfd.c (uninorm_nfd): Update.
45401         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
45402         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
45403         * modules/uninorm/decomposing-form: New file.
45404         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
45405         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
45406
45407 2009-03-07  Bruno Haible  <bruno@clisp.org>
45408
45409         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
45410         strings.
45411
45412 2009-03-06  Bruno Haible  <bruno@clisp.org>
45413
45414         Tests for module 'uninorm/u32-normcmp'.
45415         * tests/uninorm/test-u32-normcmp.c: New file.
45416         * modules/uninorm/u32-normcmp-tests: New file.
45417
45418         Tests for module 'uninorm/u16-normcmp'.
45419         * tests/uninorm/test-u16-normcmp.c: New file.
45420         * modules/uninorm/u16-normcmp-tests: New file.
45421
45422         Tests for module 'uninorm/u8-normcmp'.
45423         * tests/uninorm/test-u8-normcmp.c: New file.
45424         * modules/uninorm/u8-normcmp-tests: New file.
45425
45426         New module 'uninorm/u32-normcmp'.
45427         * lib/uninorm/u32-normcmp.c: New file.
45428         * modules/uninorm/u32-normcmp: New file.
45429
45430         New module 'uninorm/u16-normcmp'.
45431         * lib/uninorm/u16-normcmp.c: New file.
45432         * modules/uninorm/u16-normcmp: New file.
45433
45434         New module 'uninorm/u8-normcmp'.
45435         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
45436         declarations.
45437         * lib/uninorm/u8-normcmp.c: New file.
45438         * lib/uninorm/u-normcmp.h: New file.
45439         * modules/uninorm/u8-normcmp: New file.
45440
45441 2009-03-06  Bruno Haible  <bruno@clisp.org>
45442
45443         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
45444         Reported by Eric Blake.
45445
45446 2009-03-06  Eric Blake  <ebb9@byu.net>
45447             Bruno Haible  <bruno@clisp.org>
45448
45449         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
45450         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
45451         condition.
45452         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45453         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
45454         condition.
45455         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45456
45457 2009-03-06  Eric Blake  <ebb9@byu.net>
45458
45459         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
45460         to avoid compiler warnings.
45461         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
45462
45463 2009-03-05  Bruno Haible  <bruno@clisp.org>
45464
45465         * tests/test-ftell.c (main): Disable test beyond end of file on
45466         FreeMiNT.
45467         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45468
45469 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
45470
45471         * lib/filevercmp.c: Move hidden files up in ordering.
45472         * tests/test-filevercmp.c: Add tests for hidden files.
45473
45474 2009-03-04  Bruno Haible  <bruno@clisp.org>
45475
45476         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
45477         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
45478         AM_CFLAGS.
45479         Reported by Simon Josefsson.
45480
45481 2009-03-03  Bruno Haible  <bruno@clisp.org>
45482
45483         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
45484         Reported by Simon Josefsson.
45485
45486         * doc/ld-version-script.texi: Update node reference.
45487
45488 2009-03-03  Bruno Haible  <bruno@clisp.org>
45489
45490         * modules/visibility (License): Change to 'unlimited'.
45491         Suggested by Simon Josefsson.
45492
45493 2009-03-03  Jim Meyering  <meyering@redhat.com>
45494
45495         unlinkdir: cannot_unlink_dir may modify process state
45496         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
45497         it's neither thread-safe nor appropriate for use in a library.
45498
45499 2009-03-03  Eric Blake  <ebb9@byu.net>
45500
45501         test-closein: silence test under Darwin
45502         * tests/test-closein.sh: Ignore stderr from cat, since we don't
45503         care if it dies from EPIPE or EBADF.
45504
45505 2009-03-03  Bruno Haible  <bruno@clisp.org>
45506
45507         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45508         earlier.
45509         * doc/visibility.texi: Fix @node and @section.
45510
45511 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45512
45513         * doc/gnulib.texi: Link to sections for ld version script and
45514         visibility.
45515         * doc/visibility.texi: Add @node and @section.
45516         * modules/ld-version-script: New module.
45517         * m4/ld-version-script.m4: New file.
45518         * doc/ld-version-script.texi: New file.
45519
45520 2009-03-02  David Lutterkort  <lutter@redhat.com>
45521
45522         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45523         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45524
45525 2009-03-02  Bruno Haible  <bruno@clisp.org>
45526
45527         * doc/visibility.texi: Mention libtool's -export-symbols option.
45528
45529 2009-03-02  Jim Meyering  <meyering@redhat.com>
45530
45531         announce-gen: new option: --no-print-checksums
45532         * build-aux/announce-gen (usage): Describe it.
45533         (print_checksums): Print a newline here, not in the [*] footnote.
45534         (main): Honor it.
45535
45536 2009-03-01  Bruno Haible  <bruno@clisp.org>
45537
45538         Use socklen_t in the native Windows replacements prototypes.
45539         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45540         instead of 'int'.
45541         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45542         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45543         * modules/getsockopt (Depends-on): Add socklen.
45544         * modules/setsockopt (Depends-on): Add socklen.
45545
45546 2009-03-01  Bruno Haible  <bruno@clisp.org>
45547
45548         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45549         least 4.2.
45550
45551 2009-03-01  Eric Blake  <ebb9@byu.net>
45552             Bruno Haible  <bruno@clisp.org>
45553
45554         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45555         error messages.
45556         * lib/wait-process.c (wait_subprocess): Omit error message about
45557         deadly signal sent to the child of termsigp != NULL.
45558
45559 2009-03-01  Eric Blake  <ebb9@byu.net>
45560
45561         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45562
45563 2009-03-01  Bruno Haible  <bruno@clisp.org>
45564
45565         Avoid a gcc warning.
45566         * tests/test-sched.c (b): Make global.
45567         Reported by Eric Blake.
45568
45569 2009-01-19  Martin Lambers  <marlam@marlam.de>
45570
45571         Provide POSIX semantics for socket timeout options on W32.
45572         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45573         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45574         * modules/setsockopt: Depend on sys_time module for struct timeval.
45575         * modules/getsockopt: Depend on sys_time module for struct timeval.
45576
45577 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45578
45579         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45580         __USE_GNU, for consistency with netdb.in.h.
45581         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45582
45583 2009-03-01  Bruno Haible  <bruno@clisp.org>
45584
45585         More support for FreeMiNT.
45586         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45587         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45588
45589 2009-03-01  Bruno Haible  <bruno@clisp.org>
45590
45591         More support for FreeMiNT.
45592         * lib/fpurge.c (fpurge): Correct last commit.
45593         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45594
45595 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45596
45597         Fix unportable awk script in vc-list-files.
45598         * build-aux/vc-list-files: In the replacement awk script, use
45599         substr with a second argument of 1, not zero.
45600         Report by Simon Josefsson.
45601
45602 2009-02-28  Bruno Haible  <bruno@clisp.org>
45603
45604         More support for FreeMiNT.
45605         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45606         to FreeMiNT today.
45607         * lib/fwriting.c (fwriting): Likewise.
45608         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45609
45610 2009-02-28  Bruno Haible  <bruno@clisp.org>
45611
45612         * tests/test-freadseek.c (main): Disable test beyond end of file on
45613         FreeMiNT.
45614         * tests/test-ftello.c (main): Likewise.
45615         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45616
45617 2009-02-28  Bruno Haible  <bruno@clisp.org>
45618
45619         Add tentative support for FreeMiNT.
45620         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45621         * lib/fpurge.c (fpurge): Likewise.
45622         * lib/freadable.c (freadable): Likewise.
45623         * lib/freading.c (freading): Likewise.
45624         * lib/freadptr.c (freadptr): Likewise.
45625         * lib/freadseek.c (freadptrinc): Likewise.
45626         * lib/fseeko.c (rpl_fseeko): Likewise.
45627         * lib/fseterr.c (fseterr): Likewise.
45628         * lib/fwritable.c (fwritable): Likewise.
45629         * lib/fwriting.c (fwriting): Likewise.
45630         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45631         Hourihane.
45632         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45633
45634 2009-02-28  Bruno Haible  <bruno@clisp.org>
45635
45636         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45637         SIGCHLD.
45638         Reported by Jim Meyering.
45639
45640 2009-02-28  Bruno Haible  <bruno@clisp.org>
45641
45642         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45643         Mention the results of these tests on various platforms.
45644         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45645         order.
45646         * doc/posix-functions/printf.texi: Likewise.
45647         * doc/posix-functions/snprintf.texi: Likewise.
45648         * doc/posix-functions/sprintf.texi: Likewise.
45649         * doc/posix-functions/vfprintf.texi: Likewise.
45650         * doc/posix-functions/vprintf.texi: Likewise.
45651         * doc/posix-functions/vsnprintf.texi: Likewise.
45652         * doc/posix-functions/vsprintf.texi: Likewise.
45653         * doc/glibc-functions/obstack_printf.texi: Likewise.
45654         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45655
45656 2009-02-28  Bruno Haible  <bruno@clisp.org>
45657
45658         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
45659         Reported by Loïc Minier <lool@dooz.org>.
45660
45661 2009-02-27  Bruno Haible  <bruno@clisp.org>
45662
45663         * gnulib-tool (func_import): Make the sed expression used to create the
45664         sed script for updating the .gitignore file POSIX compliant.
45665         Reported by Eric Blake.
45666
45667 2009-02-27  Bruno Haible  <bruno@clisp.org>
45668
45669         * gnulib-tool (sed): Don't alias as "sed --posix".
45670         Reported by Eric Blake.
45671
45672 2009-02-27  Bruno Haible  <bruno@clisp.org>
45673
45674         Avoid test link errors.
45675         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
45676         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
45677         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
45678         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
45679         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45680
45681 2009-02-27  Bruno Haible  <bruno@clisp.org>
45682
45683         Avoid spurious "(cached)" in configure output.
45684         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
45685         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
45686         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45687         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45688         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45689         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45690         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45691         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45692         Reported by Eric Blake.
45693
45694 2009-02-27  Eric Blake  <ebb9@byu.net>
45695
45696         printf: fix regression in previous patch
45697         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
45698
45699 2009-02-27  Bruno Haible  <bruno@clisp.org>
45700
45701         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
45702         value.
45703         * lib/stdint.in.h: Likewise.
45704         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
45705
45706 2009-02-27  Eric Blake  <ebb9@byu.net>
45707
45708         doc: mention more functions added in cygwin 1.7.0
45709         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
45710         addition.
45711         * doc/posix-functions/open_wmemstream.texi: Likewise.
45712         * doc/posix-functions/wcsnlen.texi: Likewise.
45713         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45714         * doc/posix-functions/wcstod.texi: Likewise.
45715         * doc/posix-functions/wcstof.texi: Likewise.
45716         * doc/posix-functions/wcstoimax.texi: Likewise.
45717         * doc/posix-functions/wcstok.texi: Likewise.
45718         * doc/posix-functions/wcstoumax.texi: Likewise.
45719
45720         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
45721         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
45722         * doc/posix-functions/fprintf.texi: Update.
45723         * doc/posix-functions/printf.texi: Update.
45724         * doc/posix-functions/snprintf.texi: Update.
45725         * doc/posix-functions/sprintf.texi: Update.
45726         * doc/posix-functions/vfprintf.texi: Update.
45727         * doc/posix-functions/vprintf.texi: Update.
45728         * doc/posix-functions/vsnprintf.texi: Update.
45729         * doc/posix-functions/vsprintf.texi: Update.
45730         * doc/glibc-functions/obstack_printf.texi: Update.
45731         * doc/glibc-functions/obstack_vprintf.texi: Update.
45732
45733 2009-02-26  Eric Blake  <ebb9@byu.net>
45734
45735         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
45736         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
45737         compilation bug by using runtime conversion.
45738         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45739         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
45740         * modules/ceill-tests (Files): Use nan.h.
45741         * modules/floorl-tests (Files): Likewise.
45742         * modules/frexpl-tests (Files): Likewise.
45743         * modules/isnanl-tests (Files): Likewise.
45744         * modules/ldexpl-tests (Files): Likewise.
45745         * modules/roundl-tests (Files): Likewise.
45746         * modules/truncl-tests (Files): Likewise.
45747         * tests/test-ceill.c (main): Use a working NaN.
45748         * tests/test-floorl.c (main): Likewise.
45749         * tests/test-frexpl.c (main): Likewise.
45750         * tests/test-isnan.c (test_long_double): Likewise.
45751         * tests/test-isnanl.h (main): Likewise.
45752         * tests/test-ldexpl.h (main): Likewise.
45753         * tests/test-roundl.h (main): Likewise.
45754         * tests/test-truncl.h (main): Likewise.
45755         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
45756
45757 2009-02-26  Eric Blake  <ebb9@byu.net>
45758             Bruno Haible  <bruno@clisp.org>
45759
45760         Work around a *printf bug with %ls on Solaris.
45761         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
45762         precision is specified, sprintf stops converting the wide string
45763         argument when the number of bytes that have been produced by this
45764         conversion equals or exceeds the precision.
45765         * doc/posix-functions/fprintf.texi: Update.
45766         * doc/posix-functions/printf.texi: Update.
45767         * doc/posix-functions/snprintf.texi: Update.
45768         * doc/posix-functions/sprintf.texi: Update.
45769         * doc/posix-functions/vfprintf.texi: Update.
45770         * doc/posix-functions/vprintf.texi: Update.
45771         * doc/posix-functions/vsnprintf.texi: Update.
45772         * doc/posix-functions/vsprintf.texi: Update.
45773         * doc/glibc-functions/obstack_printf.texi: Update.
45774         * doc/glibc-functions/obstack_vprintf.texi: Update.
45775
45776 2009-02-26  Eric Blake  <ebb9@byu.net>
45777
45778         stdlib: favor compiler check of random.h
45779         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
45780         to avoid an ObjC random.h installed by Swarm.
45781
45782 2009-02-26  Bruno Haible  <bruno@clisp.org>
45783
45784         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
45785         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
45786         Reported by Gary V. Vaughan <gary@gnu.org>.
45787
45788 2009-02-26  Bruno Haible  <bruno@clisp.org>
45789
45790         Fix *printf behaviour regarding the %ls directive.
45791         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
45792         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
45793         NEED_PRINTF_DIRECTIVE_LS.
45794         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
45795         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45796         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45797         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
45798         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
45799         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
45800         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45801         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45802         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45803         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45804         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45805         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
45806         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45807         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45808         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45809         * doc/posix-functions/fprintf.texi: Update.
45810         * doc/posix-functions/printf.texi: Update.
45811         * doc/posix-functions/snprintf.texi: Update.
45812         * doc/posix-functions/sprintf.texi: Update.
45813         * doc/posix-functions/vfprintf.texi: Update.
45814         * doc/posix-functions/vprintf.texi: Update.
45815         * doc/posix-functions/vsnprintf.texi: Update.
45816         * doc/posix-functions/vsprintf.texi: Update.
45817         * doc/glibc-functions/obstack_printf.texi: Update.
45818         * doc/glibc-functions/obstack_vprintf.texi: Update.
45819         Reported by Eric Blake.
45820
45821 2009-02-25  Bruno Haible  <bruno@clisp.org>
45822
45823         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
45824         with known value.
45825         Reported by Gary V. Vaughan <gary@gnu.org>.
45826
45827 2009-02-25  Bruno Haible  <bruno@clisp.org>
45828
45829         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
45830         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
45831         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
45832         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
45833         Reported by Gary V. Vaughan <gary@gnu.org>.
45834
45835 2009-02-25  Bruno Haible  <bruno@clisp.org>
45836
45837         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
45838         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
45839         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
45840         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
45841         Reported by Gary V. Vaughan <gary@gnu.org>.
45842
45843 2009-02-25  Eric Blake  <ebb9@byu.net>
45844
45845         tests: skip fseek/ftell tests if ungetc is broken
45846         * m4/ungetc.m4: New file.
45847         * modules/fseek-tests: Split test, so ungetc dependency is
45848         separate from rest of test.
45849         * modules/fseeko-tests: Likewise.
45850         * modules/ftell-tests: Likewise.
45851         * modules/ftello-tests: Likewise.
45852         * tests/test-fseek.c (main): Isolate ungetc dependency.
45853         * tests/test-fseeko.c (main): Likewise.
45854         * tests/test-ftell.c (main): Likewise.
45855         * tests/test-ftello.c (main): Likewise.
45856         * tests/test-fseek2.sh: New file.
45857         * tests/test-fseeko2.sh: Likewise.
45858         * tests/test-ftell2.sh: Likewise.
45859         * tests/test-ftello2.sh: Likewise.
45860
45861 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
45862
45863         test-getaddrinfo: fix usage of skip return code 77
45864         * tests/test-gettaddrinfo.c: Return skip code 77 only
45865         for first occurance of skip (4x77 is not 77)
45866
45867 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
45868
45869         strtod: avoid C99 decl-after-statement
45870         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
45871
45872 2009-02-24  Eric Blake  <ebb9@byu.net>
45873
45874         strtod: detect HP-UX 11.31 bug
45875         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
45876         Reported by Gary V. Vaughan.
45877
45878 2009-02-23  Bruno Haible  <bruno@clisp.org>
45879
45880         Fix invalid read past end of memory block.
45881         * lib/vasnprintf.c (DCHAR_SET): Define.
45882         (local_wcslen): Define only when needed.
45883         (local_strnlen, local_wcsnlen): New functions.
45884         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
45885         directives that involve a conversion ourselves.
45886         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
45887         wcsnlen, mbrtowc, wcrtomb.
45888         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
45889         * tests/test-vasprintf-posix.c (test_function): Likewise.
45890         * tests/test-snprintf-posix.h (test_function): Likewise.
45891         * tests/test-sprintf-posix.h (test_function): Likewise.
45892         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45893
45894 2009-02-22  Bruno Haible  <bruno@clisp.org>
45895
45896         Implement new clarified decomposition of Hangul syllables.
45897         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
45898         of type LTV, return only a pairwise decomposition.
45899         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
45900         Likewise.
45901         * tests/uninorm/test-decomposition.c (main): Updated expected result.
45902         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
45903         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
45904
45905 2009-02-22  Bruno Haible  <bruno@clisp.org>
45906
45907         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
45908         zero-length results and shrink excess allocated memory.
45909         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
45910         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
45911         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
45912         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
45913         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
45914         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
45915         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
45916         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
45917         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
45918         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
45919         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
45920         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
45921
45922 2009-02-21  Bruno Haible  <bruno@clisp.org>
45923
45924         * doc/gnulib.texi: Include safe-alloc.texi earlier.
45925         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
45926         spaces after a period. Put a space between a macro name and its
45927         argument list. Trivial rewordings.
45928         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
45929         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
45930         (main): Return 0 explicitly.
45931
45932 2009-02-21  Bruno Haible  <bruno@clisp.org>
45933
45934         Tests for module 'uninorm/filter'.
45935         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
45936         * modules/uninorm/filter-tests: New file.
45937
45938         New module 'uninorm/filter'.
45939         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
45940         uninorm_filter_flush, uninorm_filter_free): New declarations.
45941         * lib/uninorm/uninorm-filter.c: New file.
45942         * modules/uninorm/filter: New file.
45943
45944 2009-02-21  Bruno Haible  <bruno@clisp.org>
45945
45946         Tests for module 'uninorm/nfkc'.
45947         * tests/uninorm/test-nfkc.c: New file.
45948         * tests/uninorm/test-u8-nfkc.c: New file.
45949         * tests/uninorm/test-u16-nfkc.c: New file.
45950         * tests/uninorm/test-u32-nfkc.c: New file.
45951         * tests/uninorm/test-u32-nfkc-big.sh: New file.
45952         * tests/uninorm/test-u32-nfkc-big.c: New file.
45953         * modules/uninorm/nfkc-tests: New file.
45954
45955         New module 'uninorm/nfkc'.
45956         * lib/uninorm/nfkc.c: New file.
45957         * modules/uninorm/nfkc: New file.
45958
45959         Tests for module 'uninorm/nfkd'.
45960         * tests/uninorm/test-nfkd.c: New file.
45961         * tests/uninorm/test-u8-nfkd.c: New file.
45962         * tests/uninorm/test-u16-nfkd.c: New file.
45963         * tests/uninorm/test-u32-nfkd.c: New file.
45964         * tests/uninorm/test-u32-nfkd-big.sh: New file.
45965         * tests/uninorm/test-u32-nfkd-big.c: New file.
45966         * modules/uninorm/nfkd-tests: New file.
45967
45968         New module 'uninorm/nfkd'.
45969         * lib/uninorm/nfkd.c: New file.
45970         * modules/uninorm/nfkd: New file.
45971
45972         Tests for module 'uninorm/nfc'.
45973         * tests/uninorm/test-nfc.c: New file.
45974         * tests/uninorm/test-u8-nfc.c: New file.
45975         * tests/uninorm/test-u16-nfc.c: New file.
45976         * tests/uninorm/test-u32-nfc.c: New file.
45977         * tests/uninorm/test-u32-nfc-big.sh: New file.
45978         * tests/uninorm/test-u32-nfc-big.c: New file.
45979         * modules/uninorm/nfc-tests: New file.
45980
45981         New module 'uninorm/nfc'.
45982         * lib/uninorm/nfc.c: New file.
45983         * modules/uninorm/nfc: New file.
45984
45985         Tests for module 'uninorm/nfd'.
45986         * tests/uninorm/test-nfd.c: New file.
45987         * tests/uninorm/test-u8-nfd.c: New file.
45988         * tests/uninorm/test-u16-nfd.c: New file.
45989         * tests/uninorm/test-u32-nfd.c: New file.
45990         * tests/uninorm/test-u32-nfd-big.sh: New file.
45991         * tests/uninorm/test-u32-nfd-big.c: New file.
45992         * tests/uninorm/test-u32-normalize-big.h: New file.
45993         * tests/uninorm/test-u32-normalize-big.c: New file.
45994         * tests/uninorm/NormalizationTest.txt: New file, created from
45995         Unicode 5.1.0 NormalizationTest.txt.
45996         * modules/uninorm/nfd-tests: New file.
45997
45998         New module 'uninorm/nfd'.
45999         * lib/uninorm/nfd.c: New file.
46000         * modules/uninorm/nfd: New file.
46001
46002         New module 'uninorm/u32-normalize'.
46003         * lib/uninorm/u32-normalize.c: New file.
46004         * modules/uninorm/u32-normalize: New file.
46005
46006         New module 'uninorm/u16-normalize'.
46007         * lib/uninorm/u16-normalize.c: New file.
46008         * modules/uninorm/u16-normalize: New file.
46009
46010         New module 'uninorm/u8-normalize'.
46011         * lib/uninorm/u8-normalize.c: New file.
46012         * lib/uninorm/normalize-internal.h: New file.
46013         * lib/uninorm/u-normalize-internal.h: New file.
46014         * modules/uninorm/u8-normalize: New file.
46015
46016         New module 'uninorm/decompose-internal'.
46017         * lib/uninorm/decompose-internal.c: New file.
46018         * modules/uninorm/decompose-internal: New file.
46019
46020         Tests for module 'uninorm/composition'.
46021         * tests/uninorm/test-composition.c: New file.
46022         * modules/uninorm/composition-tests: New file.
46023
46024         New module 'uninorm/composition'.
46025         * lib/uninorm/composition.c: New file.
46026         * lib/uninorm/composition-table.gperf: New file, generated by
46027         gen-uni-tables.
46028         * modules/uninorm/composition: New file.
46029
46030         Tests for module 'uninorm/compat-decomposition'.
46031         * tests/uninorm/test-compat-decomposition.c: New file.
46032         * modules/uninorm/compat-decomposition-tests: New file.
46033
46034         New module 'uninorm/compat-decomposition'.
46035         * lib/uninorm/decompose-internal.h: New file.
46036         * lib/uninorm/compat-decomposition.c: New file.
46037         * modules/uninorm/compat-decomposition: New file.
46038
46039         Tests for module 'uninorm/canonical-decomposition'.
46040         * tests/uninorm/test-canonical-decomposition.c: New file.
46041         * modules/uninorm/canonical-decomposition-tests: New file.
46042
46043         New module 'uninorm/canonical-decomposition'.
46044         * lib/uninorm/canonical-decomposition.c: New file.
46045         * modules/uninorm/canonical-decomposition: New file.
46046
46047         Tests for module 'uninorm/decomposition'.
46048         * tests/uninorm/test-decomposition.c: New file.
46049         * modules/uninorm/decomposition-tests: New file.
46050
46051         New module 'uninorm/decomposition'.
46052         * lib/uninorm/decomposition.c: New file.
46053         * modules/uninorm/decomposition: New file.
46054
46055         New module 'uninorm/decomposition-table'.
46056         * lib/uninorm/decomposition-table.h: New file.
46057         * lib/uninorm/decomposition-table.c: New file.
46058         * lib/uninorm/decomposition-table1.h: New file, generated by
46059         gen-uni-tables.
46060         * lib/uninorm/decomposition-table2.h: New file, generated by
46061         gen-uni-tables.
46062         * modules/uninorm/decomposition-table: New file.
46063
46064         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46065         (UC_DECOMP_*): New enumeration items.
46066         (get_decomposition): New function.
46067         (struct decomp_table): New type.
46068         (output_decomposition, output_decomposition_tables): New functions.
46069         (unicode_composition_exclusions): New variable.
46070         (fill_composition_exclusions, debug_output_composition_tables): New
46071         functions.
46072         (main): Accept one more argument. Invoke fill_composition_exclusions.
46073         Output decomposition and composition tables.
46074
46075         New module 'uninorm/base'.
46076         * lib/uninorm.h: New file.
46077         * lib/unictype.h: Update comment.
46078         * modules/uninorm/base: New file.
46079
46080 2009-02-21  David Lutterkort  <lutter@redhat.com>
46081
46082         Tests for module 'safe-alloc'.
46083         * tests/test-safe-alloc.c: New file.
46084         * modules/safe-alloc-tests: New file.
46085
46086         New module 'safe-alloc'.
46087         * lib/safe-alloc.h: New file.
46088         * lib/safe-alloc.c: New file.
46089         * m4/safe-alloc.m4: New file.
46090         * modules/safe-alloc: New file.
46091         * doc/safe-alloc.texi: New file.
46092         * doc/gnulib.texi: Include it.
46093         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46094         safe-alloc.
46095
46096 2009-02-18  Bruno Haible  <bruno@clisp.org>
46097
46098         Fix link error on non-glibc systems.
46099         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46100         variable.
46101         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46102
46103 2009-02-18  Jim Meyering  <meyering@redhat.com>
46104
46105         fts: avoid used-uninitialized error due to recent change
46106         * lib/fts.c (fts_read): Guard uses of the new member,
46107         parent->fts_n_dirs_remaining, since it's not relevant for
46108         the parent of a directory specified on the command-line.
46109
46110 2009-02-17  James Youngman  <jay@gnu.org>
46111             Bruno Haible  <bruno@clisp.org>
46112
46113         * m4/include_next.m4: Reformulate comment.
46114
46115 2009-02-16  Jim Meyering  <meyering@redhat.com>
46116
46117         fts: add #if guards so that the fts_lgpl module still builds
46118         * lib/fts.c: Guard just-added hash-table-using parts with
46119         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46120         Reported by Simon Josefsson.
46121
46122 2009-02-15  Bruno Haible  <bruno@clisp.org>
46123
46124         * modules/array-mergesort-tests: New file.
46125         * tests/test-array-mergesort.c: New file.
46126
46127         New module 'array-mergesort'.
46128         * modules/array-mergesort: New file.
46129         * lib/array-mergesort.h: New file.
46130
46131 2009-02-15  Bruno Haible  <bruno@clisp.org>
46132
46133         Fix 2009-02-07 commit.
46134         * lib/gen-uni-tables.c (output_predicate, output_category,
46135         output_combclass, output_bidi_category, output_decimal_digit,
46136         output_digit, output_numeric, output_mirror, output_scripts,
46137         output_ident_category, output_simple_mapping): Fix format directives.
46138         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46139
46140 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46141
46142         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46143         fixes are available from IBM.
46144
46145 2009-02-13  Jim Meyering  <meyering@redhat.com>
46146
46147         fts: arrange not to stat non-directories in more cases
46148         This makes GNU find (when it doesn't need to stat each file)
46149         *much* more efficient at traversing reiserfs file systems.
46150         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46151         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46152         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46153         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46154         (leaf_optimization_applies): New function.
46155         (LCO_hash, LCO_compare): New helper functions.
46156         (link_count_optimize_ok): New function.
46157         (fts_stat): Initialize new member (if dir).
46158         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46159         we've just stat'ed a directory.  Skip the stat call when possible.
46160         ---
46161         Note this AFS-related exchange:
46162         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46163         and note find's pioctl call in find/fstype.c.
46164         But that is necessary only if you want to enable the
46165         optimization for AFS, and for now, I don't.
46166
46167         fts: move a function definition "up" (no semantic change)
46168         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46169         "up" to precede upcoming use of a related function.
46170
46171 2009-02-11  Jim Meyering  <meyering@redhat.com>
46172
46173         fts: correct internal computation of nlinks (optimization-related)
46174         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46175         whether the current entry is a directory, so don't test it.
46176
46177 2009-02-10  Bruno Haible  <bruno@clisp.org>
46178
46179         Tests for module 'uniwbrk/ulc-wordbreaks'.
46180         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46181         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46182         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46183
46184         Tests for module 'uniwbrk/u32-wordbreaks'.
46185         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46186         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46187
46188         Tests for module 'uniwbrk/u16-wordbreaks'.
46189         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46190         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46191
46192         Tests for module 'uniwbrk/u8-wordbreaks'.
46193         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46194         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46195
46196 2009-02-10  Bruno Haible  <bruno@clisp.org>
46197
46198         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46199         property.
46200         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46201         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46202         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46203
46204 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46205
46206         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46207         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46208
46209 2009-02-10  Bruno Haible  <bruno@clisp.org>
46210
46211         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46212         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46213         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46214         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46215         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46216         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46217
46218 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46219
46220         * lib/sockets.h (gl_fd_to_handle): New function.
46221
46222         * tests/test-sockets.c: Call gl_fd_to_handle.
46223
46224 2009-02-09  Bruno Haible  <bruno@clisp.org>
46225
46226         * doc/havelib.texi: Document the conventions on bi-arch systems.
46227
46228 2009-02-08  Bruno Haible  <bruno@clisp.org>
46229
46230         Document the AC_LIB_LINKFLAGS macro.
46231         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46232         * doc/gnulib.texi: Include it.
46233
46234 2009-02-08  Bruno Haible  <bruno@clisp.org>
46235
46236         Fix wrong order of sections, compared to TOC.
46237         * doc/gnulib.texi: Include relocatable-maint.texi after the
46238         "Regular expressions" node, not before.
46239
46240 2009-02-08  Bruno Haible  <bruno@clisp.org>
46241
46242         Tests for module 'unicase/totitle'.
46243         * modules/unicase/totitle-tests: New file.
46244
46245         Tests for module 'unicase/tolower'.
46246         * modules/unicase/tolower-tests: New file.
46247
46248         Tests for module 'unicase/toupper'.
46249         * modules/unicase/toupper-tests: New file.
46250         * tests/unicase/test-mapping-part1.h: New file.
46251         * tests/unicase/test-mapping-part2.h: New file.
46252
46253         New module 'unicase/totitle'.
46254         * modules/unicase/totitle: New file.
46255         * lib/unicase/totitle.c: New file.
46256
46257         New module 'unicase/tolower'.
46258         * modules/unicase/tolower: New file.
46259         * lib/unicase/tolower.c: New file.
46260
46261         New module 'unicase/toupper'.
46262         * modules/unicase/toupper: New file.
46263         * lib/unicase/toupper.c: New file.
46264         * lib/unicase/simple-mapping.h: New file.
46265
46266         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46267         (mapping_table): New structure.
46268         (output_simple_mapping): New function.
46269         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46270         * modules/gen-uni-tables (Description): Update.
46271         * lib/unicase/toupper.h: New file, automatically generated by
46272         gen-uni-tables.
46273         * lib/unicase/tolower.h: New file, automatically generated by
46274         gen-uni-tables.
46275         * lib/unicase/totitle.h: New file, automatically generated by
46276         gen-uni-tables.
46277         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46278         gen-uni-tables.
46279         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46280         gen-uni-tables.
46281         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46282         gen-uni-tables.
46283
46284         New module 'unicase/base'.
46285         * modules/unicase/base: New file.
46286         * lib/unicase.h: New file.
46287
46288 2009-02-08  Bruno Haible  <bruno@clisp.org>
46289
46290         New module 'uniwbrk/ulc-wordbreaks'.
46291         * modules/uniwbrk/ulc-wordbreaks: New file.
46292         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46293
46294         New module 'uniwbrk/u32-wordbreaks'.
46295         * modules/uniwbrk/u32-wordbreaks: New file.
46296         * lib/uniwbrk/u32-wordbreaks.c: New file.
46297
46298         New module 'uniwbrk/u16-wordbreaks'.
46299         * modules/uniwbrk/u16-wordbreaks: New file.
46300         * lib/uniwbrk/u16-wordbreaks.c: New file.
46301
46302         New module 'uniwbrk/u8-wordbreaks'.
46303         * modules/uniwbrk/u8-wordbreaks: New file.
46304         * lib/uniwbrk/u8-wordbreaks.c: New file.
46305         * lib/uniwbrk/u-wordbreaks.h: New file.
46306
46307         New module 'uniwbrk/table'.
46308         * modules/uniwbrk/table: New file.
46309         * lib/uniwbrk/wbrktable.h: New file.
46310         * lib/uniwbrk/wbrktable.c: New file.
46311
46312         New module 'uniwbrk/wordbreak-property'.
46313         * modules/uniwbrk/wordbreak-property: New file.
46314         * lib/uniwbrk/wordbreak-property.c: New file.
46315
46316         * lib/gen-uni-tables.c (WBP_*): New enum items.
46317         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46318         (unicode_org_wbp): New variable.
46319         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
46320         New functions.
46321         (wbp_table): New structure.
46322         (output_wbp, output_wbrk_tables): New functions.
46323         (main): Accept additional argument. Invoke fill_org_wbp,
46324         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
46325         output_wbrk_tables.
46326         * modules/gen-uni-tables (Description): Update.
46327         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
46328         gen-uni-tables.
46329
46330         New module 'uniwbrk/base'.
46331         * modules/uniwbrk/base: New file.
46332         * lib/uniwbrk.h: New file.
46333
46334 2009-02-08  Bruno Haible  <bruno@clisp.org>
46335
46336         Update to Unicode 5.1.0.
46337         * lib/gen-uni-tables.c (is_property_alphabetic): Include
46338         U+2185..U+2188.
46339         (is_property_default_ignorable_code_point): Don't include characters
46340         of category Cc or Cs and not-a-characters.
46341         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
46342         U+0D79, U+109E, U+109F, U+A60C.
46343         * lib/unictype/bidi_of.h: Regenerated.
46344         * lib/unictype/blocks.h: Regenerated.
46345         * lib/unictype/categ_C.h: Regenerated.
46346         * lib/unictype/categ_Cf.h: Regenerated.
46347         * lib/unictype/categ_Cn.h: Regenerated.
46348         * lib/unictype/categ_L.h: Regenerated.
46349         * lib/unictype/categ_Ll.h: Regenerated.
46350         * lib/unictype/categ_Lm.h: Regenerated.
46351         * lib/unictype/categ_Lo.h: Regenerated.
46352         * lib/unictype/categ_Lu.h: Regenerated.
46353         * lib/unictype/categ_M.h: Regenerated.
46354         * lib/unictype/categ_Mc.h: Regenerated.
46355         * lib/unictype/categ_Me.h: Regenerated.
46356         * lib/unictype/categ_Mn.h: Regenerated.
46357         * lib/unictype/categ_N.h: Regenerated.
46358         * lib/unictype/categ_Nd.h: Regenerated.
46359         * lib/unictype/categ_Nl.h: Regenerated.
46360         * lib/unictype/categ_No.h: Regenerated.
46361         * lib/unictype/categ_P.h: Regenerated.
46362         * lib/unictype/categ_Pd.h: Regenerated.
46363         * lib/unictype/categ_Pe.h: Regenerated.
46364         * lib/unictype/categ_Pf.h: Regenerated.
46365         * lib/unictype/categ_Pi.h: Regenerated.
46366         * lib/unictype/categ_Po.h: Regenerated.
46367         * lib/unictype/categ_Ps.h: Regenerated.
46368         * lib/unictype/categ_S.h: Regenerated.
46369         * lib/unictype/categ_Sk.h: Regenerated.
46370         * lib/unictype/categ_Sm.h: Regenerated.
46371         * lib/unictype/categ_So.h: Regenerated.
46372         * lib/unictype/categ_of.h: Regenerated.
46373         * lib/unictype/combining.h: Regenerated.
46374         * lib/unictype/ctype_alnum.h: Regenerated.
46375         * lib/unictype/ctype_alpha.h: Regenerated.
46376         * lib/unictype/ctype_graph.h: Regenerated.
46377         * lib/unictype/ctype_lower.h: Regenerated.
46378         * lib/unictype/ctype_print.h: Regenerated.
46379         * lib/unictype/ctype_punct.h: Regenerated.
46380         * lib/unictype/ctype_upper.h: Regenerated.
46381         * lib/unictype/decdigit.h: Regenerated.
46382         * lib/unictype/digit.h: Regenerated.
46383         * lib/unictype/mirror.h: Regenerated.
46384         * lib/unictype/numeric.h: Regenerated.
46385         * lib/unictype/pr_alphabetic.h: Regenerated.
46386         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46387         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46388         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46389         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46390         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46391         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46392         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46393         * lib/unictype/pr_combining.h: Regenerated.
46394         * lib/unictype/pr_dash.h: Regenerated.
46395         * lib/unictype/pr_decimal_digit.h: Regenerated.
46396         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
46397         * lib/unictype/pr_deprecated.h: Regenerated.
46398         * lib/unictype/pr_diacritic.h: Regenerated.
46399         * lib/unictype/pr_extender.h: Regenerated.
46400         * lib/unictype/pr_format_control.h: Regenerated.
46401         * lib/unictype/pr_grapheme_base.h: Regenerated.
46402         * lib/unictype/pr_grapheme_extend.h: Regenerated.
46403         * lib/unictype/pr_grapheme_link.h: Regenerated.
46404         * lib/unictype/pr_id_continue.h: Regenerated.
46405         * lib/unictype/pr_id_start.h: Regenerated.
46406         * lib/unictype/pr_ideographic.h: Regenerated.
46407         * lib/unictype/pr_ignorable_control.h: Regenerated.
46408         * lib/unictype/pr_lowercase.h: Regenerated.
46409         * lib/unictype/pr_math.h: Regenerated.
46410         * lib/unictype/pr_numeric.h: Regenerated.
46411         * lib/unictype/pr_other_alphabetic.h: Regenerated.
46412         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
46413         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
46414         * lib/unictype/pr_other_id_continue.h: Regenerated.
46415         * lib/unictype/pr_other_lowercase.h: Regenerated.
46416         * lib/unictype/pr_other_math.h: Regenerated.
46417         * lib/unictype/pr_punctuation.h: Regenerated.
46418         * lib/unictype/pr_sentence_terminal.h: Regenerated.
46419         * lib/unictype/pr_soft_dotted.h: Regenerated.
46420         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
46421         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
46422         * lib/unictype/pr_unified_ideograph.h: Regenerated.
46423         * lib/unictype/pr_uppercase.h: Regenerated.
46424         * lib/unictype/pr_xid_continue.h: Regenerated.
46425         * lib/unictype/pr_xid_start.h: Regenerated.
46426         * lib/unictype/pr_zero_width.h: Regenerated.
46427         * lib/unictype/scripts.h: Regenerated.
46428         * lib/unictype/scripts_byname.gperf: Regenerated.
46429         * lib/unictype/sy_java_ident.h: Regenerated.
46430         * lib/unilbrk/lbrkprop1.h: Regenerated.
46431         * lib/unilbrk/lbrkprop2.h: Regenerated.
46432         * tests/unictype/test-categ_C.c: Regenerated.
46433         * tests/unictype/test-categ_Cf.c: Regenerated.
46434         * tests/unictype/test-categ_Cn.c: Regenerated.
46435         * tests/unictype/test-categ_L.c: Regenerated.
46436         * tests/unictype/test-categ_Ll.c: Regenerated.
46437         * tests/unictype/test-categ_Lm.c: Regenerated.
46438         * tests/unictype/test-categ_Lo.c: Regenerated.
46439         * tests/unictype/test-categ_Lu.c: Regenerated.
46440         * tests/unictype/test-categ_M.c: Regenerated.
46441         * tests/unictype/test-categ_Mc.c: Regenerated.
46442         * tests/unictype/test-categ_Me.c: Regenerated.
46443         * tests/unictype/test-categ_Mn.c: Regenerated.
46444         * tests/unictype/test-categ_N.c: Regenerated.
46445         * tests/unictype/test-categ_Nd.c: Regenerated.
46446         * tests/unictype/test-categ_Nl.c: Regenerated.
46447         * tests/unictype/test-categ_No.c: Regenerated.
46448         * tests/unictype/test-categ_P.c: Regenerated.
46449         * tests/unictype/test-categ_Pd.c: Regenerated.
46450         * tests/unictype/test-categ_Pe.c: Regenerated.
46451         * tests/unictype/test-categ_Pf.c: Regenerated.
46452         * tests/unictype/test-categ_Pi.c: Regenerated.
46453         * tests/unictype/test-categ_Po.c: Regenerated.
46454         * tests/unictype/test-categ_Ps.c: Regenerated.
46455         * tests/unictype/test-categ_S.c: Regenerated.
46456         * tests/unictype/test-categ_Sk.c: Regenerated.
46457         * tests/unictype/test-categ_Sm.c: Regenerated.
46458         * tests/unictype/test-categ_So.c: Regenerated.
46459         * tests/unictype/test-ctype_alnum.c: Regenerated.
46460         * tests/unictype/test-ctype_alpha.c: Regenerated.
46461         * tests/unictype/test-ctype_graph.c: Regenerated.
46462         * tests/unictype/test-ctype_lower.c: Regenerated.
46463         * tests/unictype/test-ctype_print.c: Regenerated.
46464         * tests/unictype/test-ctype_punct.c: Regenerated.
46465         * tests/unictype/test-ctype_upper.c: Regenerated.
46466         * tests/unictype/test-decdigit.h: Regenerated.
46467         * tests/unictype/test-digit.h: Regenerated.
46468         * tests/unictype/test-numeric.h: Regenerated.
46469         * tests/unictype/test-pr_alphabetic.c: Regenerated.
46470         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
46471         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
46472         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
46473         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
46474         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
46475         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
46476         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
46477         * tests/unictype/test-pr_combining.c: Regenerated.
46478         * tests/unictype/test-pr_dash.c: Regenerated.
46479         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
46480         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
46481         * tests/unictype/test-pr_deprecated.c: Regenerated.
46482         * tests/unictype/test-pr_diacritic.c: Regenerated.
46483         * tests/unictype/test-pr_extender.c: Regenerated.
46484         * tests/unictype/test-pr_format_control.c: Regenerated.
46485         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
46486         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
46487         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
46488         * tests/unictype/test-pr_id_continue.c: Regenerated.
46489         * tests/unictype/test-pr_id_start.c: Regenerated.
46490         * tests/unictype/test-pr_ideographic.c: Regenerated.
46491         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
46492         * tests/unictype/test-pr_lowercase.c: Regenerated.
46493         * tests/unictype/test-pr_math.c: Regenerated.
46494         * tests/unictype/test-pr_numeric.c: Regenerated.
46495         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
46496         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
46497         Regenerated.
46498         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
46499         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
46500         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
46501         * tests/unictype/test-pr_other_math.c: Regenerated.
46502         * tests/unictype/test-pr_punctuation.c: Regenerated.
46503         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
46504         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46505         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46506         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46507         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46508         * tests/unictype/test-pr_uppercase.c: Regenerated.
46509         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46510         * tests/unictype/test-pr_xid_start.c: Regenerated.
46511         * tests/unictype/test-pr_zero_width.c: Regenerated.
46512
46513         Update to Unicode 5.1.0.
46514         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46515         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46516         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46517         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46518         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46519         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46520         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46521         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46522         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46523         (nonspacing_table_ind): Update.
46524         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46525
46526         Update to Unicode 5.1.0.
46527         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46528         code transform.
46529         * lib/uniname/uniname.c (unicode_character_name,
46530         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46531         * lib/uniname/uninames.h: Regenerated.
46532         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46533
46534 2009-02-07  Bruno Haible  <bruno@clisp.org>
46535
46536         Merge gen-ctype and gen-lbrk into a single program.
46537         * lib/gen-uni-tables.c: New file, incorporating
46538         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46539         Add directory prefixes to the names of the generated files.
46540         * lib/unictype/gen-ctype.c: Remove file.
46541         * lib/unilbrk/gen-lbrk.c: Remove file.
46542         * modules/gen-uni-tables: New file.
46543         * modules/unictype/gen-ctype: Remove file.
46544         * modules/unilbrk/gen-lbrk: Remove file.
46545
46546 2009-02-07  Bruno Haible  <bruno@clisp.org>
46547
46548         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46549
46550         New module 'unistr/u32-strcoll'.
46551         * modules/unistr/u32-strcoll: New file.
46552         * lib/unistr/u32-strcoll.c: New file.
46553
46554         New module 'unistr/u16-strcoll'.
46555         * modules/unistr/u16-strcoll: New file.
46556         * lib/unistr/u16-strcoll.c: New file.
46557
46558         New module 'unistr/u8-strcoll'.
46559         * modules/unistr/u8-strcoll: New file.
46560         * lib/unistr/u8-strcoll.c: New file.
46561         * lib/unistr/u-strcoll.h: New file.
46562
46563 2009-02-07  Bruno Haible  <bruno@clisp.org>
46564
46565         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46566         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46567         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46568         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46569         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46570         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46571
46572 2009-02-07  Bruno Haible  <bruno@clisp.org>
46573
46574         Make 64-bit clean.
46575         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46576         output_combclass, output_bidi_category, output_decimal_digit,
46577         output_digit, output_numeric, output_mirror, output_scripts,
46578         output_ident_category): Use proper width specifier in format strings.
46579
46580 2009-02-07  Bruno Haible  <bruno@clisp.org>
46581
46582         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46583         failure behaviour.
46584
46585 2009-02-07  Jim Meyering  <meyering@redhat.com>
46586
46587         regex: avoid compilation failure with upcoming gcc-4.4
46588         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46589         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46590         "... error: integer overflow in preprocessor expression".
46591
46592 2009-02-05  Ben Pfaff  <blp@gnu.org>
46593
46594         Fix link errors on Windows when close module is used.
46595         * modules/close: Add $(LIB_CLOSE) to Link section.
46596         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46597         $(LIB_CLOSE) on Windows.
46598
46599 2009-02-05  Jim Meyering  <meyering@redhat.com>
46600
46601         still avoid unused-parameter warnings, but do it cleanly
46602         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46603         (get_fs_usage): Cast to void instead.
46604         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46605         (dev_from_mount_options, read_file_system_list): Cast to void.
46606         Prompted by Bruno Haible.
46607
46608 2009-02-04  Jim Meyering  <meyering@redhat.com>
46609
46610         fsusage.c: correct copyright year
46611         * lib/fsusage.c: Reflect year in which the change is pushed into
46612
46613         avoid misc. warnings
46614         * lib/fsusage.c (UNUSED_PARAM): Define.
46615         (get_fs_usage): Mark parameter "disk" as unused.
46616         * lib/getugroups.c (getgrent): Use "void" in prototype.
46617         * lib/mountlist.c: Mark unused parameters.
46618         (read_file_system_list): Declare a local with "const".
46619         * lib/nanosleep.c (getnow): Declare static.
46620         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46621
46622         dirfd: set errno upon failure
46623         * lib/dirfd.c: Include <errno.h>.
46624         Set errno to ENOTSUP when returning -1.
46625         * modules/dirfd (Depends-on): Add errno.
46626         Suggested by John Kodis <kodis@comcast.net>.
46627
46628 2009-02-01  Bruno Haible  <bruno@clisp.org>
46629
46630         Don't assume sizeof (long) >= sizeof (void *).
46631         * lib/memcmp.c: Include stdint.h.
46632         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46633         srcp2 to 'const byte *'.
46634         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46635         types to uintptr_t.
46636         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46637         * modules/memcmp (Depends-on): Add stdint.
46638         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46639
46640 2009-01-30  Eric Blake  <ebb9@byu.net>
46641
46642         fix more require-before-expand issues
46643         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46644         expand, AC_PROG_AWK.
46645         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46646
46647 2009-01-28  Eric Blake  <ebb9@byu.net>
46648
46649         version-etc: use consistent URL formatting
46650         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46651         Improve formatting.  Use fputs for string without %.
46652
46653 2009-01-28  Jim Meyering  <meyering@redhat.com>
46654
46655         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46656         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46657         "underquoted definition of NAME" from autoconf-2.59.
46658
46659 2009-01-28  Bruno Haible  <bruno@clisp.org>
46660
46661         * doc/gnulib.texi: Add "Obsolete modules" to index.
46662
46663 2009-01-28  Jim Meyering  <meyering@redhat.com>
46664
46665         useless-if-before-free: recognize more variants
46666         * build-aux/useless-if-before-free: Also recognize e.g.,
46667         if (NULL != p) free (p);
46668
46669 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
46670
46671         test-getaddrinfo: skip (don't fail) this test when there's no network
46672         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
46673         on the presumption that it means you lack network access.
46674
46675 2009-01-26  Jim Meyering  <meyering@redhat.com>
46676
46677         fflush: avoid warnings on modern systems
46678         * lib/fflush.c (rpl_fflush): Move declarations of locals,
46679         pos and result, into scopes where they're used.
46680
46681 2009-01-26  Eric Blake  <ebb9@byu.net>
46682
46683         Silence warning reintroduced by recent extensions patch.
46684         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
46685         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
46686         autoconf.
46687
46688         Backport improved autoconf semantics of AC_DEFUN_ONCE.
46689         * m4/00gnulib.m4: New file.
46690         * gnulib-tool (func_get_filelist): Always use it.
46691         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
46692         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
46693
46694 2009-01-25  Bruno Haible  <bruno@clisp.org>
46695
46696         Make test-quotearg work on MacOS X and AIX.
46697         * tests/test-quotearg.sh: New file.
46698         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
46699         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
46700         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
46701         include <libintl.h>.
46702         (fake_locale): Remove variable.
46703         (gettext, dgettext, dcgettext): Remove functions.
46704         (main): Instead of setting a fake locale, set a real locale. Call
46705         textdomain and bindtextdomain.
46706         * modules/quotearg-tests (Files): Add the new files.
46707         (Depends-on): Add gettext, setenv, unsetenv.
46708         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46709         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
46710         Augment TESTS_ENVIRONMENT.
46711
46712 2009-01-25  Bruno Haible  <bruno@clisp.org>
46713
46714         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
46715         fr_FR.ISO8859-1 locale on MacOS X.
46716         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
46717         ja_JP.eucJP locale on MacOS X.
46718         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
46719         zh_CN.GB18030 locale on MacOS X.
46720
46721 2009-01-25  Bruno Haible  <bruno@clisp.org>
46722
46723         Avoid link errors on MacOS X 10.3.
46724         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
46725         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46726
46727 2009-01-25  Bruno Haible  <bruno@clisp.org>
46728
46729         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46730         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
46731         * modules/pipe (Files): Remove m4/posix_spawn.m4.
46732         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46733         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
46734         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46735         posix_spawnattr_init, posix_spawnattr_setsigmask,
46736         posix_spawnattr_setflags, posix_spawnattr_destroy.
46737
46738         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46739         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
46740         * modules/execute (Files): Remove m4/posix_spawn.m4.
46741         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46742         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46743         posix_spawnattr_init, posix_spawnattr_setsigmask,
46744         posix_spawnattr_setflags, posix_spawnattr_destroy.
46745
46746 2009-01-25  Bruno Haible  <bruno@clisp.org>
46747
46748         * lib/glthread/threadlib.c: Include <stdlib.h>.
46749
46750 2009-01-25  Bruno Haible  <bruno@clisp.org>
46751
46752         * lib/glthread/threadlib.c (dummy): New declaration.
46753
46754 2009-01-25  Bruno Haible  <bruno@clisp.org>
46755
46756         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
46757         multibyte characters also for the GB18030 encoding. Don't crash when
46758         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
46759
46760 2009-01-25  Bruno Haible  <bruno@clisp.org>
46761
46762         Avoid redefining 'struct random_data' on OSF/1 5.1.
46763         * lib/stdlib.in.h: Include <random.h> if it exists.
46764         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
46765         HAVE_RANDOM_H. Include <random.h> when testing whether
46766         'struct random_data' exists.
46767         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
46768
46769 2009-01-25  Bruno Haible  <bruno@clisp.org>
46770
46771         Don't install charset.alias on MacOS X >= 10.3.
46772         * lib/localcharset.c (DARWIN7): New macro.
46773         (get_charset_aliases): Hardcode the result for Darwin7.
46774         * modules/localcharset (install-exec-local): Don't install
46775         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
46776
46777 2009-01-25  Bruno Haible  <bruno@clisp.org>
46778
46779         Don't install charset.alias on mingw and Cygwin.
46780         * modules/localcharset (install-exec-local): Don't install
46781         charset.alias on mingw and Cygwin, if the file does not yet exist.
46782         The result for these platforms is hardcoded in localcharset.c.
46783
46784 2009-01-25  Bruno Haible  <bruno@clisp.org>
46785
46786         Make it possible again to use AC_GNU_SOURCE together with gnulib.
46787         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
46788         before requiring AC_USE_SYSTEM_EXTENSIONS.
46789
46790 2009-01-25  Jim Meyering  <meyering@redhat.com>
46791
46792         c-strtod: avoid warnings
46793         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
46794         "assignment discards qualifiers from pointer target type" warnings.
46795
46796 2009-01-24  Bruno Haible  <bruno@clisp.org>
46797
46798         Add support for non-UTF-8 locales on MacOS X.
46799         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
46800         canonical encodings. For Darwin 7 and newer, don't map traditional
46801         encodings to UTF-8.
46802         Reported by Vincent Lefevre <vincent@vinc17.org>
46803         at <http://savannah.gnu.org/bugs/?25235>.
46804
46805 2009-01-24  Bruno Haible  <bruno@clisp.org>
46806
46807         * doc/gnulib.texi (Obsolete modules): New section.
46808         Reported by Mike Frysinger <vapier@gentoo.org>.
46809
46810 2009-01-24  Bruno Haible  <bruno@clisp.org>
46811
46812         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
46813         (%.dvi): New rule.
46814
46815 2009-01-24  Bruno Haible  <bruno@clisp.org>
46816
46817         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
46818         Reported by Eric Blake.
46819
46820 2009-01-24  Bruno Haible  <bruno@clisp.org>
46821
46822         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
46823         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
46824         Reported by Gary V. Vaughan <gary@gnu.org>.
46825
46826 2009-01-24  Bruno Haible  <bruno@clisp.org>
46827
46828         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
46829
46830 2009-01-23  Bruno Haible  <bruno@clisp.org>
46831
46832         Make c-strtod, c-strtold usable in libraries.
46833         * lib/c-strtod.c: Include string.h instead of xalloc.h.
46834         (C_STRTOD): Call strdup instead of xstrdup.
46835         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
46836         * modules/c-strtold (Depends-on): Likewise.
46837         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
46838         * NEWS: Mention the change.
46839         Reported by Michael Gold <mgold@ncf.ca>.
46840
46841 2009-01-23  Jim Meyering  <meyering@redhat.com>
46842
46843         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
46844         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
46845         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
46846
46847 2009-01-23  Simon Josefsson  <simon@josefsson.org>
46848
46849         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
46850         GNU CoreUtils.
46851         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
46852         * modules/version-etc (Description): Update.
46853
46854 2009-01-22  Bruno Haible  <bruno@clisp.org>
46855
46856         Cache the C locale object.
46857         * lib/c-strtod.c (c_locale_cache): New variable.
46858         (c_locale): New function.
46859         (C_STRTOD): Use it, and don't call freelocale.
46860         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
46861         Suggested by Paolo Bonzini.
46862
46863 2009-01-21  Bruno Haible  <bruno@clisp.org>
46864
46865         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
46866         conditions other than overflow.
46867
46868 2009-01-21  Bruno Haible  <bruno@clisp.org>
46869
46870         * lib/c-strtod.c: Include errno.h.
46871         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
46872         value from STRTOD_L and STRTOD.
46873
46874 2009-01-21  Bruno Haible  <bruno@clisp.org>
46875         and Jim Meyering  <meyering@redhat.com>
46876
46877         nanosleep: skip configure test (fail it) for apple universal builds
46878         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
46879         universal builds, assume that nanosleep does not work.
46880         * modules/nanosleep (Depends-on): Add multiarch.
46881
46882         mktime: skip configure test (fail it) for apple universal builds
46883         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
46884         universal builds, assume that mktime does not work.
46885         * modules/mktime (Depends-on): Add multiarch.
46886
46887 2009-01-21  Eric Blake  <ebb9@byu.net>
46888
46889         multiarch: avoid expand-before-require warning
46890         * modules/multiarch (configure.ac): Require, rather than expand,
46891         gl_MULTIARCH.
46892         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
46893         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
46894         enforce that all clients require it.  Partial reversion of
46895         2008-12-29 patch.
46896
46897         error: avoid expand-before-require warning
46898         * modules/errno (configure.ac): Require, rather than expand,
46899         gl_HEADER_ERRNO_H.
46900         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
46901         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
46902         enforce that all clients require it.
46903
46904         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
46905         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
46906         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
46907         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
46908
46909 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
46910
46911         Revert:
46912         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46913
46914         regex: do not depend on obsolete modules.
46915         * modules/regex: Remove memcmp and memmove.
46916
46917 2009-01-20  Bruno Haible  <bruno@clisp.org>
46918
46919         Make the 'link' module link on Windows NT 4.
46920         * lib/link.c (_WIN32_WINNT): Don't define.
46921         (CreateHardLinkFuncType): New type.
46922         (CreateHardLinkFunc, initialized): New variables.
46923         (initialize): New function.
46924         (link): Invoke CreateHardLink indirectly through the function pointer.
46925
46926 2009-01-20  Bruno Haible  <bruno@clisp.org>
46927
46928         Fix compilation failure on mingw.
46929         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
46930
46931 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
46932
46933         * doc/c-strtod.texi: Mention a couple of restrictions.
46934
46935 2009-01-20  Jim Meyering  <meyering@redhat.com>
46936
46937         gettimeofday: move more declarations out of functions
46938         * lib/gettimeofday.c: Move extern declarations of tzset and
46939         gmtime out of containing functions.  Prompted by Bruno Haible.
46940
46941 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46942
46943         regex: do not depend on obsolete modules.
46944         * modules/regex: Remove memcmp and memmove.
46945
46946 2009-01-19  Bruno Haible  <bruno@clisp.org>
46947
46948         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46949         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
46950         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46951         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
46952         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
46953
46954 2009-01-19  Bruno Haible  <bruno@clisp.org>
46955
46956         * tests/test-link.c: Include <errno.h>.
46957         (main): Exit with code 77 when a hard link cannot be created due to
46958         the file system.
46959         * tests/test-link.sh: Skip test when a hard link cannot be created due
46960         to the file system.
46961         Suggested by Eric Blake.
46962
46963 2009-01-19  Martin Lambers  <marlam@marlam.de>
46964
46965         * modules/link-tests: New file.
46966         * tests/test-link.sh: New file.
46967         * tests/test-link.c: New file.
46968
46969 2009-01-19  Eric Blake  <ebb9@byu.net>
46970
46971         doc: mention another function added in cygwin 1.7.0
46972         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
46973         Another new function in cygwin 1.7.
46974
46975 2009-01-19  Bruno Haible  <bruno@clisp.org>
46976
46977         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46978         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
46979         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
46980         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46981         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46982         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
46983         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
46984         * m4/md4.m4 (gl_MD4): Likewise.
46985         * m4/md5.m4 (gl_MD5): Likewise.
46986         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
46987         * m4/sha1.m4 (gl_SHA1): Likewise.
46988         * m4/sha256.m4 (gl_SHA256): Likewise.
46989         * m4/sha512.m4 (gl_SHA512): Likewise.
46990
46991 2009-01-19  Bruno Haible  <bruno@clisp.org>
46992
46993         * modules/uniname/uniname-tests (Depends-on): Add progname.
46994         * tests/uniname/test-uninames.c: Include progname.h.
46995         (main): Call set_program_name.
46996
46997         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
46998         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
46999         (main): Call set_program_name.
47000
47001         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47002         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47003         (main): Call set_program_name.
47004
47005         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47006         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47007         (main): Call set_program_name.
47008
47009         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47010         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47011         (main): Call set_program_name.
47012
47013         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47014         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47015         (main): Call set_program_name.
47016
47017         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47018         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47019         (main): Call set_program_name.
47020
47021         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47022         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47023         (main): Call set_program_name.
47024
47025         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47026         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47027         (main): Call set_program_name.
47028
47029 2009-01-19  Eric Blake  <ebb9@byu.net>
47030
47031         test-unistd: test previous patch
47032         * tests/test-unistd.c: Test *_FILENO macros.
47033
47034         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47035         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47036         Guarantee a definition.
47037         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47038         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47039         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47040         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47041         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47042         Likewise.
47043         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47044         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47045         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47046         Likewise.
47047         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47048         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47049         (STDERR_FILENO): Likewise.
47050         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47051         (STDERR_FILENO): Likewise.
47052         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47053         (STDERR_FILENO): Likewise.
47054         Reported by Elbert Pol.
47055
47056 2009-01-19  Eric Blake  <ebb9@byu.net>
47057
47058         doc: mention more functions added in cygwin 1.7.0
47059         * doc/posix-functions/abort.texi (abort): Update wording related
47060         to cygwin.
47061         * doc/posix-functions/daylight.texi (daylight): Likewise.
47062         * doc/posix-functions/optarg.texi (optarg): Likewise.
47063         * doc/posix-functions/optarg.texi (opterr): Likewise.
47064         * doc/posix-functions/optarg.texi (optind): Likewise.
47065         * doc/posix-functions/optarg.texi (optopt): Likewise.
47066         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47067         worked in 1.5.x, and was withdrawn in 1.7.
47068         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47069         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47070         cygwin versions.
47071         * doc/posix-functions/perror.texi (perror): Likewise.
47072         * doc/posix-functions/printf.texi (printf): Likewise.
47073         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47074         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47075         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47076         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47077         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47078         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47079         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47080         Likewise.
47081         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47082         Likewise.
47083         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47084         this function.
47085         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47086         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47087         Likewise.
47088         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47089         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47090         * doc/posix-functions/confstr.texi (confstr): Likewise.
47091         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47092         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47093         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47094         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47095         * doc/posix-functions/fputws.texi (fputws): Likewise.
47096         * doc/posix-functions/fwide.texi (fwide): Likewise.
47097         * doc/posix-functions/getwc.texi (getwc): Likewise.
47098         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47099         * doc/posix-functions/putwc.texi (putwc): Likewise.
47100         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47101         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47102         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47103         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47104         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47105         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47106         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47107         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47108         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47109         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47110         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47111
47112 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47113
47114         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47115         * lib/ioctl.c: Include <sys/ioctl.h>.
47116
47117 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47118
47119         * modules/getdate-tests (Depends-on): Add progname.
47120         * tests/test-getdate.c: Use progname module, to avoid link errors
47121         on non-glibc systems.
47122
47123 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47124
47125         * modules/filenamecat-tests (Depends-on): Add progname.
47126         * modules/fstrcmp-tests (Depends-on): Likewise.
47127
47128         * tests/test-filenamecat.c: Use progname module, to avoid link
47129         errors on non-glibc systems.
47130         * tests/test-fstrcmp.c: Likewise.
47131
47132 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47133
47134         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47135         * lib/gettimeofday.c: Move extern declaration out of function.
47136
47137 2009-01-18  Bruno Haible  <bruno@clisp.org>
47138
47139         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47140         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47141         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47142
47143 2009-01-18  Bruno Haible  <bruno@clisp.org>
47144
47145         * lib/strftime.c (MEMPCPY): Remove unused macro.
47146         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47147
47148 2009-01-18  Martin Lambers  <marlam@marlam.de>
47149
47150         New module 'link'.
47151         * lib/unistd.in.h (link): New declaration.
47152         * lib/link.c: New file.
47153         * m4/link.m4: New file.
47154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47155         HAVE_LINK.
47156         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47157         * modules/link: New file.
47158         * doc/posix-functions/link.texi: Mention the new module.
47159
47160 2009-01-18  Bruno Haible  <bruno@clisp.org>
47161
47162         * tests/test-avltree_list.c (main): Call set_program_name.
47163         * tests/test-avltree_oset.c (main): Likewise.
47164         * tests/test-obstack-printf.c: Include progname.h.
47165         (main): Call set_program_name.
47166         * tests/test-quotearg.c: Include progname.h.
47167         (main): Call set_program_name.
47168         * tests/test-xmemdup0.c: Include progname.h.
47169         (main): Call set_program_name.
47170
47171 2009-01-18  Bruno Haible  <bruno@clisp.org>
47172
47173         New module 'alphasort'.
47174         * lib/dirent.in.h (alphasort): New declaration.
47175         * lib/alphasort.c: New file, from glibc with modifications.
47176         * m4/alphasort.m4: New file.
47177         * modules/alphasort: New file.
47178         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47179         HAVE_ALPHASORT.
47180         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47181         HAVE_ALPHASORT.
47182         * doc/posix-functions/alphasort.texi: Mention the new module and the
47183         portability problems.
47184
47185 2009-01-18  Bruno Haible  <bruno@clisp.org>
47186
47187         New module 'scandir'.
47188         * lib/dirent.in.h (scandir): New declaration.
47189         * lib/scandir.c: New file, from glibc with modifications.
47190         * m4/scandir.m4: New file.
47191         * modules/scandir: New file.
47192         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47193         HAVE_SCANDIR.
47194         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47195         HAVE_SCANDIR.
47196         * doc/posix-functions/scandir.texi: Mention the new module and the
47197         portability problems.
47198
47199 2009-01-17  Bruno Haible  <bruno@clisp.org>
47200
47201         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47202         Update documentation.
47203         (func_remove_suffix): Escape all dots in the suffix. Update
47204         documentation.
47205         (func_filter_filelist): Update documentation.
47206         Reported by Ralf Wildenhues.
47207
47208 2009-01-17  Bruno Haible  <bruno@clisp.org>
47209
47210         * modules/dprintf-posix-tests: New file.
47211         * tests/test-dprintf-posix.sh: New file.
47212         * tests/test-dprintf-posix.c: New file.
47213
47214         New modules 'dprintf', 'dprintf-posix'.
47215         * lib/stdio.in.h (dprintf): New declaration.
47216         * lib/dprintf.c: New file.
47217         * m4/dprintf.m4: New file.
47218         * m4/dprintf-posix.m4: New file.
47219         * modules/dprintf: New file.
47220         * modules/dprintf-posix: New file.
47221         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47222         HAVE_DPRINTF, REPLACE_DPRINTF.
47223         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47224         HAVE_DPRINTF, REPLACE_DPRINTF.
47225         * doc/posix-functions/dprintf.texi: Mention the new modules.
47226
47227 2009-01-17  Bruno Haible  <bruno@clisp.org>
47228
47229         * modules/vdprintf-posix-tests: New file.
47230         * tests/test-vdprintf-posix.sh: New file.
47231         * tests/test-vdprintf-posix.c: New file.
47232
47233         New modules 'vdprintf', 'vdprintf-posix'.
47234         * lib/stdio.in.h (vdprintf): New declaration.
47235         * lib/vdprintf.c: New file.
47236         * m4/vdprintf.m4: New file.
47237         * m4/vdprintf-posix.m4: New file.
47238         * modules/vdprintf: New file.
47239         * modules/vdprintf-posix: New file.
47240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47241         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47242         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47243         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47244         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47245
47246 2009-01-17  Bruno Haible  <bruno@clisp.org>
47247
47248         Fix replacement of fopen on mingw.
47249         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47250         mingw.
47251
47252 2009-01-17  Bruno Haible  <bruno@clisp.org>
47253
47254         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47255         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47256
47257 2009-01-17  Bruno Haible  <bruno@clisp.org>
47258
47259         Avoid test-fflush2.sh failure on mingw.
47260         * tests/test-fflush2.c: Include binary-io.h.
47261         (main): Put standard input into binary mode.
47262         * modules/fflush-tests (Depends-on): Add binary-io.
47263
47264 2009-01-17  Bruno Haible  <bruno@clisp.org>
47265
47266         * lib/wchar.in.h: In another particular situation, include only the
47267         system's <wchar.h> file.
47268         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47269         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47270         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47271
47272 2009-01-17  Bruno Haible  <bruno@clisp.org>
47273
47274         Support for stripping executables in --enable-relocatable.
47275         * build-aux/install-reloc: Expect one more argument, or an environment
47276         variable RELOC_STRIP_PROG. If set, strip the destination program and
47277         its wrapper.
47278         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47279         RELOC_STRIP_PROG.
47280         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47281         to set RELOCATABLE_STRIP.
47282         * NEWS: Mention the new Makefile requirement.
47283
47284 2009-01-17  Bruno Haible  <bruno@clisp.org>
47285
47286         * build-aux/install-reloc: Remove debugging information left over by
47287         C compiler on MacOS X.
47288
47289 2009-01-17  Bruno Haible  <bruno@clisp.org>
47290
47291         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47292         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47293         _NSGetExecutablePath.
47294
47295 2009-01-16  Jim Meyering  <meyering@redhat.com>
47296
47297         strerror: avoid warnings about discarding "const"
47298         * lib/strerror.c (rpl_strerror): Instead of returning a const
47299         string from each and every "case", use a variable, and add a single
47300         cast after the switch.
47301
47302 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47303
47304         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47305
47306 2009-01-16  Bruno Haible  <bruno@clisp.org>
47307
47308         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47309         array initializer syntax that also works in C++ mode.
47310         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47311
47312 2009-01-16  Jim Meyering  <meyering@redhat.com>
47313
47314         poll: suppress a warning
47315         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47316         to ignore "...unsigned expression < 0 is always false" warnings.
47317
47318 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47319
47320         poll: remove declarations of unused variables
47321         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
47322         sockbuf and optlen.
47323
47324 2009-01-15  Bruno Haible  <bruno@clisp.org>
47325
47326         Make fflush-after-ungetc POSIX compliant on BSD systems.
47327         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
47328         (clear_ungetc_buffer): Implement also for other systems.
47329         (rpl_fflush): On glibc systems, invoke
47330         clear_ungetc_buffer_preserving_position. Otherwise, invoke
47331         clear_ungetc_buffer after fetching the stream's position, not before.
47332
47333 2009-01-15  Bruno Haible  <bruno@clisp.org>
47334
47335         Make fflush-after-ungetc POSIX compliant on glibc systems.
47336         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
47337         after ungetc.
47338         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
47339         (rpl_fflush): On glibc systems, simply call the system's fflush
47340         function after clearing the ungetc buffer.
47341         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
47342         Instead, lseek only to the end of file, then use the system's fseeko
47343         for the rest. On glibc systems, reset the EOF indicator bit.
47344
47345 2009-01-15  Jim Meyering  <meyering@redhat.com>
47346
47347         openmp.m4: revert quote-adding change, for portability to older autoconf
47348         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
47349         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
47350         Simon Josefsson noticed the problem when using autoconf-2.61.
47351
47352 2009-01-15  Bruno Haible  <bruno@clisp.org>
47353
47354         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
47355         * tests/test-fflush2.c (ASSERT): Always fail.
47356         (main): Add two tests for fflush() after ungetc(), taking into account
47357         the Austin Group's clarification.
47358         Suggested by Eric Blake.
47359
47360 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47361
47362         mktime.m4: remove K&R-style function prototypes
47363         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47364         for the Sun C++ compiler.
47365
47366 2009-01-14  Bruno Haible  <bruno@clisp.org>
47367
47368         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47369         while including <wchar.h>.
47370         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47371         the system's <wchar.h> file.
47372         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47373
47374 2009-01-14  Bruno Haible  <bruno@clisp.org>
47375
47376         * m4/csharp.m4: Don't mention gettext on the serial number line.
47377         * m4/csharpexec.m4: Likewise.
47378         * m4/eaccess.m4: Likewise.
47379         * m4/javaexec.m4: Likewise.
47380         * m4/sig_atomic_t.m4: Likewise.
47381         * m4/tmpdir.m4: Likewise.
47382         * m4/intldir.m4: Bump gettext version.
47383         * m4/lib-ld.m4: Likewise.
47384
47385 2009-01-14  Bruno Haible  <bruno@clisp.org>
47386
47387         * lib/progname.c (set_program_name): Add more comments.
47388         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47389
47390 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47391
47392         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47393         were sys/stat.h does not define it.
47394
47395 2009-01-14  Jim Meyering  <meyering@redhat.com>
47396
47397         many *.m4 files: improve m4 quoting
47398         99% of this change was performed by running the following commands:
47399         git ls-files | grep '\.m4$' | xargs perl -pi \
47400           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
47401           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47402           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47403           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
47404         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
47405         The remainder were to add Copyright dates, increment serial numbers,
47406         undo some changes in comments, exclude m4/intl.m4, and add quotes
47407         around the "1" in ",1" where the unusual spacing prohibited the
47408         above regexps from doing the job.  For more details, see
47409         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
47410         * m4/acl.m4: Modified.
47411         * m4/afs.m4: Likewise.
47412         * m4/alloca.m4: Likewise.
47413         * m4/argp.m4: Likewise.
47414         * m4/argz.m4: Likewise.
47415         * m4/atexit.m4: Likewise.
47416         * m4/bison-i18n.m4: Likewise.
47417         * m4/bison.m4: Likewise.
47418         * m4/byteswap.m4: Likewise.
47419         * m4/c-stack.m4: Likewise.
47420         * m4/c-strtod.m4: Likewise.
47421         * m4/calloc.m4: Likewise.
47422         * m4/canonicalize-lgpl.m4: Likewise.
47423         * m4/chown.m4: Likewise.
47424         * m4/clock_time.m4: Likewise.
47425         * m4/codeset.m4: Likewise.
47426         * m4/copy-file.m4: Likewise.
47427         * m4/csharp.m4: Likewise.
47428         * m4/csharpcomp.m4: Likewise.
47429         * m4/csharpexec.m4: Likewise.
47430         * m4/d-ino.m4: Likewise.
47431         * m4/d-type.m4: Likewise.
47432         * m4/dirfd.m4: Likewise.
47433         * m4/double-slash-root.m4: Likewise.
47434         * m4/eaccess.m4: Likewise.
47435         * m4/eealloc.m4: Likewise.
47436         * m4/environ.m4: Likewise.
47437         * m4/errno_h.m4: Likewise.
47438         * m4/euidaccess.m4: Likewise.
47439         * m4/execute.m4: Likewise.
47440         * m4/fatal-signal.m4: Likewise.
47441         * m4/fchdir.m4: Likewise.
47442         * m4/fcntl_h.m4: Likewise.
47443         * m4/fileblocks.m4: Likewise.
47444         * m4/filenamecat.m4: Likewise.
47445         * m4/findprog.m4: Likewise.
47446         * m4/flexmember.m4: Likewise.
47447         * m4/fnmatch.m4: Likewise.
47448         * m4/fopen.m4: Likewise.
47449         * m4/fpending.m4: Likewise.
47450         * m4/fprintf-posix.m4: Likewise.
47451         * m4/free.m4: Likewise.
47452         * m4/frexp.m4: Likewise.
47453         * m4/frexpl.m4: Likewise.
47454         * m4/fsusage.m4: Likewise.
47455         * m4/ftruncate.m4: Likewise.
47456         * m4/gc-camellia.m4: Likewise.
47457         * m4/gc-random.m4: Likewise.
47458         * m4/gc.m4: Likewise.
47459         * m4/getaddrinfo.m4: Likewise.
47460         * m4/getcwd-abort-bug.m4: Likewise.
47461         * m4/getcwd-path-max.m4: Likewise.
47462         * m4/getdate.m4: Likewise.
47463         * m4/getdomainname.m4: Likewise.
47464         * m4/getgroups.m4: Likewise.
47465         * m4/gethostname.m4: Likewise.
47466         * m4/gethrxtime.m4: Likewise.
47467         * m4/getline.m4: Likewise.
47468         * m4/getloadavg.m4: Likewise.
47469         * m4/getndelim2.m4: Likewise.
47470         * m4/getpass.m4: Likewise.
47471         * m4/gettext.m4: Likewise.
47472         * m4/gettime.m4: Likewise.
47473         * m4/gettimeofday.m4: Likewise.
47474         * m4/gnulib-common.m4: Likewise.
47475         * m4/group-member.m4: Likewise.
47476         * m4/host-os.m4: Likewise.
47477         * m4/iconv.m4: Likewise.
47478         * m4/iconv_open.m4: Likewise.
47479         * m4/inet_ntop.m4: Likewise.
47480         * m4/inet_pton.m4: Likewise.
47481         * m4/inline.m4: Likewise.
47482         * m4/intldir.m4: Likewise.
47483         * m4/intlmacosx.m4: Likewise.
47484         * m4/intmax.m4: Likewise.
47485         * m4/intmax_t.m4: Likewise.
47486         * m4/inttypes.m4: Likewise.
47487         * m4/inttypes_h.m4: Likewise.
47488         * m4/inttypes-pri.m4: Likewise.
47489         * m4/isapipe.m4: Likewise.
47490         * m4/isnand.m4: Likewise.
47491         * m4/isnanf.m4: Likewise.
47492         * m4/isnanl.m4: Likewise.
47493         * m4/javacomp.m4: Likewise.
47494         * m4/javaexec.m4: Likewise.
47495         * m4/jm-winsz1.m4: Likewise.
47496         * m4/jm-winsz2.m4: Likewise.
47497         * m4/lchown.m4: Likewise.
47498         * m4/lcmessage.m4: Likewise.
47499         * m4/ldexpl.m4: Likewise.
47500         * m4/lib-ld.m4: Likewise.
47501         * m4/lib-link.m4: Likewise.
47502         * m4/libsigsegv.m4: Likewise.
47503         * m4/link-follow.m4: Likewise.
47504         * m4/localcharset.m4: Likewise.
47505         * m4/locale-fr.m4: Likewise.
47506         * m4/locale-ja.m4: Likewise.
47507         * m4/locale-tr.m4: Likewise.
47508         * m4/locale-zh.m4: Likewise.
47509         * m4/lock.m4: Likewise.
47510         * m4/longlong.m4: Likewise.
47511         * m4/ls-mntd-fs.m4: Likewise.
47512         * m4/lstat.m4: Likewise.
47513         * m4/malloc.m4: Likewise.
47514         * m4/mathl.m4: Likewise.
47515         * m4/mbrtowc.m4: Likewise.
47516         * m4/mbstate_t.m4: Likewise.
47517         * m4/mbswidth.m4: Likewise.
47518         * m4/memchr.m4: Likewise.
47519         * m4/memcmp.m4: Likewise.
47520         * m4/memcpy.m4: Likewise.
47521         * m4/memmem.m4: Likewise.
47522         * m4/memmove.m4: Likewise.
47523         * m4/mempcpy.m4: Likewise.
47524         * m4/memrchr.m4: Likewise.
47525         * m4/memset.m4: Likewise.
47526         * m4/minmax.m4: Likewise.
47527         * m4/mkdir-slash.m4: Likewise.
47528         * m4/mkdtemp.m4: Likewise.
47529         * m4/mktime.m4: Likewise.
47530         * m4/mmap-anon.m4: Likewise.
47531         * m4/mountlist.m4: Likewise.
47532         * m4/nanosleep.m4: Likewise.
47533         * m4/nls.m4: Likewise.
47534         * m4/nocrash.m4: Likewise.
47535         * m4/open.m4: Likewise.
47536         * m4/openat.m4: Likewise.
47537         * m4/openmp.m4: Likewise.
47538         * m4/pathmax.m4: Likewise.
47539         * m4/perl.m4: Likewise.
47540         * m4/physmem.m4: Likewise.
47541         * m4/pipe.m4: Likewise.
47542         * m4/po.m4: Likewise.
47543         * m4/poll.m4: Likewise.
47544         * m4/posixtm.m4: Likewise.
47545         * m4/posixver.m4: Likewise.
47546         * m4/printf-frexp.m4: Likewise.
47547         * m4/printf-frexpl.m4: Likewise.
47548         * m4/printf-posix.m4: Likewise.
47549         * m4/printf-posix-rpl.m4: Likewise.
47550         * m4/printf.m4: Likewise.
47551         * m4/progtest.m4: Likewise.
47552         * m4/putenv.m4: Likewise.
47553         * m4/readline.m4: Likewise.
47554         * m4/readlink.m4: Likewise.
47555         * m4/readutmp.m4: Likewise.
47556         * m4/realloc.m4: Likewise.
47557         * m4/regex.m4: Likewise.
47558         * m4/relocatable.m4: Likewise.
47559         * m4/relocatable-lib.m4: Likewise.
47560         * m4/rename-dest-slash.m4: Likewise.
47561         * m4/rename.m4: Likewise.
47562         * m4/rmdir-errno.m4: Likewise.
47563         * m4/rmdir.m4: Likewise.
47564         * m4/roundf.m4: Likewise.
47565         * m4/roundl.m4: Likewise.
47566         * m4/rpmatch.m4: Likewise.
47567         * m4/save-cwd.m4: Likewise.
47568         * m4/selinux-selinux-h.m4: Likewise.
47569         * m4/setenv.m4: Likewise.
47570         * m4/settime.m4: Likewise.
47571         * m4/sig2str.m4: Likewise.
47572         * m4/sig_atomic_t.m4: Likewise.
47573         * m4/signalblocking.m4: Likewise.
47574         * m4/signbit.m4: Likewise.
47575         * m4/sigpipe.m4: Likewise.
47576         * m4/sockets.m4: Likewise.
47577         * m4/sockpfaf.m4: Likewise.
47578         * m4/st_dm_mode.m4: Likewise.
47579         * m4/stat-time.m4: Likewise.
47580         * m4/stdbool.m4: Likewise.
47581         * m4/stdint.m4: Likewise.
47582         * m4/stdint_h.m4: Likewise.
47583         * m4/stpcpy.m4: Likewise.
47584         * m4/stpncpy.m4: Likewise.
47585         * m4/strcase.m4: Likewise.
47586         * m4/strchrnul.m4: Likewise.
47587         * m4/strcspn.m4: Likewise.
47588         * m4/strdup.m4: Likewise.
47589         * m4/strftime.m4: Likewise.
47590         * m4/strndup.m4: Likewise.
47591         * m4/strnlen.m4: Likewise.
47592         * m4/strpbrk.m4: Likewise.
47593         * m4/strptime.m4: Likewise.
47594         * m4/strsep.m4: Likewise.
47595         * m4/strtod.m4: Likewise.
47596         * m4/strtoimax.m4: Likewise.
47597         * m4/strtok_r.m4: Likewise.
47598         * m4/strtol.m4: Likewise.
47599         * m4/strtoll.m4: Likewise.
47600         * m4/strtoul.m4: Likewise.
47601         * m4/strtoull.m4: Likewise.
47602         * m4/strtoumax.m4: Likewise.
47603         * m4/strverscmp.m4: Likewise.
47604         * m4/threadlib.m4: Likewise.
47605         * m4/timegm.m4: Likewise.
47606         * m4/tm_gmtoff.m4: Likewise.
47607         * m4/tmpdir.m4: Likewise.
47608         * m4/tmpfile.m4: Likewise.
47609         * m4/tzset.m4: Likewise.
47610         * m4/uintmax_t.m4: Likewise.
47611         * m4/unlinkdir.m4: Likewise.
47612         * m4/unlocked-io.m4: Likewise.
47613         * m4/uptime.m4: Likewise.
47614         * m4/userspec.m4: Likewise.
47615         * m4/utimbuf.m4: Likewise.
47616         * m4/utime.m4: Likewise.
47617         * m4/utimes-null.m4: Likewise.
47618         * m4/utimes.m4: Likewise.
47619         * m4/vararrays.m4: Likewise.
47620         * m4/vasnprintf.m4: Likewise.
47621         * m4/vfprintf-posix.m4: Likewise.
47622         * m4/vprintf-posix.m4: Likewise.
47623         * m4/wait-process.m4: Likewise.
47624         * m4/wchar_t.m4: Likewise.
47625         * m4/wint_t.m4: Likewise.
47626         * m4/write-any-file.m4: Likewise.
47627         * m4/yield.m4: Likewise.
47628
47629 2009-01-13  Bruno Haible  <bruno@clisp.org>
47630
47631         Avoid test-copy-file.sh failures when ACL support insufficient.
47632         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47633         TESTS_ENVIRONMENT.
47634         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47635         Reported by Jim Meyering.
47636
47637 2009-01-13  Bruno Haible  <bruno@clisp.org>
47638
47639         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47640         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47641         * modules/unistdio/u8-printf-parse (Files): Likewise.
47642         * modules/unistdio/u32-printf-parse (Files): Likewise.
47643         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47644
47645 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47646
47647         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47648         and m4/inttypes_h.m4 too.
47649
47650 2009-01-12  Eric Blake  <ebb9@byu.net>
47651
47652         tests: IRIX 6.2 cc can't compile -0.0 into .data
47653         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47654         rather than at compile-time.
47655         * tests/test-floorl.c (minus_zero): Likewise.
47656         * tests/test-frexpl.c (minus_zero): Likewise.
47657         * tests/test-isnan.c (minus_zerol): Likewise.
47658         * tests/test-isnanl.h (minus_zero): Likewise.
47659         * tests/test-ldexpl.c (minus_zero): Likewise.
47660         * tests/test-roundl.c (minus_zero): Likewise.
47661         * tests/test-signbit.c (minus_zerol): Likewise.
47662         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47663         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47664         * tests/test-truncl.c (minus_zero): Likewise.
47665         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47666         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47667         Reported by Tom G. Christensen and Nelson H. F. Beebe.
47668
47669 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47670
47671         regex: fix glibc bug 9697
47672         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
47673         handling.
47674
47675 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47676
47677         regex: fix glibc bug 697
47678         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
47679         being NULL also if there are no backreferences.
47680
47681 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47682
47683         regex: merge glibc changes
47684         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
47685         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
47686         re_string_skip_chars, re_string_reconstruct): Likewise.
47687         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
47688
47689 2009-01-07  Jim Meyering  <meyering@redhat.com>
47690
47691         poll: filter through cppi
47692         * lib/poll.c: Indent cpp directives to reflect nesting.
47693
47694 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
47695
47696         poll: don't return uninitialized
47697         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
47698
47699 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
47700
47701         avoid compile failure on AIX 6.1
47702         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
47703         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
47704
47705 2009-01-04  Jim Meyering  <meyering@redhat.com>
47706
47707         remove duplicate inclusion of <stdio.h>
47708         * tests/test-fprintf-posix.c: Likewise.
47709         * tests/test-printf-posix.c: Likewise.
47710         * tests/test-snprintf-posix.c: Likewise.
47711         * tests/test-sprintf-posix.c: Likewise.
47712         * tests/test-vasprintf-posix.c: Likewise.
47713         * tests/test-vfprintf-posix.c: Likewise.
47714         * tests/test-vprintf-posix.c: Likewise.
47715         * tests/test-vsnprintf-posix.c: Likewise.
47716         * tests/test-vsprintf-posix.c: Likewise.
47717
47718 2009-01-03  Jim Meyering  <meyering@redhat.com>
47719
47720         gnulib-tool: fix sed-based filtering
47721         * gnulib-tool (func_filter_filelist): Remove extra backslash
47722         in sed_fff_filter definition.
47723
47724 2009-01-02  Jim Meyering  <meyering@redhat.com>
47725
47726         strftime: avoid compilation failure on Solaris 2.6
47727         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
47728         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
47729         Don't #define mbrlen or mbsinit, since now they're guaranteed to
47730         be available.  Reported by Tom G. Christensen.  Details in
47731         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
47732
47733 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47734             Bruno Haible  <bruno@clisp.org>
47735
47736         Speed up gnulib-tool by doing more string processing through shell
47737         built-ins.
47738         * gnulib-tool (fast_func_append): New variable.
47739         (func_remove_prefix, func_remove_suffix): New functions.
47740         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
47741         (func_filter_filelist): New function.
47742         (func_get_dependencies): Use func_remove_suffix instead of sed.
47743         (func_get_automake_snippet): Use func_filter_filelist instead of a
47744         subshell and sed invocation.
47745
47746 2009-01-01  Bruno Haible  <bruno@clisp.org>
47747
47748         Fix a security bug.
47749         * gnulib-tool (func_import, import, update): Don't allow the characters
47750         '"', '$', '`', '\' in macro arguments that become part of commands that
47751         are evaluated.
47752
47753 2009-01-01  Bruno Haible  <bruno@clisp.org>
47754
47755         * gnulib-tool (func_reset_sigpipe): Add more comments.
47756
47757 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47758
47759         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
47760         func_emit_tests_Makefile_am, func_import): Abort loops early if we
47761         already know the answer.
47762
47763 2009-01-01  Jim Meyering  <meyering@redhat.com>
47764
47765         * lib/version-etc.c (version_etc_va): Update copyright year.
47766
47767 2008-12-30  Bruno Haible  <bruno@clisp.org>
47768
47769         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
47770         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
47771         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
47772
47773 2008-12-29  Eric Blake  <ebb9@byu.net>
47774
47775         multiarch: avoid autoconf AC_REQUIRE bug
47776         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
47777         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
47778         2.63 and older.
47779         Reported by Bruno Haible, and analyzed in
47780         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
47781
47782 2008-12-29  Bruno Haible  <bruno@clisp.org>
47783
47784         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
47785         files in subdirectories correctly.
47786         Reported by Ralf Wildenhues.
47787
47788 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47789
47790         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
47791         rather than 'join FILE -', for Solaris join.
47792
47793 2008-12-29  Bruno Haible  <bruno@clisp.org>
47794
47795         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
47796         quoting.
47797         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47798         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47799         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47800         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
47801         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47802         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47803         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47804         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47805         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47806         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47807         * m4/nls.m4 (AM_NLS): Likewise.
47808         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
47809         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47810         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47811         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47812         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47813         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47814         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
47815         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47816         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47817         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47818         * m4/xsize.m4 (gl_XSIZE): Likewise.
47819         Suggested by Jim Meyering.
47820
47821 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47822
47823         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
47824         * lib/parse-duration.c: use a switch instead of cascading if's.
47825
47826 2008-12-29  Eric Blake  <ebb9@byu.net>
47827
47828         wchar.h: supply WEOF on Irix 5.3
47829         * lib/wchar.in.h (wint_t): Also supply WEOF.
47830         * lib/wctype.in.h (wint_t): Likewise.
47831         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
47832         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
47833         Reported by Tom G. Christensen.
47834
47835 2008-12-26  Bruno Haible  <bruno@clisp.org>
47836
47837         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
47838         i486, i586, i686.
47839
47840 2008-12-26  Bruno Haible  <bruno@clisp.org>
47841
47842         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
47843
47844 2008-12-26  Bruno Haible  <bruno@clisp.org>
47845
47846         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
47847         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
47848         not __STDC_CONSTANT_MACROS.
47849         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47850
47851 2008-12-25  Bruno Haible  <bruno@clisp.org>
47852
47853         Add support for universal builds to vasnprintf.
47854         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
47855         universal builds, guess no.
47856         * modules/vasnprintf-posix (Depends-on): Add multiarch.
47857         * modules/vasprintf-posix (Depends-on): Likewise.
47858         * modules/fprintf-posix (Depends-on): Likewise.
47859         * modules/vfprintf-posix (Depends-on): Likewise.
47860         * modules/snprintf-posix (Depends-on): Likewise.
47861         * modules/vsnprintf-posix (Depends-on): Likewise.
47862         * modules/sprintf-posix (Depends-on): Likewise.
47863         * modules/vsprintf-posix (Depends-on): Likewise.
47864         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47865         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47866         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47867         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47868         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47869         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47870         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47871
47872         Add support for universal builds to <inttypes.h>.
47873         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
47874         _SCNu64_PREFIX): In Apple
47875         universal builds, define directly, using _LP64.
47876         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
47877         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
47878         * modules/inttypes (Depends-on): Add multiarch.
47879         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47880
47881         Add support for universal builds to <stdint.h>.
47882         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
47883         universal builds, define directly, using _LP64.
47884         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
47885         Apple universal builds, don't test for the size and suffix of ptrdiff_t
47886         and size_t.
47887         * modules/stdint (Depends-on): Add multiarch.
47888         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47889
47890         New module 'multiarch'.
47891         * modules/multiarch: New file.
47892         * m4/multiarch.m4: New file.
47893
47894 2008-12-25  Bruno Haible  <bruno@clisp.org>
47895
47896         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
47897
47898 2008-12-25  Bruno Haible  <bruno@clisp.org>
47899
47900         * modules/btowc (License): Relicense under LGPLv2+.
47901         * modules/mbsinit (License): Likewise.
47902         * modules/mbrtowc (License): Likewise.
47903         * modules/wcrtomb (License): Likewise.
47904         * modules/streq (License): Likewise.
47905         Reported by David Lutterkort <lutter@redhat.com>.
47906
47907 2008-12-23  Bruno Haible  <bruno@clisp.org>
47908
47909         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
47910
47911 2008-12-23  Bruno Haible  <bruno@clisp.org>
47912
47913         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
47914         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
47915         GETADDRINFO_LIB, not in LIBS.
47916         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
47917         * modules/canon-host (Link): Likewise.
47918         * NEWS: Mention the change.
47919         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
47920         GETADDRINFO_LIB.
47921
47922 2008-12-22  Bruno Haible  <bruno@clisp.org>
47923
47924         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
47925         * doc/posix-functions/iswalpha_l.texi: Likewise.
47926         * doc/posix-functions/iswblank_l.texi: Likewise.
47927         * doc/posix-functions/iswcntrl_l.texi: Likewise.
47928         * doc/posix-functions/iswctype_l.texi: Likewise.
47929         * doc/posix-functions/iswdigit_l.texi: Likewise.
47930         * doc/posix-functions/iswgraph_l.texi: Likewise.
47931         * doc/posix-functions/iswlower_l.texi: Likewise.
47932         * doc/posix-functions/iswprint_l.texi: Likewise.
47933         * doc/posix-functions/iswpunct_l.texi: Likewise.
47934         * doc/posix-functions/iswspace_l.texi: Likewise.
47935         * doc/posix-functions/iswupper_l.texi: Likewise.
47936         * doc/posix-functions/iswxdigit_l.texi: Likewise.
47937         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
47938         * doc/posix-functions/open_wmemstream.texi: Likewise.
47939         * doc/posix-functions/swscanf.texi: Likewise.
47940         * doc/posix-functions/towctrans_l.texi: Likewise.
47941         * doc/posix-functions/towlower.texi: Likewise.
47942         * doc/posix-functions/towlower_l.texi: Likewise.
47943         * doc/posix-functions/towupper.texi: Likewise.
47944         * doc/posix-functions/towupper_l.texi: Likewise.
47945         * doc/posix-functions/vfwprintf.texi: Likewise.
47946         * doc/posix-functions/vfwscanf.texi: Likewise.
47947         * doc/posix-functions/vswscanf.texi: Likewise.
47948         * doc/posix-functions/vwprintf.texi: Likewise.
47949         * doc/posix-functions/vwscanf.texi: Likewise.
47950         * doc/posix-functions/wcpcpy.texi: Likewise.
47951         * doc/posix-functions/wcpncpy.texi: Likewise.
47952         * doc/posix-functions/wcscasecmp.texi: Likewise.
47953         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
47954         * doc/posix-functions/wcscoll_l.texi: Likewise.
47955         * doc/posix-functions/wcsdup.texi: Likewise.
47956         * doc/posix-functions/wcsncasecmp.texi: Likewise.
47957         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
47958         * doc/posix-functions/wcsnlen.texi: Likewise.
47959         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47960         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
47961         * doc/posix-functions/wctrans_l.texi: Likewise.
47962         * doc/posix-functions/wctype_l.texi: Likewise.
47963         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
47964         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
47965         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
47966         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
47967         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
47968         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
47969         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
47970         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
47971         * doc/glibc-functions/wcschrnul.texi: Likewise.
47972         * doc/glibc-functions/wcsftime_l.texi: Likewise.
47973         * doc/glibc-functions/wcstod_l.texi: Likewise.
47974         * doc/glibc-functions/wcstof_l.texi: Likewise.
47975         * doc/glibc-functions/wcstol_l.texi: Likewise.
47976         * doc/glibc-functions/wcstold_l.texi: Likewise.
47977         * doc/glibc-functions/wcstoll_l.texi: Likewise.
47978         * doc/glibc-functions/wcstoq.texi: Likewise.
47979         * doc/glibc-functions/wcstoul_l.texi: Likewise.
47980         * doc/glibc-functions/wcstoull_l.texi: Likewise.
47981         * doc/glibc-functions/wcstouq.texi: Likewise.
47982         * doc/glibc-functions/wmempcpy.texi: Likewise.
47983
47984 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
47985             Eric Blake  <ebb9@byu.net>
47986             Paolo Bonzini  <bonzini@gnu.org>
47987             Bruno Haible  <bruno@clisp.org>
47988
47989         Make c-stack work on Haiku.
47990         * lib/c-stack.c (SA_ONSTACK): Define fallback.
47991         (c_stack_action): Use SA_ONSTACK flag.
47992
47993 2008-12-22  Bruno Haible  <bruno@clisp.org>
47994
47995         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
47996
47997 2008-12-22  Bruno Haible  <bruno@clisp.org>
47998
47999         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48000         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48001         being overridden.
48002         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48003         New macros.
48004         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48005         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48006         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48007         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48008
48009 2008-12-22  Bruno Haible  <bruno@clisp.org>
48010
48011         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48012         from test code.
48013
48014 2008-12-22  Eric Blake  <ebb9@byu.net>
48015
48016         Avoid gcc warnings on cygwin.
48017         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48018         Avoid unused variable.
48019         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48020         Likewise.
48021
48022 2008-12-22  Bruno Haible  <bruno@clisp.org>
48023
48024         Remove HAVE_MBRTOWC conditionals.
48025         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48026         (mbscasecmp): Assume mbrtowc function.
48027         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48028         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48029         * lib/mbschr.c: Include mbuiter.h unconditionally.
48030         (mbschr): Assume mbrtowc function.
48031         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48032         (mbscspn): Assume mbrtowc function.
48033         * lib/mbslen.c: Include mbuiter.h unconditionally.
48034         (mbslen): Assume mbrtowc function.
48035         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48036         (mbsncasecmp): Assume mbrtowc function.
48037         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48038         (mbsnlen): Assume mbrtowc function.
48039         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48040         (mbspbrk): Assume mbrtowc function.
48041         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48042         (mbspcasecmp): Assume mbrtowc function.
48043         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48044         (mbsrchr): Assume mbrtowc function.
48045         * lib/mbssep.c: Include mbuiter.h unconditionally.
48046         (mbssep): Assume mbrtowc function.
48047         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48048         (mbsspn): Assume mbrtowc function.
48049         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48050         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48051         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48052         (mbstok_r): Assume mbrtowc function.
48053         * lib/propername.c: Include mbuiter.h unconditionally.
48054         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48055         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48056         (trim2): Assume mbrtowc function.
48057         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48058         (mbsnwidth): Assume mbrtowc function.
48059         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48060         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48061         fallback definitions.
48062         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48063
48064 2008-12-22  Bruno Haible  <bruno@clisp.org>
48065
48066         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48067
48068 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48069
48070         * modules/regex: Request emulations for the mb*/wc* functions we need.
48071         * m4/regex.m4: Don't look for those functions here.
48072         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48073
48074 2008-12-22  Bruno Haible  <bruno@clisp.org>
48075
48076         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48077
48078 2008-12-21  Bruno Haible  <bruno@clisp.org>
48079
48080         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48081         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48082         (Include): Remove conditionalization.
48083         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48084         (Include): Remove conditionalization.
48085         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48086         (Include): Remove conditionalization.
48087         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48088         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48089         * NEWS: Mention the change.
48090         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48091         via Sergey Poznyakoff <gray@gnu.org.ua>.
48092
48093 2008-12-21  Bruno Haible  <bruno@clisp.org>
48094
48095         * MODULES.html.sh (Extended multibyte and wide character utilities
48096         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48097         wcrtomb, wcsrtombs.
48098         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48099         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48100         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48101         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48102
48103 2008-12-21  Bruno Haible  <bruno@clisp.org>
48104
48105         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48106
48107 2008-12-21  Bruno Haible  <bruno@clisp.org>
48108
48109         * modules/wcsnrtombs-tests: New file.
48110         * tests/test-wcsnrtombs1.sh: New file.
48111         * tests/test-wcsnrtombs2.sh: New file.
48112         * tests/test-wcsnrtombs3.sh: New file.
48113         * tests/test-wcsnrtombs4.sh: New file.
48114         * tests/test-wcsnrtombs.c: New file.
48115
48116         New module 'wcsnrtombs'.
48117         * lib/wchar.in.h (wcsnrtombs): New declaration.
48118         * lib/wcsnrtombs.c: New file.
48119         * lib/wcsrtombs-state.c: New file.
48120         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48121         (internal_state): Remove variable.
48122         * m4/wcsnrtombs.m4: New file.
48123         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48124         compilation units.
48125         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48126         HAVE_WCSNRTOMBS.
48127         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48128         HAVE_WCSNRTOMBS.
48129         * modules/wcsnrtombs: New file.
48130         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48131         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48132
48133 2008-12-21  Bruno Haible  <bruno@clisp.org>
48134
48135         * modules/wcsrtombs-tests: New file.
48136         * tests/test-wcsrtombs1.sh: New file.
48137         * tests/test-wcsrtombs2.sh: New file.
48138         * tests/test-wcsrtombs3.sh: New file.
48139         * tests/test-wcsrtombs4.sh: New file.
48140         * tests/test-wcsrtombs.c: New file.
48141
48142         New module 'wcsrtombs'.
48143         * lib/wchar.in.h (wcsrtombs): New declaration.
48144         * lib/wcsrtombs.c: New file.
48145         * m4/wcsrtombs.m4: New file.
48146         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48147         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48148         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48149         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48150         * modules/wcsrtombs: New file.
48151         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48152         bugs.
48153
48154 2008-12-21  Bruno Haible  <bruno@clisp.org>
48155
48156         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48157         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48158         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48159         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48160         if not correct.
48161         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48162         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48163         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48164         m4/locale-zh.m4, m4/codeset.m4.
48165         * doc/posix-functions/wcrtomb.texi: Document the bug.
48166
48167 2008-12-21  Bruno Haible  <bruno@clisp.org>
48168
48169         Work around a btowc() bug on IRIX 6.5.
48170         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48171         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48172         REPLACE_WTOBC if not.
48173         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48174         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48175         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48176
48177 2008-12-21  Bruno Haible  <bruno@clisp.org>
48178
48179         * modules/wcrtomb-tests: New file.
48180         * tests/test-wcrtomb.sh: New file.
48181         * tests/test-wcrtomb.c: New file.
48182
48183         New module 'wcrtomb'.
48184         * lib/wchar.in.h (wcrtomb): New declaration.
48185         * lib/wcrtomb.c: New file.
48186         * m4/wcrtomb.m4: New file.
48187         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48188         HAVE_WCRTOMB.
48189         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48190         HAVE_WCRTOMB.
48191         * modules/wcrtomb: New file.
48192         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48193
48194 2008-12-21  Bruno Haible  <bruno@clisp.org>
48195
48196         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48197         * modules/mbsrtowcs (Files): Likewise.
48198         * modules/wctob (Files): Likewise.
48199         * modules/c-strcase-tests (Files): Likewise.
48200         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48201         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48202         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48203         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48204         * modules/vasnprintf-posix-tests (Files): Likewise.
48205
48206 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48207
48208         gitlog-to-changelog: pass all command-line arguments to git-log
48209         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48210         it is sometimes convenient to filter the commits in various ways.
48211         gitlog-to-changelog only allows --since to specify a start date,
48212         but git-log itself supports many other filtering mechanisms.
48213         At the moment, I want to filter by branch name.  Rather than
48214         adding a --branch option to gitlog-to-changelog, it seems more
48215         flexible to simply pass all options directly to git-log and let
48216         git do the work.  Notice that this effectively makes --since a
48217         redundant option for gitlog-to-changelog, but removing it would
48218         require current usage to change since calls would then require
48219         an additional '--'.
48220
48221 2008-12-21  Bruno Haible  <bruno@clisp.org>
48222
48223         * modules/mbsnrtowcs-tests: New file.
48224         * tests/test-mbsnrtowcs1.sh: New file.
48225         * tests/test-mbsnrtowcs2.sh: New file.
48226         * tests/test-mbsnrtowcs3.sh: New file.
48227         * tests/test-mbsnrtowcs4.sh: New file.
48228         * tests/test-mbsnrtowcs.c: New file.
48229
48230         New module 'mbsnrtowcs'.
48231         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48232         * lib/mbsnrtowcs.c: New file.
48233         * lib/mbsrtowcs-state.c: New file.
48234         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48235         (internal_state): Remove variable.
48236         * m4/mbsnrtowcs.m4: New file.
48237         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48238         compilation units.
48239         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48240         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48241         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48242         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48243         * modules/mbsnrtowcs: New file.
48244         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48245         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48246         portability problem.
48247
48248 2008-12-21  Bruno Haible  <bruno@clisp.org>
48249
48250         Work around mbsrtowcs bug.
48251         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48252         (gl_FUNC_MBSRTOWCS): Invoke it.
48253         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48254         m4/locale-zh.m4.
48255         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48256
48257 2008-12-21  Bruno Haible  <bruno@clisp.org>
48258
48259         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48260
48261 2008-12-21  Bruno Haible  <bruno@clisp.org>
48262
48263         Update doc for AIX.
48264         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48265         16-bit wchar_t type.
48266         * doc/posix-functions/btowc.texi: Likewise.
48267         * doc/posix-functions/fgetwc.texi: Likewise.
48268         * doc/posix-functions/fgetws.texi: Likewise.
48269         * doc/posix-functions/fputwc.texi: Likewise.
48270         * doc/posix-functions/fputws.texi: Likewise.
48271         * doc/posix-functions/fwide.texi: Likewise.
48272         * doc/posix-functions/fwprintf.texi: Likewise.
48273         * doc/posix-functions/fwscanf.texi: Likewise.
48274         * doc/posix-functions/getwchar.texi: Likewise.
48275         * doc/posix-functions/getwc.texi: Likewise.
48276         * doc/posix-functions/iswalnum.texi: Likewise.
48277         * doc/posix-functions/iswalpha.texi: Likewise.
48278         * doc/posix-functions/iswblank.texi: Likewise.
48279         * doc/posix-functions/iswcntrl.texi: Likewise.
48280         * doc/posix-functions/iswctype.texi: Likewise.
48281         * doc/posix-functions/iswdigit.texi: Likewise.
48282         * doc/posix-functions/iswgraph.texi: Likewise.
48283         * doc/posix-functions/iswlower.texi: Likewise.
48284         * doc/posix-functions/iswprint.texi: Likewise.
48285         * doc/posix-functions/iswpunct.texi: Likewise.
48286         * doc/posix-functions/iswspace.texi: Likewise.
48287         * doc/posix-functions/iswupper.texi: Likewise.
48288         * doc/posix-functions/iswxdigit.texi: Likewise.
48289         * doc/posix-functions/mbrtowc.texi: Likewise.
48290         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48291         * doc/posix-functions/mbstowcs.texi: Likewise.
48292         * doc/posix-functions/mbtowc.texi: Likewise.
48293         * doc/posix-functions/putwchar.texi: Likewise.
48294         * doc/posix-functions/putwc.texi: Likewise.
48295         * doc/posix-functions/swprintf.texi: Likewise.
48296         * doc/posix-functions/tolower.texi: Likewise.
48297         * doc/posix-functions/toupper.texi: Likewise.
48298         * doc/posix-functions/towctrans.texi: Likewise.
48299         * doc/posix-functions/ungetwc.texi: Likewise.
48300         * doc/posix-functions/vswprintf.texi: Likewise.
48301         * doc/posix-functions/wcrtomb.texi: Likewise.
48302         * doc/posix-functions/wcscat.texi: Likewise.
48303         * doc/posix-functions/wcschr.texi: Likewise.
48304         * doc/posix-functions/wcscmp.texi: Likewise.
48305         * doc/posix-functions/wcscoll.texi: Likewise.
48306         * doc/posix-functions/wcscpy.texi: Likewise.
48307         * doc/posix-functions/wcscspn.texi: Likewise.
48308         * doc/posix-functions/wcsftime.texi: Likewise.
48309         * doc/posix-functions/wcslen.texi: Likewise.
48310         * doc/posix-functions/wcsncat.texi: Likewise.
48311         * doc/posix-functions/wcsncmp.texi: Likewise.
48312         * doc/posix-functions/wcsncpy.texi: Likewise.
48313         * doc/posix-functions/wcspbrk.texi: Likewise.
48314         * doc/posix-functions/wcsrchr.texi: Likewise.
48315         * doc/posix-functions/wcsrtombs.texi: Likewise.
48316         * doc/posix-functions/wcsspn.texi: Likewise.
48317         * doc/posix-functions/wcsstr.texi: Likewise.
48318         * doc/posix-functions/wcstod.texi: Likewise.
48319         * doc/posix-functions/wcstof.texi: Likewise.
48320         * doc/posix-functions/wcstoimax.texi: Likewise.
48321         * doc/posix-functions/wcstok.texi: Likewise.
48322         * doc/posix-functions/wcstold.texi: Likewise.
48323         * doc/posix-functions/wcstoll.texi: Likewise.
48324         * doc/posix-functions/wcstol.texi: Likewise.
48325         * doc/posix-functions/wcstombs.texi: Likewise.
48326         * doc/posix-functions/wcstoull.texi: Likewise.
48327         * doc/posix-functions/wcstoul.texi: Likewise.
48328         * doc/posix-functions/wcstoumax.texi: Likewise.
48329         * doc/posix-functions/wcswidth.texi: Likewise.
48330         * doc/posix-functions/wcsxfrm.texi: Likewise.
48331         * doc/posix-functions/wctob.texi: Likewise.
48332         * doc/posix-functions/wctomb.texi: Likewise.
48333         * doc/posix-functions/wctrans.texi: Likewise.
48334         * doc/posix-functions/wctype.texi: Likewise.
48335         * doc/posix-functions/wcwidth.texi: Likewise.
48336         * doc/posix-functions/wmemchr.texi: Likewise.
48337         * doc/posix-functions/wmemcmp.texi: Likewise.
48338         * doc/posix-functions/wmemcpy.texi: Likewise.
48339         * doc/posix-functions/wmemmove.texi: Likewise.
48340         * doc/posix-functions/wmemset.texi: Likewise.
48341         * doc/posix-functions/wprintf.texi: Likewise.
48342         * doc/posix-functions/wscanf.texi: Likewise.
48343
48344 2008-12-21  Bruno Haible  <bruno@clisp.org>
48345
48346         Update doc for HP-UX 11.11.
48347         * doc/posix-functions/btowc.texi: Clarify that the function is missing
48348         in HP-UX version 11.00, not in all versions of HP-UX 11.
48349         * doc/posix-functions/fwide.texi: Likewise.
48350         * doc/posix-functions/fwprintf.texi: Likewise.
48351         * doc/posix-functions/fwscanf.texi: Likewise.
48352         * doc/posix-functions/inet_ntop.texi: Likewise.
48353         * doc/posix-functions/inet_pton.texi: Likewise.
48354         * doc/posix-functions/mbrlen.texi: Likewise.
48355         * doc/posix-functions/mbrtowc.texi: Likewise.
48356         * doc/posix-functions/mbsinit.texi: Likewise.
48357         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48358         * doc/posix-functions/swprintf.texi: Likewise.
48359         * doc/posix-functions/swscanf.texi: Likewise.
48360         * doc/posix-functions/towctrans.texi: Likewise.
48361         * doc/posix-functions/vfwprintf.texi: Likewise.
48362         * doc/posix-functions/vswprintf.texi: Likewise.
48363         * doc/posix-functions/vwprintf.texi: Likewise.
48364         * doc/posix-functions/wcrtomb.texi: Likewise.
48365         * doc/posix-functions/wcsrtombs.texi: Likewise.
48366         * doc/posix-functions/wcsstr.texi: Likewise.
48367         * doc/posix-functions/wctob.texi: Likewise.
48368         * doc/posix-functions/wctrans.texi: Likewise.
48369         * doc/posix-functions/wmemchr.texi: Likewise.
48370         * doc/posix-functions/wmemcmp.texi: Likewise.
48371         * doc/posix-functions/wmemcpy.texi: Likewise.
48372         * doc/posix-functions/wmemmove.texi: Likewise.
48373         * doc/posix-functions/wmemset.texi: Likewise.
48374         * doc/posix-functions/wprintf.texi: Likewise.
48375         * doc/posix-functions/wscanf.texi: Likewise.
48376
48377 2008-12-21  Bruno Haible  <bruno@clisp.org>
48378
48379         Work around a portability problem.
48380         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48381         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48382
48383 2008-12-20  Bruno Haible  <bruno@clisp.org>
48384
48385         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48386         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48387         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48388         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48389         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48390
48391         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48392         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48393         set.
48394         (GNULIB_defined_mbstate_t): New macro.
48395         (mbsinit): Redefine if REPLACE_MBSINIT is set.
48396         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
48397         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
48398         reuses the system's mbrtowc function but works around the bugs.
48399         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
48400         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
48401         macros.
48402         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
48403         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
48404         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
48405         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
48406         REPLACE_MBSINIT if mbsinit needs to be overridden.
48407         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
48408         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48409         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
48410         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48411         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48412         m4/locale-zh.m4.
48413         (Depends): Add mbsinit.
48414         * modules/mbsinit (Depends): Add mbrtowc.
48415         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
48416
48417 2008-12-20  Bruno Haible  <bruno@clisp.org>
48418
48419         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
48420         so that there are no conversion errors on AIX.
48421         * tests/test-mbsrtowcs.c (main): LIkewise.
48422
48423 2008-12-20  Bruno Haible  <bruno@clisp.org>
48424
48425         Work around wctob bug on Solaris <= 9.
48426         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
48427         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
48428         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
48429         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
48430         * modules/wctob (Files): Add m4/locale-fr.m4.
48431         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
48432
48433 2008-12-20  Bruno Haible  <bruno@clisp.org>
48434
48435         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
48436         /dev/null.
48437         * tests/test-select-in.sh: Likewise.
48438         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48439
48440 2008-12-20  Bruno Haible  <bruno@clisp.org>
48441
48442         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
48443         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
48444         Cygwin 1.5.x.
48445
48446 2008-12-20  Bruno Haible  <bruno@clisp.org>
48447
48448         Ensure mbstate_t is defined on HP-UX 11.11.
48449         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
48450         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
48451         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
48452         AC_USE_SYSTEM_EXTENSIONS.
48453         * modules/fnmatch (Depends-on): Add extensions.
48454         * modules/mbrlen (Depends-on): Likewise.
48455         * modules/mbrtowc (Depends-on): Likewise.
48456         * modules/mbsinit (Depends-on): Likewise.
48457         * modules/mbsrtowcs (Depends-on): Likewise.
48458         * modules/mbswidth (Depends-on): Likewise.
48459         * modules/quotearg (Depends-on): Likewise.
48460         * modules/strftime (Depends-on): Likewise.
48461
48462 2008-12-20  Bruno Haible  <bruno@clisp.org>
48463
48464         Ensure wctob is declared on IRIX 6.5.
48465         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
48466         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
48467         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
48468         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
48469         of HAVE_WCTOB.
48470         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
48471         HAVE_WCTOB.
48472         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
48473
48474 2008-12-19  Bruno Haible  <bruno@clisp.org>
48475
48476         * modules/mbsrtowcs-tests: New file.
48477         * tests/test-mbsrtowcs1.sh: New file.
48478         * tests/test-mbsrtowcs2.sh: New file.
48479         * tests/test-mbsrtowcs3.sh: New file.
48480         * tests/test-mbsrtowcs4.sh: New file.
48481         * tests/test-mbsrtowcs.c: New file.
48482
48483         New module 'mbsrtowcs'.
48484         * lib/wchar.in.h (mbsrtowcs): New declaration.
48485         * lib/mbsrtowcs.c: New file.
48486         * m4/mbsrtowcs.m4: New file.
48487         * modules/mbsrtowcs: New file.
48488         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
48489         HAVE_MBSRTOWCS.
48490         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
48491         HAVE_MBSRTOWCS.
48492         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
48493
48494 2008-12-19  Bruno Haible  <bruno@clisp.org>
48495
48496         New module 'mbrlen'.
48497         * lib/wchar.in.h (mbrlen): New declaration.
48498         * lib/mbrlen.c: New file.
48499         * m4/mbrlen.m4: New file.
48500         * modules/mbrlen: New file.
48501         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
48502         HAVE_MBRLEN.
48503         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
48504         HAVE_MBRLEN.
48505         * doc/posix-functions/mbrlen.texi: Document the new module.
48506
48507 2008-12-19  Bruno Haible  <bruno@clisp.org>
48508
48509         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48510         * modules/mbrtowc (Depends-on): Add verify.
48511         Suggested by Paul Eggert.
48512
48513 2008-12-18  Bruno Haible  <bruno@clisp.org>
48514
48515         * modules/mbsinit-tests: New file.
48516         * tests/test-mbsinit.sh: New file.
48517         * tests/test-mbsinit.c: New file.
48518
48519 2008-12-18  Bruno Haible  <bruno@clisp.org>
48520
48521         * modules/mbrtowc-tests: New file.
48522         * tests/test-mbrtowc1.sh: New file.
48523         * tests/test-mbrtowc2.sh: New file.
48524         * tests/test-mbrtowc3.sh: New file.
48525         * tests/test-mbrtowc4.sh: New file.
48526         * tests/test-mbrtowc.c: New file.
48527
48528         New module 'mbrtowc'.
48529         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48530         mbsinit and mbrtowc.
48531         (mbrtowc): New declaration.
48532         * lib/mbrtowc.c: New file.
48533         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48534         * modules/mbrtowc: New file.
48535         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48536         HAVE_MBRTOWC.
48537         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48538         HAVE_MBRTOWC.
48539         * doc/posix-functions/mbrtowc.texi: Document the new module.
48540
48541 2008-12-18  Bruno Haible  <bruno@clisp.org>
48542
48543         New module 'wctob'.
48544         * lib/wchar.in.h (wctob): New declaration.
48545         * lib/wctob.c: New file.
48546         * m4/wctob.m4: New file.
48547         * modules/wctob: New file.
48548         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48549         HAVE_WCTOB.
48550         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48551         * doc/posix-functions/wctob.texi: Document the new module.
48552
48553 2008-12-18  Bruno Haible  <bruno@clisp.org>
48554
48555         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48556         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48557
48558 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48559
48560         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48561         G. Christensen" <tgc@jupiterrise.com>.
48562
48563         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48564         G. Christensen" <tgc@jupiterrise.com>.
48565
48566         * lib/flock.c: Need to include string.h.  Reported by "Tom
48567         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48568         <ebb9@byu.net>.
48569
48570 2008-12-18  Bruno Haible  <bruno@clisp.org>
48571
48572         * m4/locale-ja.m4: New file, from GNU gettext.
48573
48574 2008-12-17  Bruno Haible  <bruno@clisp.org>
48575
48576         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48577         Suggested by Eric Blake.
48578
48579 2008-12-17  Bruno Haible  <bruno@clisp.org>
48580
48581         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48582
48583 2008-12-17  Bruno Haible  <bruno@clisp.org>
48584
48585         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48586         * modules/mbsinit (Depends-on): Add verify.
48587         Suggested by Paul Eggert.
48588
48589 2008-12-17  Bruno Haible  <bruno@clisp.org>
48590
48591         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48592         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48593         gl_FUNC_MBRTOWC.
48594         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48595         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48596         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48597         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48598         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48599         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48600         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48601         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48602         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48603         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48604         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48605         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48606         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48607         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48608         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48609         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48610         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48611         * modules/trim (configure.ac): Likewise.
48612
48613 2008-12-17  Bruno Haible  <bruno@clisp.org>
48614
48615         * modules/btowc-tests: New file.
48616         * tests/test-btowc1.sh: New file.
48617         * tests/test-btowc2.sh: New file.
48618         * tests/test-btowc.c: New file.
48619
48620         New module 'btowc'.
48621         * lib/wchar.in.h (btowc): New declaration.
48622         * lib/btowc.c: New file.
48623         * m4/btowc.m4: New file.
48624         * modules/btowc: New file.
48625         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48626         HAVE_BTOWC.
48627         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48628         * doc/posix-functions/btowc.texi: Document the new module.
48629
48630 2008-12-17  Bruno Haible  <bruno@clisp.org>
48631
48632         New module 'mbsinit'.
48633         * lib/wchar.in.h (mbsinit): New declaration.
48634         * lib/mbsinit.c: New file.
48635         * m4/mbsinit.m4: New file.
48636         * modules/mbsinit: New file.
48637         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48638         HAVE_MBSINIT.
48639         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48640         HAVE_MBSINIT.
48641         * doc/posix-functions/mbsinit.texi: Document the new module.
48642
48643 2008-12-16  Bruno Haible  <bruno@clisp.org>
48644
48645         * lib/unistd.in.h: Add comment.
48646         * tests/test-environ.c: Don't include <stdlib.h>.
48647
48648 2008-12-16  Bruno Haible  <bruno@clisp.org>
48649
48650         * lib/parse-duration.h (parse_duration): Document return value
48651         convention.
48652         * lib/parse-duration.c: Include specification header first. Add
48653         comments.
48654         (_): Remove macro.
48655         (parse_year_month_day, parse_hour_minute_second): Move side effects
48656         outside of strchr call.
48657         (parse_non_iso8601): Move side effects outside of isspace call.
48658         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
48659         call.
48660
48661 2008-12-16  Bruno Haible  <bruno@clisp.org>
48662
48663         * tests/test-parse-duration.sh: Produce no output when the test
48664         succeeds.
48665
48666 2008-12-16  Bruno Haible  <bruno@clisp.org>
48667
48668         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
48669         expressions.
48670
48671 2008-12-15  Bruno Haible  <bruno@clisp.org>
48672
48673         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
48674         * doc/glibc-functions/flistxattr.texi: Likewise.
48675         * doc/glibc-functions/fopencookie.texi: Likewise.
48676         * doc/glibc-functions/fremovexattr.texi: Likewise.
48677         * doc/glibc-functions/fsetxattr.texi: Likewise.
48678         * doc/glibc-functions/getxattr.texi: Likewise.
48679         * doc/glibc-functions/lgetxattr.texi: Likewise.
48680         * doc/glibc-functions/listxattr.texi: Likewise.
48681         * doc/glibc-functions/llistxattr.texi: Likewise.
48682         * doc/glibc-functions/lremovexattr.texi: Likewise.
48683         * doc/glibc-functions/lsetxattr.texi: Likewise.
48684         * doc/glibc-functions/removexattr.texi: Likewise.
48685         * doc/glibc-functions/setxattr.texi: Likewise.
48686         * doc/posix-functions/open_memstream.texi: Likewise.
48687
48688 2008-12-15  Eric Blake  <ebb9@byu.net>
48689
48690         Update doc for cygwin 1.7.
48691         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
48692         functions.
48693         * doc/posix-functions/fchmodat.texi: Likewise.
48694         * doc/posix-functions/fchownat.texi: Likewise.
48695         * doc/posix-functions/fdopendir.texi: Likewise.
48696         * doc/posix-functions/fmemopen.texi: Likewise.
48697         * doc/posix-functions/freeaddrinfo.texi: Likewise.
48698         * doc/posix-functions/fstatat.texi: Likewise.
48699         * doc/posix-functions/futimens.texi: Likewise.
48700         * doc/posix-functions/gai_strerror.texi: Likewise.
48701         * doc/posix-functions/getaddrinfo.texi: Likewise.
48702         * doc/posix-functions/getnameinfo.texi: Likewise.
48703         * doc/posix-functions/if_freenameindex.texi: Likewise.
48704         * doc/posix-functions/if_indextoname.texi: Likewise.
48705         * doc/posix-functions/if_nameindex.texi: Likewise.
48706         * doc/posix-functions/if_nametoindex.texi: Likewise.
48707         * doc/posix-functions/insque.texi: Likewise.
48708         * doc/posix-functions/linkat.texi: Likewise.
48709         * doc/posix-functions/llrint.texi: Likewise.
48710         * doc/posix-functions/llrintf.texi: Likewise.
48711         * doc/posix-functions/llrintl.texi: Likewise.
48712         * doc/posix-functions/lockf.texi: Likewise.
48713         * doc/posix-functions/lrintl.texi: Likewise.
48714         * doc/posix-functions/mkdirat.texi: Likewise.
48715         * doc/posix-functions/mkfifoat.texi: Likewise.
48716         * doc/posix-functions/mknodat.texi: Likewise.
48717         * doc/posix-functions/mq_close.texi: Likewise.
48718         * doc/posix-functions/mq_getattr.texi: Likewise.
48719         * doc/posix-functions/mq_notify.texi: Likewise.
48720         * doc/posix-functions/mq_open.texi: Likewise.
48721         * doc/posix-functions/mq_receive.texi: Likewise.
48722         * doc/posix-functions/mq_send.texi: Likewise.
48723         * doc/posix-functions/mq_setattr.texi: Likewise.
48724         * doc/posix-functions/mq_timedreceive.texi: Likewise.
48725         * doc/posix-functions/mq_timedsend.texi: Likewise.
48726         * doc/posix-functions/mq_unlink.texi: Likewise.
48727         * doc/posix-functions/open_memstream.texi: Likewise.
48728         * doc/posix-functions/openat.texi: Likewise.
48729         * doc/posix-functions/posix_fadvise.texi: Likewise.
48730         * doc/posix-functions/posix_fallocate.texi: Likewise.
48731         * doc/posix-functions/posix_madvise.texi: Likewise.
48732         * doc/posix-functions/posix_memalign.texi: Likewise.
48733         * doc/posix-functions/posix_openpt.texi: Likewise.
48734         * doc/posix-functions/readlinkat.texi: Likewise.
48735         * doc/posix-functions/remque.texi: Likewise.
48736         * doc/posix-functions/renameat.texi: Likewise.
48737         * doc/posix-functions/rintl.texi: Likewise.
48738         * doc/posix-functions/sem_unlink.texi: Likewise.
48739         * doc/posix-functions/shm_open.texi: Likewise.
48740         * doc/posix-functions/shm_unlink.texi: Likewise.
48741         * doc/posix-functions/signgam.texi: Likewise.
48742         * doc/posix-functions/sigset.texi: Likewise.
48743         * doc/posix-functions/stpcpy.texi: Likewise.
48744         * doc/posix-functions/stpncpy.texi: Likewise.
48745         * doc/posix-functions/strerror.texi: Likewise.
48746         * doc/posix-functions/strtod.texi: Likewise.
48747         * doc/posix-functions/symlinkat.texi: Likewise.
48748         * doc/posix-functions/unlinkat.texi: Likewise.
48749         * doc/posix-functions/utimensat.texi: Likewise.
48750         * doc/glibc-functions/bindresvport.texi: Likewise.
48751         * doc/glibc-functions/dn_expand.texi: Likewise.
48752         * doc/glibc-functions/exp10.texi: Likewise.
48753         * doc/glibc-functions/exp10f.texi: Likewise.
48754         * doc/glibc-functions/fgetxattr.texi: Likewise.
48755         * doc/glibc-functions/flistxattr.texi: Likewise.
48756         * doc/glibc-functions/fopencookie.texi: Likewise.
48757         * doc/glibc-functions/freeifaddrs.texi: Likewise.
48758         * doc/glibc-functions/fremovexattr.texi: Likewise.
48759         * doc/glibc-functions/fsetxattr.texi: Likewise.
48760         * doc/glibc-functions/getifaddrs.texi: Likewise.
48761         * doc/glibc-functions/getxattr.texi: Likewise.
48762         * doc/glibc-functions/lgetxattr.texi: Likewise.
48763         * doc/glibc-functions/listxattr.texi: Likewise.
48764         * doc/glibc-functions/llistxattr.texi: Likewise.
48765         * doc/glibc-functions/lremovexattr.texi: Likewise.
48766         * doc/glibc-functions/lsetxattr.texi: Likewise.
48767         * doc/glibc-functions/pow10.texi: Likewise.
48768         * doc/glibc-functions/pow10f.texi: Likewise.
48769         * doc/glibc-functions/rcmd_af.texi: Likewise.
48770         * doc/glibc-functions/removexattr.texi: Likewise.
48771         * doc/glibc-functions/res_init.texi: Likewise.
48772         * doc/glibc-functions/res_mkquery.texi: Likewise.
48773         * doc/glibc-functions/res_query.texi: Likewise.
48774         * doc/glibc-functions/res_querydomain.texi: Likewise.
48775         * doc/glibc-functions/res_send.texi: Likewise.
48776         * doc/glibc-functions/rresvport_af.texi: Likewise.
48777         * doc/glibc-functions/setxattr.texi: Likewise.
48778         * doc/glibc-functions/strcasestr.texi: Likewise.
48779
48780 2008-12-15  Bruno Haible  <bruno@clisp.org>
48781
48782         Fix compilation error on OSF/1 4.0.
48783         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
48784         <sys/time.h>, simply delegate to the system header.
48785         Reported by Daniel Richard G. <oss@teragram.com>.
48786
48787 2008-12-15  Bruno Haible  <bruno@clisp.org>
48788
48789         * doc/posix-functions/openat.texi: Mention the 'openat' module.
48790         * doc/posix-functions/fchmodat.texi: Likewise.
48791         * doc/posix-functions/fchownat.texi: Likewise.
48792         * doc/posix-functions/fdopendir.texi: Likewise.
48793         * doc/posix-functions/fstatat.texi: Likewise.
48794         * doc/posix-functions/mkdirat.texi: Likewise.
48795         * doc/posix-functions/unlinkat.texi: Likewise.
48796
48797 2008-12-14  Bruno Haible  <bruno@clisp.org>
48798
48799         Update doc for POSIX:2008.
48800         * doc/posix-functions/faccessat.texi: New file.
48801         * doc/posix-functions/fchmodat.texi: New file.
48802         * doc/posix-functions/fchownat.texi: New file.
48803         * doc/posix-functions/fdopendir.texi: New file.
48804         * doc/posix-functions/fstatat.texi: New file.
48805         * doc/posix-functions/futimens.texi: New file.
48806         * doc/posix-functions/linkat.texi: New file.
48807         * doc/posix-functions/mkdirat.texi: New file.
48808         * doc/posix-functions/mkfifoat.texi: New file.
48809         * doc/posix-functions/mknodat.texi: New file.
48810         * doc/posix-functions/open_wmemstream.texi: New file.
48811         * doc/posix-functions/openat.texi: New file.
48812         * doc/posix-functions/psiginfo.texi: New file.
48813         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
48814         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
48815         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
48816         * doc/posix-functions/readlinkat.texi: New file.
48817         * doc/posix-functions/renameat.texi: New file.
48818         * doc/posix-functions/strerror_l.texi: New file.
48819         * doc/posix-functions/symlinkat.texi: New file.
48820         * doc/posix-functions/unlinkat.texi: New file.
48821         * doc/posix-functions/utimensat.texi: New file.
48822         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48823
48824 2008-12-14  Bruno Haible  <bruno@clisp.org>
48825
48826         Update doc for POSIX:2008.
48827         * doc/posix-functions/alphasort.texi: Renamed from
48828         doc/glibc-functions/alphasort.texi.
48829         * doc/posix-functions/dirfd.texi: Renamed from
48830         doc/glibc-functions/dirfd.texi.
48831         * doc/posix-functions/dprintf.texi: Renamed from
48832         doc/glibc-functions/dprintf.texi.
48833         * doc/posix-functions/duplocale.texi: Renamed from
48834         doc/glibc-functions/duplocale.texi.
48835         * doc/posix-functions/fexecve.texi: Renamed from
48836         doc/glibc-functions/fexecve.texi.
48837         * doc/posix-functions/fmemopen.texi: Renamed from
48838         doc/glibc-functions/fmemopen.texi.
48839         * doc/posix-functions/freelocale.texi: Renamed from
48840         doc/glibc-functions/freelocale.texi.
48841         * doc/posix-functions/getdate_err.texi: Renamed from
48842         doc/glibc-functions/getdate_err.texi.
48843         * doc/posix-functions/isalnum_l.texi: Renamed from
48844         doc/glibc-functions/isalnum_l.texi.
48845         * doc/posix-functions/isalpha_l.texi: Renamed from
48846         doc/glibc-functions/isalpha_l.texi.
48847         * doc/posix-functions/isblank_l.texi: Renamed from
48848         doc/glibc-functions/isblank_l.texi.
48849         * doc/posix-functions/iscntrl_l.texi: Renamed from
48850         doc/glibc-functions/iscntrl_l.texi.
48851         * doc/posix-functions/isdigit_l.texi: Renamed from
48852         doc/glibc-functions/isdigit_l.texi.
48853         * doc/posix-functions/isgraph_l.texi: Renamed from
48854         doc/glibc-functions/isgraph_l.texi.
48855         * doc/posix-functions/islower_l.texi: Renamed from
48856         doc/glibc-functions/islower_l.texi.
48857         * doc/posix-functions/isprint_l.texi: Renamed from
48858         doc/glibc-functions/isprint_l.texi.
48859         * doc/posix-functions/ispunct_l.texi: Renamed from
48860         doc/glibc-functions/ispunct_l.texi.
48861         * doc/posix-functions/isspace_l.texi: Renamed from
48862         doc/glibc-functions/isspace_l.texi.
48863         * doc/posix-functions/isupper_l.texi: Renamed from
48864         doc/glibc-functions/isupper_l.texi.
48865         * doc/posix-functions/iswalnum_l.texi: Renamed from
48866         doc/glibc-functions/iswalnum_l.texi.
48867         * doc/posix-functions/iswalpha_l.texi: Renamed from
48868         doc/glibc-functions/iswalpha_l.texi.
48869         * doc/posix-functions/iswblank_l.texi: Renamed from
48870         doc/glibc-functions/iswblank_l.texi.
48871         * doc/posix-functions/iswcntrl_l.texi: Renamed from
48872         doc/glibc-functions/iswcntrl_l.texi.
48873         * doc/posix-functions/iswctype_l.texi: Renamed from
48874         doc/glibc-functions/iswctype_l.texi.
48875         * doc/posix-functions/iswdigit_l.texi: Renamed from
48876         doc/glibc-functions/iswdigit_l.texi.
48877         * doc/posix-functions/iswgraph_l.texi: Renamed from
48878         doc/glibc-functions/iswgraph_l.texi.
48879         * doc/posix-functions/iswlower_l.texi: Renamed from
48880         doc/glibc-functions/iswlower_l.texi.
48881         * doc/posix-functions/iswprint_l.texi: Renamed from
48882         doc/glibc-functions/iswprint_l.texi.
48883         * doc/posix-functions/iswpunct_l.texi: Renamed from
48884         doc/glibc-functions/iswpunct_l.texi.
48885         * doc/posix-functions/iswspace_l.texi: Renamed from
48886         doc/glibc-functions/iswspace_l.texi.
48887         * doc/posix-functions/iswupper_l.texi: Renamed from
48888         doc/glibc-functions/iswupper_l.texi.
48889         * doc/posix-functions/iswxdigit_l.texi: Renamed from
48890         doc/glibc-functions/iswxdigit_l.texi.
48891         * doc/posix-functions/isxdigit_l.texi: Renamed from
48892         doc/glibc-functions/isxdigit_l.texi.
48893         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
48894         doc/glibc-functions/mbsnrtowcs.texi.
48895         * doc/posix-functions/mkdtemp.texi: Renamed from
48896         doc/glibc-functions/mkdtemp.texi.
48897         * doc/posix-functions/newlocale.texi: Renamed from
48898         doc/glibc-functions/newlocale.texi.
48899         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
48900         doc/glibc-functions/nl_langinfo_l.texi.
48901         * doc/posix-functions/open_memstream.texi: Renamed from
48902         doc/glibc-functions/open_memstream.texi.
48903         * doc/posix-functions/opterr.texi: Renamed from
48904         doc/glibc-functions/opterr.texi.
48905         * doc/posix-functions/optind.texi: Renamed from
48906         doc/glibc-functions/optind.texi.
48907         * doc/posix-functions/optopt.texi: Renamed from
48908         doc/glibc-functions/optopt.texi.
48909         * doc/posix-functions/psignal.texi: Renamed from
48910         doc/glibc-functions/psignal.texi.
48911         * doc/posix-functions/scandir.texi: Renamed from
48912         doc/glibc-functions/scandir.texi.
48913         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
48914         doc/glibc-functions/sched_get_priority_min.texi.
48915         * doc/posix-functions/signgam.texi: Renamed from
48916         doc/glibc-functions/signgam.texi.
48917         * doc/posix-functions/stpcpy.texi: Renamed from
48918         doc/glibc-functions/stpcpy.texi.
48919         * doc/posix-functions/stpncpy.texi: Renamed from
48920         doc/glibc-functions/stpncpy.texi.
48921         * doc/posix-functions/strcasecmp_l.texi: Renamed from
48922         doc/glibc-functions/strcasecmp_l.texi.
48923         * doc/posix-functions/strcoll_l.texi: Renamed from
48924         doc/glibc-functions/strcoll_l.texi.
48925         * doc/posix-functions/strfmon_l.texi: Renamed from
48926         doc/glibc-functions/strfmon_l.texi.
48927         * doc/posix-functions/strftime_l.texi: Renamed from
48928         doc/glibc-functions/strftime_l.texi.
48929         * doc/posix-functions/strncasecmp_l.texi: Renamed from
48930         doc/glibc-functions/strncasecmp_l.texi.
48931         * doc/posix-functions/strndup.texi: Renamed from
48932         doc/glibc-functions/strndup.texi.
48933         * doc/posix-functions/strnlen.texi: Renamed from
48934         doc/glibc-functions/strnlen.texi.
48935         * doc/posix-functions/strsignal.texi: Renamed from
48936         doc/glibc-functions/strsignal.texi.
48937         * doc/posix-functions/strxfrm_l.texi: Renamed from
48938         doc/glibc-functions/strxfrm_l.texi.
48939         * doc/posix-functions/timer_gettime.texi: Renamed from
48940         doc/glibc-functions/timer_gettime.texi.
48941         * doc/posix-functions/tolower_l.texi: Renamed from
48942         doc/glibc-functions/tolower_l.texi.
48943         * doc/posix-functions/toupper_l.texi: Renamed from
48944         doc/glibc-functions/toupper_l.texi.
48945         * doc/posix-functions/towctrans_l.texi: Renamed from
48946         doc/glibc-functions/towctrans_l.texi.
48947         * doc/posix-functions/towlower_l.texi: Renamed from
48948         doc/glibc-functions/towlower_l.texi.
48949         * doc/posix-functions/towupper_l.texi: Renamed from
48950         doc/glibc-functions/towupper_l.texi.
48951         * doc/posix-functions/uselocale.texi: Renamed from
48952         doc/glibc-functions/uselocale.texi.
48953         * doc/posix-functions/vdprintf.texi: Renamed from
48954         doc/glibc-functions/vdprintf.texi.
48955         * doc/posix-functions/wcpcpy.texi:
48956         Renamed from doc/glibc-functions/wcpcpy.texi.
48957         * doc/posix-functions/wcpncpy.texi: Renamed from
48958         doc/glibc-functions/wcpncpy.texi.
48959         * doc/posix-functions/wcscasecmp.texi: Renamed from
48960         doc/glibc-functions/wcscasecmp.texi.
48961         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
48962         doc/glibc-functions/wcscasecmp_l.texi.
48963         * doc/posix-functions/wcscoll_l.texi: Renamed from
48964         doc/glibc-functions/wcscoll_l.texi.
48965         * doc/posix-functions/wcsdup.texi: Renamed from
48966         doc/glibc-functions/wcsdup.texi.
48967         * doc/posix-functions/wcsncasecmp.texi: Renamed from
48968         doc/glibc-functions/wcsncasecmp.texi.
48969         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
48970         doc/glibc-functions/wcsncasecmp_l.texi.
48971         * doc/posix-functions/wcsnlen.texi: Renamed from
48972         doc/glibc-functions/wcsnlen.texi.
48973         * doc/posix-functions/wcsnrtombs.texi: Renamed from
48974         doc/glibc-functions/wcsnrtombs.texi.
48975         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
48976         doc/glibc-functions/wcsxfrm_l.texi.
48977         * doc/posix-functions/wctrans_l.texi: Renamed from
48978         doc/glibc-functions/wctrans_l.texi.
48979         * doc/posix-functions/wctype_l.texi: Renamed from
48980         doc/glibc-functions/wctype_l.texi.
48981         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48982         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
48983         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
48984         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
48985         these subsections.
48986         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
48987         Remove sections.
48988
48989 2008-12-14  Bruno Haible  <bruno@clisp.org>
48990
48991         Update doc for POSIX:2008.
48992         * doc/posix-functions/*.texi: Update URL of POSIX specification.
48993
48994 2008-12-14  Bruno Haible  <bruno@clisp.org>
48995
48996         Update doc for POSIX:2008.
48997         * doc/pastposix-functions/bcmp.texi: Renamed from
48998         doc/posix-functions/bcmp.texi.
48999         * doc/pastposix-functions/bcopy.texi: Renamed from
49000         doc/posix-functions/bcopy.texi.
49001         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49002         doc/posix-functions/bsd_signal.texi.
49003         * doc/pastposix-functions/bzero.texi: Renamed from
49004         doc/posix-functions/bzero.texi.
49005         * doc/pastposix-functions/ecvt.texi: Renamed from
49006         doc/posix-functions/ecvt.texi.
49007         * doc/pastposix-functions/fcvt.texi: Renamed from
49008         doc/posix-functions/fcvt.texi.
49009         * doc/pastposix-functions/ftime.texi: Renamed from
49010         doc/posix-functions/ftime.texi.
49011         * doc/pastposix-functions/gcvt.texi: Renamed from
49012         doc/posix-functions/gcvt.texi.
49013         * doc/pastposix-functions/getcontext.texi: Renamed from
49014         doc/posix-functions/getcontext.texi.
49015         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49016         doc/posix-functions/gethostbyaddr.texi.
49017         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49018         doc/posix-functions/gethostbyname.texi.
49019         * doc/pastposix-functions/getwd.texi: Renamed from
49020         doc/posix-functions/getwd.texi.
49021         * doc/pastposix-functions/h_errno.texi: Renamed from
49022         doc/posix-functions/h_errno.texi.
49023         * doc/pastposix-functions/index.texi: Renamed from
49024         doc/posix-functions/index.texi.
49025         * doc/pastposix-functions/makecontext.texi: Renamed from
49026         doc/posix-functions/makecontext.texi.
49027         * doc/pastposix-functions/mktemp.texi: Renamed from
49028         doc/posix-functions/mktemp.texi.
49029         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49030         doc/posix-functions/pthread_attr_getstackaddr.texi.
49031         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49032         doc/posix-functions/pthread_attr_setstackaddr.texi.
49033         * doc/pastposix-functions/rindex.texi: Renamed from
49034         doc/posix-functions/rindex.texi.
49035         * doc/pastposix-functions/scalb.texi: Renamed from
49036         doc/posix-functions/scalb.texi.
49037         * doc/pastposix-functions/setcontext.texi: Renamed from
49038         doc/posix-functions/setcontext.texi.
49039         * doc/pastposix-functions/swapcontext.texi: Renamed from
49040         doc/posix-functions/swapcontext.texi.
49041         * doc/pastposix-functions/ualarm.texi: Renamed from
49042         doc/posix-functions/ualarm.texi.
49043         * doc/pastposix-functions/usleep.texi: Renamed from
49044         doc/posix-functions/usleep.texi.
49045         * doc/pastposix-functions/vfork.texi: Renamed from
49046         doc/posix-functions/vfork.texi.
49047         * doc/pastposix-functions/wcswcs.texi: Renamed from
49048         doc/posix-functions/wcswcs.texi.
49049         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49050         (Function Substitutes): Update.
49051
49052 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49053
49054         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49055         m4/strerror.m4.
49056
49057 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49058             Bruno Haible  <bruno@clisp.org>
49059
49060         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49061
49062 2008-12-13  Bruno Haible  <bruno@clisp.org>
49063
49064         * modules/strtoull (Depends-on): Remove unistd.
49065
49066 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49067
49068         * modules/strtoull (Depends-on): Add stdlib.
49069
49070 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49071
49072         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49073
49074 2008-12-10  Jim Meyering  <meyering@redhat.com>
49075
49076         gl_ASSERT: don't say assertions are disabled when they're not
49077         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49078         "checking whether to enable assertions... no", when they are in
49079         fact enabled.  This is solely a bug in the output of configure.
49080         In spite of saying "no", NDEBUG was not defined in that case.
49081         Also, as noted by Eric Blake, leave assertions enabled upon
49082         --enable-assert=INVALID.
49083
49084 2008-12-10  Bruno Haible  <bruno@clisp.org>
49085
49086         Change MODULES.html to refer to POSIX:2008 where possible.
49087         * MODULES.html.sh (POSIX2008_URL): New variable.
49088         (posix_headers): Remove sys/timeb, ucontext.
49089         (posix2001_headers): New variable.
49090         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49091         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49092         index, makecontext, mktemp, pthread_attr_getstackaddr,
49093         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49094         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49095         (posix2001_functions): New variable.
49096         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49097         otherwise.
49098
49099 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49100
49101         add missing include to parse-duration.c
49102         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49103         * modules/parse-duration (Depends-on): Add xalloc.
49104
49105         fix sed script reading maint.mk
49106         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49107         (syntax-check-rules): Use it.
49108
49109 2008-12-09  Bruno Haible  <bruno@clisp.org>
49110
49111         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49112         MacOS X 10.4/PowerPC.
49113         Reported by Simon Josefsson.
49114
49115 2008-12-08  Jim Meyering  <meyering@redhat.com>
49116
49117         work around mingw's lack of some S_IF definitions
49118         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49119         Reported by Simon Josefsson.
49120
49121 2008-12-08  Bruno Haible  <bruno@clisp.org>
49122
49123         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49124         applied to variables. Needed on MacOS X 10.4/PowerPC.
49125         Reported by Simon Josefsson.
49126
49127 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49128         and Eric Blake  <ebb9@byu.net>
49129
49130         assert: honor --enable-assert
49131         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49132         order to honor --enable-assert, rather than treating it as a
49133         synonym for --disable-assert.
49134
49135 2008-12-08  Jim Meyering  <meyering@redhat.com>
49136
49137         * lib/posixtm.c: Remove now-useless declaration of mktime.
49138
49139         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49140
49141 2008-12-07  Bruno Haible  <bruno@clisp.org>
49142
49143         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49144         test_once): Mark functions as static.
49145         * tests/test-tls.c (test_tls): Likewise.
49146
49147 2008-12-07  Bruno Haible  <bruno@clisp.org>
49148
49149         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49150         iconv_register_autodetect.
49151
49152 2008-12-07  Jim Meyering  <meyering@redhat.com>
49153
49154         posixtm.c: avoid a warning
49155         * lib/posixtm.c (posixtime): Don't initialize tm0.
49156         It's no longer needed to placate gcc4's -Wuninitialized,
49157         and the attempt to placate would elicit a new warning.
49158
49159         unicodeio.c: mark unused parameters
49160         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49161         (fallback_failure_callback): Likewise.
49162
49163 2008-12-07  Bruno Haible  <bruno@clisp.org>
49164
49165         * gnulib-tool (func_create_testdir): When building the tests
49166         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49167         Reported by Simon Josefsson.
49168
49169 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49170
49171         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49172
49173 2008-12-06  Bruno Haible  <bruno@clisp.org>
49174
49175         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49176         Suggested by Eric Blake.
49177
49178 2008-12-06  Bruno Haible  <bruno@clisp.org>
49179
49180         Fix a c-stack test failure on MacOS X.
49181         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49182         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49183         handler for SIGBUS as well.
49184         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49185         install a signal handler for SIGBUS as well.
49186         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49187
49188 2008-12-06  Bruno Haible  <bruno@clisp.org>
49189
49190         Advocacy documentation.
49191         * doc/gnulib-intro.texi (Benefits): New section.
49192         * doc/gnulib.texi: Update.
49193
49194 2008-12-06  Bruno Haible  <bruno@clisp.org>
49195
49196         Document the 'manywarnings' module.
49197         * doc/manywarnings.texi: New file.
49198         * doc/gnulib.texi: Include it.
49199
49200 2008-12-05  Eric Blake  <ebb9@byu.net>
49201
49202         tests: silence some gcc warnings
49203         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49204         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49205         type mismatches.
49206
49207 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49208             Bruno Haible  <bruno@clisp.org>
49209
49210         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49211
49212 2008-11-29  Jim Meyering  <meyering@redhat.com>
49213
49214         unicodeio.c: mark unused parameters
49215         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49216         (fallback_failure_callback): Likewise.
49217
49218         fts: fix a thinko
49219         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49220         (set_stat_type): Return S_IF*-valued "type" directly.
49221         Prompted by James Youngman's spotting a related bug.
49222         Confirmed by further testing through find.
49223
49224         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49225         * lib/fts.c (D_TYPE): Define.
49226         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49227         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49228         (s_ifmt_shift_bits): New function.
49229         (set_stat_type): New function.
49230         (fts_build): When not calling fts_stat, call set_stat_type
49231         to propagate dirent.d_type info to fts_read caller.
49232         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49233         fts_statp->st_mode type information may be valid.
49234
49235 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49236
49237         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49238         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49239         <sds@gnu.org>.
49240
49241 2008-11-20  Bruno Haible  <bruno@clisp.org>
49242
49243         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49244         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49245         INCLUDE_NEXT.
49246         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49247         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49248         * modules/math (Makefile.am): Substitute
49249         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49250         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49251
49252 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49253             Bruno Haible  <bruno@clisp.org>
49254
49255         * lib/stdint.in.h: Define all type macros so that their expansion is
49256         a single typedef'ed token. Fixes a compilation failure in Boost which
49257         does "using ::int8_t;".
49258
49259 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49260
49261         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49262         gl_MANYWARN_ALL_GCC.
49263         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49264         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49265         * modules/manywarnings: New file.
49266         * MODULES.html.sh: Mention manywarnings module.
49267
49268 2008-11-18  Bruno Haible  <bruno@clisp.org>
49269
49270         * doc/gnulib-tool.texi (Unit tests): New section.
49271
49272 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49273
49274         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49275         paths like 'lib/po/foo.po'.
49276
49277 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49278
49279         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49280         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49281
49282 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49283
49284         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49285         parameter works.
49286
49287 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49288
49289         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49290
49291 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49292
49293         * modules/parse-duration-tests: New file.
49294         * tests/test-parse-duration.sh: New file.
49295         * tests/test-parse-duration.c: New file.
49296
49297         New module 'parse-duration'.
49298         * lib/parse-duration.h: New file.
49299         * lib/parse-duration.c: New file.
49300         * modules/parse-duration: New file.
49301
49302 2008-11-17  Bruno Haible  <bruno@clisp.org>
49303
49304         * tests/test-select-out.sh: Comment out the first pipe test.
49305         Reported by Simon Josefsson.
49306
49307 2008-11-17  Bruno Haible  <bruno@clisp.org>
49308
49309         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49310         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49311         gl_HOSTENT.
49312
49313 2008-11-17  Bruno Haible  <bruno@clisp.org>
49314
49315         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49316         -lnetwork and -lnet. Needed for Haiku and BeOS.
49317
49318 2008-11-16  Bruno Haible  <bruno@clisp.org>
49319
49320         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
49321
49322 2008-11-16  Bruno Haible  <bruno@clisp.org>
49323
49324         Avoid test failure on Haiku.
49325         * tests/test-fsync.c: Include <errno.h>.
49326         (main): Don't require that fsync (0) fails.
49327
49328 2008-11-15  Bruno Haible  <bruno@clisp.org>
49329
49330         New module 'hostent'.
49331         * modules/hostent: New file.
49332         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
49333
49334 2008-11-15  Bruno Haible  <bruno@clisp.org>
49335
49336         New module 'servent'.
49337         * modules/servent: New file.
49338         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
49339
49340 2008-11-15  Bruno Haible  <bruno@clisp.org>
49341
49342         Avoid generating same test program with two different rules.
49343         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
49344         test-frexp to test-frexp-nolibm.
49345         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
49346         test-frexpl to test-frexpl-nolibm.
49347
49348 2008-11-15  Bruno Haible  <bruno@clisp.org>
49349
49350         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
49351         $(FREXPL_LIBM).
49352
49353 2008-11-15  Bruno Haible  <bruno@clisp.org>
49354
49355         * lib/netdb.in.h: Activate the definitions also when the system's
49356         <netdb.h> has 'struct addrinfo'.
49357         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49358         EAI_OVERFLOW or AI_NUMERICSERV.
49359         * doc/posix-headers/netdb.texi: Document the problem.
49360
49361 2008-11-15  Bruno Haible  <bruno@clisp.org>
49362
49363         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49364
49365         Make the 'sched' module work on platforms where <sched.h> exists but
49366         is incomplete (such as Haiku).
49367         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49368         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49369         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49370         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49371         HAVE_STRUCT_SCHED_PARAM.
49372         * modules/sched (Depends-on): Add include_next.
49373         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49374         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49375         * doc/posix-headers/sched.texi: Document the issue.
49376
49377 2008-11-13  Jim Meyering  <meyering@redhat.com>
49378
49379         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49380         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49381         test would fail due to the difference in the Report bugs to ...
49382         line.  The expected address is empty, "<>", while the actual
49383         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49384
49385 2008-11-12  Bruno Haible  <bruno@clisp.org>
49386
49387         lstat: don't compile lstat.c on systems lacking lstat
49388         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49389         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49390         Reported by Daniel P. Berrange via Jim Meyering.
49391
49392 2008-11-12  Jim Meyering  <meyering@redhat.com>
49393
49394         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
49395
49396 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49397
49398         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
49399         instead.
49400
49401 2008-11-12  Bruno Haible  <bruno@clisp.org>
49402
49403         * lib/unicodeio.c: Include unistr.h.
49404         (utf8_wctomb): Remove function.
49405         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
49406
49407 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49408
49409         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
49410         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
49411         <bruno@clisp.org>.
49412         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
49413
49414 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49415
49416         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
49417         * doc/gnulib.texi: Add section for warnings.
49418
49419 2008-11-11  Bruno Haible  <bruno@clisp.org>
49420
49421         * lib/sockets.h: Add a comment.
49422
49423 2008-11-11  Karl Berry  <karl@gnu.org>
49424
49425         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
49426
49427 2008-11-11  Eric Blake  <ebb9@byu.net>
49428
49429         fdl.texi: avoid git symlinks
49430         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
49431
49432 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49433
49434         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
49435
49436 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49437
49438         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
49439         (gl_WARN_ADD): Substitute $2 if literal.
49440
49441 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49442
49443         * m4/warning.m4: Remove.
49444
49445 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49446
49447         * m4/warnings.m4: Almost complete rewrite. :-)
49448
49449 2008-11-10  Simon Josefsson  <simon@josefsson.org>
49450
49451         * modules/warnings: New module.
49452         * m4/warnings.m4: New file.
49453         * MODULES.html.sh: Mention warnings module.
49454         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
49455         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49456
49457 2008-11-10  Eric Blake  <ebb9@byu.net>
49458
49459         fdl.texi: make a symlink to the latest version
49460         * doc/standards.texi: Revert today's earlier change.
49461         * doc/fdl-1.2.texi: Rename from old fdl.texi...
49462         * doc/fdl.texi: ...and replace this with a symlink to the newer
49463         fdl-1.3.texi.
49464
49465 2008-11-10  Bruno Haible  <bruno@clisp.org>
49466
49467         * tests/test-select-fd.c (main): Accept the result file name as fourth
49468         argument.
49469         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
49470         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
49471
49472 2008-11-10  Bruno Haible  <bruno@clisp.org>
49473
49474         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
49475         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
49476         as autoconf-substituted macros.
49477         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
49478         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
49479         gl_NETDB_H_DEFAULTS. Set these variables.
49480         * modules/netdb (Makefile.am): Substitute these variables.
49481
49482 2008-11-10  Eric Blake  <ebb9@byu.net>
49483
49484         standards.texi: include correct file for FDL 1.3
49485         * doc/standards.texi (GNU Free Documentation License): Change
49486         include file to pull in FDL 1.3, not 1.2.
49487
49488         fdl.texi: revert accidental change to license
49489         * doc/fdl.texi: This is FDL 1.2, not 1.3.
49490
49491 2008-11-10  Bruno Haible  <bruno@clisp.org>
49492
49493         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
49494         cross-compiling guesses also when the native compile gives no result.
49495
49496 2008-11-10  Bruno Haible  <bruno@clisp.org>
49497
49498         * lib/spawni.c (__spawni): Force variable into the stack.
49499
49500 2008-11-10  Bruno Haible  <bruno@clisp.org>
49501
49502         Add support for Haiku.
49503         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
49504         glibc and BeOS, but also on Haiku.
49505         * lib/fpurge.c (fpurge): Likewise.
49506         * lib/freadable.c (freadable): Likewise.
49507         * lib/freadahead.c (freadahead): Likewise.
49508         * lib/freading.c (freading): Likewise.
49509         * lib/freadptr.c (freadptr): Likewise.
49510         * lib/freadseek.c (freadptrinc): Likewise.
49511         * lib/fseeko.c (rpl_fseeko): Likewise.
49512         * lib/fseterr.c (fseterr): Likewise.
49513         * lib/fwritable.c (fwritable): Likewise.
49514         * lib/fwriting.c (fwriting): Likewise.
49515         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49516
49517 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49518
49519         * lib/config.charset: Treat Haiku like BeOS.
49520
49521 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49522
49523         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49524         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49525
49526 2008-11-08  Bruno Haible  <bruno@clisp.org>
49527
49528         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49529         AC_CACHE_CHECK.
49530
49531 2008-11-08  Bruno Haible  <bruno@clisp.org>
49532
49533         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49534
49535 2008-11-08  Bruno Haible  <bruno@clisp.org>
49536
49537         * tests/test-select-fd.c: New file.
49538         * tests/test-select-in.sh: New file.
49539         * tests/test-select-out.sh: New file.
49540         * tests/test-select-stdin.c: New file.
49541         * modules/select-tests (Files): Add the new files.
49542         (Depends-on): Add gettimeofday.
49543         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49544         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49545         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49546
49547 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49548             Bruno Haible  <bruno@clisp.org>
49549
49550         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49551
49552 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49553
49554         * build-aux/pmccabe2html: Added support for C++ source files.
49555
49556 2008-11-05  Ben Pfaff  <blp@gnu.org>
49557
49558         Fix lib/close.c build on Windows.
49559         * modules/close (Files): Add lib/w32sock.h.
49560
49561 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49562
49563         Accept Bison's NEWS format.
49564         * build-aux/announce-gen (print_news_deltas): Tweak
49565         $re_prefix.
49566
49567 2008-11-04  Bruno Haible  <bruno@clisp.org>
49568
49569         * modules/random_r (Maintainer): Add glibc.
49570
49571 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49572
49573         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49574         by karl@freefriends.org (Karl Berry).
49575         * doc/alloca.texi: Likewise.
49576         * doc/c-ctype.texi: Likewise.
49577         * doc/c-strcase.texi: Likewise.
49578         * doc/c-strcaseeq.texi: Likewise.
49579         * doc/c-strcasestr.texi: Likewise.
49580         * doc/c-strstr.texi: Likewise.
49581         * doc/c-strtod.texi: Likewise.
49582         * doc/c-strtold.texi: Likewise.
49583         * doc/ctime.texi: Likewise.
49584         * doc/error.texi: Likewise.
49585         * doc/fdl.texi: Likewise.
49586         * doc/gcd.texi: Likewise.
49587         * doc/getdate.texi: Likewise.
49588         * doc/gnulib-intro.texi: Likewise.
49589         * doc/gnulib-tool.texi: Likewise.
49590         * doc/gnulib.texi: Likewise.
49591         * doc/inet_ntoa.texi: Likewise.
49592         * doc/maintain.texi: Likewise.
49593         * doc/make-stds.texi: Likewise.
49594         * doc/quote.texi: Likewise.
49595         * doc/regexprops-generic.texi: Likewise.
49596         * doc/standards.texi: Likewise.
49597         * doc/verify.texi: Likewise.
49598         * doc/visibility.texi: Likewise.
49599         * doc/gnulib.texi (GNU Free Documentation License): Include
49600         fdl-1.3.texi instead of fdl.texi.
49601
49602 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49603
49604         * doc/fdl-1.3.texi: New file, from
49605         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49606         * modules/fdl-1.3: Add.
49607         * MODULES.html.sh: Add fdl-1.3.
49608
49609 2008-11-03  Bruno Haible  <bruno@clisp.org>
49610
49611         Make determination of absolute name of header file work with AIX xlc.
49612         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49613         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49614         preprocessing.
49615         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49616         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49617
49618 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49619
49620         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49621         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49622         <ludo@gnu.org>.
49623
49624 2008-11-02  Bruno Haible  <bruno@clisp.org>
49625
49626         Mark 'strpbrk' obsolete.
49627         * modules/strpbrk (Status, Notice): New sections.
49628         * modules/strtok_r (Depends-on): Add strpbrk.
49629
49630 2008-11-02  Bruno Haible  <bruno@clisp.org>
49631
49632         Mark 'strdup' obsolete.
49633         * modules/strdup (Status, Notice): New sections.
49634         * modules/findprog (Depends-on): Add strdup.
49635         * modules/getaddrinfo (Depends-on): Likewise.
49636         * modules/localename (Depends-on): Likewise.
49637         * modules/relocatable-lib (Depends-on): Likewise.
49638         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49639         * modules/relocatable-prog (Depends-on): Likewise.
49640         * modules/trim (Depends-on): Likewise.
49641         * modules/unictype/gen-ctype (Depends-on): Likewise.
49642         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49643
49644 2008-11-02  Bruno Haible  <bruno@clisp.org>
49645
49646         Mark 'strcspn' obsolete.
49647         * modules/strcspn (Status, Notice): New sections.
49648
49649 2008-11-02  Bruno Haible  <bruno@clisp.org>
49650
49651         Mark 'rmdir' obsolete.
49652         * modules/rmdir (Status, Notice): New sections.
49653         * modules/clean-temp (Depends-on): Add rmdir.
49654         * modules/openat (Depends-on): Likewise.
49655
49656 2008-11-02  Bruno Haible  <bruno@clisp.org>
49657
49658         Mark 'raise' obsolete.
49659         * modules/raise (Status, Notice): New sections.
49660         (Include): Specify <signal.h>.
49661         * modules/stdio (Depends-on): Add raise.
49662         * modules/write (Depends-on): Likewise.
49663
49664 2008-11-02  Bruno Haible  <bruno@clisp.org>
49665
49666         Mark 'memset' obsolete.
49667         * modules/memset (Status, Notice): New sections.
49668
49669 2008-11-02  Bruno Haible  <bruno@clisp.org>
49670
49671         Mark 'memmove' obsolete.
49672         * modules/memmove (Status, Notice): New sections.
49673         * modules/argp (Depends-on): Add memmove.
49674         * modules/argz (Depends-on): Likewise.
49675         * modules/canonicalize (Depends-on): Likewise.
49676         * modules/canonicalize-lgpl (Depends-on): Likewise.
49677         * modules/fts (Depends-on): Likewise.
49678         * modules/getcwd (Depends-on): Likewise.
49679         * modules/human (Depends-on): Likewise.
49680         * modules/regex (Depends-on): Likewise.
49681         * modules/striconveh (Depends-on): Likewise.
49682         * modules/trim (Depends-on): Likewise.
49683         * modules/unistr/u8-move (Depends-on): Likewise.
49684         * modules/unistr/u16-move (Depends-on): Likewise.
49685         * modules/unistr/u32-move (Depends-on): Likewise.
49686
49687 2008-11-02  Bruno Haible  <bruno@clisp.org>
49688
49689         Mark 'memcpy' obsolete.
49690         * modules/memcpy (Status, Notice): New sections.
49691
49692 2008-11-02  Bruno Haible  <bruno@clisp.org>
49693
49694         Mark 'memcmp' obsolete.
49695         * modules/memcmp (Status, Notice): New sections.
49696         * modules/argmatch (Depends-on): Add memchr.
49697         * modules/backupfile (Depends-on): Likewise.
49698         * modules/c-strcasestr (Depends-on): Likewise.
49699         * modules/crypto/des (Depends-on): Likewise.
49700         * modules/csharpcomp (Depends-on): Likewise.
49701         * modules/fnmatch (Depends-on): Likewise.
49702         * modules/git-merge-changelog (Depends-on): Likewise.
49703         * modules/isnand (Depends-on): Likewise.
49704         * modules/isnand-nolibm (Depends-on): Likewise.
49705         * modules/isnanf (Depends-on): Likewise.
49706         * modules/isnanf-nolibm (Depends-on): Likewise.
49707         * modules/isnanl (Depends-on): Likewise.
49708         * modules/isnanl-nolibm (Depends-on): Likewise.
49709         * modules/mbchar (Depends-on): Likewise.
49710         * modules/memcoll (Depends-on): Likewise.
49711         * modules/quotearg (Depends-on): Likewise.
49712         * modules/regex (Depends-on): Likewise.
49713         * modules/relocatable-prog (Depends-on): Likewise.
49714         * modules/same (Depends-on): Likewise.
49715         * modules/signbit (Depends-on): Likewise.
49716         * modules/strcasestr-simple (Depends-on): Likewise.
49717         * modules/unictype/gen-ctype (Depends-on): Likewise.
49718         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49719         * modules/uniname/uniname (Depends-on): Likewise.
49720         * modules/unistr/u8-cmp (Depends-on): Likewise.
49721
49722 2008-11-02  Bruno Haible  <bruno@clisp.org>
49723
49724         Mark 'memchr' obsolete.
49725         * modules/memchr (Status, Notice): New sections.
49726         * modules/argp (Depends-on): Add memchr.
49727         * modules/base64 (Depends-on): Likewise.
49728         * modules/c-strcasestr (Depends-on): Likewise.
49729         * modules/chdir-long (Depends-on): Likewise.
49730         * modules/fnmatch (Depends-on): Likewise.
49731         * modules/getsubopt (Depends-on): Likewise.
49732         * modules/git-merge-changelog (Depends-on): Likewise.
49733         * modules/glob (Depends-on): Likewise.
49734         * modules/strcasestr-simple (Depends-on): Likewise.
49735         * modules/strnlen (Depends-on): Likewise.
49736
49737 2008-11-02  Bruno Haible  <bruno@clisp.org>
49738
49739         Mark 'atexit' obsolete.
49740         * modules/atexit (Status, Notice): New sections.
49741         * modules/chdir-long (Depends-on): Add atexit.
49742         * modules/wait-process (Depends-on): Likewise.
49743
49744 2008-11-02  Bruno Haible  <bruno@clisp.org>
49745
49746         * gnulib-tool: New option --with-obsolete.
49747         (func_usage): Document it.
49748         (func_modules_transitive_closure): Drop obsolete dependencies if
49749         incobsolete is not true.
49750         (func_import): Read and save the incobsolete variable to the cache.
49751
49752 2008-11-02  Bruno Haible  <bruno@clisp.org>
49753
49754         * modules/TEMPLATE-EXTENDED: New field 'Status'.
49755         * gnulib-tool: New option --extract-status.
49756         (func_usage): Document it.
49757         (sed_extract_prog): Recognize it.
49758         (func_get_status): New function.
49759
49760 2008-10-30  Simon Josefsson  <simon@josefsson.org>
49761
49762         * modules/sockets (License): Change from LGPL to LGPLv2+.
49763
49764 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49765
49766         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
49767
49768 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49769
49770         * MODULES.html.sh (Support for systems lacking POSIX:2001):
49771         Mention times and sys_times.
49772         * modules/sys_times, modules/sys_times-tests: New modules.
49773         * modules/times, modules/times-tests: Likewise
49774         * m4/sys_times_h.m4: New file.
49775         * lib/sys_times.in.h: Likewise
49776         * lib/times.c: Likewise.
49777         * tests/test-sys_times.c: Likewise.
49778         * tests/test-times.c: Likewise.
49779         * doc/posix-headers/sys_times.texi: Update.
49780         * doc/posix-functions/times.texi: Update.
49781
49782 2008-10-28  Jim Meyering  <meyering@redhat.com>
49783
49784         * modules/tempname (Depends-on): Add lstat.
49785
49786         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
49787
49788 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49789
49790         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
49791         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
49792         using idiom used elsewhere in gnulib.
49793
49794 2008-10-27  Jim Meyering  <meyering@redhat.com>
49795
49796         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
49797
49798 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49799
49800         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
49801         TESTS_ENVIRONMENT, for shell scripts that needs to call built
49802         programs.
49803         * tests/test-argp-2.sh: Use $EXEEXT when needed.
49804
49805 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49806
49807         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
49808
49809 2008-10-27  Bruno Haible  <bruno@clisp.org>
49810
49811         * tests/test-lstat.c: Include <stdio.h>.
49812
49813 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49814
49815         * modules/lstat-tests: New module.
49816         * tests/test-lstat.c: New file.
49817
49818 2008-10-26  Jim Meyering  <meyering@redhat.com>
49819
49820         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
49821
49822 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49823             Bruno Haible  <bruno@clisp.org>
49824
49825         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
49826         * modules/configmake (Include): Add a note that the include must come
49827         after all system headers.
49828         * lib/javaversion.c: Include configmake.h after all other includes.
49829
49830 2008-10-26  Bruno Haible  <bruno@clisp.org>
49831
49832         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
49833         HAVE_STRUCT_RANDOM_DATA to 1.
49834         (gl_STDLIB_H): Simplify.
49835
49836 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49837
49838         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
49839         substitute HAVE_STRUCT_RANDOM_DATA.
49840         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
49841         random_data.
49842         * modules/stdlib (Makefile.am): Substitute
49843         HAVE_STRUCT_RANDOM_DATA.
49844
49845 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49846
49847         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
49848         * doc/gnulib-intro.texi (Copyright): Likewise.
49849
49850 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49851
49852         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
49853         findings.
49854
49855 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
49856             Bruno Haible  <bruno@clisp.org>
49857
49858         * lib/unistd.in.h: Include <winsock2.h>.
49859         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
49860         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
49861         Provide dummy declarations.
49862         (gethostname): Override.
49863         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
49864         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
49865         gl_PREREQ_SYS_H_WINSOCK2.
49866         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
49867         * doc/posix-functions/gethostname.texi: More details.
49868
49869 2008-10-25  Bruno Haible  <bruno@clisp.org>
49870
49871         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49872         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
49873         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
49874
49875         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
49876         here ...
49877         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
49878         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
49879         gl_UNISTD_H_DEFAULTS.
49880
49881 2008-10-25  Eric Blake  <ebb9@byu.net>
49882
49883         signbit: avoid spurious compiler failure
49884         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
49885         declarations inside function.
49886
49887 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49888             Bruno Haible  <bruno@clisp.org>
49889
49890         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
49891         * modules/random_r (Depends-on): Add stdint.
49892
49893 2008-10-24  Bruno Haible  <bruno@clisp.org>
49894
49895         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
49896         Eggert.
49897         * modules/strerror (License): Likewise.
49898
49899 2008-10-24  Jim Meyering  <meyering@redhat.com>
49900
49901         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
49902         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
49903
49904 2008-10-24  Eric Blake  <ebb9@byu.net>
49905
49906         getgroups: fix compilation when getgroups is available
49907         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
49908         but with <config.h> override of getgroups disabled.
49909
49910 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49911
49912         * doc/gnulib.texi (Header files): Add note about C++ problems.
49913         Explained by Bruno Haible <bruno@clisp.org>.
49914
49915 2008-10-23  Bruno Haible  <bruno@clisp.org>
49916
49917         Define a dummy SA_NODEFER macro on Interix.
49918         * lib/signal.in.h (SA_NODEFER): Define fallback.
49919         Reported by Aleksey Cheusov <cheusov@tut.by> via
49920         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
49921
49922 2008-10-23  Bruno Haible  <bruno@clisp.org>
49923
49924         * modules/freadahead (License): Change to LGPLv2+.
49925         Suggested by Simon Josefsson.
49926
49927 2008-10-23  Jim Meyering  <meyering@redhat.com>
49928
49929         random_r: new module
49930         * modules/random_r: New file.
49931         * m4/random_r.m4: New file.
49932         * lib/random_r.c: New file, from glibc.
49933         * modules/random_r-tests: New file.
49934         * tests/test-random_r.c: New file.
49935         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
49936          Declare.
49937         (RAND_MAX): Define.
49938         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
49939         * modules/stdlib: Substitute them, too.
49940         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
49941         * doc/glibc-functions/initstate_r.texi: Mention the new module.
49942         * doc/glibc-functions/random_r.texi: Likewise.
49943         * doc/glibc-functions/setstate_r.texi: Likewise.
49944         * doc/glibc-functions/srandom_r.texi: Likewise.
49945         * config/srclist.txt: Mention it.
49946
49947 2008-10-23  David Lutterkort  <lutter@redhat.com>
49948
49949         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
49950         link requirement
49951
49952 2008-10-23  Jim Meyering  <meyering@redhat.com>
49953
49954         selinux-h: mark parameters of stub functions as intentionally unused
49955         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
49956         * lib/se-context.in.h: Likewise.
49957
49958 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49959
49960         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
49961
49962 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49963
49964         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
49965
49966 2008-10-22  Eric Blake  <ebb9@byu.net>
49967
49968         glthread/thread: avoid compiler warning
49969         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
49970         Add unreachable abort to silence compiler.
49971
49972 2008-10-22  Eric Blake  <ebb9@byu.net>
49973
49974         netdb: also supply struct addrinfo for cygwin 1.5.x
49975         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
49976         older cygwin.
49977         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
49978         cygwin.
49979         * doc/posix-headers/netdb.texi (netdb.h): Document this.
49980
49981 2008-10-22  Bruno Haible  <bruno@clisp.org>
49982
49983         * users.txt: Update entry about pspp.
49984
49985 2008-10-21  Bruno Haible  <bruno@clisp.org>
49986
49987         Simplification.
49988         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
49989         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
49990
49991         Simplification.
49992         * lib/ioctl.c (ioctl): Don't undefine.
49993         * lib/socket.c (socket): Don't undefine.
49994
49995         Remove unused module indicator macros.
49996         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
49997         GNULIB_$1 as a C macro.
49998
49999         * doc/posix-functions/close.texi: Undo last change.
50000         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50001         Windows platforms.
50002
50003 2008-10-21  Bruno Haible  <bruno@clisp.org>
50004
50005         Add gethostname() declaration to <unistd.h>.
50006         * lib/unistd.in.h (gethostname): New declaration.
50007         * lib/gethostname.c: Include <unistd.h>.
50008         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50009         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50011         and HAVE_GETHOSTNAME.
50012         * modules/gethostname (Depends-on): Add unistd.
50013         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50014         (Include): Specify <unistd.h>.
50015         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50016         HAVE_GETHOSTNAME.
50017         * tests/test-gethostname.c: Include <unistd.h> first.
50018
50019 2008-10-21  Bruno Haible  <bruno@clisp.org>
50020
50021         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50022         * modules/select-tests (Depends-on): Likewise.
50023         Reported by Simon Josefsson.
50024
50025 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50026
50027         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50028         * lib/accept.c: New file, based on winsock.c.
50029         * lib/bind.c: New file, based on winsock.c.
50030         * lib/connect.c: New file, based on winsock.c.
50031         * lib/getpeername.c: New file, based on winsock.c.
50032         * lib/getsockname.c: New file, based on winsock.c.
50033         * lib/getsockopt.c: New file, based on winsock.c.
50034         * lib/ioctl.c: New file, based on winsock.c.
50035         * lib/listen.c: New file, based on winsock.c.
50036         * lib/recv.c: New file, based on winsock.c.
50037         * lib/recvfrom.c: New file, based on winsock.c.
50038         * lib/send.c: New file, based on winsock.c.
50039         * lib/sendto.c: New file, based on winsock.c.
50040         * lib/setsockopt.c: New file, based on winsock.c.
50041         * lib/shutdown.c: New file, based on winsock.c.
50042         * lib/socket.c: New file, based on winsock.c.
50043         * lib/w32sock.h: New file, based on winsock.c.
50044         * lib/winsock.c: Remove file.
50045         * modules/accept: Likewise.
50046         * modules/bind: Likewise.
50047         * modules/connect: Likewise.
50048         * modules/getpeername: Likewise.
50049         * modules/getsockname: Likewise.
50050         * modules/getsockopt: Likewise.
50051         * modules/ioctl: Likewise.
50052         * modules/listen: Likewise.
50053         * modules/recv: Likewise.
50054         * modules/recvfrom: Likewise.
50055         * modules/send: Likewise.
50056         * modules/sendto: Likewise.
50057         * modules/setsockopt: Likewise.
50058         * modules/shutdown: Likewise.
50059         * modules/socket: Use socket.c instead of winsock.c.
50060         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50061         * doc/posix-functions/accept.texi: Doc fix.
50062         * doc/posix-functions/bind.texi: Doc fix.
50063         * doc/posix-functions/close.texi: Doc fix.
50064         * doc/posix-functions/connect.texi: Doc fix.
50065         * doc/posix-functions/getpeername.texi: Doc fix.
50066         * doc/posix-functions/getsockname.texi: Doc fix.
50067         * doc/posix-functions/getsockopt.texi: Doc fix.
50068         * doc/posix-functions/ioctl.texi: Doc fix.
50069         * doc/posix-functions/listen.texi: Doc fix.
50070         * doc/posix-functions/recv.texi: Doc fix.
50071         * doc/posix-functions/recvfrom.texi: Doc fix.
50072         * doc/posix-functions/send.texi: Doc fix.
50073         * doc/posix-functions/sendto.texi: Doc fix.
50074         * doc/posix-functions/setsockopt.texi: Doc fix.
50075         * doc/posix-functions/shutdown.texi: Doc fix.
50076         * doc/posix-functions/socket.texi: Doc fix.
50077
50078 2008-10-20  Bruno Haible  <bruno@clisp.org>
50079
50080         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50081         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50082         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50083         as an alias for SIGABRT.
50084         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50085         (sigaction): Map it to SIGABRT.
50086         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50087
50088 2008-10-20  Bruno Haible  <bruno@clisp.org>
50089
50090         * lib/fts.c: Don't include lstat.h.
50091         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50092
50093         Move the lstat() declaration to <sys/stat.h>.
50094         * lib/lstat.h: Remove file.
50095         * lib/sys_stat.in.h: Add special invocation convention.
50096         (lstat): New declaration.
50097         * lib/lstat.c (orig_lstat): New function.
50098         (rpl_lstat): Use orig_lstat instead of lstat.
50099         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50100         AC_C_INLINE. Set REPLACE_LSTAT.
50101         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50102         and REPLACE_LSTAT.
50103         * modules/lstat (Files): Remove lib/lstat.h.
50104         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50105         (Include): Specify <sys/stat.h> instead of lstat.h.
50106         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50107         REPLACE_LSTAT.
50108         * NEWS: Mention the change.
50109
50110 2008-10-20  Bruno Haible  <bruno@clisp.org>
50111
50112         * modules/posix_spawn-tests: New file.
50113         * tests/test-posix_spawn3.c: New file.
50114
50115 2008-10-20  Bruno Haible  <bruno@clisp.org>
50116
50117         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50118         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50119         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50120         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50121         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50122
50123 2008-10-20  Bruno Haible  <bruno@clisp.org>
50124
50125         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50126         of posix_spawn on AIX 5.3.
50127
50128 2008-10-20  Bruno Haible  <bruno@clisp.org>
50129
50130         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50131
50132 2008-10-20  Bruno Haible  <bruno@clisp.org>
50133
50134         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50135         of AC_LANG_PROGRAM.
50136
50137 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50138
50139         * lib/netdb.in.h: Don't define GNU specific constants until they
50140         are supported or needed.  Reported by Bruno Haible
50141         <bruno@clisp.org>.
50142
50143 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50144
50145         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50146
50147 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50148
50149         * lib/getaddrinfo.h: Remove file.
50150         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50151         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50152         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50153         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50154         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50155         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50156         * tests/test-getaddrinfo.c: Likewise.
50157         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50158         * NEWS: Mention change.
50159
50160 2008-10-19  Bruno Haible  <bruno@clisp.org>
50161
50162         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50163
50164 2008-10-19  Bruno Haible  <bruno@clisp.org>
50165
50166         * lib/wait-process.c: Include simply <sys/wait.h>.
50167         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50168         WIFSTOPPED): Remove fallback definitions.
50169         * modules/wait-process (Depends-on): Add sys_wait.
50170
50171         New module 'sys_wait'.
50172         * modules/sys_wait: New file.
50173         * lib/sys_wait.in.h: New file, partially copied from
50174         lib/wait-process.c.
50175         * m4/sys_wait_h.m4: New file.
50176         * doc/posix-headers/sys_wait.texi: Mention the new module.
50177
50178 2008-10-19  Bruno Haible  <bruno@clisp.org>
50179
50180         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50181
50182 2008-10-19  Bruno Haible  <bruno@clisp.org>
50183
50184         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50185         * lib/wait-process.c (WAIT_T): Remove type.
50186         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50187         (wait_subprocess): Update.
50188
50189 2008-10-19  Bruno Haible  <bruno@clisp.org>
50190
50191         New module 'atoll'.
50192         * modules/atoll: New file.
50193         * lib/stdlib.in.h (atoll): New declaration.
50194         * lib/atoll.c: New file, from glibc with modifications.
50195         * m4/atoll.m4: New file.
50196         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50197         HAVE_ATOLL.
50198         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50199         * doc/posix-functions/atoll.texi: Mention the new module.
50200
50201 2008-10-19  Bruno Haible  <bruno@clisp.org>
50202
50203         Add strtoull() declaration to <stdlib.h>.
50204         * lib/stdlib.in.h (strtoull): New declaration.
50205         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50206         Set HAVE_STRTOULL.
50207         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50208         HAVE_STRTOULL.
50209         * modules/strtoull (Depends-on): Add stdlib.
50210         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50211         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50212         HAVE_STRTOULL.
50213
50214 2008-10-19  Bruno Haible  <bruno@clisp.org>
50215
50216         Add strtoll() declaration to <stdlib.h>.
50217         * lib/stdlib.in.h (strtoll): New declaration.
50218         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50219         Set HAVE_STRTOLL.
50220         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50221         HAVE_STRTOLL.
50222         * modules/strtoll (Depends-on): Add stdlib.
50223         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50224         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50225
50226 2008-10-19  Bruno Haible  <bruno@clisp.org>
50227
50228         * modules/bcopy (Depends-on): Add strings.
50229         (Include): Specify <strings.h>.
50230
50231 2008-10-19  Bruno Haible  <bruno@clisp.org>
50232
50233         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50234
50235 2008-10-19  Bruno Haible  <bruno@clisp.org>
50236
50237         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50238         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50239         mingw.
50240
50241 2008-10-19  Bruno Haible  <bruno@clisp.org>
50242
50243         * lib/atanl.c: Don't include isnanl.h.
50244         * lib/cosl.c: Likewise.
50245         * lib/ldexpl.c: Likewise.
50246         * lib/logl.c: Likewise.
50247         * lib/sinl.c: Likewise.
50248         * lib/sqrtl.c: Likewise.
50249         * lib/tanl.c: Likewise.
50250
50251         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50252         * lib/isnanf.h: Remove file.
50253         * lib/isnand.h: Remove file.
50254         * lib/isnanl.h: Remove file.
50255         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50256         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50257         macros.
50258         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50259         HAVE_ISNANF, don't define it as a C macro.
50260         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50261         HAVE_ISNAND, don't define it as a C macro.
50262         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50263         HAVE_ISNANL, don't define it as a C macro.
50264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50265         HAVE_ISNAN[FDL].
50266         * modules/isnanf (Files): Remove lib/isnanf.h.
50267         (Depends-on): Add math.
50268         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50269         (Include): Specify <math.h> instead of isnanf.h.
50270         * modules/isnand (Files): Remove lib/isnand.h.
50271         (Depends-on): Add math.
50272         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50273         (Include): Specify <math.h> instead of isnand.h.
50274         * modules/isnanl (Files): Remove lib/isnanl.h.
50275         (Depends-on): Add math.
50276         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50277         (Include): Specify <math.h> instead of isnanl.h.
50278         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50279         HAVE_ISNAN[FDL].
50280         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50281         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50282         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50283         * NEWS: Mention the change.
50284
50285 2008-10-18  Bruno Haible  <bruno@clisp.org>
50286
50287         Add getusershell(), setusershell(), endusershell() declarations to
50288         <unistd.h>.
50289         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50290         declarations.
50291         * lib/getusershell.c: Include unistd.h.
50292         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50293         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50294         HAVE_GETUSERSHELL.
50295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50296         and HAVE_GETUSERSHELL.
50297         * modules/getusershell (Depends-on): Add unistd, extensions.
50298         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50299         (Include): Specify <unistd.h>.
50300         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50301         HAVE_GETUSERSHELL.
50302
50303 2008-10-18  Bruno Haible  <bruno@clisp.org>
50304
50305         Add a getloadavg() declaration to <stdlib.h>.
50306         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50307         getloadavg declaration.
50308         (getloadavg): New declaration.
50309         * lib/getloadavg.c: Include <stdlib.h> first.
50310         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50311         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50312         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50314         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50315         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50316         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50317         (Include): Specify <stdlib.h>.
50318         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50319         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50320
50321 2008-10-18  Bruno Haible  <bruno@clisp.org>
50322
50323         * lib/dirchownmod.c: Don't include lchmod.h.
50324
50325         Move the lchmod() declaration to <sys/stat.h>.
50326         * lib/lchmod.h: Remove file.
50327         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
50328         (lchmod): New declaration, moved here from lib/lchown.h.
50329         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
50330         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
50331         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
50332         and HAVE_LCHMOD.
50333         * modules/lchmod (Files): Remove lib/lchmod.h.
50334         (Depends-on): Add sys_stat, extensions.
50335         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50336         (Include): Specify <sys/stat.h> instead of lchmod.h.
50337         * modules/sys_stat (Depends-on): Add link-warning.
50338         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
50339         definition of GL_LINK_WARNING.
50340         * NEWS: Mention the change.
50341
50342 2008-10-18  Bruno Haible  <bruno@clisp.org>
50343
50344         * lib/fchdir.c: Don't include dirfd.h.
50345         * lib/fts.c: Likewise.
50346         * lib/getcwd.c: Likewise.
50347         * lib/glob.c: Likewise.
50348
50349         Move the dirfd() declaration to <dirent.h>.
50350         * lib/dirfd.h: Remove file.
50351         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50352         (dirfd): New declaration.
50353         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
50354         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
50355         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
50356         HAVE_DECL_DIRFD.
50357         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50358         HAVE_DECL_DIRFD.
50359         * modules/dirfd (Files): Remove lib/dirfd.h.
50360         (Depends-on): Add dirent, extensions.
50361         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50362         (Include): Specify <dirent.h> instead of dirfd.h.
50363         * modules/dirent (Depends-on): Add link-warning.
50364         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50365         definition of GL_LINK_WARNING.
50366         * NEWS: Mention the change.
50367
50368 2008-10-18  Bruno Haible  <bruno@clisp.org>
50369
50370         Move the euidaccess() declaration to <unistd.h>.
50371         * lib/euidaccess.h: Remove file.
50372         * lib/unistd.in.h (euidaccess): New declaration.
50373         * lib/euidaccess.c: Don't include euidaccess.h.
50374         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50375         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50377         and HAVE_EUIDACCESS.
50378         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50379         (Depends-on): Add unistd.
50380         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50381         (Include): Specify <unistd.h> instead of euidaccess.h.
50382         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50383         HAVE_EUIDACCESS.
50384         * NEWS: Mention the change.
50385
50386 2008-10-18  Bruno Haible  <bruno@clisp.org>
50387
50388         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50389
50390         Move the getdomainname() declaration to <unistd.h>.
50391         * lib/getdomainname.h: Remove file.
50392         * lib/unistd.in.h (getdomainname): New declaration.
50393         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50394         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
50395         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50396         HAVE_GETDOMAINNAME.
50397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50398         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
50399         * modules/getdomainname (Files): Remove lib/getdomainname.h.
50400         (Depends-on): Add unistd, extensions.
50401         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50402         (Includes): Specify <unistd.h> instead of getdomainname.h.
50403         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
50404         HAVE_GETDOMAINNAME.
50405         * NEWS: Mention the change.
50406
50407 2008-10-18  Bruno Haible  <bruno@clisp.org>
50408
50409         * modules/dirent: New file.
50410         * m4/dirent_h.m4: New file.
50411         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
50412         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
50413         * modules/fchdir (Files): Remove lib/dirent.in.h.
50414         (Depends-on): Add dirent.
50415         (Makefile.am): Move rules to modules/dirent.
50416         * doc/posix-headers/dirent.texi: Mention the new module.
50417
50418 2008-10-18  Bruno Haible  <bruno@clisp.org>
50419
50420         Avoid -Wunused-parameter warnings in public gnulib header files.
50421         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
50422         macro.
50423         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
50424
50425 2008-10-18  Bruno Haible  <bruno@clisp.org>
50426
50427         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
50428         * doc/glibc-functions/error.texi: Mention the module 'error'.
50429         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
50430         * doc/glibc-functions/getdomainname.texi: Mention the module
50431         'getdomainname'.
50432         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
50433         * doc/glibc-functions/getpagesize.texi: Mention the module
50434         'getpagesize'.
50435         * doc/glibc-functions/getusershell.texi: Mention the module
50436         'getusershell'.
50437         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
50438         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
50439         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
50440         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
50441         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
50442         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
50443         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
50444         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
50445         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
50446         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
50447         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
50448         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
50449         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
50450         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
50451
50452 2008-10-17  Bruno Haible  <bruno@clisp.org>
50453
50454         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
50455         HP-UX and IRIX, use -0.0L.
50456         * tests/test-ceill.c (minus_zero): Likewise.
50457         * tests/test-floorl.c (minus_zero): Likewise.
50458         * tests/test-frexpl.c (minus_zero): Likewise.
50459         * tests/test-isnan.c (minus_zerol): Likewise.
50460         * tests/test-isnanl.h (minus_zero): Likewise.
50461         * tests/test-ldexpl.c (minus_zero): Likewise.
50462         * tests/test-roundl.c (minus_zero): Likewise.
50463         * tests/test-signbit.c (minus_zerol): Likewise.
50464         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50465         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50466         * tests/test-truncl.c (minus_zero): Likewise.
50467         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50468         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50469         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
50470         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50471
50472 2008-10-17  Bruno Haible  <bruno@clisp.org>
50473
50474         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
50475         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
50476         that it gets activated only for gcc >= 3.0.
50477         * lib/dirent.in.h: Likewise.
50478         * lib/errno.in.h: Likewise.
50479         * lib/fcntl.in.h: Likewise.
50480         * lib/float.in.h: Likewise.
50481         * lib/iconv.in.h: Likewise.
50482         * lib/inttypes.in.h: Likewise.
50483         * lib/locale.in.h: Likewise.
50484         * lib/math.in.h: Likewise.
50485         * lib/netdb.in.h: Likewise.
50486         * lib/netinet_in.in.h: Likewise.
50487         * lib/search.in.h: Likewise.
50488         * lib/signal.in.h: Likewise.
50489         * lib/spawn.in.h: Likewise.
50490         * lib/stdarg.in.h: Likewise.
50491         * lib/stdint.in.h: Likewise.
50492         * lib/stdio.in.h: Likewise.
50493         * lib/stdlib.in.h: Likewise.
50494         * lib/string.in.h: Likewise.
50495         * lib/strings.in.h: Likewise.
50496         * lib/sys_file.in.h: Likewise.
50497         * lib/sys_ioctl.in.h: Likewise.
50498         * lib/sys_select.in.h: Likewise.
50499         * lib/sys_socket.in.h: Likewise.
50500         * lib/sys_stat.in.h: Likewise.
50501         * lib/sys_time.in.h: Likewise.
50502         * lib/sysexits.in.h: Likewise.
50503         * lib/time.in.h: Likewise.
50504         * lib/unistd.in.h: Likewise.
50505         * lib/wchar.in.h: Likewise.
50506         * lib/wctype.in.h: Likewise.
50507         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50508
50509 2008-10-17  Jim Meyering  <meyering@redhat.com>
50510
50511         ignore-value: don't depend on inline module
50512         * modules/ignore-value (Depends-on): Remove 'inline'.
50513         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50514         Suggestion from Bruno Haible.
50515
50516 2008-10-17  Bruno Haible  <bruno@clisp.org>
50517
50518         New implementation of condition variables for Win32.
50519         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50520         (gl_linked_waitqueue_t): New type.
50521         (gl_cond_t): Use it.
50522         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50523         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50524         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50525         (glthread_cond_init_func, glthread_cond_wait_func,
50526         glthread_cond_timedwait_func, glthread_cond_signal_func,
50527         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50528         Reimplemented on the basis of gl_linked_waitqueue_t.
50529         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50530         gl_waitqueue_t.
50531         (gl_rwlock_t): Update.
50532         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50533
50534 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50535
50536         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50537         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50538
50539 2008-10-17  Jim Meyering  <meyering@redhat.com>
50540
50541         ignore-value: new module
50542         * modules/ignore-value: New file.
50543         * lib/ignore-value.h: New file.
50544         * MODULES.html.sh (Compiler warning management): New section,
50545         just for this module.  More to come.
50546
50547 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50548
50549         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50550         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50551         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50552
50553 2008-10-16  Jim Meyering  <meyering@redhat.com>
50554
50555         openat-die.c: avoid 'no previous prototype' warning
50556         * lib/openat-die.c: Include "openat.h".
50557         Reported by Reuben Thomas <rrt@sc3d.org>.
50558
50559 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50560
50561         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50562         * lib/netdb.in.h: Fix typo.
50563         Reported by Bruno Haible  <bruno@clisp.org>
50564
50565         * lib/netdb.in.h: Include sys/socket.h for platforms without
50566         netdb.h, to get structures like hostent on MinGW.
50567         * modules/netdb (Depends-on): Add sys_socket.
50568
50569 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50570
50571         * modules/netdb, modules/netdb-tests: New file.
50572         * m4/netdb_h.m4: New file.
50573         * lib/netdb.in.h: Add, currently just an empty file pending
50574         definitions.
50575         * tests/test-netdb.c: New file.
50576         * doc/posix-headers/netdb.texi: Mention that we replace it if
50577         needed.
50578         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50579         netdb.
50580
50581 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50582
50583         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50584         with code.
50585
50586 2008-10-13  Bruno Haible  <bruno@clisp.org>
50587
50588         * lib/glthread/cond.c (glthread_cond_wait_func,
50589         glthread_cond_timedwait_func): Add a comment.
50590
50591 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50592
50593         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50594         * tests/test-select.c: Likewise,
50595
50596 2008-10-13  Bruno Haible  <bruno@clisp.org>
50597
50598         * lib/glthread/cond.c (glthread_cond_wait_func,
50599         glthread_cond_timedwait_func): Fix variable name.
50600         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50601
50602 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50603
50604         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50605         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50606         struct sockaddr.sa_len.
50607         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50608
50609 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50610
50611         * build-aux/pmccabe2html: Add css and css_url parameters.
50612
50613 2008-10-12  Bruno Haible  <bruno@clisp.org>
50614
50615         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50616         calling aclx_get.
50617         Reported by Rainer Tammer <tammer@tammer.net>.
50618
50619 2008-10-12  Bruno Haible  <bruno@clisp.org>
50620
50621         Use msvcrt aware primitives for creation/termination of Win32 threads.
50622         * lib/glthread/thread.c: Include <process.h>.
50623         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50624         (wrapper_func): Update signature.
50625         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50626
50627 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50628             Bruno Haible  <bruno@clisp.org>
50629
50630         Provide a Win32 implementation of the 'cond' module.
50631         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50632         * lib/glthread/cond.c (glthread_cond_init_func,
50633         glthread_cond_wait_func, glthread_cond_timedwait_func,
50634         glthread_cond_signal_func, glthread_cond_broadcast_func,
50635         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50636         * modules/cond (Dependencies): Add gettimeofday.
50637
50638 2008-10-11  Bruno Haible  <bruno@clisp.org>
50639
50640         Make sleep work on older versions of mingw.
50641         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50642         only whether it exists.
50643         * doc/posix-functions/sleep.texi: Mention the problem with older
50644         versions of mingw.
50645
50646 2008-10-11  Bruno Haible  <bruno@clisp.org>
50647
50648         New module 'shutdown'.
50649         * modules/shutdown: New file.
50650         * lib/sys_socket.in.h (shutdown): New declaration.
50651         * lib/winsock.c (shutdown): New function.
50652         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50653         GNULIB_SHUTDOWN.
50654         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50655         * doc/posix-functions/shutdown.texi: Document the new module.
50656
50657 2008-10-11  Jim Meyering  <meyering@redhat.com>
50658
50659         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
50660
50661 2008-10-11  Bruno Haible  <bruno@clisp.org>
50662
50663         New module 'fclose'.
50664         * modules/fclose: New file.
50665         * lib/stdio.in.h (fclose): New declaration.
50666         * lib/fclose.c: New file.
50667         * m4/fclose.m4: New file.
50668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
50669         REPLACE_FCLOSE.
50670         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
50671         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
50672         REPLACE_FCLOSE.
50673         * modules/close (Depends-on): fclose.
50674         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50675
50676 2008-10-11  Bruno Haible  <bruno@clisp.org>
50677
50678         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
50679         set errno and don't call _close.
50680
50681 2008-10-10  Bruno Haible  <bruno@clisp.org>
50682
50683         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
50684         ACL, not afterwards. Fixes test failure on Cygwin.
50685
50686 2008-10-09  Ben Pfaff  <blp@gnu.org>
50687
50688         * build-aux/announce-gen: Fix gnulib version related part of usage
50689         message.  Die with a useful error message if no tarballs are
50690         found.
50691
50692 2008-10-10  Jim Meyering  <meyering@redhat.com>
50693
50694         bootstrap: use git's --depth=N option only if it's supported
50695         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
50696         recognize the --depth option.  Reported by Pádraig Brady.
50697
50698 2008-10-09  Bruno Haible  <bruno@clisp.org>
50699
50700         New module 'ioctl'.
50701         * modules/ioctl: New file.
50702         * lib/sys_socket.in.h (ioctl): Remove declaration.
50703         * lib/winsock.c: Include <sys/ioctl.h>.
50704         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
50705         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50706         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
50707         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
50708         * doc/posix-functions/ioctl.texi: Mention the new module.
50709
50710 2008-10-09  Bruno Haible  <bruno@clisp.org>
50711
50712         New module 'sys_ioctl'.
50713         * lib/sys_ioctl.in.h: New file.
50714         * m4/sys_ioctl_h.m4: New file.
50715         * modules/sys_ioctl: New file.
50716         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
50717
50718 2008-10-09  Bruno Haible  <bruno@clisp.org>
50719
50720         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
50721         * lib/winsock.c: Include <stdarg.h>.
50722         (rpl_ioctl): Change to second argument 'int' and then varargs.
50723
50724 2008-10-09  Bruno Haible  <bruno@clisp.org>
50725
50726         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
50727         when the sys_socket module is present and the system has <winsock2.h>.
50728
50729 2008-10-09  Bruno Haible  <bruno@clisp.org>
50730
50731         * doc/posix-functions/close.texi: Mention module 'close' instead of
50732         module 'sys_socket'.
50733
50734 2008-10-09  Bruno Haible  <bruno@clisp.org>
50735
50736         * doc/glibc-headers/sys_ioctl.texi: New file.
50737         * doc/gnulib.texi: Include it.
50738
50739 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50740             Bruno Haible  <bruno@clisp.org>
50741
50742         Combine the two replacements of 'close'.
50743         * lib/sys_socket.in.h (close): Define to a reminder to include
50744         <unistd.h>.
50745         (_gl_close_fd_maybe_socket): New declaration.
50746         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
50747         * lib/winsock.c (close): Remove undefinition.
50748         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
50749         needed for the gnulib module 'close'.
50750         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
50751         define to an error symbol or to a warning, if suitable.
50752         * lib/close.c: Include <sys/socket.h>.
50753         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
50754         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
50755         UNISTD_H_HAVE_WINSOCK2_H.
50756         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
50757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50758         UNISTD_H_HAVE_WINSOCK2_H.
50759         * modules/sys_socket (Files): Add m4/unistd_h.m4.
50760         (configure.ac): Set a module indicator.
50761         (Makefile.am): Substitute GNULIB_CLOSE.
50762         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
50763         * modules/poll-tests (Depends-on): Add close.
50764         * modules/select-tests (Depends-on): Likewise.
50765
50766 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50767             Bruno Haible  <bruno@clisp.org>
50768
50769         New module 'close'.
50770         * modules/close: New file.
50771         * lib/unistd.in.h (close): Move declaration out of the
50772         FCHDIR_REPLACEMENT scope.
50773         (_gl_unregister_fd): New declaration.
50774         * lib/close.c: New file.
50775         * lib/fchdir.c (rpl_close): Remove function.
50776         * m4/close.m4: New file.
50777         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50778         close.
50779         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
50780         REPLACE_CLOSE.
50781         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
50782         REPLACE_CLOSE.
50783         * modules/fchdir (Depends-on): Add close.
50784
50785 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50786             Bruno Haible  <bruno@clisp.org>
50787
50788         * lib/fcntl.in.h (open): Simplify conditionals.
50789         (_gl_register_fd): New declaration.
50790         * lib/fchdir.c (rpl_open): Remove function.
50791         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
50792         also.
50793         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
50794         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50795         open.
50796
50797 2008-10-09  Jim Meyering  <meyering@redhat.com>
50798
50799         GNUmakefile: use the more name-space-friendly "_version"
50800         * top/GNUmakefile (_dummy): Update.
50801         (_version): Rename from "version".
50802
50803 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50804             Bruno Haible  <bruno@clisp.org>
50805
50806         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
50807         rpl_close.
50808         (_gl_register_fd): New function, extracted from rpl_open.
50809         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
50810         (rpl_open, rpl_opendir): Use _gl_register_fd.
50811
50812 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50813
50814         Fix organization of 'open' replacement.
50815         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
50816         (gl_FUNC_OPEN): Use it.
50817         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
50818
50819 2008-10-08  Bruno Haible  <bruno@clisp.org>
50820
50821         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
50822
50823 2008-10-08  Simon Josefsson  <simon@josefsson.org>
50824
50825         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
50826         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
50827         listen).
50828
50829 2008-10-08  Eric Blake  <ebb9@byu.net>
50830
50831         GNUmakefile: add 'make version' target
50832         * top/GNUmakefile (_curr-ver): Split version update rules...
50833         (version): ...into a target.
50834
50835 2008-10-07  Bruno Haible  <bruno@clisp.org>
50836
50837         Use a more portable replacement expression for -0.0L.
50838         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
50839         instead of -0.0L. Fix m4 quotation.
50840
50841         * tests/test-signbit.c: Include <float.h>.
50842         (minus_zero): New variable.
50843         (test_signbitl): Use minus_zero instead of -zero.
50844         * modules/signbit-tests (Depends-on): Add float.
50845
50846         * tests/test-ceill.c: Include <float.h>.
50847         (zero): Remove variable.
50848         (minus_zero): New variable.
50849         (main): Use minus_zero instead of -zero.
50850         * modules/ceill-tests (Depends-on): Add float.
50851
50852         * tests/test-floorl.c: Include <float.h>.
50853         (zero): Remove variable.
50854         (minus_zero): New variable.
50855         (main): Use minus_zero instead of -zero.
50856         * modules/floorl-tests (Depends-on): Add float.
50857
50858         * tests/test-roundl.c: Include <float.h>.
50859         (zero): Remove variable.
50860         (minus_zero): New variable.
50861         (main): Use minus_zero instead of -zero.
50862         * modules/roundl-tests (Depends-on): Add float.
50863
50864         * tests/test-truncl.c: Include <float.h>.
50865         (zero): Remove variable.
50866         (minus_zero): New variable.
50867         (main): Use minus_zero instead of -zero.
50868         * modules/truncl-tests (Depends-on): Add float.
50869
50870         * tests/test-frexpl.c (zero): Remove variable.
50871         (minus_zero): New variable.
50872         (main): Use minus_zero instead of -zero.
50873         * modules/frexpl-tests (Depends-on): Add float.
50874
50875         * tests/test-isnan.c (zerol): Remove variable.
50876         (minus_zerol): New variable.
50877         (test_long_double): Use minus_zerol instead of -zerol.
50878         * modules/isnan-tests (Depends-on): Add float.
50879
50880         * tests/test-isnanl.h (zero): Remove variable.
50881         (minus_zero): New variable.
50882         (main): Use minus_zero instead of -zero.
50883         * modules/isnanl-nolibm-tests (Depends-on): Add float.
50884         * modules/isnanl-tests (Depends-on): Add float.
50885
50886         * tests/test-ldexpl.c (zero): Remove variable.
50887         (minus_zero): New variable.
50888         (main): Use minus_zero instead of -zero.
50889         * modules/ldexpl-tests (Depends-on): Add float.
50890
50891         * tests/test-snprintf-posix.h (zerol): Remove variable.
50892         (minus_zerol): New variable.
50893         (test_function): Use minus_zerol instead of -zerol.
50894         * modules/snprintf-posix-tests (Depends-on): Add float.
50895         * modules/vsnprintf-posix-tests (Depends-on): Add float.
50896
50897         * tests/test-sprintf-posix.h (zerol): Remove variable.
50898         (minus_zerol): New variable.
50899         (test_function): Use minus_zerol instead of -zerol.
50900         * modules/sprintf-posix-tests (Depends-on): Add float.
50901         * modules/vsprintf-posix-tests (Depends-on): Add float.
50902
50903         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
50904         (minus_zerol): New variable.
50905         (test_function): Use minus_zerol instead of -zerol.
50906         * modules/vasnprintf-posix-tests (Depends-on): Add float.
50907
50908         * tests/test-vasprintf-posix.c (zerol): Remove variable.
50909         (minus_zerol): New variable.
50910         (test_function): Use minus_zerol instead of -zerol.
50911         * modules/vasprintf-posix-tests (Depends-on): Add float.
50912
50913 2008-10-07  Simon Josefsson  <simon@josefsson.org>
50914
50915         * MODULES.html.sh (Support for building documentation): Mention
50916         pmccabe2html.  Sort entries.
50917
50918         Add pmccabe2html module, from gnupdf.
50919         * build-aux/pmccabe.css: New file.
50920         * build-aux/pmccabe2html: New file.
50921         * m4/pmccabe2html.m4: New file.
50922         * modules/pmccabe2html: New file.
50923
50924 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
50925
50926         flock: new module
50927         * MODULES.html.sh: Add to list of modules.
50928         * lib/flock.c: flock implementation for Windows and Unix systems
50929         which have fcntl.
50930         * doc/glibc-functions/flock.texi: Update documentation.
50931         * lib/sys_file.in.h: <sys/file.h> header file.
50932         * m4/flock.m4: M4 macros.
50933         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
50934         * modules/flock: flock module.
50935         * modules/flock-tests: flock tests module.
50936         * modules/sys_file: sys/file.h module.
50937         * tests/test-flock.c: test suite for flock.
50938
50939 2008-10-06  Jim Meyering  <meyering@redhat.com>
50940
50941         bootstrap: check for LT_INIT more portably still ;-)
50942         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
50943         Spotted by Bruno Haible.
50944
50945 2008-10-06  Eric Blake  <ebb9@byu.net>
50946
50947         test-signbit: avoid tripping Irix cc bug on -0.0L
50948         * tests/test-signbit.c (minus_zerol): Delete, and replace with
50949         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
50950         entire testsuite consistent and avoids an Irix 6.2 bug.
50951
50952 2008-10-05  Bruno Haible  <bruno@clisp.org>
50953             Jim Meyering  <jim@meyering.net>
50954
50955         Add an option for ignoring EPIPE during close_stdout.
50956         * lib/closeout.h: Include <stdbool.h>.
50957         (close_stdout_set_ignore_EPIPE): New declaration.
50958         * lib/closeout.c: Include <stdbool.h>.
50959         (ignore_EPIPE): New variable.
50960         (close_stdout_set_ignore_EPIPE): New function.
50961         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
50962         * lib/close-stream.c (close_stream): Mention the possible EPIPE
50963         failure.
50964         * modules/closeout (Depends-on): Add stdbool.
50965
50966 2008-10-05  Bruno Haible  <bruno@clisp.org>
50967
50968         * modules/accept: New file.
50969         * modules/bind: New file.
50970         * modules/connect: New file.
50971         * modules/getpeername: New file.
50972         * modules/getsockname: New file.
50973         * modules/getsockopt: New file.
50974         * modules/listen: New file.
50975         * modules/recv: New file.
50976         * modules/recvfrom: New file.
50977         * modules/send: New file.
50978         * modules/sendto: New file.
50979         * modules/setsockopt: New file.
50980         * modules/socket: New file.
50981         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
50982         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50983         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
50984         the particular module is requested. Add a link warning when the
50985         particular module is not requested.
50986         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
50987         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
50988         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
50989         the particular module is requested.
50990         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
50991         gl_SYS_SOCKET_H_DEFAULTS): New macros.
50992         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
50993         * modules/sys_socket (Depends-on): Add link-warning.
50994         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
50995         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
50996         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
50997         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
50998         GL_LINK_WARNING.
50999         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51000         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51001         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51002         * doc/posix-functions/getpeername.texi: Mention the new module
51003         'getpeername'.
51004         * doc/posix-functions/getsockname.texi: Mention the new module
51005         'getsockname'.
51006         * doc/posix-functions/getsockopt.texi: Mention the new module
51007         'getsockopt'.
51008         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51009         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51010         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51011         * doc/posix-functions/send.texi: Mention the new module 'send'.
51012         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51013         * doc/posix-functions/setsockopt.texi: Mention the new module
51014         'setsockopt'.
51015         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51016         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51017         listen, connect, accept.
51018         * modules/select-tests (Depends-on): Likewise.
51019
51020 2008-10-05  Bruno Haible  <bruno@clisp.org>
51021
51022         * lib/winsock.c (strerror): Remove unused #undef.
51023         (rpl_close): Remove unused local variable.
51024
51025         * modules/sys_socket (Depends-on); Add errno.
51026
51027 2008-10-05  Bruno Haible  <bruno@clisp.org>
51028
51029         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51030         (select): Add a link warning when the 'select' module is not used.
51031         * modules/sys_select (Depends-on): Add link-warning.
51032         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51033         Suggested by Paolo Bonzini.
51034
51035 2008-10-05  Jim Meyering  <meyering@redhat.com>
51036
51037         bootstrap: check for LT_INIT more portably
51038         * build-aux/bootstrap: Avoid using grep -E, since it's not
51039         portable enough.  Suggestion from Bruno Haible.
51040
51041 2008-10-05  Bruno Haible  <bruno@clisp.org>
51042
51043         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51044         as being fixed by gnulib.
51045
51046 2008-10-05  Bruno Haible  <bruno@clisp.org>
51047
51048         * modules/select-tests: New file, mostly copied from
51049         modules/sys_select-tests.
51050         * tests/test-select.c: New file, mostly copied from
51051         tests/test-sys_select.c.
51052         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51053         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51054         (Makefile.am): Remove test_sys_select_LDADD.
51055
51056         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51057         to an undefined symbol, for an error message.
51058         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51059         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51060         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51061         winsock-select.c here.
51062         * modules/sys_select (Files): Remove lib/winsock-select.c.
51063         (Depends-on): Remove alloca.
51064         (Makefile.am): Substitute GNULIB_SELECT.
51065         * modules/select: New file.
51066         * doc/posix-functions/select.texi: Update.
51067
51068 2008-10-05  Bruno Haible  <bruno@clisp.org>
51069
51070         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51071         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51072         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51073         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51074         getdtablesize.
51075         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51076         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51077
51078 2008-10-05  Bruno Haible  <bruno@clisp.org>
51079
51080         * modules/getdtablesize-tests: New file.
51081         * tests/test-getdtablesize.c: New file.
51082
51083         New module 'getdtablesize'.
51084         * lib/unistd.in.h (getdtablesize): New declaration.
51085         * lib/getdtablesize.c: New file.
51086         * m4/getdtablesize.m4: New file.
51087         * modules/getdtablesize: New file.
51088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51089         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51090         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51091         HAVE_GETDTABLESIZE.
51092         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51093
51094 2008-10-05  Bruno Haible  <bruno@clisp.org>
51095
51096         * modules/sched (Makefile.am): Fix typo.
51097         Reported by Simon Josefsson.
51098
51099 2008-10-05  Jim Meyering  <meyering@redhat.com>
51100
51101         bootstrap: check for LT_INIT, too
51102         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51103         are deprecated.  Suggestion from Ralf Wildenhues.
51104
51105 2008-10-05  Bruno Haible  <bruno@clisp.org>
51106
51107         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51108         overriding them by ours.
51109         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51110
51111 2008-10-05  Jim Meyering  <meyering@redhat.com>
51112
51113         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51114         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51115         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51116
51117 2008-10-04  Bruno Haible  <bruno@clisp.org>
51118
51119         * modules/dup2 (License): Change to LGPLv2+.
51120         * modules/sleep (License): Likewise.
51121         * modules/perror (License): Likewise.
51122         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51123         Blake.
51124         * modules/signal (License): Likewise.
51125         * modules/sigprocmask (License): Likewise.
51126         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51127         Meyering.
51128
51129 2008-10-04  Bruno Haible  <bruno@clisp.org>
51130
51131         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51132         Reported by Rainer Tammer <tammer@tammer.net>.
51133
51134 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51135             Bruno Haible  <bruno@clisp.org>
51136
51137         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51138         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51139         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51140
51141 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51142
51143         filevercmp: new module
51144         * lib/filevercmp.h: New function filevercmp comparing version strings.
51145         * lib/filevercmp.c: Implementation of filevercmp function.
51146         * modules/filevercmp: Module metadata.
51147         * tests/test-filevercmp.c: Unit test for new module.
51148         * modules/filevercmp-tests: Unit test metadata.
51149         * MODULES.html.sh: Add filevercmp module.
51150
51151 2008-10-03  Bruno Haible  <bruno@clisp.org>
51152
51153         * lib/c-ctype.h: Add comment.
51154         Reported by Jim Meyering.
51155
51156 2008-10-02  Bruno Haible  <bruno@clisp.org>
51157
51158         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51159
51160 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51161
51162         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51163         name of bootstrap.conf accordingly.
51164
51165 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51166
51167         * build-aux/bootstrap: Install git-merge-changelog configuration
51168         items into .gitconfig if needed.
51169
51170 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51171
51172         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51173         git repository, and initialize/update it accordingly.
51174
51175 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51176
51177         * modules/fsync-tests: New file.
51178         * tests/test-fsync.c: New file.
51179
51180         New module 'fsync'.
51181         * lib/fsync.c: New file.
51182         * m4/fsync.m4: New file.
51183         * modules/fsync: New file.
51184         * lib/unistd.in.h (fsync): New declaration.
51185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51186         GNULIB_FSYNC and HAVE_FSYNC.
51187         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51188         * MODULES.html.sh (posix_functions): Add fsync.
51189         * doc/posix-functions/fsync.texi: Mention the new module.
51190
51191 2008-10-02  Jim Meyering  <meyering@redhat.com>
51192
51193         fts.c: sync with similar code from coreutils' remove.c
51194         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51195         Guard also with "#if defined __linux__", since for now at least,
51196         this code is Linux-kernel-specific.
51197
51198 2008-10-02  Jim Meyering  <meyering@redhat.com>
51199
51200         fts: bug fixes
51201         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51202         Include <sys/vfs.h>, not <sys/statfs.h>.
51203
51204         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51205         Include <sys/vfs.h>, not <sys/statfs.h>.
51206
51207 2008-10-01  Bruno Haible  <bruno@clisp.org>
51208
51209         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51210         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51211         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51212         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51213         * doc/posix-functions/posix_spawnp.texi: Likewise.
51214         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51215         whether posix_spawn actually works.
51216         * m4/pipe.m4 (gl_PIPE): Likewise.
51217         * modules/execute (Files): Add m4/posix_spawn.m4.
51218         * modules/pipe (Files): Add m4/posix_spawn.m4.
51219         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51220
51221 2008-10-01  Jim Meyering  <meyering@redhat.com>
51222
51223         remove trailing spaces
51224         * NEWS: Likewise.
51225         * lib/poll.c (poll): Likewise.
51226         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51227         * lib/winsock.c (rpl_close): Likewise.
51228         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51229         * modules/yield: Likewise.
51230         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51231         * tests/test-sys_select.c (connect_to_socket): Likewise.
51232
51233         fts.c: adjust a new interface to be more generally useful
51234         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51235         (fts_build): Adjust caller.
51236
51237 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51238
51239         * modules/cond-tests: New file.
51240         * tests/test-cond.c: New file.
51241
51242 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51243             Bruno Haible  <bruno@clisp.org>
51244
51245         * modules/cond (Dependencies): Add errno, time.
51246         * lib/glthread/cond.h: Include <time.h>.
51247         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51248         across platforms.
51249
51250 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51251             Bruno Haible  <bruno@clisp.org>
51252
51253         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51254
51255 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51256             Bruno Haible  <bruno@clisp.org>
51257
51258         * modules/tls-tests (Depends-on): Add thread, yield.
51259         (configure.ac): Remove all checks.
51260         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51261         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51262         gl_thread_self): Remove definitions. Include glthread/thread.h and
51263         glthread/yield.h instead.
51264         (test_tls): Pass an additional NULL argument to gl_thread_join.
51265
51266 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51267             Bruno Haible  <bruno@clisp.org>
51268
51269         * modules/lock-tests (Depends-on): Add thread, yield.
51270         (configure.ac): Remove all checks.
51271         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51272         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51273         gl_thread_self): Remove definitions. Include glthread/thread.h and
51274         glthread/yield.h instead.
51275         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51276         additional NULL argument to gl_thread_join.
51277
51278 2008-09-30  Bruno Haible  <bruno@clisp.org>
51279
51280         Fix the Win32 implementation of the 'thread' module.
51281         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51282         pointer type.
51283         (gl_thread_self): Invoke gl_thread_self_func.
51284         (gl_thread_self_func): New declaration.
51285         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51286         (do_init_self_key, init_self_key): New functions.
51287         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51288         Remove some fields.
51289         (running_threads, running_lock): Remove variables.
51290         (get_current_thread_handle): New function.
51291         (gl_thread_self_func, wrapper_func, glthread_create_func,
51292         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51293         simplified.
51294
51295 2008-09-30  Bruno Haible  <bruno@clisp.org>
51296
51297         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51298         files.
51299
51300 2008-09-30  Jim Meyering  <meyering@redhat.com>
51301
51302         fts.m4: correct the test for statfs.f_type
51303         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51304         when checking for statfs.f_type.
51305
51306 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51307
51308         tests: avoid some compiler warnings
51309         * tests/test-memchr.c (main): Pass NULL indirectly.
51310         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51311
51312 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51313
51314         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51315         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51316         exactly specified dayshifts.
51317         (dayshift): New rule.
51318         (rel): Add dayshift.
51319         (relative_time_table) [tomorrow, yesterday, today, now]:
51320         Use tDAY_SHIFT in place of tDAY_UNIT.
51321         * tests/test-getdate.c: Add tests for now-disallowed countable
51322         dayshifts, e.g., "4 yesterday ago".
51323
51324 2008-09-29  Bruno Haible  <bruno@clisp.org>
51325
51326         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
51327         * tests/test-posix_spawn1.in.sh: Renamed from
51328         tests/test-posix_spawn.in.sh.
51329         * tests/test-posix_spawn2.c: New file.
51330         * tests/test-posix_spawn2.in.sh: New file.
51331         * modules/posix_spawnp-tests (Files): Update.
51332         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
51333
51334 2008-09-29  Bruno Haible  <bruno@clisp.org>
51335
51336         Propagate effects of putenv/setenv/unsetenv to child processes.
51337         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
51338         * lib/pipe.c (create_pipe): Likewise.
51339
51340 2008-09-29  Bruno Haible  <bruno@clisp.org>
51341
51342         Enable use of shell scripts as executables in mingw.
51343         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
51344         run the program as a shell script.
51345         * lib/pipe.c (create_pipe): Likewise.
51346         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
51347         resulting array.
51348
51349 2008-09-29  Eric Blake  <ebb9@byu.net>
51350
51351         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
51352
51353 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
51354
51355         * doc/posix-functions/accept.texi: Update mingw problems.
51356         * doc/posix-functions/bind.texi: Update mingw problems.
51357         * doc/posix-functions/close.texi: Update mingw problems.
51358         * doc/posix-functions/connect.texi: Update mingw problems.
51359         * doc/posix-functions/getpeername.texi: Update mingw problems.
51360         * doc/posix-functions/getsockname.texi: Update mingw problems.
51361         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51362         * doc/posix-functions/ioctl.texi: Update mingw problems.
51363         * doc/posix-functions/listen.texi: Update mingw problems.
51364         * doc/posix-functions/recv.texi: Update mingw problems.
51365         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51366         * doc/posix-functions/select.texi: Update mingw problems.
51367         * doc/posix-functions/send.texi: Update mingw problems.
51368         * doc/posix-functions/sendto.texi: Update mingw problems.
51369         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51370         * doc/posix-functions/socket.texi: Update mingw problems.
51371
51372 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51373             Bruno Haible  <bruno@clisp.org>
51374
51375         * lib/sys_select.in.h: Include sys/time.h.
51376         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51377         * modules/sys_select: Depend on sys_time.
51378         * tests/test-sys_select.c: Test that sys/select.h defines struct
51379         timeval fully.
51380
51381 2008-09-29  Bruno Haible  <bruno@clisp.org>
51382
51383         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51384         * lib/sys_select.in.h: Likewise.
51385
51386 2008-09-29  Bruno Haible  <bruno@clisp.org>
51387
51388         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51389
51390 2008-09-29  Bruno Haible  <bruno@clisp.org>
51391
51392         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51393         Set LIBSOCKET instead of augmenting LIBS.
51394         * modules/sockets (Link): New section.
51395         * modules/sockets-tests (test_sockets_LDADD): New variable.
51396         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
51397         * modules/poll-tests (test_poll_LDADD): New variable.
51398         * NEWS: Document the change.
51399
51400 2008-09-29  Bruno Haible  <bruno@clisp.org>
51401
51402         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
51403         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
51404         ARPA_INET_H directly.
51405         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51406
51407 2008-09-28  Bruno Haible  <bruno@clisp.org>
51408
51409         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
51410         from gl_HEADER_SYS_SOCKET.
51411         (gl_HEADER_SYS_SOCKET): Invoke it.
51412         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51413
51414 2008-09-28  Bruno Haible  <bruno@clisp.org>
51415
51416         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
51417         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
51418         Needed on OSF/1 4.0.
51419
51420 2008-09-28  Bruno Haible  <bruno@clisp.org>
51421
51422         Override open more carefully.
51423         * lib/open.c (orig_open): New function.
51424         (rpl_open): Use orig_open instead of open.
51425         * lib/fcntl.in.h: Add special invocation convention.
51426         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
51427         (gl_FUNC_OPEN): Invoke it.
51428
51429         Override freopen more carefully.
51430         * lib/freopen.c (orig_freopen): New function.
51431         (rpl_freopen): Use orig_freopen instead of freopen.
51432         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
51433         (gl_FUNC_FREOPEN): Invoke it.
51434
51435         Override fopen more carefully.
51436         * lib/fopen.c (orig_fopen): New function.
51437         (rpl_fopen): Use orig_fopen instead of fopen.
51438         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
51439         (gl_FUNC_FOPEN): Invoke it.
51440         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
51441
51442 2008-09-28  Bruno Haible  <bruno@clisp.org>
51443
51444         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
51445         SIGPIPE.
51446
51447 2008-09-28  Bruno Haible  <bruno@clisp.org>
51448
51449         * tests/test-sigaction.c (handler, main): Disable the check whether
51450         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
51451         glibc systems with LinuxThreads.
51452
51453 2008-09-28  Bruno Haible  <bruno@clisp.org>
51454
51455         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
51456
51457         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
51458         with AIX xlc.
51459         * lib/fcntl.in.h (open): Likewise.
51460         Reported by Rainer Tammer <tammer@tammer.net>.
51461
51462 2008-09-28  Bruno Haible  <bruno@clisp.org>
51463
51464         * modules/posix_spawnp-tests: New file.
51465         * tests/test-posix_spawn.c: New file.
51466         * tests/test-posix_spawn.in.sh: New file.
51467
51468         New module 'posix_spawnp'.
51469         * modules/posix_spawnp: New file.
51470         * lib/spawnp.c: New file, from GNU libc with modifications.
51471         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
51472
51473         New module 'posix_spawn'.
51474         * modules/posix_spawn: New file.
51475         * lib/spawn.c: New file, from GNU libc with modifications.
51476         * doc/posix-functions/posix_spawn.texi: Mention the new module.
51477
51478         New module 'posix_spawnattr_destroy'.
51479         * modules/posix_spawnattr_destroy: New file.
51480         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
51481         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
51482         module.
51483
51484         New module 'posix_spawnattr_setsigmask'.
51485         * modules/posix_spawnattr_setsigmask: New file.
51486         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
51487         modifications.
51488         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
51489         new module.
51490
51491         New module 'posix_spawnattr_getsigmask'.
51492         * modules/posix_spawnattr_getsigmask: New file.
51493         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
51494         modifications.
51495         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
51496         new module.
51497
51498         New module 'posix_spawnattr_setsigdefault'.
51499         * modules/posix_spawnattr_setsigdefault: New file.
51500         * lib/spawnattr_setdefault.c: New file, from GNU libc with
51501         modifications.
51502         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
51503         new module.
51504
51505         New module 'posix_spawnattr_getsigdefault'.
51506         * modules/posix_spawnattr_getsigdefault: New file.
51507         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51508         modifications.
51509         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51510         new module.
51511
51512         New module 'posix_spawnattr_setschedpolicy'.
51513         * modules/posix_spawnattr_setschedpolicy: New file.
51514         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51515         modifications.
51516         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51517         new module.
51518
51519         New module 'posix_spawnattr_getschedpolicy'.
51520         * modules/posix_spawnattr_getschedpolicy: New file.
51521         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51522         modifications.
51523         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51524         new module.
51525
51526         New module 'posix_spawnattr_setschedparam'.
51527         * modules/posix_spawnattr_setschedparam: New file.
51528         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51529         modifications.
51530         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51531         new module.
51532
51533         New module 'posix_spawnattr_getschedparam'.
51534         * modules/posix_spawnattr_getschedparam: New file.
51535         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51536         modifications.
51537         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51538         new module.
51539
51540         New module 'posix_spawnattr_setpgroup'.
51541         * modules/posix_spawnattr_setpgroup: New file.
51542         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51543         modifications.
51544         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51545         module.
51546
51547         New module 'posix_spawnattr_getpgroup'.
51548         * modules/posix_spawnattr_getpgroup: New file.
51549         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51550         modifications.
51551         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51552         module.
51553
51554         New module 'posix_spawnattr_setflags'.
51555         * modules/posix_spawnattr_setflags: New file.
51556         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51557         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51558         module.
51559
51560         New module 'posix_spawnattr_getflags'.
51561         * modules/posix_spawnattr_getflags: New file.
51562         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51563         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51564         module.
51565
51566         New module 'posix_spawnattr_init'.
51567         * modules/posix_spawnattr_init: New file.
51568         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51569         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51570         module.
51571
51572         New module 'posix_spawn_file_actions_destroy'.
51573         * modules/posix_spawn_file_actions_destroy: New file.
51574         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51575         modifications.
51576         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51577         the new module.
51578
51579         New module 'posix_spawn_file_actions_addopen'.
51580         * modules/posix_spawn_file_actions_addopen: New file.
51581         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51582         modifications.
51583         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51584         the new module.
51585
51586         New module 'posix_spawn_file_actions_adddup2'.
51587         * modules/posix_spawn_file_actions_adddup2: New file.
51588         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51589         modifications.
51590         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51591         the new module.
51592
51593         New module 'posix_spawn_file_actions_addclose'.
51594         * modules/posix_spawn_file_actions_addclose: New file.
51595         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51596         modifications.
51597         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51598         the new module.
51599
51600         New module 'posix_spawn_file_actions_init'.
51601         * modules/posix_spawn_file_actions_init: New file.
51602         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51603         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51604         new module.
51605
51606         New module 'posix_spawn-internal'.
51607         * modules/posix_spawn-internal: New file.
51608         * lib/spawn_int.h: New file, from GNU libc with modifications.
51609         * lib/spawni.c: New file, from GNU libc with modifications.
51610         * m4/posix_spawn.m4: New file.
51611
51612         New module 'spawn'.
51613         * modules/spawn: New file.
51614         * lib/spawn.in.h: New file, from GNU libc with modifications.
51615         * m4/spawn_h.m4: New file.
51616         * doc/posix-headers/spawn.texi: Mention the new module.
51617
51618 2008-09-28  Bruno Haible  <bruno@clisp.org>
51619
51620         * modules/sched-tests: New file.
51621         * tests/test-sched.c: New file.
51622
51623         New module 'sched'.
51624         * modules/sched: New file.
51625         * lib/sched.in.h: New file.
51626         * m4/sched_h.m4: New file.
51627         * doc/posix-headers/sched.texi: Mention the new module.
51628
51629 2008-09-27  Eric Blake  <ebb9@byu.net>
51630
51631         Fix previous patch, and tweak references to $0.
51632         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51633         (func_version, func_gnulib_dir): Don't call this program
51634         gnulib-tool.
51635         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51636         with using $0 in function.
51637         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51638         (func_fatal_error): Reuse the name the user invoked us with.
51639
51640 2008-09-27  Bruno Haible  <bruno@clisp.org>
51641
51642         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51643         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51644         (gl_ICONV_H): Not here.
51645         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51646         instead of assigning ICONV_H directly.
51647
51648         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51649         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51650         WCHAR_H directly.
51651
51652 2008-09-27  Bruno Haible  <bruno@clisp.org>
51653
51654         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51655         * modules/arpa_inet (Depends-on): Add link-warning.
51656         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51657         * modules/unistd (Makefile.am): Likewise.
51658
51659 2008-09-26  Bruno Haible  <bruno@clisp.org>
51660
51661         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
51662         variables.
51663         (func_version): Essentially copied from gnulib-tool.
51664         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
51665         func_readlink): Copied from gnulib-tool.
51666
51667 2008-09-26  Bruno Haible  <bruno@clisp.org>
51668
51669         * gnulib-tool (func_version): Change directory to $gnulib_dir before
51670         invoking git-version-gen.
51671
51672 2008-09-26  Bruno Haible  <bruno@clisp.org>
51673
51674         * posix-modules: Update to directory names changed on 2008-01-19.
51675         Remove commas in output before splitting into words. No more need to
51676         avoid 'ftruncate' since 2007-02-19.
51677
51678 2008-09-26  Bruno Haible  <bruno@clisp.org>
51679
51680         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
51681
51682 2008-09-26  Bruno Haible  <bruno@clisp.org>
51683
51684         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
51685         * modules/fwriteerror (Depends-on): Add errno.
51686
51687 2008-09-26  Bruno Haible  <bruno@clisp.org>
51688
51689         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
51690         * tests/test-vc-list-files-cvs.sh: Likewise.
51691
51692 2008-09-26  Bruno Haible  <bruno@clisp.org>
51693
51694         * doc/posix-headers/sys_resource.texi: Reorder items.
51695
51696 2008-09-26  Jim Meyering  <meyering@redhat.com>
51697
51698         fts: tweak inode comparison function
51699         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
51700         inode numbers, as documented.
51701
51702         fts: sort dirent entries on inode number before traversing
51703         This avoids a quadratic, seek-related performance penalty when
51704         operating on a directory containing many entries (measurable at 10k;
51705         3.5 hours at 2 million entries with a cold cache) on certain types
51706         of file systems, including ext3 and ext4, but not tmpfs.
51707         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
51708         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
51709         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
51710         (fs_handles_readdir_ordered_dirents_efficiently): New function.
51711         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
51712         (fts_build): Set the stat.st_ino member from D_INO.
51713         If it is likely to be useful, sort dirent entries on inode number.
51714
51715         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
51716         and the struct statfs.f_type member.
51717         * modules/fts (Depends-on): Add d-ino.
51718
51719 2008-09-26  Bruno Haible  <bruno@clisp.org>
51720
51721         * modules/sigpipe-die (Depends-on): Add sigpipe.
51722
51723         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
51724         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
51725         and GNULIB_STDIO_H_SIGPIPE are set.
51726         * lib/stdio-write.c: New file.
51727         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
51728         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51729         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51730         REPLACE_STDIO_WRITE_FUNCS.
51731         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
51732         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51733         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51734         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51735         * modules/stdio (Files): Add lib/stdio-write.c.
51736         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
51737         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51738         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51739         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51740         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
51741         REPLACE_FPRINTF_POSIX.
51742         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
51743         REPLACE_PRINTF_POSIX.
51744         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
51745         REPLACE_VFPRINTF_POSIX.
51746         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
51747         REPLACE_VPRINTF_POSIX.
51748         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
51749         SIGPIPE issue.
51750         * doc/posix-functions/fputc.texi: Likewise.
51751         * doc/posix-functions/fputs.texi: Likewise.
51752         * doc/posix-functions/fwrite.texi: Likewise.
51753         * doc/posix-functions/printf.texi: Likewise.
51754         * doc/posix-functions/putc.texi: Likewise.
51755         * doc/posix-functions/putchar.texi: Likewise.
51756         * doc/posix-functions/puts.texi: Likewise.
51757         * doc/posix-functions/vfprintf.texi: Likewise.
51758         * doc/posix-functions/vprintf.texi: Likewise.
51759
51760         * modules/safe-write (Depends-on): Add write.
51761
51762         * modules/sigpipe-tests: New file.
51763         * tests/test-sigpipe.c: New file.
51764         * tests/test-sigpipe.sh: New file.
51765
51766         * modules/write: New file.
51767         * lib/unistd.in.h: Include <sys/types.h>.
51768         (write): New declaration.
51769         * lib/write.c: New file.
51770         * m4/write.m4: New file.
51771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51772         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
51773         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
51774         GNULIB_WRITE, REPLACE_WRITE.
51775         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
51776         and the SIGPIPE issue.
51777
51778         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
51779         (raise): New declaration.
51780         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
51781         (ext_signal): New function.
51782         (rpl_raise): New function.
51783         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51784         GNULIB_SIGNAL_H_SIGPIPE.
51785         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
51786         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
51787
51788         * modules/sigpipe: New file.
51789         * m4/sigpipe.m4: New file.
51790
51791 2008-09-25  Derek Price  <derek@ximbiot.com>
51792             Bruno Haible  <bruno@clisp.org>
51793
51794         * gnulib-tool (func_import): Report all license incompatibilities, not
51795         just the first one.
51796
51797 2008-09-25  Bruno Haible  <bruno@clisp.org>
51798
51799         * gnulib-tool (func_import): When computing the edits, consider not
51800         only the Makefile.ams that exist but also those that will be generated.
51801
51802 2008-09-25  Simon Josefsson  <simon@josefsson.org>
51803
51804         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
51805         fixes gnulib-tool --test warning about duplicate dependency.
51806
51807 2008-09-25  Bruno Haible  <bruno@clisp.org>
51808
51809         * gnulib-tool: Don't ask the user to perform edits in the generated
51810         Makefile.ams.
51811         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
51812         apply to the Makefile.am being generated.
51813         (func_emit_tests_Makefile_am): Execute edits that apply to the
51814         Makefile.am being generated.
51815         (func_import): Setup list of Makefile.am edits before emitting the
51816         Makefile.ams, not at the end.
51817         (func_create_testdir): Update.
51818         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51819
51820 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51821
51822         * gnulib-tool (func_import): Store the --tests-base option in the
51823         comment in gnulib-cache.m4.
51824
51825 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
51826
51827         * NEWS: Document increased portability that sys_select now provides.
51828
51829         * lib/sys_select.in.h: Install select wrapper.
51830         * lib/sys_socket.in.h: Use more descriptive name when there is no
51831         select wrapper.
51832         * lib/winsock-select.c: New.
51833         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
51834         Require gl_HEADER_SYS_SOCKET.
51835         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
51836         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
51837         * tests/test-sys_select.c: Add functional tests.
51838
51839 2008-09-24  Eric Blake  <ebb9@byu.net>
51840
51841         open, fopen: close fd leak in last patch
51842         * lib/open.c (rpl_open): Close fd before returning error.
51843         * lib/fopen.c (rpl_fopen): Close fd before returning error.
51844         * doc/posix-functions/open.texi (open): Document that Irix also
51845         has the bug.
51846         * doc/posix-functions/fopen.texi (fopen): Likewise.
51847         Reported by Paolo Bonzini.
51848
51849 2008-09-24  Bruno Haible  <bruno@clisp.org>
51850
51851         Ensure that a filename ending in a slash cannot be used to access a
51852         non-directory.
51853         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
51854         to check whether it's really a directory.
51855         * lib/fopen.c: Include fcntl.h, unistd.h.
51856         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
51857         and fdopen().
51858         * modules/fopen (Depends-on): Add unistd.
51859         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
51860         * tests/test-fopen.c (main): Likewise.
51861         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
51862         * doc/posix-functions/fopen.texi: Likewise.
51863         Reported by Eric Blake.
51864
51865 2008-09-23  Eric Blake  <ebb9@byu.net>
51866
51867         c-stack: avoid compiler optimizations when provoking overflow
51868         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
51869         recursion harder to optimize, to ensure a stack overflow occurs.
51870         * tests/test-c-stack.c (recurse): Likewise.
51871         Borrowed from libsigsegv.
51872
51873         c-stack: work around Irix sigaltstack bug
51874         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
51875         whether sigaltstack uses wrong end of stack_t (copied in part from
51876         libsigsegv).
51877         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
51878         Irix bug, without requiring an over-allocation.
51879         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
51880         bug.
51881
51882         fopen: document mingw bug on directories
51883         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
51884         not allowing a stream visiting a directory, even though reading
51885         from such a stream is not portable.
51886
51887 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51888
51889         * lib/poll.c: Rewrite.
51890         * modules/poll: Depend on alloca.
51891
51892 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51893
51894         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
51895         instead define prototypes for a full set of wrappers.  Ensure
51896         that Cygwin does not use the compatibility code, which is only
51897         for MinGW.
51898         * lib/winsock.c: New.
51899         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
51900         * modules/sys_socket: Add lib/winsock.c.
51901
51902         * modules/poll-tests: Add errno and perror.
51903         * tests/test-poll.c: Use ioctl, not ioctlsocket.
51904
51905 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51906
51907         * tests/test-poll.c: Downgrade minimum needed Winsock version.
51908
51909 2008-09-23  Bruno Haible  <bruno@clisp.org>
51910
51911         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
51912         * doc/glibc-functions/*: Likewise.
51913
51914 2008-09-23  Simon Josefsson  <simon@josefsson.org>
51915
51916         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
51917         success.
51918
51919 2008-09-22  Eric Blake  <ebb9@byu.net>
51920             Bruno Haible  <bruno@clisp.org>
51921
51922         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
51923         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
51924         supply %A but mishandle pseudo-NaN.
51925         Reported by Simon Josefsson.
51926
51927 2008-09-21  Bruno Haible  <bruno@clisp.org>
51928
51929         * tests/test-lock.c (main): Tweak skip message.
51930         * tests/test-tls.c (main): Likewise.
51931
51932 2008-09-21  Bruno Haible  <bruno@clisp.org>
51933
51934         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
51935         whether 'struct sigaction' has sa_sigaction here...
51936         (gl_PREREQ_SIG_HANDLER_H): ... not here.
51937         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
51938
51939 2008-09-21  Bruno Haible  <bruno@clisp.org>
51940
51941         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
51942         section.
51943         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
51944         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
51945         the new section.
51946         (Support for obsolete systems lacking POSIX:2001): New section.
51947         (String handling <string.h>): Move strdup to the new section.
51948         Suggested by Simon Josefsson and Paolo Bonzini.
51949
51950 2008-09-21  Bruno Haible  <bruno@clisp.org>
51951
51952         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
51953         exponents in %e and %g results on 'long double'. Needed for mingw's
51954         improved *printf functions.
51955         * tests/test-vasprintf-posix.c (test_function): Likewise.
51956         * tests/test-snprintf-posix.h (test_function): Likewise.
51957         * tests/test-sprintf-posix.h (test_function): Likewise.
51958         Reported by Eric Blake.
51959
51960 2008-09-21  Bruno Haible  <bruno@clisp.org>
51961
51962         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
51963         * tests/test-sprintf-posix.h (test_function): Likewise.
51964
51965 2008-09-21  Bruno Haible  <bruno@clisp.org>
51966
51967         * modules/getpass (Depends-on): Add strdup-posix.
51968
51969         New module 'strdup-posix'.
51970         * modules/strdup-posix: New file.
51971         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
51972         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
51973         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51974         REPLACE_STRDUP.
51975         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
51976         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
51977         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51978         strdup-posix.
51979
51980         * modules/strdup (Depends-on): Remove malloc-posix.
51981
51982 2008-09-20  Bruno Haible  <bruno@clisp.org>
51983
51984         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
51985         Wildenhues.
51986
51987 2008-09-20  Bruno Haible  <bruno@clisp.org>
51988
51989         Ensure that wint_t gets defined on IRIX 5.3.
51990         * lib/wchar.in.h (wint_t): Define if not defined by the system.
51991         * lib/wctype.in.h (wint_t): Likewise.
51992         (__wctype_wint_t): Remove type.
51993         (isw*): Use wint_t instead of __wctype_wint_t.
51994         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
51995         * modules/wchar (Files): Add m4/wint_t.m4.
51996         (Makefile.am): Substitute HAVE_WINT_T.
51997         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
51998         * tests/test-wctype.c: Check that wint_t is defined.
51999         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52000         * doc/posix-headers/wctype.texi: Likewise.
52001         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52002
52003 2008-09-18  Bruno Haible  <bruno@clisp.org>
52004
52005         * gnulib-tool (func_exit): Update comment.
52006
52007 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52008
52009         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52010         assumes strdup exists and does not depend on strdup to return
52011         ENOMEM on out of memory conditions.
52012
52013 2008-09-18  Bruno Haible  <bruno@clisp.org>
52014
52015         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52016         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52017         digits for the exponent.
52018
52019 2008-09-18  Jim Meyering  <meyering@redhat.com>
52020             Bruno Haible  <bruno@clisp.org>
52021
52022         * lib/vasnprintf.c (decimal_point_char): Define also if
52023         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52024
52025 2008-09-16  Bruno Haible  <bruno@clisp.org>
52026         and Eric Blake  <ebb9@byu.net>
52027
52028         vasnprintf: support Irix 5.3
52029         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52030         that mishandle long double infinity.
52031         Reported by Tom G. Christensen.
52032
52033 2008-09-16  Bruno Haible  <bruno@clisp.org>
52034
52035         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52036         Solaris 9.
52037         * doc/glibc-functions/alphasort.texi: Likewise.
52038         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52039
52040 2008-09-16  Jim Meyering  <meyering@redhat.com>
52041
52042         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52043         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52044         a umask modification leak out of a subshell.  Otherwise, the
52045         opensolaris /bin/sh would be accepted and thus cause unwarranted
52046         failures in the coreutils test suite.
52047
52048 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52049
52050         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52051         to succeed.
52052
52053 2008-09-16  Jim Meyering  <meyering@redhat.com>
52054
52055         avoid spurious test failure when library is built without ACL support
52056         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52057         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52058         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52059         * tests/test-copy-acl.sh: Likewise.
52060
52061 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52062
52063         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52064         based on character occurrence counts.
52065
52066 2008-09-15  Eric Blake  <ebb9@byu.net>
52067
52068         tests: avoid some compiler warnings
52069         * tests/test-memchr.c (main): Pass NULL indirectly.
52070         * tests/test-closein.c (main): Avoid unused variable.
52071
52072 2008-09-15  Bruno Haible  <bruno@clisp.org>
52073
52074         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52075         are missing on OpenBSD 4.0 individually.
52076         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52077
52078 2008-09-15  Bruno Haible  <bruno@clisp.org>
52079
52080         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52081         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52082         * doc/posix-functions/perror.texi: Likewise.
52083         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52084         is missing.
52085         Reported by Eric Blake.
52086
52087         * lib/errno.in.h: Use replacement values >= 2000.
52088         Reported by Eric Blake.
52089
52090 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52091
52092         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52093         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52094         limit.
52095         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52096         compareseq was aborted.
52097
52098 2008-09-14  Bruno Haible  <bruno@clisp.org>
52099
52100         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52101         yvec_edit_count.
52102         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52103         (fstrcmp_bounded): Simplify result computation accordingly.
52104
52105 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52106
52107         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52108         (fstrcmp): Define in terms of fstrcmp_bounded.
52109         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52110         lower_bound argument.
52111         Return quickly if the result is certainly < lower_bound.
52112         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52113
52114 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52115
52116         * lib/diffseq.h (EARLY_ABORT): New macro.
52117         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52118         evaluates to true.
52119
52120 2008-09-14  Bruno Haible  <bruno@clisp.org>
52121
52122         * modules/perror-tests: New file.
52123         * tests/test-perror.sh: New file.
52124         * tests/test-perror.c: New file.
52125
52126         New module 'perror'.
52127         * lib/stdio.in.h (perror): New declaration.
52128         * lib/perror.c: New file.
52129         * m4/perror.m4: New file.
52130         * modules/perror: New file.
52131         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52132         * doc/posix-functions/perror.texi: Mention the perror module.
52133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52134         REPLACE_PERROR.
52135         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52136         REPLACE_PERROR.
52137
52138 2008-09-14  Bruno Haible  <bruno@clisp.org>
52139
52140         * modules/stdio (Makefile.am): Reorder to match the order in
52141         lib/stdio.in.h.
52142         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52143
52144 2008-09-13  Bruno Haible  <bruno@clisp.org>
52145
52146         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52147
52148 2008-09-13  Bruno Haible  <bruno@clisp.org>
52149
52150         Extend strerror to cover the added errno values.
52151         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52152         (rpl_strerror): Provide error messages for the added errno values and
52153         for the WSA* values.
52154         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52155         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52156         strerror.
52157         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52158         * modules/strerror (Depends-on): Add errno.
52159         * doc/posix-functions/strerror.texi: Document the change.
52160         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52161         and EOVERFLOW.
52162
52163 2008-09-13  Bruno Haible  <bruno@clisp.org>
52164
52165         * modules/EOVERFLOW: Remove file.
52166         * m4/eoverflow.m4: Remove file.
52167         * modules/EOVERFLOW-tests: Remove file.
52168         * tests/test-EOVERFLOW.c: Remove file.
52169         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52170         * modules/ftell (Depends-on): Likewise.
52171         * modules/getdelim (Depends-on): Likewise.
52172         * modules/getugroups (Depends-on): Likewise.
52173         * modules/poll (Depends-on): Likewise.
52174         * modules/snprintf (Depends-on): Likewise.
52175         * modules/sprintf-posix (Depends-on): Likewise.
52176         * modules/vasnprintf (Depends-on): Likewise.
52177         * modules/vasprintf (Depends-on): Likewise.
52178         * modules/vfprintf-posix (Depends-on): Likewise.
52179         * modules/vsnprintf (Depends-on): Likewise.
52180         * modules/vsprintf-posix (Depends-on): Likewise.
52181         * modules/xvasprintf (Depends-on): Likewise.
52182         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52183         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52184         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52185         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52186         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52187         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52188         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52189         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52190         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52191         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52192         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52193         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52194         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52195         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52196         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52197         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52198         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52199         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52200         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52201         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52202         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52203         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52204         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52205         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52206         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52207         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52208         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52209         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52210         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52211         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52212         * MODULES.html.sh: Remove EOVERFLOW.
52213         * NEWS: Mention the change.
52214
52215 2008-09-13  Bruno Haible  <bruno@clisp.org>
52216
52217         * modules/errno-tests: New file.
52218         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52219
52220         * lib/errno.in.h: New file.
52221         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52222         * modules/errno: New file.
52223         * doc/posix-headers/errno.texi: Update documentation.
52224         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52225
52226 2008-09-13  Bruno Haible  <bruno@clisp.org>
52227
52228         * tests/test-poll.c: Use #if for native Windows, rather than testing
52229         __MSVCRT__.
52230
52231 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52232             Bruno Haible  <bruno@clisp.org>
52233
52234         * lib/glob.c: Don't include <pwd.h> on native Windows.
52235         (WINDOWS32): New macro.
52236         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52237
52238 2008-09-13  Bruno Haible  <bruno@clisp.org>
52239
52240         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52241         (ETIMEDOUT): Remove macro.
52242         (glthread_cond_timedwait_multithreaded): New declaration.
52243         (glthread_cond_timedwait): Use it.
52244         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52245         (glthread_cond_timedwait_multithreaded): New function.
52246
52247 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52248
52249         * modules/poll-tests: Do not check for io.h.
52250         * tests/test-poll.c: Check for __MSVCRT__ instead.
52251
52252 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52253
52254         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52255         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52256         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52257
52258 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52259
52260         * modules/poll-tests: New.
52261         * tests/test-poll.c: New.
52262
52263 2008-09-12  Eric Blake  <ebb9@byu.net>
52264
52265         frexp: test for NetBSD failure on -0.0
52266         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52267         not all, bugs from NetBSD 3.0 have been fixed.
52268         * doc/posix-functions/frexp.texi (frexp): Document bug.
52269         Reported by Thomas Klausner.
52270
52271         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52272         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52273         literal -0.0.
52274         Reported by Jonathan C. Patschke <jp@centtech.com>.
52275
52276 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52277
52278         * lib/glthread/cond.h: Use dummy implementation also if
52279         USE_WIN32_THREADS.
52280
52281 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52282
52283         * modules/fnmatch-posix (License): Change to LGPLv2+.
52284         * modules/fnmatch-gnu (License): Likewise.
52285
52286 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52287
52288         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52289
52290 2008-09-11  Jim Meyering  <meyering@redhat.com>
52291
52292         * users.txt: Add gtk-vnc.
52293
52294 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52295
52296         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52297         rotate amounts.
52298
52299         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52300         required for 16-bit and 8-bit rotates.
52301         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52302         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52303         UINT8_MAX instead of hard-coded constants.
52304         Suggested by Paul Eggert.
52305
52306 2008-09-07  Bruno Haible  <bruno@clisp.org>
52307
52308         * tests/test-striconveh.c (main): Check behaviour when converting from
52309         UTF-7.
52310
52311         Make striconveh work better with stateful encodings.
52312         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52313         that iconv does not increment the inptr when returning -1/EINVAL.
52314
52315 2008-09-07  Bruno Haible  <bruno@clisp.org>
52316
52317         * build-aux/config.rpath: Update according to libtool-2.2.6.
52318         * build-aux/config.libpath: Likewise.
52319
52320 2008-09-06  Bruno Haible  <bruno@clisp.org>
52321
52322         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
52323         * lib/freadptr.c (freadptr): Likewise.
52324         * lib/freadseek.c (freadptrinc): Likewise.
52325         Reported by Simon Josefsson.
52326
52327 2008-09-06  Bruno Haible  <bruno@clisp.org>
52328
52329         * modules/freadptr (License): Change to LGPLv2+.
52330         * modules/freadseek (License): Likewise.
52331         Suggested by Eric Blake.
52332
52333         * modules/memchr2 (License): Change to LGPLv2+.
52334         Approved by Eric Blake.
52335
52336 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52337             Bruno Haible  <bruno@clisp.org>
52338
52339         Make gnulib-tool work with native 'sed' on AIX.
52340         * gnulib-tool (sed_noop): New variable.
52341         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
52342         func_add_or_update, func_create_testdir): Use it to initialize sed
52343         script variables.
52344         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52345
52346 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
52347             Bruno Haible  <bruno@clisp.org>
52348
52349         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
52350         also works after #include directives.
52351
52352 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
52353
52354         getdate.y: reject an out-of-range timezone value
52355         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
52356         the range [-24...+24].  When specified with only one or two digits,
52357         * tests/test-getdate.c: Tests for the fix.
52358         * doc/getdate.texi: Document this change.
52359
52360 2008-09-03  Bruno Haible  <bruno@clisp.org>
52361
52362         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52363
52364 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52365
52366         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52367         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52368         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52369         Blake <ebb9@byu.net>.
52370
52371         * tests/test-bitrotate.c: Add more test vectors.
52372
52373 2008-09-02  Eric Blake  <ebb9@byu.net>
52374
52375         vasnprintf-posix: handle large precision via %.*d
52376         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52377         when handling it ourselves.
52378         * tests/test-vasnprintf-posix.c (test_function): Add test.
52379         * tests/test-snprintf-posix.h (test_function): Likewise.
52380         * tests/test-sprintf-posix.h (test_function): Likewise.
52381         * tests/test-vasprintf-posix.c (test_function): Likewise.
52382         Reported by Alain Guibert.
52383
52384 2008-09-01  Eric Blake  <ebb9@byu.net>
52385
52386         c-stack: make configure-time check more robust
52387         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52388         successful sigaction call.
52389         Reported by Tom G. Christensen.
52390
52391 2008-09-01  Bruno Haible  <bruno@clisp.org>
52392
52393         New module 'findprog-lgpl'.
52394         * modules/findprog-lgpl: New file.
52395         * lib/findprog-lgpl.c: New file.
52396         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
52397         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
52398         to decide whether to use strdup or xstrdup, concatenated_filename or
52399         xconcatenated_filename.
52400
52401 2008-09-01  Bruno Haible  <bruno@clisp.org>
52402
52403         Split module 'concat-filename' into 'concat-filename' (LGPL) and
52404         'xconcat-filename' (GPL).
52405         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
52406         (License): Change to LGPLv2+.
52407         * modules/xconcat-filename: New file.
52408         * lib/concat-filename.h (concatenated_filename): Change specification.
52409         (xconcatenated_filename): New declaration.
52410         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
52411         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
52412         memory situations.
52413         * lib/xconcat-filename.c: New file.
52414         * NEWS: Mention the change.
52415         * lib/findprog.c: Include concat-filename.h, not filename.h.
52416         (find_in_path): Use xconcatenated_filename instead of
52417         concatenated_filename.
52418         * lib/javacomp.c: Include concat-filename.h, not filename.h.
52419         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52420         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52421         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52422         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
52423         instead of concatenated_filename.
52424         * lib/javaexec.c: Include concat-filename.h, not filename.h.
52425         (execute_java_class): Use xconcatenated_filename instead of
52426         concatenated_filename.
52427         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
52428         * modules/javacomp (Depends-on): Likewise.
52429         * modules/javaexec (Depends-on): Likewise.
52430
52431 2008-09-01  Bruno Haible  <bruno@clisp.org>
52432
52433         Split module 'filename' into 'filename' and 'concat-filename'.
52434         * modules/filename: Keep only lib/filename.h.
52435         (License): Change to LGPLv2+.
52436         * modules/concat-filename: New file, extracted from modules/filename.
52437         * lib/filename.h (concatenated_filename): Remove declaration.
52438         * lib/concat-filename.h: New file, extracted from lib/filename.h.
52439         * lib/concat-filename.c: Include concat-filename.h.
52440         * NEWS: Mention the change.
52441
52442 2008-09-01  Simon Josefsson  <simon@josefsson.org>
52443
52444         * lib/bitrotate.h (rotl8, rotr8): Add.
52445
52446         * modules/bitrotate (configure.ac): Need
52447         AC_REQUIRE([AC_C_INLINE]).
52448         (Description): Mention stdint.h.  Reported by Bruno Haible
52449         <bruno@clisp.org>.
52450
52451         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
52452         Paolo Bonzini <bonzini@gnu.org>.
52453
52454 2008-08-31  Bruno Haible  <bruno@clisp.org>
52455
52456         Assume Solaris specific bi-arch conventions on Solaris systems.
52457         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
52458         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
52459         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
52460         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
52461         like acl_libdirstem.
52462         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
52463         acl_libdirstem.
52464         * NEWS: Mention the change.
52465         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
52466
52467 2008-08-31  Jim Meyering  <meyering@redhat.com>
52468
52469         * lib/strftime.h: Add comments describing the two added arguments.
52470
52471         remove duplicate #include directives
52472         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
52473         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
52474
52475 2008-08-31  Bruno Haible  <bruno@clisp.org>
52476
52477         New module 'sigpipe-die'.
52478         * modules/sigpipe-die: New file.
52479         * lib/sigpipe-die.h: New file.
52480         * lib/sigpipe-die.c: New file.
52481         * MODULES.html.sh (Signal handling): Add sigpipe-die.
52482
52483 2008-08-31  Bruno Haible  <bruno@clisp.org>
52484
52485         Don't override previously installed signal handlers.
52486         * lib/fatal-signal.c (saved_sigactions): New variable.
52487         (uninstall_handlers): Reset the signal to the saved handler, not
52488         to SIG_DFL (except when ignored).
52489         (install_handlers): Save the previous handlers.
52490
52491 2008-08-30  Bruno Haible  <bruno@clisp.org>
52492
52493         * gnulib-tool (func_reset_sigpipe): New function.
52494         (func_get_automake_snippet, func_modules_transitive_closure,
52495         func_import): Invoke it before a join command that reads from stdin,
52496         to avoid "echo: write error: Broken pipe" error messages on stderr.
52497         Reported by Sam Steingold <sds@gnu.org>.
52498
52499 2008-08-30  Bruno Haible  <bruno@clisp.org>
52500
52501         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
52502         Code copied from m4/open.m4.
52503         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
52504         access and the filename ends in a slash. Code copied from lib/open.c.
52505         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52506         * tests/test-fopen.c (main): Check against bug with trailing slash.
52507
52508 2008-08-29  Bruno Haible  <bruno@clisp.org>
52509
52510         Avoid some "gcc -pedantic" warnings.
52511         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52512         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52513         * lib/dirent.in.h: Likewise.
52514         * lib/fcntl.in.h: Likewise.
52515         * lib/float.in.h: Likewise.
52516         * lib/iconv.in.h: Likewise.
52517         * lib/inttypes.in.h: Likewise.
52518         * lib/locale.in.h: Likewise.
52519         * lib/math.in.h: Likewise.
52520         * lib/netinet_in.in.h: Likewise.
52521         * lib/search.in.h: Likewise.
52522         * lib/signal.in.h: Likewise.
52523         * lib/stdarg.in.h: Likewise.
52524         * lib/stdint.in.h: Likewise.
52525         * lib/stdio.in.h: Likewise.
52526         * lib/stdlib.in.h: Likewise.
52527         * lib/string.in.h: Likewise.
52528         * lib/strings.in.h: Likewise.
52529         * lib/sys_select.in.h: Likewise.
52530         * lib/sys_socket.in.h: Likewise.
52531         * lib/sys_stat.in.h: Likewise.
52532         * lib/sys_time.in.h: Likewise.
52533         * lib/sysexits.in.h: Likewise.
52534         * lib/time.in.h: Likewise.
52535         * lib/unistd.in.h: Likewise.
52536         * lib/wchar.in.h: Likewise.
52537         * lib/wctype.in.h: Likewise.
52538         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52539         * modules/fchdir (Makefile.am): Likewise.
52540         * modules/fcntl (Makefile.am): Likewise.
52541         * modules/float (Makefile.am): Likewise.
52542         * modules/iconv_open (Makefile.am): Likewise.
52543         * modules/inttypes (Makefile.am): Likewise.
52544         * modules/locale (Makefile.am): Likewise.
52545         * modules/math (Makefile.am): Likewise.
52546         * modules/netinet_in (Makefile.am): Likewise.
52547         * modules/search (Makefile.am): Likewise.
52548         * modules/signal (Makefile.am): Likewise.
52549         * modules/stdarg (Makefile.am): Likewise.
52550         * modules/stdint (Makefile.am): Likewise.
52551         * modules/stdio (Makefile.am): Likewise.
52552         * modules/stdlib (Makefile.am): Likewise.
52553         * modules/string (Makefile.am): Likewise.
52554         * modules/strings (Makefile.am): Likewise.
52555         * modules/sys_select (Makefile.am): Likewise.
52556         * modules/sys_socket (Makefile.am): Likewise.
52557         * modules/sys_stat (Makefile.am): Likewise.
52558         * modules/sys_time (Makefile.am): Likewise.
52559         * modules/sysexits (Makefile.am): Likewise.
52560         * modules/time (Makefile.am): Likewise.
52561         * modules/unistd (Makefile.am): Likewise.
52562         * modules/wchar (Makefile.am): Likewise.
52563         * modules/wctype (Makefile.am): Likewise.
52564         Reported by Reuben Thomas <rrt@sc3d.org>.
52565
52566 2008-08-29  Bruno Haible  <bruno@clisp.org>
52567
52568         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52569         any more.
52570
52571 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52572
52573         * MODULES.html.sh (Misc): Add bitrotate.
52574
52575         * modules/bitrotate: New file.
52576
52577         * lib/bitrotate.h: New file.
52578
52579         * modules/bitrotate-tests: New file.
52580
52581         * tests/test-bitrotate.c: New file.
52582
52583         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52584         on the bitrotate module.
52585
52586         * lib/arctwo.c: Use new bitrotate module.
52587
52588 2008-08-29  Jim Meyering  <meyering@redhat.com>
52589
52590         bootstrap: merge changes from coreutils
52591         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52592         of copied files.  Remove a kludge, now that this is fixed.
52593         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52594         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52595         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52596
52597 2008-08-29  Bruno Haible  <bruno@clisp.org>
52598
52599         * MODULES.html.sh: Remove --cvs-urls option.
52600
52601 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52602
52603         maint.mk: adjust to file name change
52604         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52605
52606 2008-08-28  Jim Meyering  <meyering@redhat.com>
52607
52608         * modules/getndelim2 (License): Relicense to LGPLv2+.
52609         Approved by Richard Stallman for the version of 1995, and by
52610         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52611
52612 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52613
52614         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52615         dummy if one is not available.  Do not touch them if
52616         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52617         (getc_maybe_unlocked): New.
52618         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52619
52620 2008-08-26  Eric Blake  <ebb9@byu.net>
52621
52622         doc/INSTALL: resync from autoconf
52623         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52624         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52625         moving...
52626         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52627         * INSTALL: Regenerate.
52628         * INSTALL.ISO: New file.
52629         * INSTALL.UTF-8: Likewise.
52630
52631 2008-08-26  Jim Meyering  <meyering@redhat.com>
52632
52633         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52634         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52635         these definitions conditional, so that they may be overridden, too.
52636
52637 2008-08-26  Bruno Haible  <bruno@clisp.org>
52638
52639         Generate INSTALL file variants with prettier quotes.
52640         * doc/Makefile (INSTALL_PRELUDE): New macro.
52641         (INSTALL): Use it.
52642         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52643
52644 2008-08-26  Bruno Haible  <bruno@clisp.org>
52645
52646         Run makeinfo in an English locale.
52647         * doc/Makefile (MAKEINFO): New variable.
52648
52649 2008-08-26  Bruno Haible  <bruno@clisp.org>
52650
52651         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52652         Suggested by Eric Blake.
52653
52654 2008-08-25  Bruno Haible  <bruno@clisp.org>
52655
52656         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52657
52658 2008-08-25  Eric Blake  <ebb9@byu.net>
52659
52660         c-stack: test that stack overflow can be caught
52661         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
52662         that platform allows handling stack overflow; at least OS/2 EMX
52663         has sigaltstack, but crashes before transferring control to
52664         handler on stack overflow.
52665         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
52666         check for HAVE_STACK_OVERFLOW_HANDLING.
52667         Reported by Elbert Pol.
52668
52669 2008-08-25  Bruno Haible  <bruno@clisp.org>
52670
52671         * doc/posix-functions/strftime.texi: Fix description of strftime
52672         module.
52673
52674 2008-08-24  Bruno Haible  <bruno@clisp.org>
52675
52676         * tests/uniwidth/test-uc_width2.c: New file.
52677         * tests/uniwidth/test-uc_width2.sh: New file.
52678         * modules/uniwidth/width-tests (Files): Add the new files.
52679         (TESTS): Add uniwidth/test-uc_width2.sh.
52680         (TESTS_ENVIRONMENT): New variable.
52681         (check_PROGRAMS): Add test-uc_width2.
52682         (test_uc_width2_SOURCES): New variable.
52683
52684         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
52685         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
52686         not 0x00AB.
52687         Reported by Alexander V. Lukyanov <lav@netis.ru>.
52688
52689 2008-08-22  Eric Blake  <ebb9@byu.net>
52690
52691         test-lock, test-tls: mention why a test is skipped
52692         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
52693         skipped.
52694         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
52695
52696         count-one-bits: relax license
52697         * modules/count-one-bits (License): Relicense to LGPLv2+.
52698         Suggested by Ludovic Courtès, approved by Ben Pfaff.
52699
52700 2008-08-22  Andreas Schwab  <schwab@suse.de>
52701
52702         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52703         Remove spurious space in assignment.
52704
52705 2008-08-21  Simon Josefsson  <simon@josefsson.org>
52706
52707         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
52708         Paul Eggert <eggert@CS.UCLA.EDU>.
52709
52710 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
52711
52712         * modules/gettext: Add m4/threadlib.m4.
52713
52714 2008-08-19  Eric Blake  <ebb9@byu.net>
52715
52716         test-c-stack: fix compilation failure on FreeBSD 5.0
52717         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
52718         headers before <sys/resource.h>.
52719         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
52720         the bug.
52721         Reported by Nelson H. F. Beebe.
52722
52723         strverscmp: migrate from "strverscmp.h" to <string.h>
52724         * modules/string (Makefile.am): Add new hooks.
52725         * modules/strverscmp (Files): Remove strverscmp.h.
52726         (Depends-on): Add string.
52727         (configure.ac): Add indicator.
52728         (Include): Mention new header.
52729         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
52730         defaults.
52731         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
52732         results.
52733         * lib/strverscmp.h: Delete.
52734         * lib/string.in.h (strverscmp): Provide declaration, when needed.
52735         * tests/test-strverscmp.c (includes): Adjust client.
52736         * lib/check-version.c (includes): Likewise.
52737         * NEWS: Document the change.
52738
52739         strverscmp: add unit test
52740         * modules/strverscmp-tests: New file.
52741         * tests/test-strverscmp.c: Likewise.
52742
52743 2008-08-19  Simon Josefsson  <simon@josefsson.org>
52744
52745         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
52746         regarding Windows crypto stuff, from Mono.
52747
52748 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
52749
52750         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
52751         if present, for intel RND.  Return error on failures.
52752
52753 2008-08-18  Ben Pfaff  <blp@gnu.org>
52754
52755         gitlog-to-changelog: give better diagnostic for failed pipe-open
52756         * build-aux/gitlog-to-changelog: Improve error message: suggest
52757         that the version of Git may be too old.
52758
52759 2008-08-18  Simon Josefsson  <simon@josefsson.org>
52760
52761         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
52762         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
52763
52764 2008-08-18  Bruno Haible  <bruno@clisp.org>
52765
52766         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
52767         pthread_in_use().
52768
52769 2008-08-18  Bruno Haible  <bruno@clisp.org>
52770
52771         * lib/glthread/threadlib.c: Include <pthread.h>.
52772
52773 2008-08-18  Bruno Haible  <bruno@clisp.org>
52774
52775         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
52776         glthread_recursive_lock_* macros.
52777         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
52778         Fix syntax error.
52779
52780 2008-08-18  Bruno Haible  <bruno@clisp.org>
52781
52782         * lib/glthread/thread.c: Avoid forcing a context switch right after
52783         thread creation.
52784
52785 2008-08-17  Bruno Haible  <bruno@clisp.org>
52786
52787         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
52788         * lib/glthread/thread.h: Provide Win32 specific implementation.
52789         * modules/thread (Files): Add lib/glthread/thread.c.
52790         (Depends-on): Add lock.
52791         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
52792
52793 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52794
52795         New module 'yield'.
52796         * modules/yield: New file.
52797         * lib/glthread/yield.h: New file.
52798         * m4/yield.m4: New file.
52799         * MODULES.html.sh (Multithreading): Add yield.
52800
52801 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52802
52803         New module 'thread'.
52804         * modules/thread: New file.
52805         * lib/glthread/thread.h: New file.
52806         * m4/thread.m4: New file.
52807         * MODULES.html.sh (Multithreading): Add thread.
52808
52809 2008-08-17  Bruno Haible  <bruno@clisp.org>
52810
52811         * lib/glthread/lock.h: Include <stdlib.h> always.
52812         * lib/glthread/tls.h: Likewise.
52813         * lib/glthread/cond.h: Likewise.
52814
52815 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52816
52817         New module 'cond'.
52818         * modules/cond: New file.
52819         * lib/glthread/cond.h: New file.
52820         * lib/glthread/cond.c: New file.
52821         * m4/cond.m4: New file.
52822         * MODULES.html.sh (Multithreading): Add cond.
52823
52824 2008-08-16  Eric Blake  <ebb9@byu.net>
52825
52826         c-stack: fix regression on Irix 5.3 from 2008-06-21
52827         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
52828         sa_sigaction...
52829         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
52830         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
52831         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
52832         * modules/signal (Makefile.am): Use the value.
52833         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
52834         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
52835         * doc/posix-headers/signal.texi (signal.h): Document this
52836         portability issue.
52837         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
52838         Reported by Tom G. Christensen.
52839
52840 2008-08-17  Bruno Haible  <bruno@clisp.org>
52841
52842         New module 'threadlib'.
52843         * modules/threadlib: New file.
52844         * lib/glthread/threadlib.c: New file, extracted from
52845         lib/glthread/lock.c.
52846         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
52847         functions.
52848         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
52849         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
52850         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
52851         macros.
52852         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
52853         (gl_DISABLE_THREADS): Remove macro.
52854         * modules/lock (Files): Remove build-aux/config.rpath.
52855         (Depends-on): Remove havelib. Add threadlib.
52856         (configure.ac-early): Remove section.
52857         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
52858         * modules/tls (Depends-on): Remove lock. Add threadlib.
52859         (Link): New section, copied from threadlib.
52860         * MODULES.html.sh (Multithreading): Add threadlib.
52861
52862 2008-08-14  Bruno Haible  <bruno@clisp.org>
52863
52864         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
52865         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
52866         glthread_rwlock_unlock, glthread_rwlock_destroy,
52867         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
52868         glthread_recursive_lock_destroy): Define as macros always.
52869         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
52870         glthread_lock_lock.
52871         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
52872         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
52873         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
52874         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
52875         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
52876         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
52877         (glthread_recursive_lock_lock_func): Renamed from
52878         glthread_recursive_lock_lock.
52879         (glthread_recursive_lock_unlock_func): Renamed from
52880         glthread_recursive_lock_unlock.
52881         (glthread_recursive_lock_destroy_func): Renamed from
52882         glthread_recursive_lock_destroy.
52883
52884 2008-08-14  Bruno Haible  <bruno@clisp.org>
52885
52886         * lib/glthread/lock.h: Renamed from lib/lock.h.
52887         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
52888         * lib/glthread/tls.h: Renamed from lib/tls.h.
52889         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
52890         * lib/fstrcmp.c: Update includes.
52891         * lib/strsignal.c: Update includes.
52892         * modules/lock (Files, Makefile.am): Update.
52893         (Include): Change to "glthread/lock.h".
52894         * modules/tls (Files, Makefile.am): Update.
52895         (Include): Change to "glthread/tls.h".
52896         * tests/test-lock.c: Update includes.
52897         * tests/test-tls.c: Update includes.
52898         * NEWS: Mention the renamed header files.
52899
52900 2008-08-11  Jim Meyering  <meyering@redhat.com>
52901
52902         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
52903
52904 2008-08-11  Eric Blake  <ebb9@byu.net>
52905
52906         test-c-stack: avoid C99-ism
52907         * tests/test-c-stack.c (main): Fix whitespace, move declaration
52908         before statement.
52909         Reported by Alain Guibert.
52910
52911 2008-08-10  Jim Meyering  <meyering@redhat.com>
52912
52913         ensure that return value of uinttostr et al are not ignored
52914         * lib/inttostr.h (__GNUC_PREREQ): Define.
52915         (__attribute_warn_unused_result__): Define.
52916         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
52917
52918 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
52919
52920         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
52921         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
52922
52923 2008-08-07  Jim Meyering  <meyering@redhat.com>
52924
52925         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
52926
52927         * modules/mkstemp (License): Relicense under LGPLv2+.
52928         * modules/tempname (License): Likewise.
52929
52930 2008-08-06  Bruno Haible  <bruno@clisp.org>
52931
52932         * lib/poll.c (poll): Further micro-optimization.
52933
52934 2008-08-06  Jim Meyering  <meyering@redhat.com>
52935
52936         inet_pton.c: use locale-independent tolower
52937         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
52938         (inet_pton6): Use c_tolower rather than tolower.
52939         * modules/inet_pton (Depends-on): Add c-ctype.
52940
52941 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
52942
52943         * lib/poll.c (poll): Avoid division when timeout is 0, cache
52944         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
52945
52946 2008-08-06  Jim Meyering  <meyering@redhat.com>
52947
52948         * modules/inet_pton (License): Relicense under LGPLv2+.
52949
52950 2008-08-03  Bruno Haible  <bruno@clisp.org>
52951
52952         Additional non-aborting API for lock and tls.
52953         * lib/lock.h: Include <errno.h>.
52954         (glthread_lock_init): New macro/function.
52955         (gl_lock_init): Define as wrapper around glthread_lock_init.
52956         (glthread_lock_lock): New macro/function.
52957         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
52958         (glthread_lock_unlock): New macro/function.
52959         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
52960         (glthread_lock_destroy): New macro/function.
52961         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
52962         (glthread_rwlock_init): New macro/function.
52963         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
52964         (glthread_rwlock_rdlock): New macro/function.
52965         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
52966         (glthread_rwlock_wrlock): New macro/function.
52967         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
52968         (glthread_rwlock_unlock): New macro/function.
52969         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
52970         (glthread_rwlock_destroy): New macro/function.
52971         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
52972         (glthread_recursive_lock_init): New macro/function.
52973         (gl_recursive_lock_init): Define as wrapper around
52974         glthread_recursive_lock_init.
52975         (glthread_recursive_lock_lock): New macro/function.
52976         (gl_recursive_lock_lock): Define as wrapper around
52977         glthread_recursive_lock_lock.
52978         (glthread_recursive_lock_unlock): New macro/function.
52979         (gl_recursive_lock_unlock): Define as wrapper around
52980         glthread_recursive_lock_unlock.
52981         (glthread_recursive_lock_destroy): New macro/function.
52982         (gl_recursive_lock_destroy): Define as wrapper around
52983         glthread_recursive_lock_destroy.
52984         (glthread_once): New macro/function.
52985         (gl_once): Define as wrapper around glthread_once.
52986         Update function declarations.
52987         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
52988         glthread_rwlock_init. Return error code.
52989         (glthread_rwlock_rdlock_multithreaded): Renamed from
52990         glthread_rwlock_rdlock. Return error code.
52991         (glthread_rwlock_wrlock_multithreaded): Renamed from
52992         glthread_rwlock_wrlock. Return error code.
52993         (glthread_rwlock_unlock_multithreaded): Renamed from
52994         glthread_rwlock_unlock. Return error code.
52995         (glthread_rwlock_destroy_multithreaded): Renamed from
52996         glthread_rwlock_destroy. Return error code.
52997         (glthread_recursive_lock_init_multithreaded): Renamed from
52998         glthread_recursive_lock_init. Return error code.
52999         (glthread_recursive_lock_lock_multithreaded): Renamed from
53000         glthread_recursive_lock_lock. Return error code.
53001         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53002         glthread_recursive_lock_unlock. Return error code.
53003         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53004         glthread_recursive_lock_destroy. Return error code.
53005         (glthread_once_call): Make static.
53006         (glthread_once_multithreaded): Renamed from glthread_once.
53007         * lib/tls.h: Include <errno.h>.
53008         (glthread_tls_key_init): New macro/function.
53009         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53010         (glthread_tls_set): New macro/function.
53011         (gl_tls_set): Define as wrapper around glthread_tls_set.
53012         (glthread_tls_key_destroy): New macro/function.
53013         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53014         Update function declarations.
53015         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53016         glthread_tls_get.
53017         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53018
53019 2008-08-04  Eric Blake  <ebb9@byu.net>
53020
53021         gnumakefile: use space, not TAB, outside of targets
53022         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53023
53024 2008-08-02  Jim Meyering  <meyering@redhat.com>
53025
53026         getdate.y: avoid locale-dependent date parsing failure
53027         In Turkish locales, getdate would fail to recognize keywords
53028         containing a lowercase "i".  The solution is not to rely on
53029         locale-sensitive case-conversion.
53030         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53031         (lookup_word): Use c_toupper in place of toupper.
53032         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53033         Reported by Vefa Bicakci <bicave@superonline.com> in
53034         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53035         * modules/getdate (Depends-on): Add c-ctype.
53036
53037 2008-08-02  Bruno Haible  <bruno@clisp.org>
53038
53039         * gnulib-tool (func_import): When updating or creating a .gitignore
53040         file, prepend each added line with a slash, and ignore leading slashes
53041         from the existing lines.
53042         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53043
53044 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53045
53046         Portability fix for GNU make 3.79.1.
53047         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53048         versions do not understand.
53049
53050 2008-08-01  Bruno Haible  <bruno@clisp.org>
53051
53052         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53053         * tests/test-isnanf.h (zero): New variable.
53054         (main): Avoid literal -0.0f.
53055         * tests/test-isnand.h (zero): New variable.
53056         (main): Avoid literal -0.0.
53057         * tests/test-isnanl.h (zero): New variable.
53058         (main): Avoid literal -0.0L.
53059         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53060         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53061         -0.0, -0.0L.
53062         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53063         (test_signbitd): Avoid literal -0.0.
53064         (test_signbitl): Avoid literal -0.0L.
53065         * tests/test-ceilf1.c (zero): New variable.
53066         (main): Avoid literal -0.0f.
53067         * tests/test-ceill.c (zero): New variable.
53068         (main): Avoid literal -0.0L.
53069         * tests/test-floorf1.c (zero): New variable.
53070         (main): Avoid literal -0.0f.
53071         * tests/test-floorl.c (zero): New variable.
53072         (main): Avoid literal -0.0L.
53073         * tests/test-roundf1.c (zero): New variable.
53074         (main): Avoid literal -0.0f.
53075         * tests/test-round1.c (zero): New variable.
53076         (main): Avoid literal -0.0.
53077         * tests/test-roundl.c (zero): New variable.
53078         (main): Avoid literal -0.0L.
53079         * tests/test-truncf1.c (zero): New variable.
53080         (main): Avoid literal -0.0f.
53081         * tests/test-trunc1.c (zero): New variable.
53082         (main): Avoid literal -0.0.
53083         * tests/test-truncl.c (zero): New variable.
53084         (main): Avoid literal -0.0L.
53085         * tests/test-frexp.c (zero): New variable.
53086         (main): Avoid literal -0.0.
53087         * tests/test-frexpl.c (zero): New variable.
53088         (main): Avoid literal -0.0L.
53089         * tests/test-ldexpl.c (zero): New variable.
53090         (main): Avoid literal -0.0L.
53091         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53092         (zerod, zerol): New variables.
53093         (test_function): Avoid literals -0.0, -0.0L.
53094         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53095         (zerod, zerol): New variables.
53096         (test_function): Avoid literals -0.0, -0.0L.
53097         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53098         (zerod, zerol): New variables.
53099         (test_function): Avoid literals -0.0, -0.0L.
53100         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53101         (zerod, zerol): New variables.
53102         (test_function): Avoid literals -0.0, -0.0L.
53103         * tests/test-strtod.c (zero): New variable.
53104         (main): Avoid literal -0.0.
53105         Reported by Jonathan C. Patschke <jp@centtech.com>.
53106
53107 2008-07-31  Jim Meyering  <meyering@redhat.com>
53108
53109         sha256.h: correct definition of SHA224_DIGEST_SIZE
53110         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53111         Reported by Paulie Pena IV <paulie4@gmail.com>.
53112         Define as 224 / 8, rather than as a literal.
53113         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53114         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53115         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53116
53117 2008-07-31  Bruno Haible  <bruno@clisp.org>
53118
53119         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53120         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53121         Reported by Jonathan Patschke <jp@centtech.com>.
53122
53123 2008-07-31  Bruno Haible  <bruno@clisp.org>
53124
53125         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53126         Reported by Paolo Bonzini <bonzini@gnu.org>.
53127
53128 2008-07-30  Eric Blake  <ebb9@byu.net>
53129
53130         test-strtod: allow compilation without -lm
53131         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53132         Reported by Dennis Clarke <blastwave@gmail.com>.
53133
53134 2008-07-28  Jim Meyering  <meyering@redhat.com>
53135
53136         bootstrap: work also when there are no .po files in po/
53137         * build-aux/bootstrap (update_po_files): Complete the change
53138         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53139
53140 2008-07-27  Jim Meyering  <meyering@redhat.com>
53141
53142         * users.txt: Add zile.
53143
53144 2008-07-26  Ben Pfaff  <blp@gnu.org>
53145
53146         Add missing dependencies on new m4/exponent[fdl].m4 files.
53147         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53148         * modules/isnand-nolibm: Add m4/exponentd.m4.
53149         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53150         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53151         m4/isnan[fdl].m4, because the macros actually used moved.
53152         Reported by Jim Meyering.
53153
53154 2008-07-14  Ben Pfaff  <blp@gnu.org>
53155
53156         Add isinf module.
53157         * lib/isinf.c: New file.
53158         * lib/math.in.h: Define isinf macro if we have decided to replace
53159         it.
53160         * m4/isinf.m4: New file.
53161         * m4/math_h.m4: Initialize and substitute variables for isinf
53162         module.
53163         * modules/isinf: New file.
53164         * modules/isinf-tests: New file.
53165         * modules/math: Add substitutions for new module.
53166         * tests/test-isinf.c: New file.
53167         * doc/posix-functions/isinf.texi: Mention new module.
53168         * MODULES.html.sh: Mention new module.
53169
53170 2008-07-14  Ben Pfaff  <blp@gnu.org>
53171
53172         Factor out some macros for use by additional modules.
53173         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53174         exponentf.m4.
53175         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53176         exponentd.m4.
53177         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53178         file exponentl.m4.
53179         * m4/exponentf.m4: New file.
53180         * m4/exponentd.m4: New file.
53181         * m4/exponentl.m4: New file.
53182         * modules/isnanf: Use new file m4/exponentf.m4.
53183         * modules/isnand: Use new file m4/exponentd.m4.
53184         * modules/isnanl: Use new file m4/exponentl.m4.
53185
53186 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53187
53188         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53189         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53190         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53191         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53192
53193         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53194         readlink on platforms without PATH_MAX.
53195
53196 2008-07-21  Eric Blake  <ebb9@byu.net>
53197
53198         Warn, not fail, on stale version.
53199         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53200
53201         Don't allow installation with stale devel version number.
53202         * top/GNUmakefile (_is-install-target): New macro.
53203         (_curr-ver): Forbid installation with stale version number.
53204
53205 2008-07-20  Bruno Haible  <bruno@clisp.org>
53206
53207         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53208         TESTS_ENVIRONMENT.
53209         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53210
53211 2008-07-20  Bruno Haible  <bruno@clisp.org>
53212
53213         * lib/c-stack.h (c_stack_action): Add documentation.
53214         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53215
53216 2008-07-20  Bruno Haible  <bruno@clisp.org>
53217
53218         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53219         * modules/readlink (License): Likewise.
53220
53221 2008-07-17  Eric Blake  <ebb9@byu.net>
53222
53223         * modules/c-stack (Link): Fix typo.
53224
53225         Make c-stack use libsigsegv, when available.
53226         * modules/c-stack (Depends-on): Add libsigsegv.
53227         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53228         needed.
53229         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53230         (segv_handler, overflow_handler, c_stack_action)
53231         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53232         implementation when libsigsegv is available, but only when using
53233         the library is necessary.
53234         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53235         comment, explaining why XSI check fails on Linux.
53236         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53237         * tests/test-c-stack2.sh: Tweak skip message.
53238         * NEWS: Document new link-time requirements.
53239
53240 2008-07-16  Eric Blake  <ebb9@byu.net>
53241
53242         c-stack: Expose false positives when not using libsigsegv.
53243         * modules/c-stack-tests (Files): Expand test.
53244         * tests/test-c-stack.c (main): Add means to conditionally trigger
53245         non-overflow SIGSEGV.
53246         * tests/test-c-stack2.sh: New file.
53247
53248 2008-07-14  Bruno Haible  <bruno@clisp.org>
53249
53250         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53251         Reported by Eric Blake.
53252
53253 2008-07-14  Sam Steingold  <sds@gnu.org>
53254             Bruno Haible  <bruno@clisp.org>
53255
53256         New module libsigsegv.
53257         * modules/libsigsegv: New file.
53258         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53259         modifications.
53260         * MODULES.html.sh (Signal handling): New section.
53261
53262 2008-07-14  Bruno Haible  <bruno@clisp.org>
53263
53264         * modules/unictype/ctype-* (Description): Add the word "function".
53265         Improves the resulting doc in MODULES.html.
53266
53267 2008-07-12  Ben Pfaff  <blp@gnu.org>
53268
53269         Add longlong module.
53270         * modules/longlong: New file.
53271
53272 2008-07-12  Bruno Haible  <bruno@clisp.org>
53273
53274         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53275         to empty.
53276
53277 2008-07-10  Ben Pfaff  <blp@gnu.org>
53278
53279         Add isnan module.
53280         * doc/posix-functions/isnan.texi: Mention new module.
53281         * lib/math.in.h: Define isnan macro if we have decided to replace
53282         it.
53283         * m4/isnan.m4: New file.
53284         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53285         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53286         also.
53287         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53288         redundancy.
53289         * m4/math_h.m4: Initialize and substitute variables for isnan
53290         module.
53291         * modules/isnan: New file.
53292         * modules/isnan-tests: New file.
53293         * modules/math: Add substitutions for new module.
53294         * tests/test-isnan.c: New file.
53295         * MODULES.html.sh: Mention new module.
53296
53297 2008-07-10  Ben Pfaff  <blp@gnu.org>
53298
53299         Add isnanf module.
53300         * lib/isnanf.m4: New file.
53301         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53302         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53303         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53304         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53305         * modules/isnanf: New file.
53306         * modules/isnanf-tests: New file.
53307         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53308         files.
53309         * tests/test-isnanf-nolibm.c: factored most of its contents into
53310         new file tests/test-isnanf.h.
53311         * tests/test-isnanf.h: New file.
53312         * tests/test-isnanf.c: New file.
53313         * MODULES.html.sh: Mention new module.
53314         * doc/glibc-functions/isnanf.texi: Mention new module.
53315
53316 2008-07-10  Ben Pfaff  <blp@gnu.org>
53317
53318         Add isnand module.
53319         * lib/isnand.h: New file.
53320         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
53321         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
53322         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
53323         functionality also.
53324         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
53325         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
53326         (gl_HAVE_ISNAND_IN_LIBM): New macro.
53327         * modules/isnand: New file.
53328         * modules/isnand-tests: New file.
53329         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
53330         files.
53331         * tests/test-isnand-nolibm.c: factored most of its contents into
53332         new file tests/test-isnand.h.
53333         * tests/test-isnand.h: New file.
53334         * tests/test-isnand.c: New file.
53335         * MODULES.html.sh: Mention new module.
53336
53337 2008-07-10  Ben Pfaff  <blp@gnu.org>
53338
53339         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
53340         * lib/isnand.h: Rename lib/isnand-nolibm.h.
53341         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
53342         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
53343         * modules/isnanf-nolibm: Update references to renamed files.
53344         * modules/isnand-nolibm: Likewise.
53345         * modules/isnanf-nolibm-tests: Likewise.
53346         * modules/isnand-nolibm-tests: Likewise.
53347         * lib/frexp.c: Likewise.
53348         * lib/isfinite.c: Likewise.
53349         * lib/signbitd.c: Likewise.
53350         * lib/signbitf.c: Likewise.
53351         * lib/vasnprintf.c: Likewise.
53352         * tests/test-ceilf1.c: Likewise.
53353         * tests/test-ceilf2.c: Likewise.
53354         * tests/test-floorf1.c: Likewise.
53355         * tests/test-floorf2.c: Likewise.
53356         * tests/test-frexp.c: Likewise.
53357         * tests/test-round1.c: Likewise.
53358         * tests/test-round2.c: Likewise.
53359         * tests/test-roundf1.c: Likewise.
53360         * tests/test-strtod.c: Likewise.
53361         * tests/test-trunc1.c: Likewise.
53362         * tests/test-trunc2.c: Likewise.
53363         * tests/test-truncf1.c: Likewise.
53364         * tests/test-truncf2.c: Likewise.
53365         * NEWS: Mention the renamed header files.
53366
53367 2008-07-11  Jim Meyering  <meyering@redhat.com>
53368
53369         vc-list-files: make the last-resort awk code more portable
53370         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53371         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53372         does not support it.
53373
53374 2008-07-10  Eric Blake  <ebb9@byu.net>
53375
53376         Work with tar's bootstrap.
53377         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53378         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53379         an m4 comment.
53380
53381 2008-07-09  Jim Meyering  <meyering@redhat.com>
53382
53383         posix-shell.m4: fix typo that made this test malfunction
53384         * m4/posix-shell.m4: Remove capitalization in variable name.
53385
53386 2008-07-08  Bruno Haible  <bruno@clisp.org>
53387
53388         * m4/onceonly.m4: Update comments.
53389         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53390
53391 2008-07-04  Jim Meyering  <meyering@redhat.com>
53392
53393         * users.txt: Add vc-dwim.
53394         (bison, coreutils): Use the gitweb URL.
53395
53396 2008-07-03  Jim Meyering  <meyering@redhat.com>
53397
53398         * users.txt: Add libffcall.  From Sam Steingold.
53399
53400 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
53401
53402         getdate.y: do not ignore TZ with relative day, month or year offset
53403         * lib/getdate.y (get_date): Move the tz-handling block to follow the
53404         relative-date-handling, since otherwise, the latter would clobber the
53405         sole output (an updated Start value) of the tz-handling block.
53406         * tests/test-getdate.c: Tests for the fix
53407
53408 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53409
53410         Recognize 'foo_LIBRARIES += libgnu.a'.
53411         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
53412         makefile snippet has already specified an installation location,
53413         also using '+='.
53414
53415 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
53416
53417         getdate.y: factor out common actions
53418         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
53419         Use them in place of open-coded actions.
53420
53421 2008-07-01  Simon Josefsson  <simon@josefsson.org>
53422
53423         Add self-test for getdate module.
53424         * modules/getdate-tests: New file.
53425         * tests/test-getdate.c: New file.
53426
53427 2008-06-29  Bruno Haible  <bruno@clisp.org>
53428
53429         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
53430         .gitignore.
53431         Reported by Sylvain Beucler <beuc@beuc.net>.
53432
53433 2008-06-29  Bruno Haible  <bruno@clisp.org>
53434
53435         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
53436         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
53437
53438 2008-06-29  Bruno Haible  <bruno@clisp.org>
53439
53440         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
53441         EXTRA_DIST.
53442         Reported by Sylvain Beucler <beuc@beuc.net>.
53443
53444 2008-06-26  Jim Meyering  <meyering@redhat.com>
53445
53446         make several modules depend on the "open" module
53447         This provides slightly increased consistency when opening-for-write
53448         the name of a non-directory spelled with a trailing slash.
53449         * modules/chdir-safer: Likewise.
53450         * modules/chown: Likewise.
53451         * modules/clean-temp: Likewise.
53452         * modules/copy-file: Likewise.
53453         * modules/fchdir: Likewise.
53454         * modules/fcntl-safer: Likewise.
53455         * modules/pipe: Likewise.
53456         * modules/utime: Likewise.
53457         Prompted by Eric Blake and Bruno Haible.
53458
53459 2008-06-24  Andreas Schwab  <schwab@suse.de>
53460
53461         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
53462         literals can be used as initializers for global variables.
53463
53464 2008-06-23  Eric Blake  <ebb9@byu.net>
53465
53466         Make gnulib-cache.m4 easier to diff.
53467         * gnulib-tool (func_import): Allow newlines when reading cached
53468         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
53469
53470 2008-06-23  Bruno Haible  <bruno@clisp.org>
53471
53472         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
53473         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
53474         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
53475         m4/signalblocking.m4.
53476         (gl_PREREQ_SIGACTION): Don't invoke it.
53477         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
53478         gl_PREREQ_SIG_HANDLER_H.
53479         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53480         Don't check for sigaction here.
53481
53482 2008-06-23  Bruno Haible  <bruno@clisp.org>
53483
53484         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
53485         (install_handlers): Don't set the SA_RESETHAND flag.
53486
53487 2008-06-23  Bruno Haible  <bruno@clisp.org>
53488
53489         * m4/sigaction.m4: Comment fixes.
53490         * lib/signal.in.h: Likewise.
53491
53492 2008-06-23  Eric Blake  <ebb9@byu.net>
53493
53494         Fix typo.
53495         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
53496
53497         Avoid SA_ namespace.
53498         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
53499         Reported by Ralf Wildenhues.
53500
53501         Avoid test failure due to SA_RESTORER.
53502         * tests/test-sigaction.c (SA_MASK): New macro.
53503         (main): Avoid failing due to extension flags being set.
53504         Reported by Jim Meyering.
53505
53506         Revert use of sig-handler.h in sigprocmask.c.
53507         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53508         it requires the existence of struct sigaction.
53509         * lib/sigprocmask.c (handler_t): Restore typedef.
53510         (rpl_signal, old_handlers): Use local type.
53511
53512 2008-06-22  Bruno Haible  <bruno@clisp.org>
53513
53514         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53515         conditionally.
53516         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53517
53518 2008-06-22  Bruno Haible  <bruno@clisp.org>
53519
53520         * doc/posix-functions/siginterrupt.texi: Move note.
53521
53522         * lib/signal.in.h (SA_RESTART): New macro.
53523         * lib/sigaction.c: Update comment.
53524
53525         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53526
53527         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53528         (gl_PREREQ_SIGPROCMASK): Invoke it.
53529         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53530
53531         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53532
53533         * lib/sigprocmask.c: Update a comment.
53534
53535 2008-06-21  Eric Blake  <ebb9@byu.net>
53536
53537         Use sigaction module rather than signal().
53538         * modules/c-stack (Depends-on): Add sigaction.
53539         * modules/fatal-signal (Depends-on): Likewise.
53540         * modules/nanosleep (Depends-on): Likewise.
53541         * modules/sigprocmask (Files): Add sig-handler.h.
53542         * modules/sigaction (Files): Likewise.
53543         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53544         Eggert.
53545         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53546         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53547         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53548         (init_fatal_signals): Likewise.
53549         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53550         (siginterrupt): Delete fallback.
53551         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53552         instead.
53553         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53554         siginterrupt.
53555
53556         New module sigaction, for mingw.
53557         * modules/sigaction: New module...
53558         * modules/sigaction-tests: ...and its test.
53559         * m4/sigaction.m4: New file.
53560         * lib/sigaction.c: Likewise.
53561         * tests/test-sigaction.c: Likewise.
53562         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53563         * modules/signal (Makefile.am): Likewise.
53564         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53565         needed.
53566         * doc/posix-headers/signal.texi (signal.h): Mention provided
53567         types.
53568         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53569         that sigaction is preferable.
53570         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53571         module.
53572         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53573         sigaction.
53574
53575         Improve robustness of sigprocmask by overriding signal.
53576         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53577         is in use.
53578         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53579         (SIGKILL, SIGSTOP): Provide fallbacks.
53580         (rpl_signal): Implement.
53581         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53582         signal can be called inside handlers.
53583
53584         Fix nanosleep module on mingw.
53585         * modules/nanosleep (Depends-on): Add sys_select.
53586         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53587
53588         Fix licensing of sigprocmask.
53589         * modules/raise (License): Relicense as LGPL.
53590
53591 2008-06-21  Bruno Haible  <bruno@clisp.org>
53592
53593         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53594         result if it contains question marks.
53595         Reported by Michael Geng <linux@michaelgeng.de>.
53596
53597 2008-06-19  Bruno Haible  <bruno@clisp.org>
53598
53599         Fix CVS-ism.
53600         * doc/gnulib.texi: Include updated-stamp.texi.
53601         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53602         (updated-stamp.texi): New rule.
53603         (gnulib.info): Depend on it.
53604         * doc/.gitignore: Add updated-stamp.texi.
53605         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53606
53607 2008-06-19  Bruno Haible  <bruno@clisp.org>
53608
53609         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53610         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53611
53612 2008-06-19  Eric Blake  <ebb9@byu.net>
53613
53614         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53615         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53616         Reported by Stepan Kasal.
53617
53618 2008-06-18  Bruno Haible  <bruno@clisp.org>
53619
53620         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53621         Reported by Eric Blake.
53622
53623 2008-06-18  Eric Blake  <ebb9@byu.net>
53624
53625         Work around cygwin 1.5.25 strsignal bug.
53626         * tests/test-strsignal.c: Allow for const char *.
53627         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53628
53629 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53630
53631         * users.txt: Update URL to article and add author/date
53632         information.
53633
53634 2008-06-17  Bruno Haible  <bruno@clisp.org>
53635
53636         New macro gl_DISABLE_THREADS.
53637         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53638         if the user did not pass --enable-threads or --disable-threads option.
53639         (gl_DISABLE_THREADS): New macro.
53640         Reported by Eric Blake <ebb9@byu.net>.
53641
53642 2008-06-17  Bruno Haible  <bruno@clisp.org>
53643
53644         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53645         when the macro ignores it.
53646         Based on a patch by Eric Blake <ebb9@byu.net>.
53647
53648 2008-06-17  Bruno Haible  <bruno@clisp.org>
53649
53650         * modules/tls (License): Change to LGPLv2+.
53651         Reported by Eric Blake.
53652
53653 2008-06-17  Eric Blake  <ebb9@byu.net>
53654
53655         Simplify c-stack prerequisites.
53656         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53657         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
53658         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53659         check.
53660         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
53661         <sys/resource.h>.
53662
53663         Move c-stack test into testsuite.
53664         * modules/c-stack-tests: New file.
53665         * lib/c-stack.c [DEBUG]: Move test program...
53666         * tests/test-c-stack.c: ...into this new file.  Skip rather than
53667         fail test if sigaltstack is lacking.
53668         * tests/test-c-stack.sh: New driver file.
53669
53670 2008-06-16  Eric Blake  <ebb9@byu.net>
53671
53672         Use raise module consistently.
53673         * modules/fatal-signal (Depends-on): Add raise.
53674         * modules/sigprocmask (Depends-on): Likewise.
53675         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
53676         * lib/sigprocmask.c (sigprocmask): Likewise.
53677         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53678         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
53679
53680         Fix compliance bug in sigpending.
53681         * lib/sigprocmask.c (sigpending): Return pending array via
53682         parameter, not return value.
53683
53684 2008-06-14  Eric Blake  <ebb9@byu.net>
53685
53686         Improve obstack-printf test code.
53687         * tests/test-obstack-printf.c (test_function): Fix comment, and
53688         simplify usage of obstack_* in macros.  Add a test for coverage.
53689         Reported by Bruno Haible.
53690
53691 2008-06-14  Bruno Haible  <bruno@clisp.org>
53692
53693         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
53694         array size as a constant, not as a const variable.
53695         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
53696         AC_USE_SYSTEM_EXTENSIONS.
53697         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
53698         Test whether the obstack_printf function actually exists.
53699         * modules/obstack-printf (Depends-on): Add extensions.
53700         (Include): Remove obstack.h.
53701         * modules/obstack-printf-posix (Depends-on): Add extensions.
53702         (Include): Remove obstack.h.
53703
53704 2008-06-13  Eric Blake  <ebb9@byu.net>
53705
53706         Add obstack-printf and obstack-printf-posix modules.
53707         * modules/obstack-printf: New file.
53708         * modules/obstack-printf-posix: Likewise.
53709         * MODULES.html.sh (Misc): Mention them.
53710         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53711         Likewise.
53712         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53713         Likewise.
53714         * modules/stdio (Makefile.am): Accomodate new modules.
53715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53716         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
53717         Declare.
53718         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
53719         functions.
53720         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
53721         (gl_REPLACE_OBSTACK_PRINTF): New macros
53722         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
53723         * tests/test-obstack-printf.c: New file.
53724         * modules/obstack-printf-tests: Likewise.
53725         * modules/obstack-printf-posix-tests: Likewise.
53726
53727 2008-06-11  Bruno Haible  <bruno@clisp.org>
53728
53729         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
53730         * lib/open.c: Include errno.h.
53731         (open): Fail when attempting to write to a file that has a trailing
53732         slash.
53733         * tests/test-open.c (main): Test against trailing slash bug.
53734         * doc/posix-functions/open.texi: Mention the trailing slash bug.
53735
53736 2008-06-10  Bruno Haible  <bruno@clisp.org>
53737
53738         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
53739         for $? to work inside the trap command, with various /bin/sh-s.
53740         * tests/test-vc-list-files-cvs.sh: Likewise.
53741
53742 2008-06-10  Bruno Haible  <bruno@clisp.org>
53743
53744         * lib/acl-internal.h: Don't include gettext.h here.
53745         * lib/set-mode-acl.c: Include gettext.h here.
53746         * lib/copy-acl.c: Likewise.
53747
53748 2008-06-10  Bruno Haible  <bruno@clisp.org>
53749
53750         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
53751         * lib/wait-process.c (wait_subprocess): Likewise.
53752         * lib/execute.h (execute): Add termsigp argument.
53753         * lib/execute.c (execute): Likewise.
53754         * lib/csharpcomp.c (compile_csharp_using_pnet,
53755         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
53756         * lib/csharpexec.c (execute_csharp_using_pnet,
53757         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
53758         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
53759         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
53760         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
53761         is_jikes_present): Update.
53762         * lib/javaexec.c (execute_java_class): Update.
53763         * lib/javaversion.c (execute_and_read_line): Update.
53764         * NEWS: Document the changes.
53765         Reported by Eric Blake.
53766
53767 2008-06-10  Eric Blake  <ebb9@byu.net>
53768
53769         Add missing include.
53770         * tests/test-strstr.c (includes): Add <signal.h>.
53771         * tests/test-strcasestr.c (includes): Likewise.
53772         * tests/test-memmem.c (includes): Likewise.
53773
53774 2008-06-10  Bruno Haible  <bruno@clisp.org>
53775
53776         * lib/wait-process.c (wait_subprocess): Add an assertion.
53777
53778 2008-06-10  Bruno Haible  <bruno@clisp.org>
53779
53780         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
53781
53782 2008-06-10  Bruno Haible  <bruno@clisp.org>
53783
53784         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
53785         using alarm().
53786         * tests/test-strcasestr.c (main): Likewise.
53787         * tests/test-strstr.c (main): Likewise.
53788
53789 2008-06-09  Bruno Haible  <bruno@clisp.org>
53790
53791         Work around the Solaris 10 ACE ACLs ABI change.
53792         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
53793         declare if ACL_NO_TRIVIAL is present.
53794         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
53795         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
53796         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
53797         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
53798         define if ACL_NO_TRIVIAL is present.
53799         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
53800         and use the current ABI.
53801         (file_has_acl): Use same #if condition as elsewhere.
53802         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
53803         in use, and use the current ABI.
53804         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
53805         Reported by Jim Meyering.
53806
53807 2008-06-09  Eric Blake  <ebb9@byu.net>
53808
53809         Work around environments that (stupidly) ignore SIGALRM.
53810         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
53811         before using alarm().
53812         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53813         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53814         Reported by Ian Beckwith <ianb@erislabs.net>.
53815
53816         Produce autobuild blurb earlier in log.
53817         * modules/autobuild (configure.ac-early): Move AB_INIT here.
53818
53819 2008-06-09  Jim Meyering  <meyering@redhat.com>
53820         and OndÅ™ej Vašík  <ovasik@redhat.com>
53821
53822         utimens.c: correct kernel bug work-around
53823         OndÅ™ej Vašík found that the invalid return value of 280 indicates
53824         failure, not success, and the kernel bug we're trying to work
53825         around affects not just the utimensat call, but also the fallback
53826         futimens call.
53827         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
53828         not success.
53829         [HAVE_FUTIMENS]: Use the same work-around, here.
53830
53831 2008-06-09  Jim Meyering  <meyering@redhat.com>
53832
53833         add more guards around definition of ACE_-related code
53834         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
53835         ALLOW and ACE_OWNER are also defined.
53836
53837 2008-06-08  Bruno Haible  <bruno@clisp.org>
53838
53839         * lib/acl-internal.h: Add me as co-author.
53840         * lib/file-has-acl.c: Likewise.
53841         * lib/set-mode-acl.c: Likewise.
53842         * lib/copy-acl.c: Likewise.
53843
53844 2008-06-08  Bruno Haible  <bruno@clisp.org>
53845
53846         Add support for AIX ACLs.
53847         * lib/acl-internal.h (acl_nontrivial): New declaration.
53848         * lib/file-has-acl.c (acl_nontrivial): New function.
53849         (file_has_acl): Add implementation using AIX 4 ACL API.
53850         * lib/set-mode-acl.c (qset_acl): Likewise.
53851         * lib/copy-acl.c (qcopy_acl): Likewise.
53852
53853 2008-06-08  Bruno Haible  <bruno@clisp.org>
53854
53855         Add support for HP-UX ACLs.
53856         * lib/acl-internal.h (acl_nontrivial): New declaration.
53857         * lib/file-has-acl.c (acl_nontrivial): New function.
53858         (file_has_acl): Add implementation using HP-UX 11 ACL API.
53859         * lib/set-mode-acl.c (qset_acl): Likewise.
53860         * lib/copy-acl.c (qcopy_acl): Likewise.
53861
53862 2008-06-08  Bruno Haible  <bruno@clisp.org>
53863
53864         Add support for Cygwin ACLs.
53865         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
53866         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
53867         the chmod_or_fchmod call.
53868         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
53869
53870 2008-06-08  Bruno Haible  <bruno@clisp.org>
53871
53872         Fix bug with setuid modes in Solaris 10+ code.
53873         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
53874         succeeded, when the mode contains some special bits.
53875
53876 2008-06-08  Bruno Haible  <bruno@clisp.org>
53877
53878         Add support for Solaris 7..10 ACLs.
53879         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
53880         declarations.
53881         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
53882         functions.
53883         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
53884         * lib/set-mode-acl.c (qset_acl): Likewise.
53885         * lib/copy-acl.c (qcopy_acl): Likewise.
53886
53887 2008-06-08  Bruno Haible  <bruno@clisp.org>
53888
53889         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
53890         declaration.
53891         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
53892         (acl_access_nontrivial): Remove MacOS X case.
53893         (file_has_acl): Use acl_extended_nontrivial.
53894         * lib/copy-acl.c (qcopy_acl): Likewise.
53895
53896 2008-06-08  Bruno Haible  <bruno@clisp.org>
53897
53898         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
53899
53900 2008-06-08  Jim Meyering  <meyering@redhat.com>
53901
53902         * modules/acl (Maintainer): Add Bruno Haible.
53903
53904 2008-06-07  Bruno Haible  <bruno@clisp.org>
53905
53906         Improve support for Tru64 ACLs.
53907         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
53908         ACL on OSF/1.
53909
53910 2008-06-07  Bruno Haible  <bruno@clisp.org>
53911
53912         Add support for MacOS X ACLs.
53913         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
53914         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
53915         * lib/set-mode-acl.c (qset_acl): Likewise.
53916         * lib/copy-acl.c (qcopy_acl): Likewise.
53917
53918 2008-06-07  Bruno Haible  <bruno@clisp.org>
53919
53920         Fix memory leak introduced on 2008-05-22.
53921         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
53922         use.
53923
53924 2008-06-07  Bruno Haible  <bruno@clisp.org>
53925
53926         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
53927         to construct an empty ACL.
53928
53929 2008-06-07  Bruno Haible  <bruno@clisp.org>
53930
53931         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
53932         precisely.
53933         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
53934
53935 2008-06-07  Bruno Haible  <bruno@clisp.org>
53936
53937         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
53938         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
53939
53940 2008-06-07  Bruno Haible  <bruno@clisp.org>
53941
53942         * doc/posix-functions/_setjmp.texi: Explain the use of this function
53943         regardless of POSIX.
53944         * doc/posix-functions/_longjmp.texi: Likewise.
53945         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
53946         SystemV platform in this case.
53947
53948 2008-06-06  Eric Blake  <ebb9@byu.net>
53949
53950         Document abort() bugs.
53951         * doc/posix-functions/abort.texi (abort): Mention anomalies.
53952
53953         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
53954         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
53955         sigsetjmp.
53956         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
53957         siglongjmp, but only as a macro.
53958         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
53959         is obsolete.
53960         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
53961
53962         Tweak documentation to cover cygwin argz bugs.
53963         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
53964         argz bug fix; no code change needed since no cygwin releases
53965         occurred between the last fix and the bug being tested.
53966         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
53967         module and recently fixed cygwin bugs.
53968         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
53969         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
53970         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
53971         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
53972         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
53973         Likewise.
53974         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
53975         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
53976         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
53977         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
53978         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
53979         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
53980         Likewise.
53981
53982         Avoid gcc warning on cygwin.
53983         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
53984         !ACL_NO_TRIVIAL]: Avoid unused variable.
53985
53986 2008-06-05  Eric Blake  <ebb9@byu.net>
53987
53988         Be tolerant of UNKNOWN version in gnulib-tool test dir.
53989         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
53990         git-version-gen fails to come up with a version.
53991         Reported by Simon Josefsson.
53992
53993 2008-06-05  Jim Meyering  <meyering@redhat.com>
53994             Paul Eggert  <eggert@cs.ucla.edu>
53995
53996         utimens.c: work around a probable Linux kernel bug
53997         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
53998         appears to be a kernel bug that causes utimensat to return 280
53999         instead of 0, indicating success.
54000
54001 2008-06-04  Bruno Haible  <bruno@clisp.org>
54002
54003         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54004         2008-06-01 commit.
54005
54006 2008-06-04  Bruno Haible  <bruno@clisp.org>
54007
54008         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54009         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54010         (file_has_acl): Use it. Save errno afterwards.
54011         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54012
54013 2008-06-03  Bruno Haible  <bruno@clisp.org>
54014
54015         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54016         draft code. Simplify #ifs.
54017         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54018         Put Solaris code after POSIX-draft code. Fix comments regarding
54019         Solaris 10, HP-UX. Mention Cygwin.
54020         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54021
54022 2008-06-03  Eric Blake  <ebb9@byu.net>
54023
54024         Provide fallback for older kernels.
54025         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54026         Provide runtime fallback if kernel lacks support.
54027         Reported by Mike Frysinger.
54028
54029 2008-06-02  Bruno Haible  <bruno@clisp.org>
54030
54031         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54032         it exists.
54033
54034 2008-06-02  Bruno Haible  <bruno@clisp.org>
54035
54036         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54037         * lib/copy-acl.c (qcopy_acl): Update comment.
54038
54039 2008-06-02  Bruno Haible  <bruno@clisp.org>
54040
54041         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54042         like ACL APIs.
54043
54044 2008-06-02  Bruno Haible  <bruno@clisp.org>
54045
54046         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54047         * tests/test-set-mode-acl.sh: Likewise.
54048         * tests/test-copy-acl.sh: Likewise.
54049         * tests/test-copy-file.sh: Likewise.
54050
54051 2008-06-02  Bruno Haible  <bruno@clisp.org>
54052
54053         * tests/test-file-has-acl.sh: Remove unused code.
54054
54055 2008-06-01  Bruno Haible  <bruno@clisp.org>
54056
54057         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54058         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54059         messages.
54060         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54061
54062 2008-06-01  Bruno Haible  <bruno@clisp.org>
54063
54064         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54065         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54066         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54067         APIs.
54068         * modules/acl-tests (configure.ac): Remove tests now contained in
54069         m4/acl.m4.
54070
54071 2008-06-02  Jim Meyering  <meyering@redhat.com>
54072
54073         announce-gen: use a better key-server host name
54074         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54075         it may be more consistently reliable.  Suggested by Werner Koch
54076         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54077
54078 2008-06-01  Bruno Haible  <bruno@clisp.org>
54079
54080         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54081         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54082
54083 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54084
54085         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54086
54087 2008-06-01  Bruno Haible  <bruno@clisp.org>
54088
54089         New ACL tests.
54090         * tests/test-file-has-acl.sh: New file.
54091         * tests/test-file-has-acl.c: New file.
54092         * tests/test-set-mode-acl.sh: New file.
54093         * tests/test-set-mode-acl.c: New file.
54094         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54095         * tests/test-copy-acl.c: New file.
54096         * modules/acl-tests: New file, based on modules/copy-file-tests.
54097         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54098         (Depends-on): Add acl-tests.
54099         (configure.ac): Remove checks.
54100         (Makefile.am): Don't create test-sameacls program here any more.
54101
54102 2008-06-01  Bruno Haible  <bruno@clisp.org>
54103
54104         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54105         * tests/test-sameacls.c: Include progname.h.
54106         (main): Invoke set_program_name. Portability fixes for MacOS X,
54107         Solaris, HP-UX.
54108
54109 2008-06-01  Bruno Haible  <bruno@clisp.org>
54110
54111         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54112         function.
54113         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54114
54115 2008-06-01  Bruno Haible  <bruno@clisp.org>
54116
54117         * modules/rpmatch (Depends-on): Add strdup.
54118
54119 2008-06-01  Bruno Haible  <bruno@clisp.org>
54120
54121         * lib/pipe.c: Include unistd-safer.h.
54122         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54123         * modules/pipe (Depends-on): Add unistd-safer.
54124
54125 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54126
54127         * modules/autobuild (configure.ac): Call AB_INIT.
54128
54129 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54130
54131         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54132         Suggested by Bruno Haible <bruno@clisp.org>.
54133
54134 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54135
54136         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54137         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54138         <bruno@clisp.org>.
54139
54140 2008-05-29  Eric Blake  <ebb9@byu.net>
54141
54142         Prefer new POSIX 200x interfaces over futimesat.
54143         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54144         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54145         when available.
54146         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54147
54148 2008-05-28  Bruno Haible  <bruno@clisp.org>
54149
54150         * modules/stpcpy (License): Change to LGPLv2+.
54151         Requested by David Lutterkort <dlutter@redhat.com>.
54152
54153 2008-05-27  Bruno Haible  <bruno@clisp.org>
54154
54155         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54156         current mingw.
54157         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54158
54159 2008-05-27  Bruno Haible  <bruno@clisp.org>
54160
54161         * modules/iconv_open (Link): New section, from module 'iconv'.
54162         * modules/striconv (Link): Likewise.
54163         * modules/striconveh (Link): Likewise.
54164         * modules/xstriconv (Link): Likewise.
54165         * modules/unicodeio (Link): Likewise.
54166         * modules/propername (Link): Likewise.
54167         Reported by Jim Meyering.
54168
54169 2008-05-26  Jim Meyering  <meyering@redhat.com>
54170
54171         sha256: do not artificially restrict buffer length to be < 2^32
54172         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54173         uint32_t to size_t.
54174         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54175         to match.
54176
54177         avoid unaligned access errors, e.g., on sparc
54178         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54179         direct access through a possibly-unaligned uint64* pointer.
54180         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54181         direct access through a possibly-unaligned uint32* pointer.
54182         Prompted by this patch from Tom "spot" Callaway:
54183         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54184
54185         sha512.c: fix typo in comment
54186         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54187
54188 2008-05-25  Bruno Haible  <bruno@clisp.org>
54189
54190         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54191         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54192         (Makefile.am): Update lib_SOURCES.
54193
54194 2008-05-25  Bruno Haible  <bruno@clisp.org>
54195
54196         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54197
54198 2008-05-25  Jim Meyering  <meyering@redhat.com>
54199
54200         useless-if-before-free: freed expr may have white-space differences
54201         * build-aux/useless-if-before-free: Recognize cases in which the
54202         freed expression differs from the tested one in embedded white
54203         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54204         $1 was used, so we can't make any regexp shy.  Improved tests now
54205         detect this.
54206
54207         useless-if-before-free: accept white space in the expression.
54208         * build-aux/useless-if-before-free: For now, any white space
54209         in the expression must be identical in the free argument.
54210
54211         useless-if-before-free: efficiency tweak
54212         * build-aux/useless-if-before-free: Make the expression-matching
54213         regexp "shy".
54214         Make the *outer* regexp shy, not the expr-matching one.
54215
54216         update code-in-comment to accept cast of free arg
54217         * build-aux/useless-if-before-free: Update regexp.
54218
54219 2008-05-25  Bruno Haible  <bruno@clisp.org>
54220
54221         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54222         * modules/copy-file-tests (Files, Makefile.am): Update.
54223         * tests/test-copy-file.c (func_test_copy): Update.
54224
54225 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54226
54227         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54228
54229 2008-05-23  Bruno Haible  <bruno@clisp.org>
54230
54231         Improve support for ACLs on OSF/1.
54232         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54233         Remove fallback for unknown flavors of ACLs.
54234
54235 2008-05-22  Bruno Haible  <bruno@clisp.org>
54236
54237         Add support for ACLs on OSF/1.
54238         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54239         replacements.
54240         (acl_free_text): New macro fallback.
54241         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54242         acl_free.
54243         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54244         acl_free_text function. Require AC_C_INLINE.
54245
54246 2008-05-22  Bruno Haible  <bruno@clisp.org>
54247
54248         Make copy_acl work on MacOS X 10.5.
54249         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54250         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54251         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54252         If MODE_INSIDE_ACL, don't assume that every system has the same text
54253         representation for ACLs as FreeBSD.
54254         * lib/copy-acl.c (copy_acl): Add support for platforms with
54255         !MODE_INSIDE_ACL.
54256         * lib/file-has-acl.c (file_has_acl): Likewise.
54257         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54258         FreeBSD, MacOS X, or IRIX, respectively.
54259
54260 2008-05-22  Bruno Haible  <bruno@clisp.org>
54261
54262         * lib/acl.h: Don't include <sys/acl.h>.
54263         (GETACLCNT): Move fallback to lib/acl-internal.h.
54264         * lib/acl-internal.h: Include <sys/acl.h> here.
54265         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54266
54267 2008-05-22  Bruno Haible  <bruno@clisp.org>
54268
54269         Split off copy_acl function to separate file.
54270         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54271         * lib/acl.c (copy_acl): Moved function to separate file.
54272         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54273         * modules/acl (Files): Add lib/copy-acl.c.
54274         (Makefiles.am): Augment lib_SOURCES.
54275
54276 2008-05-22  Bruno Haible  <bruno@clisp.org>
54277
54278         * modules/copy-file-tests: New file.
54279         * tests/test-copy-file.sh: New file.
54280         * tests/test-copy-file.c: New file.
54281         * tests/test-copy-file-sameacls.c: New file.
54282
54283 2008-05-22  Eric Blake  <ebb9@byu.net>
54284
54285         Avoid gcc warning.
54286         * tests/test-memcmp.c (main): Pass NULL indirectly.
54287
54288 2008-05-21  Bruno Haible  <bruno@clisp.org>
54289
54290         Add reference doc about ACLs.
54291         * doc/acl-resources.txt: New file.
54292         * doc/acl-cygwin.txt: New file.
54293
54294 2008-05-21  Bruno Haible  <bruno@clisp.org>
54295
54296         Avoid one more warning from gcc.
54297         * lib/vasnprintf.c (IF_LINT): Update comments.
54298         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54299
54300 2008-05-21  Jim Meyering  <meyering@redhat.com>
54301
54302         avoid a warning from gcc
54303         * lib/vasnprintf.c (IF_LINT): Define.
54304         (scale10_round_decimal_long_double):
54305         Use it to avoid a "may be used uninitialized" warning.
54306         (scale10_round_decimal_double): Likewise.
54307
54308 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54309
54310         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54311         declared.
54312
54313 2008-05-20  Bruno Haible  <bruno@clisp.org>
54314
54315         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54316         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54317
54318 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54319
54320         * modules/memcmp-tests: New file.
54321         * tests/test-memcmp.c: New file.
54322
54323 2008-05-19  Bruno Haible  <bruno@clisp.org>
54324
54325         * modules/propername (Notice, configure.ac): Put quoted "..." into
54326         --keyword option.
54327         * lib/propername.h: Update comments accordingly.
54328         Reported by Eric Blake.
54329
54330 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
54331
54332         * modules/getpass-gnu (Depends-on): Add fseeko.
54333
54334 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54335
54336         * modules/base64-tests: New file.
54337
54338 2008-05-19  Bo Borgerson <gigabo@gmail.com>
54339
54340         * lib/base64.c (base64_decode_ctx): If a decode context structure
54341         was passed in use it to ignore newlines.  If a context structure
54342         was _not_ passed in, continue to treat newlines as garbage (this
54343         is the historical behavior).  Formerly base64_decode.
54344         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54345         takes a decode context structure.
54346         * lib/base64.h (base64_decode): Macro for four-argument calls.
54347         (base64_decode_alloc): Likewise.
54348         * lib/base64.c (base64_decode_ctx): If a decode context structure
54349         was passed in use it to ignore newlines.  If a context structure
54350         was _not_ passed in, continue to treat newlines as garbage (this
54351         is the historical behavior).  Formerly base64_decode.
54352         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54353         takes a decode context structure.
54354         * lib/base64.h (base64_decode): Macro for four-argument calls.
54355         (base64_decode_alloc): Likewise.
54356
54357 2008-05-19  Jim Meyering  <meyering@redhat.com>
54358
54359         avoid a warning from gcc
54360         * lib/trim.c (IF_LINT): Define.
54361         (trim2): Use it to avoid a "may be used uninitialized" warning.
54362
54363         Fix doc typo.
54364         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54365
54366 2008-05-19  Bruno Haible  <bruno@clisp.org>
54367
54368         * doc/glibc-functions/getpass.texi: Document limits of other
54369         implementations.
54370
54371 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54372             Bruno Haible <bruno@clisp.org>
54373
54374         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54375
54376 2008-05-18  Bruno Haible  <bruno@clisp.org>
54377
54378         * modules/propername: New file, from GNU gettext.
54379         * lib/propername.h: New file, from GNU gettext.
54380         * lib/propername.c: New file, from GNU gettext.
54381         * MODULES.html.sh (Internationalization functions): Add propername.
54382
54383 2008-05-16  Jim Meyering  <meyering@redhat.com>
54384             Bruno Haible  <bruno@clisp.org>
54385
54386         Avoid some warnings from "gcc -Wshadow".
54387         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54388
54389 2008-05-15  Eric Blake  <ebb9@byu.net>
54390
54391         Extend previous patch to cygwin 1.7.0.
54392         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54393         fast implementation in cygwin >= 1.7.0.
54394         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54395         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54396
54397 2008-05-15  Bruno Haible  <bruno@clisp.org>
54398
54399         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
54400         implementation in glibc >= 2.9.
54401         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54402         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54403
54404 2008-05-15  Bruno Haible  <bruno@clisp.org>
54405
54406         * MODULES.html.sh (Internationalization functions): Remove linebreak.
54407         (Unicode string functions): Add unilbrk/*.
54408         Reported by Karl Berry.
54409
54410 2008-05-15  Eric Blake  <ebb9@byu.net>
54411
54412         Fix violation of <stdbool.h> replacement in regex.
54413         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
54414         * lib/regexec.c (re_search_internal): Likewise.
54415         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
54416
54417 2008-05-15  Jim Meyering  <meyering@redhat.com>
54418
54419         avoid distracting test output when git or cvs is not found
54420         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
54421         * tests/test-vc-list-files-git.sh: Likewise.
54422
54423 2008-05-15  Eric Blake  <ebb9@byu.net>
54424
54425         Glibc finally accepted the memmem speedup code, bugzilla #5514.
54426         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
54427         glibc version.
54428         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54429         * doc/posix-functions/strstr.texi (strstr): Likewise.
54430         * lib/str-two-way.h (MAX): Sychronize with glibc.
54431
54432 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
54433
54434         * lib/regcomp.c (optimize_utf8): Add a note on why we test
54435         opr.ctx_type.
54436         (calc_first): Initialize constraint field.
54437         (duplicate_node_closure): Use it instead of special casing ANCHORS.
54438         Fix grammar.
54439         (duplicate_node): Merge constraint field for all node types.
54440         (calc_eclosure_iter): Look at constraint field for all node types.
54441         * lib/regex_internal.c (create_cd_newstate): Don't look at
54442         opr.ctx_type.
54443
54444 2008-05-14  Bruno Haible  <bruno@clisp.org>
54445
54446         Help GCC to do better code generation.
54447         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
54448         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
54449         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
54450         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
54451         Declare with attribute 'malloc' if supported.
54452
54453 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
54454
54455         use "echo STR|wc -c" rather than unportable "expr length STR"
54456         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
54457         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
54458
54459 2008-05-14  Jim Meyering  <meyering@redhat.com>
54460
54461         use dd ibs=$n count=1 ... rather than less-portable head -c$n
54462         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
54463         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
54464         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
54465         via Collin Lasse.
54466
54467 2008-05-14  Eric Blake  <ebb9@byu.net>
54468
54469         Avoid quadratic growth in gl_LIBSOURCES.
54470         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
54471         Suggested by Bruno Haible.
54472
54473         Test xmemdup0.
54474         * modules/xmemdup0-tests: New file.
54475         * tests/test-xmemdup0.c: Likewise.
54476
54477 2008-05-13  Eric Blake  <ebb9@byu.net>
54478
54479         Split xmemdup0 into its own module.
54480         * modules/xmemdup0: New file.
54481         * lib/xmemdup0.h: Likewise.
54482         * lib/xmemdup0.c: Likewise.
54483         * MODULES.html.sh (Memory management functions): Add xmemdup0.
54484         * lib/xalloc.h (xmemdup0): Remove.
54485         * lib/xmalloc.c (xmemdup0): Likewise.
54486
54487 2008-05-13  Eric Blake  <ebb9@byu.net>
54488             Bruno Haible  <bruno@clisp.org>
54489
54490         Reduce number of forks required during autoconf.
54491         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
54492         and gl_LIBSOURCES_DIR.
54493         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
54494         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
54495         m4_syscmd per file.
54496         <m4_foreach_w>: Move...
54497         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
54498
54499 2008-05-13  Eric Blake  <ebb9@byu.net>
54500
54501         * gnulib-tool: Fix various comment typos.
54502
54503 2008-05-12  Bruno Haible  <bruno@clisp.org>
54504
54505         Tailor the linebreaking algorithm.
54506         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54507
54508 2008-05-12  Bruno Haible  <bruno@clisp.org>
54509
54510         Update to Unicode 5.0.0.
54511         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54512         LBP_JV, LBP_JT. Redistribute values.
54513         (unilbrk_table): Change size.
54514         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54515         Unicode TR#14 rev. 22.
54516         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54517         LBP_JV, LBP_JT. Redistribute values.
54518         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54519         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54520         Update.
54521         * lib/unilbrk/lbrkprop1.h: Regenerated.
54522         * lib/unilbrk/lbrkprop2.h: Regenerated.
54523         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54524         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54525         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54526         Likewise.
54527         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54528         Likewise.
54529         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54530         result.
54531         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54532         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54533         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54534         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54535         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54536         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54537
54538 2008-05-11  Bruno Haible  <bruno@clisp.org>
54539
54540         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54541
54542 2008-05-11  Bruno Haible  <bruno@clisp.org>
54543
54544         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54545         * modules/unilbrk/gen-lbrk: New file.
54546
54547 2008-05-11  Bruno Haible  <bruno@clisp.org>
54548
54549         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54550         * m4/sha512.m4 (gl_SHA512): Likewise.
54551
54552 2008-05-11  Jim Meyering  <meyering@redhat.com>
54553
54554         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54555         * modules/crypto/sha256: New file.
54556         * modules/crypto/sha512: Likewise.
54557         * lib/sha256.c: Likewise.
54558         * lib/sha256.h: Likewise.
54559         * lib/sha512.c: Likewise.
54560         * lib/sha512.h: Likewise.
54561         * lib/u64.h: Likewise.
54562         * m4/sha256.m4: Likewise.
54563         * m4/sha512.m4: Likewise.
54564         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54565
54566 2008-05-10  Bruno Haible  <bruno@clisp.org>
54567
54568         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54569         (Input/Output <stdio.h>): Add xprintf.
54570         (Signal handling <signal.h>): Add strsignal.
54571         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54572         (Core language properties): Add func.
54573         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54574         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54575         strings.
54576         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54577         (Input/output): New section.
54578         (File system functions): Add openat-die, stat-macros.
54579         (Networking functions): Add sockets.
54580         (Unicode string functions): Add unictype/*.
54581         (Support for building libraries and executables): Add gperf.
54582         (Support for building documentation): Add agpl-3.0.
54583         (Misc): Add nocrash.
54584
54585 2008-05-10  Bruno Haible  <bruno@clisp.org>
54586
54587         * modules/unictype/gen-ctype: New file.
54588
54589 2008-05-10  Jim Meyering  <meyering@redhat.com>
54590
54591         Make chdir-safer.c more efficient on a system with no symlinks.
54592         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54593         also if ELOOP is zero.  Suggested by Bruno Haible.
54594
54595         Make chdir-safer.c slightly safer.
54596         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54597         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54598
54599         Avoid compile failure on systems without ELOOP (like mingw).
54600         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54601         Reported by Bruno Haible.
54602
54603 2008-05-10  Bruno Haible  <bruno@clisp.org>
54604
54605         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54606         (is_utf8_encoding): Use a case-insensitive comparison.
54607         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54608         streq.
54609
54610 2008-05-10  Bruno Haible  <bruno@clisp.org>
54611
54612         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54613         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54614         * lib/unilbrk/ulc-common.h (iconv_string_length,
54615         iconv_string_keeping_offsets): Remove declarations.
54616         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54617         Don't include <iconv.h>, streq.h, xsize.h.
54618         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54619         conversion.
54620         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54621         <iconv.h>, streq.h, xsize.h.
54622         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54623         conversion.
54624         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54625         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54626         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54627         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54628
54629 2008-05-10  Bruno Haible  <bruno@clisp.org>
54630
54631         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54632         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54633
54634         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54635         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54636
54637         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54638         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54639
54640         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54641         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54642
54643         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54644         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54645
54646         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54647         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54648
54649         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54650         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54651
54652         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54653         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54654
54655 2008-05-10  Bruno Haible  <bruno@clisp.org>
54656
54657         Split up 'linebreak' module.
54658         * lib/unilbrk.h: New file, based on lib/linebreak.h.
54659         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
54660         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
54661         modifications.
54662         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
54663         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
54664         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
54665         lib/linebreak.c.
54666         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
54667         lib/linebreak.c.
54668         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
54669         lib/linebreak.c.
54670         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
54671         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
54672         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
54673         lib/linebreak.c.
54674         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
54675         lib/linebreak.c.
54676         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
54677         lib/linebreak.c.
54678         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
54679         lib/linebreak.c.
54680         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
54681         lib/linebreak.c.
54682         * modules/unilbrk/base: New file.
54683         * modules/unilbrk/tables: New file.
54684         * modules/unilbrk/u8-possible-linebreaks: New file.
54685         * modules/unilbrk/u16-possible-linebreaks: New file.
54686         * modules/unilbrk/u32-possible-linebreaks: New file.
54687         * modules/unilbrk/ulc-common: New file.
54688         * modules/unilbrk/ulc-possible-linebreaks: New file.
54689         * modules/unilbrk/u8-width-linebreaks: New file.
54690         * modules/unilbrk/u16-width-linebreaks: New file.
54691         * modules/unilbrk/u32-width-linebreaks: New file.
54692         * modules/unilbrk/ulc-width-linebreaks: New file.
54693         * lib/linebreak.h: Remove file.
54694         * lib/linebreak.c: Remove file.
54695         * m4/linebreak.m4: Remove file.
54696         * modules/linebreak: Remove file.
54697         * NEWS: Mention the changes.
54698
54699 2008-05-09  Eric Blake  <ebb9@byu.net>
54700
54701         Add xmemdup0.
54702         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
54703         implementation.
54704         * lib/xmalloc.c (xmemdup0): New C implementation.
54705
54706 2008-05-08  Bruno Haible  <bruno@clisp.org>
54707
54708         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
54709
54710 2008-05-07  Eric Blake  <ebb9@byu.net>
54711
54712         Support cross-compilation of <wctype.h>.
54713         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
54714         AC_CACHE_CHECK.
54715
54716 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
54717
54718         * build-aux/vc-list-files: Add support for bzr.
54719
54720 2008-05-03  Jim Meyering  <meyering@redhat.com>
54721
54722         avoid failed assertion with tight malloc
54723         * tests/test-getndelim2.c: Correct an off-by-one assertion.
54724
54725 2008-05-03  Simon Josefsson  <simon@josefsson.org>
54726
54727         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
54728         are needed from arpa/inet.h.
54729         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
54730         Reported by Bruno Haible.
54731
54732 2008-05-02  Jim Meyering  <meyering@redhat.com>
54733
54734         avoid compilation error on FreeBSD 6
54735         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
54736
54737 2008-05-01  Jim Meyering  <meyering@redhat.com>
54738
54739         useless-if-before-free: correct --help's exit status description
54740         * build-aux/useless-if-before-free (usage): Like grep, exit 0
54741         for one or more matches, etc.  Reported by Bruno Haible.
54742
54743         vc-list-files: make the stand-alone gnulib test work
54744         * modules/vc-list-files-tests (configure.ac):
54745         Define and AC_SUBST abs_aux_dir.
54746         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
54747         $(abs_top_srcdir) to each script and having each of them
54748         duplicate the work of setting PATH, set PATH here, using
54749         the new variable, abs_aux_dir instead.
54750         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
54751         * tests/test-vc-list-files-git.sh: Likewise.
54752         Reported by Bruno Haible.
54753
54754 2008-05-01  Bruno Haible  <bruno@clisp.org>
54755
54756         * lib/getndelim2.c (getndelim2): Fix newsize computation during
54757         reallocation. Rename 'done' to 'found_delimiter'.
54758
54759 2008-05-01  Jim Meyering  <meyering@redhat.com>
54760
54761         vc-list-files: accommodate /bin/sh like the one from Solaris 10
54762         * build-aux/vc-list-files: Use `...`, not $(...).
54763
54764 2008-04-30  Jim Meyering  <meyering@redhat.com>
54765
54766         add tests for vc-list-files
54767         * modules/vc-list-files-tests: New module.
54768         * tests/test-vc-list-files-cvs.sh: New file.
54769         * tests/test-vc-list-files-git.sh: New file.
54770
54771         avoid a warning from gcc
54772         * lib/getndelim2.c (IF_LINT): Define.
54773         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
54774
54775         vc-list-files: work properly with build-aux/cvsu, too
54776         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
54777         to all cvs-based clauses.
54778
54779         vc-list-files: work properly in the CVS+awk case, too
54780         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
54781
54782         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
54783         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
54784         take more than one file argument, so .  Add quotes, just in case $dir
54785         ever contains a shell meta-character.  Prompted by Soren Hansen in
54786         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
54787
54788 2008-04-29  Eric Blake  <ebb9@byu.net>
54789
54790         Optimize getndelim2 to use block operations when possible.
54791         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
54792         freadseek, and memchr2.
54793         * lib/getndelim2.c (getndelim2): Use them for block reads.
54794
54795 2008-04-29  Bruno Haible  <bruno@clisp.org>
54796
54797         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
54798         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54799         * modules/inet_ntop (Depends-on): Add extensions.
54800         * modules/inet_pton (Depends-on): Likewise.
54801         Reported by Simon Josefsson.
54802
54803 2008-04-29  Jim Meyering  <meyering@redhat.com>
54804
54805         When the is more than one match in a block, match all of them.
54806         * build-aux/useless-if-before-free: Iterate through each block
54807         until there are no more matches.
54808
54809         Fix broken useless-if-before-free script.
54810         * build-aux/useless-if-before-free: Fix typo: missing "?" after
54811         the expression to match cast of argument to free-like function.
54812
54813 2008-04-29  Eric Blake  <ebb9@byu.net>
54814
54815         Use new header.
54816         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
54817
54818 2008-04-29  Jim Meyering  <meyering@redhat.com>
54819
54820         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
54821         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
54822         by gnulib to exist and to declare e.g., inet_ntop.
54823         Don't include "inet_ntop.h", now removed.
54824
54825         * m4/arpa_inet_h.m4: Remove trailing blanks.
54826
54827 2008-04-29  Eric Blake  <ebb9@byu.net>
54828
54829         Silence valgrind on safe reads beyond potential array bounds.
54830         * lib/rawmemchr.valgrind: New file.
54831         * lib/strchrnul.valgrind: Likewise.
54832         * modules/rawmemchr (Files): Distribute new file.
54833         * modules/strchrnul (Files): Likewise.
54834         Suggested by Bruno Haible.
54835
54836 2008-04-29  Bruno Haible  <bruno@clisp.org>
54837
54838         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
54839         (inet_ntop, inet_pton): Change portability warning's wording.
54840         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
54841         Invoke gl_CHECK_NEXT_HEADERS.
54842         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
54843         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
54844         set ARPA_INET_H.
54845         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54846         * modules/arpa_inet (Description): No longer only for systems that
54847         lack it.
54848         (Depends-on): Add include_next.
54849         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
54850         HAVE_ARPA_INET_H.
54851
54852 2008-04-29  Jim Meyering  <meyering@redhat.com>
54853
54854         * modules/mkdir (License): Re-license as LGPLv2+.
54855
54856 2008-04-29  Bruno Haible  <bruno@clisp.org>
54857
54858         * modules/rawmemchr (Maintainer): Set to Eric.
54859         * modules/strchrnul (Maintainer): Likewise.
54860
54861 2008-04-29  Simon Josefsson  <simon@josefsson.org>
54862
54863         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
54864         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
54865
54866         * modules/arpa_inet (arpa/inet.h): Use them.
54867
54868 2008-04-28  Eric Blake  <ebb9@byu.net>
54869
54870         Test getndelim2.
54871         * modules/getndelim2-tests: New file.
54872         * tests/test-getndelim2.c: Likewise.
54873         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
54874         stream.
54875         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
54876
54877         * MODULES.html.sh: Document new module.
54878
54879 2008-04-20  Bruno Haible  <bruno@clisp.org>
54880
54881         * lib/c-stack.c (die): Use raise.
54882         * modules/c-stack (Depends-on): Add raise.
54883
54884 2008-04-28  Bruno Haible  <bruno@clisp.org>
54885
54886         Expect rpmatch to be declared.
54887         * lib/yesno.c (rpmatch): Remove declaration.
54888
54889         Declare rpmatch.
54890         * lib/stdlib.in.h (rpmatch): New declaration.
54891         * lib/rpmatch.c: Include <stdlib.h> first.
54892         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
54893         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
54894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
54895         HAVE_RPMATCH.
54896         * modules/rpmatch (Depends-on): Add stdlib, extensions.
54897         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54898         (Include): Set to <stdlib.h>.
54899         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
54900         HAVE_RPMATCH.
54901         * NEWS: Document the change.
54902
54903 2008-04-28  Bruno Haible  <bruno@clisp.org>
54904
54905         Change rpmatch to use nl_langinfo when appropriate.
54906         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
54907         (N_): New macro.
54908         (localized_pattern): New function/macro.
54909         (try): Remove match, nomatch arguments. Copy the pattern into safe
54910         memory before caching it.
54911         (rpmatch): Use localized_pattern. Add translator comments.
54912         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
54913         Suggested by Eric Blake.
54914         * modules/rpmatch (Depends-on): Add stdbool.
54915
54916 2008-04-28  Eric Blake  <ebb9@byu.net>
54917
54918         Add rawmemchr module, matching glibc.
54919         * modules/string (Makefile.am): New indicator.
54920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
54921         * lib/string.in.h (rawmemchr): Declare when appropriate.
54922         * modules/rawmemchr: New file.
54923         * m4/rawmemchr.m4: Likewise.
54924         * lib/rawmemchr.c: Likewise.
54925         * modules/rawmemchr-tests: Likewise.
54926         * tests/test-rawmemchr.c: Likewise.
54927         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
54928         module.
54929         * modules/strchrnul (Depends-on): Add rawmemchr.
54930         * lib/strchrnul.c (strchrnul): Optimize a corner case.
54931
54932         Whitespace cleanup.
54933         * tests/test-strchrnul.c: Reindent.
54934         * lib/strchrnul.c: Likewise.
54935
54936         Optimize and test strchrnul.
54937         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
54938         * modules/strchrnul-tests: New file.
54939         * tests/test-strchrnul.c: Likewise.
54940
54941         Remove intprops dependency.
54942         * modules/memchr (Depends-on): Remove intprops.
54943         * modules/memrchr (Depends-on): Likewise.
54944         * modules/memchr2 (Depends-on): Likewise.
54945         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
54946         * lib/memrchr.c (__memrchr): Likewise.
54947         * lib/memrchr2.c (memchr2): Likewise.
54948         Reported by Simon Josefsson.
54949
54950 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54951
54952         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
54953         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54954
54955 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54956
54957         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
54958
54959         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
54960
54961         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
54962
54963         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
54964         declarations.
54965         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
54966
54967         * m4/inet_pton.m4: Don't check for header files.
54968
54969         * m4/inet_ntop.m4: Don't check for header files.
54970
54971 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54972
54973         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
54974         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
54975         trigger for cygwin).
54976         Reported by Bruno Haible  <bruno@clisp.org>.
54977
54978 2008-04-28  Bruno Haible  <bruno@clisp.org>
54979
54980         * doc/posix-functions/strdup.texi: Mention mingw problem.
54981
54982 2008-04-27  Bruno Haible  <bruno@clisp.org>
54983
54984         * modules/stat-time-tests (Depends-on): Add sleep.
54985         * tests/test-stat-time.c (force_unlink): New function.
54986         (cleanup): Use it.
54987         (test_mtime): Remove the ctime related tests.
54988         (test_ctime): New function, containing the ctime related tests.
54989         (main): Call test_ctime, except on native Windows platforms.
54990
54991 2008-04-27  Bruno Haible  <bruno@clisp.org>
54992
54993         * lib/rpmatch.c (rpmatch): Add some comments.
54994         Reported by James Youngman <jay@gnu.org>.
54995
54996 2008-04-27  Bruno Haible  <bruno@clisp.org>
54997
54998         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
54999         quiet NaNs.
55000
55001 2008-04-27  Bruno Haible  <bruno@clisp.org>
55002
55003         Make test-yesno.sh work on mingw.
55004         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55005         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55006         (main): Set stdin to binary mode.
55007         * modules/yesno-tests (Depends-on): Add binary-io.
55008
55009 2008-04-27  Bruno Haible  <bruno@clisp.org>
55010
55011         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55012         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55013         argument that lie outside the IEEE 854 domain.
55014         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55015         (gl_ISFINITE): Use it.
55016         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55017
55018 2008-04-27  Bruno Haible  <bruno@clisp.org>
55019
55020         Allow local renaming in config.h.
55021         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55022
55023 2008-04-27  Bruno Haible  <bruno@clisp.org>
55024
55025         * lib/memchr.c (__memchr): Change type of 'i'.
55026         * lib/memchr2.c (memchr2): Likewise.
55027
55028 2008-04-26  Eric Blake  <ebb9@byu.net>
55029         and Bruno Haible  <bruno@clisp.org>
55030
55031         Optimize and test memrchr.
55032         * modules/memrchr (Depends-on): Add intprops.
55033         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55034         * modules/memrchr-tests: New file.
55035         * tests/test-memrchr.c: New file.
55036
55037 2008-04-26  Bruno Haible  <bruno@clisp.org>
55038
55039         Add tentative support for DragonFly BSD.
55040         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55041         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55042         fp.
55043         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55044         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55045         * lib/fpurge.c (fpurge): Likewise.
55046         * lib/freadable.c (freaadable): Likewise.
55047         * lib/freadahead.c (freadahead): Likewise.
55048         * lib/freading.c (freading): Likewise.
55049         * lib/freadptr.c (freadptr): Likewise.
55050         * lib/freadseek.c (freadptrinc): Likewise.
55051         * lib/fseeko.c (fseeko): Likewise.
55052         * lib/fseterr.c (fseterr): Likewise.
55053         * lib/fwritable.c (fwritable): Likewise.
55054         * lib/fwriting.c (fwriting): Likewise.
55055
55056 2008-04-26  Bruno Haible  <bruno@clisp.org>
55057
55058         * lib/stdio-impl.h: New file.
55059         * lib/fbufmode.c: Include stdio-impl.h.
55060         (fbufmode): Use fp_, remove redundant #defines.
55061         * lib/fflush.c: Include stdio-impl.h.
55062         (clear_ungetc_buffer): Remove redundant #defines.
55063         * lib/fpurge.c: Include stdio-impl.h.
55064         (fpurge): Remove redundant #defines.
55065         * lib/freadable.c: Include stdio-impl.h.
55066         (freadable): Remove redundant #defines.
55067         * lib/freadahead.c: Include stdio-impl.h.
55068         (freadahead): Remove redundant #defines.
55069         * lib/freading.c: Include stdio-impl.h.
55070         (freading): Remove redundant #defines.
55071         * lib/freadptr.c: Include stdio-impl.h.
55072         (freadptr): Remove redundant #defines.
55073         * lib/freadseek.c: Include stdio-impl.h.
55074         (freadptrinc): Remove redundant #defines.
55075         * lib/fseeko.c: Include stdio-impl.h.
55076         (rpl_fseeko): Remove redundant #defines.
55077         * lib/fseterr.c: Include stdio-impl.h.
55078         (fseterr): Remove redundant #defines.
55079         * lib/fwritable.c: Include stdio-impl.h.
55080         (fwritable: Remove redundant #defines.
55081         * lib/fwriting.c: Include stdio-impl.h.
55082         (fwriting): Remove redundant #defines.
55083         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55084         * modules/fflush (Files): Likewise.
55085         * modules/fpurge (Files): Likewise.
55086         * modules/freadable (Files): Likewise.
55087         * modules/freadahead (Files): Likewise.
55088         * modules/freading (Files): Likewise.
55089         * modules/freadptr (Files): Likewise.
55090         * modules/freadseek (Files): Likewise.
55091         * modules/fseeko (Files): Likewise.
55092         * modules/fseterr (Files): Likewise.
55093         * modules/fwritable (Files): Likewise.
55094         * modules/fwriting (Files): Likewise.
55095
55096 2008-04-26  Bruno Haible  <bruno@clisp.org>
55097
55098         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55099         restore_seek_optimization, update_fpos_cache): New functions, extracted
55100         from rpl_fflush.
55101         (rpl_fflush): Use them.
55102         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55103         (gl_REPLACE_FFLUSH): Use it.
55104
55105 2008-04-26  Bruno Haible  <bruno@clisp.org>
55106
55107         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55108         on Solaris.
55109         * tests/test-xstrtoimax.sh: Likewise.
55110         * tests/test-xstrtoumax.sh: Likewise.
55111         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55112
55113 2008-04-26  Bruno Haible  <bruno@clisp.org>
55114
55115         * modules/memchr-tests: New file.
55116         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55117
55118 2008-04-26  Eric Blake  <ebb9@byu.net>
55119             Bruno Haible  <bruno@clisp.org>
55120
55121         * lib/memchr.c: Include intprops.h.
55122         (__memchr): Optimize parallel detection of matching bytes. Rename local
55123         variables. Add explanatory comments.
55124
55125 2008-04-26  Bruno Haible  <bruno@clisp.org>
55126
55127         Fix module 'memchr', broken since 2000-10-28.
55128         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55129
55130 2008-04-26  Bruno Haible  <bruno@clisp.org>
55131
55132         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55133         comments.
55134
55135 2008-04-25  Eric Blake  <ebb9@byu.net>
55136
55137         Use native fstatat on cygwin 1.7.0.
55138         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55139         first.
55140
55141 2008-04-23  Eric Blake  <ebb9@byu.net>
55142
55143         Improve memchr2 performance.
55144         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55145         NUL bytes.
55146         * modules/memchr2 (Depends-on): Use intprops.h.
55147
55148 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55149
55150         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55151         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55152         <blp@cs.stanford.edu>.
55153
55154 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55155
55156         * lib/arpa_inet.in.h: New file.
55157
55158         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55159         (Makefile.am): Sed in substitute header file.
55160
55161         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55162         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55163
55164         * modules/inet_ntop (configure.ac): Use
55165         gl_ARPA_INET_MODULE_INDICATOR.
55166
55167         * modules/inet_pton (configure.ac): Use
55168         gl_ARPA_INET_MODULE_INDICATOR.
55169
55170 2008-04-22  Jim Meyering  <meyering@redhat.com>
55171
55172         * modules/verify (License): Re-license as LGPLv2+.
55173
55174 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55175
55176         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55177         parameter to void* as per POSIX standard (MinGW uses char*).
55178
55179 2008-04-21  Bruno Haible  <bruno@clisp.org>
55180
55181         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55182         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55183         Define to replacements if REPLACE_ISWCNTRL is 1.
55184         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55185         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55186         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55187         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55188         what it fixes.
55189         * doc/posix-functions/iswalpha.texi: Likewise.
55190         * doc/posix-functions/iswblank.texi: Likewise.
55191         * doc/posix-functions/iswcntrl.texi: Likewise.
55192         * doc/posix-functions/iswdigit.texi: Likewise.
55193         * doc/posix-functions/iswgraph.texi: Likewise.
55194         * doc/posix-functions/iswlower.texi: Likewise.
55195         * doc/posix-functions/iswprint.texi: Likewise.
55196         * doc/posix-functions/iswpunct.texi: Likewise.
55197         * doc/posix-functions/iswspace.texi: Likewise.
55198         * doc/posix-functions/iswupper.texi: Likewise.
55199         * doc/posix-functions/iswxdigit.texi: Likewise.
55200         Reported by Alain Guibert.
55201
55202 2008-04-21  Bruno Haible  <bruno@clisp.org>
55203
55204         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55205         Patch by Alain Guibert.
55206
55207 2008-04-21  Bruno Haible  <bruno@clisp.org>
55208
55209         Fix test failures on mingw.
55210         * tests/test-xstrtol.c (print_no_progname): New function.
55211         (main): Install it in error_print_progname hook.
55212         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55213         * tests/test-xstrtoimax.sh: Likewise.
55214         * tests/test-xstrtoumax.sh: Likewise.
55215
55216 2008-04-21  Bruno Haible  <bruno@clisp.org>
55217
55218         Fix test failure on mingw.
55219         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55220
55221 2008-04-21  Bruno Haible  <bruno@clisp.org>
55222
55223         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55224         Actually assign a value.
55225
55226 2008-04-20  Bruno Haible  <bruno@clisp.org>
55227
55228         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55229         take 2.
55230         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55231         'canonicalize-lgpl' module is also used.
55232         * lib/canonicalize-lgpl.c: Undo last change.
55233         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55234
55235 2008-04-20  Bruno Haible  <bruno@clisp.org>
55236
55237         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55238         config.h. Provide _mkdir based fallback for mingw.
55239         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55240         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55241         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55242         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55243         rather than defining mkdir in config.h.
55244         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55245         (gl_SYS_STAT_H_DEFAULTS): New macro.
55246         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55247         HAVE_IO_H any more.
55248         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55249         HAVE_DECL_MKDIR and HAVE_IO_H.
55250
55251 2008-04-20  Bruno Haible  <bruno@clisp.org>
55252
55253         * lib/isapipe.c: Port to native Windows platforms.
55254
55255 2008-04-20  Bruno Haible  <bruno@clisp.org>
55256
55257         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55258
55259 2008-04-21  Eric Blake  <ebb9@byu.net>
55260
55261         Work around preprocessors that don't handle UINTMAX_MAX.
55262         * lib/memchr2.c (memchr2): Avoid embedded #if.
55263         Reported by Alain Guibert, fix suggested by Bruno Haible.
55264
55265 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55266
55267         * doc/posix-functions/strftime.texi (strftime): Explain better
55268         Windows incompatibility.  Suggested by Micah Cowan
55269         <micah@cowan.name>.
55270
55271 2008-04-20  Bruno Haible  <bruno@clisp.org>
55272
55273         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55274         unistr/u8-mblen.
55275
55276 2008-04-20  Bruno Haible  <bruno@clisp.org>
55277
55278         Fix test failure on platforms with non-GNU iconv.
55279         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55280         (U_TO_U8): Use it, rather than u16_to_u8.
55281         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55282         units at the end of the input string.
55283         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55284
55285 2008-04-20  Bruno Haible  <bruno@clisp.org>
55286
55287         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55288         when the resulting length is 0.
55289         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55290
55291 2008-04-20  Bruno Haible  <bruno@clisp.org>
55292
55293         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55294         works.
55295         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55296
55297 2008-04-20  Bruno Haible  <bruno@clisp.org>
55298
55299         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55300         * modules/tsearch-tests (configure.ac): Test for initstate function.
55301
55302 2008-04-20  Bruno Haible  <bruno@clisp.org>
55303
55304         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55305         for nlink_t if missing.
55306         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55307
55308 2008-04-19  Bruno Haible  <bruno@clisp.org>
55309
55310         Work around snprintf bug on Linux libc5.
55311         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55312         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55313         gl_SNPRINTF_SIZE1.
55314         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55315         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55316         that test failed.
55317         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55318         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55319         * modules/snprintf (Files): Add m4/printf.m4.
55320         * modules/vsnprintf (Files): Likewise.
55321         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
55322         * doc/posix-functions/vsnprintf.texi: Likewise.
55323
55324 2008-04-19  Bruno Haible  <bruno@clisp.org>
55325
55326         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
55327         from 0.0058 to less than 10^-7.
55328
55329 2008-04-19  Bruno Haible  <bruno@clisp.org>
55330
55331         Fix rounding when a precision is given.
55332         * lib/vasnprintf.c (is_borderline): New function.
55333         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
55334         9...9x.
55335         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
55336         %e, %g.
55337         * tests/test-vasprintf-posix.c (test_function): Likewise.
55338         * tests/test-snprintf-posix.h (test_function): Likewise.
55339         * tests/test-sprintf-posix.h (test_function): Likewise.
55340         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
55341         * tests/test-printf-posix.h (test_function): Likewise.
55342         * tests/test-printf-posix.output: Update.
55343         Reported by John Darrington <john@darrington.wattle.id.au> via
55344         Ben Pfaff <blp@cs.stanford.edu>.
55345
55346 2008-04-18  Simon Josefsson  <simon@josefsson.org>
55347
55348         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
55349         Suggested by Bruno Haible <bruno@clisp.org>.
55350
55351 2008-04-17  Bruno Haible  <bruno@clisp.org>
55352
55353         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
55354         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
55355         implementation.
55356         Patch by Bruce Merry <bmerry@gmail.com>.
55357
55358 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55359
55360         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55361         doesn't work under Windows.
55362
55363 2008-04-16  Bruno Haible  <bruno@clisp.org>
55364
55365         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55366         New macros.
55367         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55368         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55369         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55370         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55371         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55372         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55373         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55374         macros.
55375         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55376         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55377         Northern Sotho, Uighur.
55378
55379 2008-04-16  Bruno Haible  <bruno@clisp.org>
55380
55381         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55382         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55383         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55384         Reported by Daniel Bergström <daniel@octocode.com>.
55385
55386 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55387             Bruno Haible  <bruno@clisp.org>
55388
55389         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55390         function.
55391         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55392         New functions, mostly extracted from gl_locale_name_default.
55393         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55394
55395 2008-04-16  Eric Blake  <ebb9@byu.net>
55396
55397         Adjust strtod detection to catch glibc 2.7 bug.
55398         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
55399         Reported by John Gatewood Ham.
55400
55401 2008-04-16  Bruno Haible  <bruno@clisp.org>
55402
55403         Add tentative support for Linux libc5.
55404         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
55405         * lib/fpurge.c (fpurge): Likewise.
55406         * lib/freadable.c (freadable): Likewise.
55407         * lib/freadahead.c (freadahead): Likewise.
55408         * lib/freading.c (freading): Likewise.
55409         * lib/freadptr.c (freadptr): Likewise.
55410         * lib/freadseek.c (freadptrinc): Likewise.
55411         * lib/fseeko.c (rpl_fseeko): Likewise.
55412         * lib/fseterr.c (fseterr): Likewise.
55413         * lib/fwritable.c (fwritable): Likewise.
55414         * lib/fwriting.c (fwriting): Likewise.
55415         Reported by Alain Guibert <alguibert+bts@free.fr>.
55416
55417 2008-04-15  Bruno Haible  <bruno@clisp.org>
55418
55419         * modules/mathl (configure.ac): Define module indicator.
55420
55421 2008-04-15  Bruno Haible  <bruno@clisp.org>
55422
55423         * lib/logl.c (logl): Remove unused variables.
55424
55425 2008-04-15  Bruno Haible  <bruno@clisp.org>
55426
55427         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
55428         fails.
55429
55430 2008-04-15  Bruno Haible  <bruno@clisp.org>
55431
55432         * lib/trim.c (trim2): Fix argument of isspace() macro.
55433
55434 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
55435
55436         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
55437         to 0.
55438         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
55439
55440 2008-04-14  Bruno Haible  <bruno@clisp.org>
55441
55442         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
55443         AC_LANG_PROGRAM argument.
55444         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
55445         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
55446         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55447         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55448         * m4/math_h.m4 (gl_MATH_H): Likewise.
55449         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
55450         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55451         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55452         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
55453         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55454         * m4/regex.m4 (gl_REGEX): Likewise.
55455         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
55456         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
55457         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55458         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
55459         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55460         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55461         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55462         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55463
55464 2008-04-14  Jim Meyering  <meyering@redhat.com>
55465
55466         test-strtod: fix typos: s/abs/fabs/
55467         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
55468
55469 2008-04-13  Bruno Haible  <bruno@clisp.org>
55470
55471         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
55472         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
55473         module is also used and while not building the reloc-wrapper.
55474
55475 2008-04-13  Bruno Haible  <bruno@clisp.org>
55476
55477         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
55478
55479 2008-04-13  Bruno Haible  <bruno@clisp.org>
55480
55481         Fix AIX compilation failure introduced on 2008-04-02.
55482         * tests/test-frexp.c (exp): Undefine before redefining.
55483         * tests/test-frexpl.c (exp): Likewise.
55484
55485 2008-04-13  Bruno Haible  <bruno@clisp.org>
55486
55487         Work around a HP-UX stdio bug.
55488         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
55489         * tests/test-ftello.c (main): Likewise.
55490         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
55491         * doc/posix-functions/ftello.texi: Likewise.
55492
55493 2008-04-13  Bruno Haible  <bruno@clisp.org>
55494
55495         Make test-signbit pass on HP-UX/hppa.
55496         * tests/test-signbit.c (minus_zerol): New variable.
55497         (test_signbitl): Use it.
55498
55499 2008-04-13  Bruno Haible  <bruno@clisp.org>
55500
55501         Make truncl work on OSF/1 4.0.
55502         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
55503         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55504         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55506         HAVE_DECL_TRUNCL.
55507         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55508         HAVE_DECL_TRUNCL.
55509         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55510
55511 2008-04-13  Bruno Haible  <bruno@clisp.org>
55512
55513         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55514
55515 2008-04-13  Bruno Haible  <bruno@clisp.org>
55516
55517         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55518         expression, so as to avoid HP-UX 11 cc compiler bug.
55519
55520 2008-04-13  Bruno Haible  <bruno@clisp.org>
55521
55522         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55523
55524 2008-04-13  Bruno Haible  <bruno@clisp.org>
55525
55526         * lib/git-merge-changelog.c: Remove empty declaration outside of
55527         functions.
55528
55529 2008-04-13  Bruno Haible  <bruno@clisp.org>
55530
55531         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55532
55533 2008-04-13  Bruno Haible  <bruno@clisp.org>
55534
55535         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55536         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55537         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55538         also if it exists but lacks definitions of the SHUT_* macros.
55539         * modules/sys_socket (Description): Update.
55540         Reported by Elbert Pol <e.pol@chello.nl>.
55541
55542 2008-04-13  Bruno Haible  <bruno@clisp.org>
55543
55544         * lib/localcharset.c (OS2): Don't redefine if already defined.
55545         Reported by Elbert Pol <e.pol@chello.nl>.
55546
55547 2008-04-13  Bruno Haible  <bruno@clisp.org>
55548
55549         * lib/binary-io.h [__EMX__]: Include <io.h>.
55550         Reported by Elbert Pol <e.pol@chello.nl>.
55551
55552 2008-04-12  Bruno Haible  <bruno@clisp.org>
55553
55554         * lib/fpucw.h: Enable the definitions also for x86_64.
55555         Needed for NetBSD/x86_64.
55556         Reported by Thomas Klausner <tk@giga.or.at>.
55557
55558 2008-04-12  Bruno Haible  <bruno@clisp.org>
55559
55560         * tests/test-strtod.c: Include isnand.h.
55561         (main): Use isnand instead of isnan.
55562         Reported by Jim Meyering.
55563
55564 2008-04-12  Bruno Haible  <bruno@clisp.org>
55565
55566         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55567         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55568
55569 2008-04-12  Jim Meyering  <meyering@redhat.com>
55570
55571         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55572
55573 2008-04-12  Bruno Haible  <bruno@clisp.org>
55574
55575         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55576         Reported by Elbert Pol <e.pol@chello.nl>.
55577
55578 2008-04-12  Eric Blake  <ebb9@byu.net>
55579
55580         Work around Solaris 10 math.h bug.
55581         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55582         (gl_MATH_H_DEFAULTS): Set up default.
55583         * modules/math (Makefile.am): Replace new indicators.
55584         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55585         * tests/test-math.c (main): Test this.
55586         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55587         * doc/posix-headers/math.texi (math.h): Mention bug.
55588         Reported by Nelson H. F. Beebe and Jim Meyering.
55589
55590 2008-04-11  Bruno Haible  <bruno@clisp.org>
55591
55592         Adapt to future versions of Apple GCC.
55593         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55594         Reported by Peter O'Gorman <peter@pogma.com>.
55595
55596 2008-04-11  Bruno Haible  <bruno@clisp.org>
55597
55598         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55599
55600 2008-04-11  Bruno Haible  <bruno@clisp.org>
55601
55602         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55603
55604         * modules/getaddrinfo-tests (Makefile.am): Define
55605         test_getaddrinfo_LDADD.
55606
55607 2008-04-11  Bruno Haible  <bruno@clisp.org>
55608
55609         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55610         (init): Fix syntax error.
55611         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55612         is declared.
55613
55614 2008-04-11  Bruno Haible  <bruno@clisp.org>
55615
55616         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55617         * modules/glob (Depends-on): Add stdbool.
55618
55619 2008-04-11  Bruno Haible  <bruno@clisp.org>
55620
55621         * lib/trim.c: Include <string.h>.
55622
55623 2008-04-11  Eric Blake  <ebb9@byu.net>
55624
55625         Avoid compile failure on OS/2.
55626         * lib/regex_internal.h (internal_function): Disable optimization
55627         on OS/2 (__EMX__), where it caused compiler error.
55628         Reported by Elbert Pol.
55629
55630 2008-04-11  Bruno Haible  <bruno@clisp.org>
55631
55632         Flush the standard error stream before aborting. Needed on mingw.
55633         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55634         * tests/test-array_list.c (ASSERT): Likewise.
55635         * tests/test-array_oset.c (ASSERT): Likewise.
55636         * tests/test-avltree_list.c (ASSERT): Likewise.
55637         * tests/test-avltree_oset.c (ASSERT): Likewise.
55638         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55639         * tests/test-binary-io.c (ASSERT): Likewise.
55640         * tests/test-byteswap.c (ASSERT): Likewise.
55641         * tests/test-c-ctype.c (ASSERT): Likewise.
55642         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55643         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55644         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55645         * tests/test-c-strstr.c (ASSERT): Likewise.
55646         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55647         * tests/test-canonicalize.c (ASSERT): Likewise.
55648         * tests/test-carray_list.c (ASSERT): Likewise.
55649         * tests/test-ceilf1.c (ASSERT): Likewise.
55650         * tests/test-ceilf2.c (ASSERT): Likewise.
55651         * tests/test-ceill.c (ASSERT): Likewise.
55652         * tests/test-count-one-bits.c (ASSERT): Likewise.
55653         * tests/test-fbufmode.c (ASSERT): Likewise.
55654         * tests/test-fflush2.c (ASSERT): Likewise.
55655         * tests/test-floorf1.c (ASSERT): Likewise.
55656         * tests/test-floorf2.c (ASSERT): Likewise.
55657         * tests/test-floorl.c (ASSERT): Likewise.
55658         * tests/test-fopen.c (ASSERT): Likewise.
55659         * tests/test-fpending.c (ASSERT): Likewise.
55660         * tests/test-fprintf-posix.c (ASSERT): Likewise.
55661         * tests/test-fpurge.c (ASSERT): Likewise.
55662         * tests/test-freadable.c (ASSERT): Likewise.
55663         * tests/test-freadahead.c (ASSERT): Likewise.
55664         * tests/test-freading.c (ASSERT): Likewise.
55665         * tests/test-freadptr.c (ASSERT): Likewise.
55666         * tests/test-freadptr2.c (ASSERT): Likewise.
55667         * tests/test-freadseek.c (ASSERT): Likewise.
55668         * tests/test-freopen.c (ASSERT): Likewise.
55669         * tests/test-frexp.c (ASSERT): Likewise.
55670         * tests/test-frexpl.c (ASSERT): Likewise.
55671         * tests/test-fseek.c (ASSERT): Likewise.
55672         * tests/test-fseeko.c (ASSERT): Likewise.
55673         * tests/test-fstrcmp.c (ASSERT): Likewise.
55674         * tests/test-ftell.c (ASSERT): Likewise.
55675         * tests/test-ftello.c (ASSERT): Likewise.
55676         * tests/test-func.c (ASSERT): Likewise.
55677         * tests/test-fwritable.c (ASSERT): Likewise.
55678         * tests/test-fwriting.c (ASSERT): Likewise.
55679         * tests/test-getdelim.c (ASSERT): Likewise.
55680         * tests/test-getline.c (ASSERT): Likewise.
55681         * tests/test-i-ring.c (ASSERT): Likewise.
55682         * tests/test-iconv-utf.c (ASSERT): Likewise.
55683         * tests/test-iconv.c (ASSERT): Likewise.
55684         * tests/test-isfinite.c (ASSERT): Likewise.
55685         * tests/test-isnand.c (ASSERT): Likewise.
55686         * tests/test-isnanf.c (ASSERT): Likewise.
55687         * tests/test-isnanl.h (ASSERT): Likewise.
55688         * tests/test-ldexpl.c (ASSERT): Likewise.
55689         * tests/test-linked_list.c (ASSERT): Likewise.
55690         * tests/test-linkedhash_list.c (ASSERT): Likewise.
55691         * tests/test-localename.c (ASSERT): Likewise.
55692         * tests/test-lseek.c (ASSERT): Likewise.
55693         * tests/test-mbscasecmp.c (ASSERT): Likewise.
55694         * tests/test-mbscasestr1.c (ASSERT): Likewise.
55695         * tests/test-mbscasestr2.c (ASSERT): Likewise.
55696         * tests/test-mbscasestr3.c (ASSERT): Likewise.
55697         * tests/test-mbscasestr4.c (ASSERT): Likewise.
55698         * tests/test-mbschr.c (ASSERT): Likewise.
55699         * tests/test-mbscspn.c (ASSERT): Likewise.
55700         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
55701         * tests/test-mbspbrk.c (ASSERT): Likewise.
55702         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
55703         * tests/test-mbsrchr.c (ASSERT): Likewise.
55704         * tests/test-mbsspn.c (ASSERT): Likewise.
55705         * tests/test-mbsstr1.c (ASSERT): Likewise.
55706         * tests/test-mbsstr2.c (ASSERT): Likewise.
55707         * tests/test-mbsstr3.c (ASSERT): Likewise.
55708         * tests/test-memchr2.c (ASSERT): Likewise.
55709         * tests/test-memmem.c (ASSERT): Likewise.
55710         * tests/test-open.c (ASSERT): Likewise.
55711         * tests/test-printf-frexp.c (ASSERT): Likewise.
55712         * tests/test-printf-frexpl.c (ASSERT): Likewise.
55713         * tests/test-printf-posix.c (ASSERT): Likewise.
55714         * tests/test-quotearg.c (ASSERT): Likewise.
55715         * tests/test-rbtree_list.c (ASSERT): Likewise.
55716         * tests/test-rbtree_oset.c (ASSERT): Likewise.
55717         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
55718         * tests/test-round1.c (ASSERT): Likewise.
55719         * tests/test-roundf1.c (ASSERT): Likewise.
55720         * tests/test-roundl.c (ASSERT): Likewise.
55721         * tests/test-signbit.c (ASSERT): Likewise.
55722         * tests/test-sleep.c (ASSERT): Likewise.
55723         * tests/test-snprintf-posix.c (ASSERT): Likewise.
55724         * tests/test-snprintf.c (ASSERT): Likewise.
55725         * tests/test-sprintf-posix.c (ASSERT): Likewise.
55726         * tests/test-stat-time.c (ASSERT): Likewise.
55727         * tests/test-strcasestr.c (ASSERT): Likewise.
55728         * tests/test-strerror.c (ASSERT): Likewise.
55729         * tests/test-striconv.c (ASSERT): Likewise.
55730         * tests/test-striconveh.c (ASSERT): Likewise.
55731         * tests/test-striconveha.c (ASSERT): Likewise.
55732         * tests/test-strsignal.c (ASSERT): Likewise.
55733         * tests/test-strstr.c (ASSERT): Likewise.
55734         * tests/test-strtod.c (ASSERT): Likewise.
55735         * tests/test-trunc1.c (ASSERT): Likewise.
55736         * tests/test-trunc2.c (ASSERT): Likewise.
55737         * tests/test-truncf1.c (ASSERT): Likewise.
55738         * tests/test-truncf2.c (ASSERT): Likewise.
55739         * tests/test-truncl.c (ASSERT): Likewise.
55740         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
55741         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
55742         * tests/test-vasnprintf.c (ASSERT): Likewise.
55743         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
55744         * tests/test-vasprintf.c (ASSERT): Likewise.
55745         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
55746         * tests/test-vprintf-posix.c (ASSERT): Likewise.
55747         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
55748         * tests/test-vsnprintf.c (ASSERT): Likewise.
55749         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
55750         * tests/test-wcwidth.c (ASSERT): Likewise.
55751         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
55752         * tests/test-xprintf-posix.c (ASSERT): Likewise.
55753         * tests/test-xvasprintf.c (ASSERT): Likewise.
55754         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
55755         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
55756         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
55757         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
55758         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
55759         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
55760         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
55761         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
55762         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
55763         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
55764         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
55765         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
55766         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
55767         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
55768         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
55769         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
55770         * tests/unictype/test-block_list.c (ASSERT): Likewise.
55771         * tests/unictype/test-block_of.c (ASSERT): Likewise.
55772         * tests/unictype/test-block_test.c (ASSERT): Likewise.
55773         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
55774         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
55775         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
55776         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
55777         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
55778         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
55779         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
55780         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
55781         * tests/unictype/test-combining.c (ASSERT): Likewise.
55782         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
55783         * tests/unictype/test-digit.c (ASSERT): Likewise.
55784         * tests/unictype/test-mirror.c (ASSERT): Likewise.
55785         * tests/unictype/test-numeric.c (ASSERT): Likewise.
55786         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
55787         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
55788         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
55789         * tests/unictype/test-scripts.c (ASSERT): Likewise.
55790         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
55791         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
55792         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
55793         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
55794         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
55795         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
55796         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
55797         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
55798         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
55799         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
55800         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
55801         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
55802         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
55803         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
55804         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
55805         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
55806         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
55807         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
55808         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
55809         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
55810         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
55811         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
55812         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
55813         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
55814         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
55815         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
55816         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
55817         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
55818         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
55819         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
55820         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
55821         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
55822         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
55823         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
55824         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
55825         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
55826         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
55827         Reported by Eric Blake.
55828
55829 2008-04-11  Bruno Haible  <bruno@clisp.org>
55830
55831         * lib/wchar.in.h: Tweak comment.
55832
55833 2008-04-11  Bruno Haible  <bruno@clisp.org>
55834
55835         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
55836         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
55837         gl_COMMON.
55838         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
55839
55840 2008-04-11  Bruno Haible  <bruno@clisp.org>
55841
55842         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
55843
55844 2008-04-11  Simon Josefsson  <simon@josefsson.org>
55845
55846         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
55847         of attempting to use non-existing /dev/*random.  Based on patch
55848         from Adam Strzelecki <ono@java.pl> in
55849         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
55850
55851 2008-04-08  Bruno Haible  <bruno@clisp.org>
55852
55853         Add tentative support for emx+gcc.
55854         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
55855         * lib/fpurge.c (fpurge): Likewise.
55856         * lib/freadable.c (freadable): Likewise.
55857         * lib/freadahead.c (freadahead): Likewise.
55858         * lib/freading.c (freading): Likewise.
55859         * lib/freadptr.c (freadptr): Likewise.
55860         * lib/freadseek.c (freadptrinc): Likewise.
55861         * lib/fseeko.c (rpl_fseeko): Likewise.
55862         * lib/fseterr.c (fseterr): Likewise.
55863         * lib/fwritable.c (fwritable): Likewise.
55864         * lib/fwriting.c (fwriting): Likewise.
55865         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
55866
55867 2008-04-09  Eric Blake  <ebb9@byu.net>
55868
55869         Avoid some autoconf warnings.
55870         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
55871         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
55872         * m4/afs.m4 (gl_AFS): Likewise.
55873         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
55874         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
55875         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55876         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
55877         (gl_INTEGER_TYPE_SUFFIX): Likewise.
55878         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
55879         (AC_CHECK_DECLS_ONCE): Likewise.
55880         Rename file...
55881         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
55882         gnulib-tool requires autoconf 2.59 or better.
55883         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
55884
55885 2008-04-08  Eric Blake  <ebb9@byu.net>
55886
55887         Use 'git describe --match' if present (added in git 1.5.5).
55888         * build-aux/git-version-gen: Limit result to tags that match 'v*'
55889         if possible.
55890
55891 2008-04-08  Bruno Haible  <bruno@clisp.org>
55892
55893         Add tentative support for OpenServer.
55894         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
55895         _ptr, _cnt.
55896         * lib/fpurge.c (fpurge): Likewise.
55897         * lib/freadable.c (freadable): Likewise.
55898         * lib/freadahead.c (freadahead): Likewise.
55899         * lib/freading.c (freading): Likewise.
55900         * lib/freadptr.c (freadptr): Likewise.
55901         * lib/freadseek.c (freadptrinc): Likewise.
55902         * lib/fseeko.c (rpl_fseeko): Likewise.
55903         * lib/fseterr.c (fseterr): Likewise.
55904         * lib/fwritable.c (fwritable): Likewise.
55905         * lib/fwriting.c (fwriting): Likewise.
55906         Reported by Roger Cornelius <rac@tenzing.org> and
55907         Brian K. White <brian@aljex.com>.
55908
55909 2008-04-06  Jim Meyering  <meyering@redhat.com>
55910
55911         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
55912
55913 2008-04-06  Bruno Haible  <bruno@clisp.org>
55914
55915         Avoid possible error with non-ASCII bytes in UTF-8 locales.
55916         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
55917         * tests/test-printf-posix.sh: Likewise.
55918         * tests/test-vfprintf-posix.sh: Likewise.
55919         * tests/test-vprintf-posix.sh: Likewise.
55920         * tests/test-xprintf-posix.sh: Likewise.
55921
55922 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55923
55924         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
55925         hide error from 'ls', needed on OS/2.
55926         Report by Elbert Pol <elbert.pol@gmail.com>.
55927
55928 2008-04-04  Eric Blake  <ebb9@byu.net>
55929
55930         Make test-fseeko.c failures meaningful.
55931         * tests/test-fseeko.c: Print line number on failure.
55932         * tests/test-fseek.c: Likewise.
55933         Reported by Nelson H. F. Beebe.
55934
55935         Improve strtod bug detection check.
55936         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
55937         required for Solaris 10.
55938         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
55939
55940 2008-04-04  Bruno Haible  <bruno@clisp.org>
55941
55942         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
55943         by m4/setenv.m4.
55944
55945 2008-04-03  Eric Blake  <ebb9@byu.net>
55946
55947         Ensure sane .version contents.
55948         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
55949         version string.
55950         * build-aux/git-version-gen: Improve documentation.
55951
55952         Make GNU make output nicer.
55953         * top/GNUmakefile [!_have-Makefile]: Add dependency on
55954         MAKECMDGOALS to enforce message for all command line targets.  Set
55955         srcdir for use in maint.mk.
55956
55957         Another maintainer tweak.
55958         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
55959         a target that regenerates version.
55960
55961 2008-04-03  Jim Meyering  <meyering@redhat.com>
55962
55963         vc-list-files: don't cause coreutils "make po-check" failure
55964         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
55965
55966 2008-04-03  Eric Blake  <ebb9@byu.net>
55967
55968         Allow VPATH usage of vc-list-files.
55969         * build-aux/vc-list-files (scriptversion): Add timestamp.
55970         (options): Add --help, --version, -C.
55971         (CVS): Support installed cvsu.
55972
55973 2008-04-02  Bruno Haible  <bruno@clisp.org>
55974
55975         Avoid some "statement with no effect" warnings from gcc.
55976         * tests/test-wctype.c (main): Explicitly ignore unused values.
55977         Reported by Jim Meyering.
55978
55979 2008-04-02  Jim Meyering  <meyering@redhat.com>
55980
55981         Avoid some warnings from "gcc -Wshadow".
55982         * tests/test-frexp.c (exp): Define to a different identifier.
55983         * tests/test-frexpl.c (exp): Likewise.
55984
55985 2008-04-03  Jim Meyering  <meyering@redhat.com>
55986
55987         bootstrap: remove dangling *.[ch] symlinks from lib
55988         * build-aux/bootstrap [dangling symlink removal]: Move find's
55989         -depth option to precede all others, to avoid a warning.
55990         Remove *.[ch] files too, and from "$source_base" (usually lib/).
55991
55992 2008-04-02  Bruno Haible  <bruno@clisp.org>
55993
55994         Avoid some warnings from "gcc -Wshadow".
55995         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
55996         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
55997         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
55998         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
55999         Reported by Jim Meyering.
56000
56001 2008-04-01  Bruno Haible  <bruno@clisp.org>
56002
56003         Fix test to work on IRIX 6.5 with cc.
56004         * tests/test-math.c (numeric_equal): New function.
56005         (main): Use it.
56006
56007 2008-04-01  Bruno Haible  <bruno@clisp.org>
56008
56009         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56010
56011 2008-04-01  Bruno Haible  <bruno@clisp.org>
56012
56013         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56014         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56015         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56016         (Depends-on): Remove math.
56017
56018         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56019         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56020         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56021         (Depends-on): Remove math.
56022
56023         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56024         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56025         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56026         (Depends-on): Remove math.
56027         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56028         (Depends-on): Remove math.
56029
56030         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56031         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56032         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56033         (Depends-on): Remove math.
56034         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56035         (Depends-on): Remove math.
56036
56037         * tests/test-round1.c: Include nan.h.
56038         (main): Use NaNd instead of NAN.
56039         * modules/round-tests (Files): Add tests/nan.h.
56040
56041         * tests/test-trunc1.c: Include nan.h.
56042         (main): Use NaNd instead of NAN.
56043         * modules/trunc-tests (Files): Add tests/nan.h.
56044
56045         * tests/test-roundf1.c: Include nan.h.
56046         (main): Use NaNf instead of NAN.
56047         * modules/roundf-tests (Files): Add tests/nan.h.
56048
56049         * tests/test-truncf1.c: Include nan.h.
56050         (main): Use NaNf instead of NAN.
56051         * modules/truncf-tests (Files): Add tests/nan.h.
56052
56053         * tests/test-ceilf1.c: Include nan.h.
56054         (main): Use NaNf instead of NAN.
56055         * modules/ceilf-tests (Files): Add tests/nan.h.
56056
56057         * tests/test-floorf1.c: Include nan.h.
56058         (main): Use NaNf instead of NAN.
56059         * modules/floorf-tests (Files): Add tests/nan.h.
56060
56061         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56062         (main): Use NaNf instead of NAN.
56063         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56064
56065         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56066         (main): Use NaNd instead of NAN.
56067         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56068
56069         * tests/test-frexp.c: Include nan.h.
56070         (main): Use NaNd instead of NAN.
56071         * modules/frexp-tests (Files): Add tests/nan.h.
56072
56073         * lib/isnan.c: Don't include <math.h>.
56074         (FUNC): Don't use NAN macro.
56075         * modules/isnand-nolibm (Depends-on): Remove math.
56076         * modules/isnanf-nolibm (Depends-on): Remove math.
56077         * modules/isnanl (Depends-on): Remove math.
56078         * modules/isnanl-nolibm (Depends-on): Remove math.
56079
56080         * tests/nan.h: New file.
56081
56082 2008-04-01  Eric Blake  <ebb9@byu.net>
56083
56084         Fix typos.
56085         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56086         values to be the right type.
56087
56088         For now, cater to gnulib strtod inaccuracies.
56089         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56090         fractional results.  While not as nice from a QoI perspective, it
56091         is a quicker patch than correctly implementing decimal to binary
56092         rounding.
56093
56094 2008-03-31  Eric Blake  <ebb9@byu.net>
56095
56096         Guarantee a definition of NAN.
56097         * lib/math.in.h (NAN): Define if missing.
56098         * tests/test-math.c (main): Test it.
56099         * doc/posix-headers/math.texi (math.h): Document this.
56100         * lib/isnan.c (rpl_isnand): Use it.
56101         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56102         * tests/test-floorf1.c (NaN): Likewise.
56103         * tests/test-frexp.c (NaN): Likewise.
56104         * tests/test-isnand.c (NaN): Likewise.
56105         * tests/test-isnanf.c (NaN): Likewise.
56106         * tests/test-round1.c (NaN): Likewise.
56107         * tests/test-roundf1.c (NaN): Likewise.
56108         * tests/test-snprintf-posix.h (NaN): Likewise.
56109         * tests/test-sprintf-posix.h (NaN): Likewise.
56110         * tests/test-trunc1.c (NaN): Likewise.
56111         * tests/test-truncf1.c (NaN): Likewise.
56112         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56113         * tests/test-vasprintf-posix.c (NaN): Likewise.
56114         * modules/isnand-nolibm (Depends-on): Add math.
56115         * modules/isnanf-nolibm (Depends-on): Likewise.
56116         * modules/isnanl (Depends-on): Likewise.
56117         * modules/isnanl-nolibm (Depends-on): Likewise.
56118         * modules/snprintf-posix-tests (Depends-on): Likewise.
56119         * modules/sprintf-posix-tests (Depends-on): Likewise.
56120         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56121         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56122         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56123         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56124
56125 2008-03-31  Bruno Haible  <bruno@clisp.org>
56126
56127         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56128         * doc/posix-functions/strtod.texi: Likewise.
56129
56130 2008-03-31  Bruno Haible  <bruno@clisp.org>
56131
56132         * tests/test-strtod.c (main): Don't use C99 syntax.
56133
56134 2008-03-31  Bruno Haible  <bruno@clisp.org>
56135
56136         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56137         Reported by Eric Blake.
56138
56139 2008-03-31  Jim Meyering  <meyering@redhat.com>
56140
56141         Don't compare actual signbit return values.
56142         * tests/test-strtod.c (main): Rather, compare only their
56143         zero/non-zero nature.
56144
56145 2008-03-31  Eric Blake  <ebb9@byu.net>
56146
56147         More strtod documentation.
56148         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56149         failures as distinct bugs.
56150
56151 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56152
56153         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56154         Problem reported by Erik Benada in
56155         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56156
56157 2008-03-30  Bruno Haible  <bruno@clisp.org>
56158
56159         * tests/test-strtod.c: Add comments about which assertion fails on which
56160         platform.
56161         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56162
56163 2008-03-30  Eric Blake  <ebb9@byu.net>
56164
56165         Test signbit behavior on zeros.
56166         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56167         (test_signbitd, test_signbitl): Likewise.
56168
56169         More strtod touchups.
56170         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56171         sign of negative underflow, for now.  Use .5, not .1.
56172         * doc/posix-functions/strtod.texi (strtod): Mention these
56173         limitations.
56174         Reported by Jim Meyering.
56175
56176 2008-03-30  Bruno Haible  <bruno@clisp.org>
56177
56178         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56179         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56180
56181 2008-03-30  Bruno Haible  <bruno@clisp.org>
56182
56183         Avoid failure when attempting to return empty iconv results on some
56184         platforms.
56185         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56186         allocation, don't report ENOMEM when the resulting string is empty.
56187
56188 2008-03-30  Bruno Haible  <bruno@clisp.org>
56189
56190         Fix buffer overrun.
56191         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56192         Don't consider the width for tmp_length. Check count against tmp_length
56193         before doing the padding. Ensure enough allocation during padding.
56194
56195 2008-03-30  Eric Blake  <ebb9@byu.net>
56196
56197         strtod touchups.
56198         * lib/strtod.c (strtod): Avoid compiler warnings.
56199         Reported by Jim Meyering.
56200
56201 2008-03-30  Bruno Haible  <bruno@clisp.org>
56202
56203         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56204         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56205         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56206         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56207         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56208         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56209         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56210         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56211
56212         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56213         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56214         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56215         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56216         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56217         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56218         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56219         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56220
56221         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56222         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56223         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56224         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56225         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56226         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56227         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56228         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56229
56230         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56231         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56232
56233         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56234         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56235
56236         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56237         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56238
56239         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56240         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56241         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56242
56243         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56244         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56245         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56246
56247         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56248         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56249         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56250
56251         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56252         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56253         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56254
56255         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56256         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56257         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56258         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56259         (Depends-on): Add EOVERFLOW.
56260         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56261         (Depends-on): Add EOVERFLOW.
56262         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56263         (Depends-on): Add EOVERFLOW.
56264         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56265         (Depends-on): Add EOVERFLOW.
56266         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56267         (Depends-on): Add EOVERFLOW.
56268         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56269         (Depends-on): Add EOVERFLOW.
56270         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56271         (Depends-on): Add EOVERFLOW.
56272         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56273         (Depends-on): Add EOVERFLOW.
56274
56275         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56276         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56277         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56278
56279         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56280         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56281         * modules/snprintf (Depends-on): Add EOVERFLOW.
56282
56283         * lib/poll.c (EOVERFLOW): Remove fallback.
56284         * modules/poll (Depends-on): Add EOVERFLOW.
56285
56286         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56287         * modules/getugroups (Depends-on): Add EOVERFLOW.
56288
56289         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56290         * modules/getdelim (Depends-on): Add EOVERFLOW.
56291
56292         * lib/ftell.c (EOVERFLOW): Remove fallback.
56293         * modules/ftell (Depends-on): Add EOVERFLOW.
56294
56295         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56296         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56297         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56298
56299         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56300
56301         * modules/EOVERFLOW-tests: New file.
56302         * tests/test-EOVERFLOW.c: New file.
56303
56304         * modules/EOVERFLOW: New file.
56305         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56306
56307 2008-03-30  Bruno Haible  <bruno@clisp.org>
56308
56309         Fix bug introduced on 2007-06-10.
56310         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56311         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56312
56313 2008-03-30  Bruno Haible  <bruno@clisp.org>
56314
56315         Improve freadseek's efficiency after ungetc.
56316         * lib/freadseek.c: Include freadahead.h.
56317         (freadptrinc): New function, extracted from freadseek.
56318         (freadseek): Use it in a loop. Use freadahead to determine the number
56319         of loop iterations.
56320         * modules/freadseek (Depends-on): Add freadahead.
56321         (configure.ac): Require AC_C_INLINE.
56322
56323 2008-03-30  Bruno Haible  <bruno@clisp.org>
56324
56325         * lib/freadseek.c (freadseek): Don't ignore the return value of
56326         freadptr.
56327
56328 2008-03-29  Eric Blake  <ebb9@byu.net>
56329
56330         Add hex float support.
56331         * modules/strtod (Depends-on): Add c-ctype.
56332         (Link): Mention POW_LIB.
56333         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
56334         whitespace between 'e' and exponent.
56335         * tests/test-strtod.c (main): Enable hex float tests.
56336         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
56337         now provides.
56338
56339         Document various strtod bugs, with some fixes.
56340         * doc/posix-functions/strtod.texi (strtod): Document bugs with
56341         "-0x", "inf", "nan", and hex constants.
56342         * doc/posix-functions/atof.texi (atof): Likewise.
56343         * modules/stdlib (Makefile.am): Support strtod.
56344         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56345         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
56346         detect additional strtod bugs.
56347         * lib/stdlib.in.h (rpl_strtod): Add declarations.
56348         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
56349         bool where appropriate.  Parse 'inf' and 'nan'.
56350         * tests/test-strtod.c: New file.
56351         * modules/strtod (Depends-on): Add stdbool, stdlib.
56352         (configure.ac): Turn on module indicator.
56353         * modules/strtod-tests: New module.
56354
56355 2008-03-29  Eric Blake  <ebb9@byu.net>
56356
56357         Fix ftell on mingw.
56358         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56359         * modules/ftell-tests (Depends-on): Add binary-io.
56360         * modules/ftello-tests (Depends-on): Likewise.
56361         * tests/test-ftell.c (main): Enhance test to cover behavior after
56362         ungetc.  Enforce binary mode.
56363         * tests/test-ftello.c (main): Likewise.
56364
56365         Pass test-freadseek on cygwin.
56366         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56367         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56368         ungetc buffer.
56369
56370         * tests/test-fflush2.c (main): Fix typo.
56371
56372 2008-03-29  Bruno Haible  <bruno@clisp.org>
56373
56374         * tests/test-fflush2.c (main): Temporarily disable the contents of
56375         this test.
56376         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56377         Reported by Eric Blake.
56378
56379 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56380
56381         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56382         (GC_SHA224_DIGEST_SIZE): Add.
56383
56384         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56385         (gc_hash_digest_length): Likewise.
56386         (gc_hash_buffer): Likewise.
56387
56388 2008-03-25  Bruno Haible  <bruno@clisp.org>
56389
56390         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56391         detail which gettext release to use.
56392         Reported by Simon Josefsson.
56393
56394 2008-03-26  Jim Meyering  <meyering@redhat.com>
56395
56396         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
56397         * modules/gnumakefile (clean-GNUmakefile): Also, use
56398         test ... && ... || : syntax rather than if-then ... fi.
56399
56400         gnumakefile: Don't double-quote-expand $(VPATH) value.
56401         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
56402
56403 2008-03-24  Eric Blake  <ebb9@byu.net>
56404
56405         Alter GNUmakefile to install into top directory.
56406         * modules/maintainer-makefile: Split, and add dependency...
56407         * modules/gnumakefile: to this new module.
56408         * build-aux/GNUmakefile: Move...
56409         * top/GNUmakefile: ...here.
56410         * build-aux/maint.mk: Move...
56411         * top/maint.mk: ...here.
56412         * MODULES.html.sh (Support for maintaining...): Document new
56413         module.
56414
56415 2008-03-23  Bruno Haible  <bruno@clisp.org>
56416
56417         * gnulib-tool: New options --vc-files, --no-vc-files.
56418         (func_usage): Document them.
56419         (vc_files): New variable.
56420         (func_import): Consider vc_files.
56421         (func_create_testdir): Set vc_files to empty.
56422         Suggested by Jim Meyering and Karl Berry.
56423
56424 2008-03-23  Bruno Haible  <bruno@clisp.org>
56425
56426         Fix regex compilation error on HP-UX 11.
56427         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
56428         * modules/regex (Files): Add m4/mbstate_t.m4.
56429         Reported by Ton Voon <ton.voon@altinity.com>.
56430
56431 2008-03-23  Bruno Haible  <bruno@clisp.org>
56432
56433         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
56434
56435 2008-03-23  Eric Blake  <ebb9@byu.net>
56436             Bruno Haible  <bruno@clisp.org>
56437
56438         Install files from top/ in the destination directory.
56439         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56440         augmentation also for the files from top/.
56441         (func_import, func_create_testdir): Rewrite file names:
56442         top/filename -> filename.
56443
56444 2008-03-23  Bruno Haible  <bruno@clisp.org>
56445
56446         Tweak "gnulib --version" output.
56447         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
56448
56449 2008-03-23  Bruno Haible  <bruno@clisp.org>
56450
56451         Tweak "gnulib --version" output.
56452         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
56453         rather than contents of ChangeLog, when possible.
56454
56455 2008-03-21  Eric Blake  <ebb9@byu.net>
56456
56457         More --version tweaks.
56458         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
56459         date of last ChangeLog entry.
56460
56461 2008-03-21  Jim Meyering  <meyering@redhat.com>
56462
56463         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
56464
56465 2008-03-20  Eric Blake  <ebb9@byu.net>
56466
56467         VPATH fix.
56468         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
56469
56470 2008-03-20  Simon Josefsson  <simon@josefsson.org>
56471
56472         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
56473         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
56474
56475 2008-03-20  Eric Blake  <ebb9@byu.net>
56476
56477         Sync GNUmakefile with coreutils.
56478         * build-aux/GNUmakefile (have-Makefile): Rename...
56479         (_have-Makefile): ...to this, for namespace consideration.
56480         (GNUmakefile.cfg): Include, if present.
56481         (_autoreconf): Define a default.
56482         (_is-dist-target): New rule for rebuilds to pick up intra-release
56483         version.
56484         (maint-cfg.mk): Rename...
56485         (cfg.mk): ...to this.
56486
56487 2008-03-18  Jim Meyering  <meyering@redhat.com>
56488
56489         New script and module: mktempd
56490         * MODULES.html.sh (maint+release support): Add mktempd.
56491         * build-aux/mktempd: New file.
56492         * modules/mktempd: New file.
56493
56494 2008-03-15  Jim Meyering  <meyering@redhat.com>
56495
56496         Undo last change.
56497         * lib/sha1.c, lib/md5.c: 63 != ~63.
56498         Reported by Andreas Schwab.
56499
56500         sha1.c, md5.c: Hoist a redundant expression.
56501         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
56502         "ctx->buflen" only once, before calling *_process_block.
56503         * lib/md5.c (md5_process_bytes): Likewise.
56504
56505 2008-03-14  Eric Blake  <ebb9@byu.net>
56506
56507         Bump copyright year in files generated by gnulib-tool.
56508         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56509         gnulib-tool, rather than hard-coding it.
56510
56511         Fix 'gnulib-tool --version' output to work with git.
56512         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56513         (startup): ...here.
56514         (func_version): Use it to invoke git-version-gen, rather than
56515         relying on CVS keyword expansion.  Modernize wording.
56516         (cvsdatestamp, last_checkin_date, version): Kill unused
56517         variables.
56518
56519 2008-03-12  Jim Meyering  <meyering@redhat.com>
56520
56521         Recognize optional cast of the argument to free.
56522         * build-aux/useless-if-before-free: Update regexps.
56523
56524         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56525
56526 2008-03-11  Bruno Haible  <bruno@clisp.org>
56527
56528         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56529         by a single package.
56530         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56531         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56532         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56533         Reported by Sam Steingold <sds@gnu.org>.
56534
56535 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56536
56537         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56538         repositories.
56539
56540 2008-03-11  Bruno Haible  <bruno@clisp.org>
56541
56542         Avoid conflicts between local macro definitions.
56543         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56544         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56545
56546 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56547             Bruno Haible  <bruno@clisp.org>
56548
56549         Make va_copy work with some version of xlc on AIX 5.1.
56550         * lib/stdarg.in.h: New file.
56551         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56552         On AIX, use a <stdarg.h> file substitute.
56553         * modules/stdarg (Files): Add lib/stdarg.in.h.
56554         (Depends-on): Add include_next.
56555         (Makefile.am): Build a stdarg.h substitute if requested.
56556         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56557
56558 2008-03-10  Bruno Haible  <bruno@clisp.org>
56559
56560         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56561         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56562         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56563
56564 2008-03-10  Bruno Haible  <bruno@clisp.org>
56565
56566         * modules/stdlib (Depends-on): Add include_next, remove
56567         absolute-header.
56568
56569 2008-03-09  Bruno Haible  <bruno@clisp.org>
56570
56571         * lib/freadahead.h (freadahead): Document more precisely.
56572         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56573         the sum of both buffer sizes.
56574         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56575         * NEWS: Document the change.
56576
56577 2008-03-09  Bruno Haible  <bruno@clisp.org>
56578
56579         Extend freadptr to return also the buffer size.
56580         * lib/freadptr.h (freadptr): Add sizep argument.
56581         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56582         (freadptr): Add sizep argument. Determine buffer size like freadahead
56583         does.
56584         * tests/test-freadptr.c: Don't include freadahead.h.
56585         (main): Adapt for new calling convention of freadptr.
56586         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56587         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56588         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56589         tests/test-freadptr2.sh.
56590         (Depends): Remove freadahead.
56591         (TESTS): Add test-freadptr2.sh.
56592         (check_PROGRAMS): Add test-freadptr2.
56593
56594 2008-03-09  Bruno Haible  <bruno@clisp.org>
56595
56596         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56597         Report and solution by Simon Josefsson.
56598
56599 2008-03-06  Bruno Haible  <bruno@clisp.org>
56600
56601         Make fflush after ungetc work on BSD platforms.
56602         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56603         * tests/test-fflush2.c: New file.
56604         * tests/test-fflush2.sh: New file.
56605         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56606         tests/test-fflush2.c.
56607         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56608         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56609
56610 2008-03-06  Eric Blake  <ebb9@byu.net>
56611
56612         Likewise for ftello.
56613         * modules/ftello (Dependencies): Add extensions.
56614         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56615
56616 2008-03-06  Bruno Haible  <bruno@clisp.org>
56617
56618         * modules/fseeko (Dependencies): Add extensions.
56619         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56620         Needed on glibc systems.
56621
56622 2008-03-06  Bruno Haible  <bruno@clisp.org>
56623
56624         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56625         email address.
56626         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56627
56628 2008-03-06  Bruno Haible  <bruno@clisp.org>
56629
56630         * users.txt: Add libgnupdf.
56631
56632 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56633
56634         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56635         (Header File Substitutes, Function Substitutes,
56636         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56637         (Build robot for gnulib): Fix typo.
56638
56639 2008-03-06  Bruno Haible  <bruno@clisp.org>
56640
56641         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56642         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56643
56644 2008-03-06  Bruno Haible  <bruno@clisp.org>
56645
56646         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56647         * doc/gnulib.texi: Include it.
56648
56649 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56650
56651         * modules/func (License): Change license to unlimited; there was
56652         no LGPL parts in the module anyway.
56653
56654 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56655
56656         * modules/__func__: Renamed to modules/func.
56657         * modules/__func__-tests: Renamed to modules/func-tests.
56658         * tests/test-__func__.c: Renamed to tests/test-func.c.
56659         * m4/__func__.m4: Renamed to m4/func.m4.
56660         * doc/gnulib.texi (__func__): Section renamed to func.
56661         Suggested by Eric Blake <ebb9@byu.net>.
56662
56663 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56664
56665         * doc/gnulib.texi (__func__): Use C99 terminology when talking
56666         about __func__.  Make example self-contained.  Suggested by Eric
56667         Blake <ebb9@byu.net>.
56668
56669         * tests/test-__func__.c (main): Avoid extraneous () around __func.
56670         Suggested by Eric Blake <ebb9@byu.net>.
56671
56672 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56673
56674         * modules/__func__: New file.
56675         * modules/__func__-tests: New file.
56676         * tests/test-__func__.c: New file.
56677         * m4/__func__.m4: New file.
56678         * doc/gnulib.texi (__func__): Document __func__ module.
56679
56680 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56681
56682         * modules/byteswap (License): Re-license as LGPLv2+.
56683
56684 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56685
56686         * doc/Makefile: Add pdf target.
56687
56688 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56689
56690         * modules/inline (License): Use 'unlimited', since there are only
56691         *.m4 files in this module.
56692
56693 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56694             Bruno Haible  <bruno@clisp.org>
56695
56696         Add support for HP C 7.1 on OpenVMS 8.3.
56697         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
56698
56699 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56700
56701         Update VMS specifics.
56702         * lib/getopt.c [VMS]: Remove include of unixlib.h.
56703
56704 2008-03-02  Jim Meyering  <meyering@redhat.com>
56705
56706         Remove the last dependency on the "free" module.
56707         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
56708         Reported by Bob Proulx.
56709
56710         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
56711
56712         Remove useless "if" tests before free.  Deprecate "free" module.
56713         * doc/posix-functions/free.texi: Mention that this
56714         module is no longer useful.
56715         * modules/free (Notice): Say this module is obsolete.
56716         * modules/readutmp (Depends-on): Remove free.
56717         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
56718         * lib/putenv.c (putenv): Likewise.
56719         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
56720         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
56721         * tests/test-c-strcasestr.c (main): Likewise.
56722         * tests/test-c-strstr.c (main): Likewise.
56723         * tests/test-mbscasestr1.c (main): Likewise.
56724         * tests/test-mbscasestr2.c (main): Likewise.
56725         * tests/test-mbsstr1.c (main): Likewise.
56726         * tests/test-mbsstr2.c (main): Likewise.
56727         * tests/test-memmem.c (main): Likewise.
56728         * tests/test-strcasestr.c (main): Likewise.
56729         * tests/test-striconv.c (main): Likewise.
56730         * tests/test-striconveh.c (main): Likewise.
56731         * tests/test-striconveha.c (main): Likewise.
56732         * tests/test-strstr.c (main): Likewise.
56733
56734         * build-aux/git-version-gen: Adjust a comment and the Usage string.
56735
56736         bootstrap: sync from coreutils again
56737         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
56738
56739 2008-03-01  Jim Meyering  <meyering@redhat.com>
56740
56741         bootstrap: sync from coreutils
56742         * build-aux/bootstrap (update_po_files): Copy a .po file into place
56743         also when the target doesn't exist.
56744
56745 2008-03-01  Eric Blake  <ebb9@byu.net>
56746
56747         Fix bugs in last patch.
56748         * lib/memchr2.c (memchr2): Fix typo.
56749         * tests/test-memchr2.c: Test previous bug, and don't use GNU
56750         extension.
56751         Reported by Bruce Korb.
56752
56753         New module 'memchr2'.
56754         * modules/memchr2: New file.
56755         * modules/memchr2-tests: Likewise.
56756         * lib/memchr2.h: Likewise.
56757         * lib/memchr2.c: Likewise, based on memchr.c.
56758         * tests/test-memchr2.c: New test.
56759         * MODULES.html.sh (String handling): Add memchr2.
56760
56761 2008-02-29  Bruno Haible  <bruno@clisp.org>
56762
56763         * modules/freadseek-tests: New file.
56764         * tests/test-freadseek.sh: New file.
56765         * tests/test-freadseek.c: New file.
56766
56767         New module 'freadseek'.
56768         * modules/freadseek: New file.
56769         * lib/freadseek.h: New file.
56770         * lib/freadseek.c: New file.
56771         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
56772
56773 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56774
56775         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
56776         wydawca.
56777
56778         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
56779         program_invocation_name and program_invocation_short_name are
56780         present.
56781
56782 2008-02-28  Bruno Haible  <bruno@clisp.org>
56783
56784         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
56785         * tests/test-freadptr.sh: Also test non-seekable stdin.
56786
56787 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
56788
56789         * build-aux/bootstrap (source_base, m4_base)
56790         (doc_base, tests_base): New variables.
56791         (gnulib_tool_options): Do not hardcode base directories, use
56792         the above variables instead.
56793
56794 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
56795
56796         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
56797
56798 2008-02-28  Bruno Haible  <bruno@clisp.org>
56799
56800         * modules/freadptr-tests: New file.
56801         * tests/test-freadptr.sh: New file.
56802         * tests/test-freadptr.c: New file.
56803
56804         New module 'freadptr'.
56805         * modules/freadptr: New file.
56806         * lib/freadptr.h: New file.
56807         * lib/freadptr.c: New file.
56808         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
56809
56810 2008-02-26  Karl Berry  <karl@freefriends.org>
56811
56812         Sync from Libtool:
56813         * libltdl/argz.c (argz_add, argz_count): New functions.
56814         * libltdl/argz.in.h: Declare them.
56815         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
56816
56817 2008-02-22  Bruno Haible  <bruno@clisp.org>
56818
56819         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
56820         is a pointer type.  Needed for HP-UX 10.
56821         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
56822         * doc/posix-functions/gmtime_r.texi: Likewise.
56823         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56824
56825 2008-02-24  Bruno Haible  <bruno@clisp.org>
56826
56827         * modules/environ-tests: New file.
56828         * tests/test-environ.c: New file.
56829
56830         New module 'environ'.
56831         * modules/environ: New file.
56832         * lib/unistd.in.h (environ): New declaration.
56833         * m4/environ.m4: New file.
56834         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
56835         after use.
56836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
56837         HAVE_DECL_ENVIRON.
56838         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
56839         HAVE_DECL_ENVIRON.
56840         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
56841         wrong claim that 'environ' is missing on some systems.
56842         * modules/execute (Depends-on): Add environ.
56843         * lib/execute.c (environ): Remove fallback declaration.
56844         * modules/pipe (Depends-on): Add environ.
56845         * lib/pipe.c (environ): Remove fallback declaration.
56846         * modules/setenv (Depends-on): Add environ.
56847         * lib/setenv.c (environ): Remove fallback declaration.
56848         * modules/unsetenv (Depends-on): Add environ.
56849         * lib/unsetenv.c (environ): Remove fallback declaration.
56850         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
56851         m4/environ.m4.
56852         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
56853         (gl_PREREQ_UNSETENV): Likewise.
56854
56855 2008-02-24  Bruno Haible  <bruno@clisp.org>
56856
56857         * doc/posix-functions/environ.texi: Document the MacOS X problem.
56858
56859 2008-02-20  Bob Proulx  <bob@proulx.com>
56860
56861         Enable use of older two part flavor 'git describe'.
56862         * build-aux/git-version-gen: If using the older two part flavor of
56863         git version then recreate the third part now present in the
56864         newer three part flavor of git describe.
56865
56866 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
56867
56868         * lib/fts.c (fts_build): Typo correction to comment.
56869
56870 2008-02-17  Bruno Haible  <bruno@clisp.org>
56871
56872         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
56873         generating no-op conflicts.
56874
56875 2008-02-17  Bruno Haible  <bruno@clisp.org>
56876
56877         Speed up by 10%.
56878         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
56879         result_entries, rather than an index-based loop.
56880
56881 2008-02-17  Bruno Haible  <bruno@clisp.org>
56882
56883         Speed up by 25%.
56884         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
56885         'hashcode_cached'.
56886         (entry_create): New function.
56887         (entry_hashcode): Use the cached hashcode if possible.
56888         (read_changelog_file, try_split_merged_entry): Use entry_create.
56889
56890 2008-02-17  Bruno Haible  <bruno@clisp.org>
56891
56892         Speed up from O(n^2) to O(n) for long ChangeLog files.
56893         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
56894         (read_changelog_file): Change implementation of entries_reversed list
56895         to rbtreehash.
56896         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
56897
56898 2008-02-17  Bruno Haible  <bruno@clisp.org>
56899
56900         New option --split-merged-entry.
56901         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
56902         (find_paragraph_end, try_split_merged_entry): New functions.
56903         (long_options): Add option --split-merged-entry.
56904         (usage): Document option --split-merged-entry.
56905         (main): Implement option --split-merged-entry.
56906         Reported by Eric Blake.
56907
56908 2008-02-17  Bruno Haible  <bruno@clisp.org>
56909
56910         * lib/git-merge-changelog.c: Include c-strstr.h.
56911         (main): Support the "git pull --rebase" situation.
56912         * modules/git-merge-changelog (Depends-on): Add c-strstr.
56913         Reported by Eric Blake.
56914
56915 2008-02-16  Eric Blake  <ebb9@byu.net>
56916
56917         Avoid doubling \ in common case of "c-maybe" quoting style.
56918         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
56919         eliding outer quotes.
56920         * lib/quotearg.h: Document this.
56921         * tests/test-quotearg.c (result_strings, inputs, results_g)
56922         (flag_results, locale_results): Test it by adding a new string to
56923         each test group.
56924         (compare_strings): Test new string.
56925
56926 2008-02-13  Eric Blake  <ebb9@byu.net>
56927
56928         Avoid trigraph quoting in default output.
56929         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
56930         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
56931         unless explicitly requested.
56932         * tests/test-quotearg.c (flag_results, main): Add additional tests.
56933
56934 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
56935
56936         Don't rely on signed integer overflowing to negative value.
56937         * lib/getugroups.c (getugroups): Include <limits.h>.
56938         Instead, compare against INT_MAX, and increment only if the test passes.
56939
56940 2008-02-13  Jim Meyering  <meyering@redhat.com>
56941         and Eric Blake  <ebb9@byu.net>
56942
56943         Avoid shadowing warning and compile errors on Linux.
56944         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
56945         forwarding macros on Linux.
56946         (dcgettext): Define a stub, for Linux.
56947         (results_g, main): Avoid warnings.
56948
56949 2008-02-12  Eric Blake  <ebb9@byu.net>
56950
56951         Silence warning in last patch.
56952         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
56953
56954         Quotearg part 4: add tests, fix c-maybe colon quoting.
56955         * lib/quotearg.h: Improve documentation.
56956         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
56957         escapes when adding outer quotes.  When quoting trigraphs, use
56958         valid C notation.  When quoting NUL, omit extra characters if next
56959         character is not digit.  Alter prototype.
56960         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
56961         callers.
56962         * modules/quotearg-tests: New module.
56963         * tests/test-quotearg.c: New test.
56964
56965 2008-02-07  Eric Blake  <ebb9@byu.net>
56966
56967         Quotearg part 3: add flag to control outer quote elision.
56968         * lib/quotearg.h (c_maybe_quoting_style): New style.
56969         (enum quoting_flags): Better documentation of flags.
56970         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
56971         c-maybe style.
56972         (quotearg_buffer_restyled): Handle new flag to elide outer
56973         quotes.
56974
56975         Quotearg part 2: add flag that can control NUL elision.
56976         * lib/quotearg.h (set_quoting_flags): New prototype.
56977         * lib/quotearg.c (struct quoting_options): Add flag field.
56978         (set_quoting_flags): New function.
56979         (quotearg_buffer_restyled): Add flags parameter.
56980         (quotearg_alloc_mem): Set the flag if length cannot be returned.
56981         (quotearg_n_options): Set the flag, since length cannot be
56982         returned.
56983         (quoting_options_from_style): Default flags correctly.
56984
56985         Quotearg part 1: more wrappers, restore quotearg_char state.
56986         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
56987         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
56988         (quotearg_colon_mem): New wrappers.
56989         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
56990         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
56991         functions.
56992         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
56993         (quotearg_colon_mem): New functions.
56994
56995 2008-02-11  Bruno Haible  <bruno@clisp.org>
56996
56997         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
56998         library in the current directory: it does not work with parallel make.
56999         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57000
57001 2008-02-11  Bruno Haible  <bruno@clisp.org>
57002
57003         * .gitattributes: New file.
57004
57005 2008-02-11  Jim Meyering  <meyering@redhat.com>
57006
57007         useless-if-before-free: Fix reversed exit values.
57008         * build-aux/useless-if-before-free: Use correct values
57009         for EXIT_MATCH and EXIT_NO_MATCH.
57010
57011         * build-aux/useless-if-before-free: Close stdout carefully.
57012
57013 2008-02-10  Bruno Haible  <bruno@clisp.org>
57014
57015         New module 'git-merge-changelog'.
57016         * modules/git-merge-changelog: New file.
57017         * lib/git-merge-changelog.c: New file.
57018
57019 2008-02-10  Jim Meyering  <meyering@redhat.com>
57020
57021         useless-if-before-free: New option: --list (-l).
57022
57023         useless-if-before-free: Don't exit immediately upon open failure.
57024         * build-aux/useless-if-before-free: Exit 2 for errors.
57025         Upon failure to open a file, don't exit immediately.
57026         Rather, just warn and continue with any remaining files.
57027
57028 2008-02-10  Bruno Haible  <bruno@clisp.org>
57029
57030         New abstract list operation 'node_set_value'.
57031         * lib/gl_list.h (gl_list_node_set_value): New function.
57032         (struct gl_list_implementation): New field node_set_value.
57033         * lib/gl_list.c (gl_list_node_set_value): New function.
57034         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57035         (gl_array_list_implementation): Update.
57036         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57037         (gl_carray_list_implementation): Update.
57038         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57039         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57040         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57041         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57042         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57043         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57044         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57045         Update.
57046         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57047         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57048         (gl_sublist_list_implementation): Update.
57049
57050 2008-02-10  Bruno Haible  <bruno@clisp.org>
57051
57052         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57053         Needed when ELEMENT is #defined to 'some_type *'.
57054
57055 2008-02-10  Jim Meyering  <meyering@redhat.com>
57056
57057         New script and module: useless-if-before-free
57058         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57059         * build-aux/useless-if-before-free: New file.
57060         * modules/useless-if-before-free: New file.
57061
57062         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57063
57064         xstrtol_error: Fix typo.
57065         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57066         s/exit_failure/exit_status/.
57067
57068 2008-02-09  Jim Meyering  <meyering@redhat.com>
57069
57070         New script and module: gitlog-to-changelog
57071         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57072         * modules/gitlog-to-changelog: New file.
57073         * build-aux/gitlog-to-changelog: New file.
57074
57075 2008-02-08  Jim Meyering  <meyering@redhat.com>
57076
57077         Avoid two "parameter unused" warnings.
57078         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57079         Mark "st" as used.
57080
57081         Use "git COMMAND", not "git-COMMAND".
57082         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57083         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57084         * build-aux/git-version-gen: Use "git status", not "git-status".
57085
57086 2008-02-07  Bruno Haible  <bruno@clisp.org>
57087
57088         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57089         Avoids a crash on Windows Vista.
57090         Reported by Adam Strzelecki <ono@java.pl> via
57091         Simon Josefsson <simon@josefsson.org>.
57092
57093 2008-02-06  Bruno Haible  <bruno@clisp.org>
57094
57095         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57096         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57097         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57098         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57099         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57100         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57101         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57102         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57103         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57104         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57105         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57106         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57107         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57108         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57109         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57110         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57111         left-adjust flag.
57112         * tests/test-snprintf-posix.h (test_function): Likewise.
57113         * tests/test-sprintf-posix.h (test_function): Likewise.
57114         * tests/test-vasprintf-posix.c (test_function): Likewise.
57115         * doc/posix-functions/fprintf.texi: Update.
57116         * doc/posix-functions/printf.texi: Update.
57117         * doc/posix-functions/snprintf.texi: Update.
57118         * doc/posix-functions/sprintf.texi: Update.
57119         * doc/posix-functions/vfprintf.texi: Update.
57120         * doc/posix-functions/vprintf.texi: Update.
57121         * doc/posix-functions/vsnprintf.texi: Update.
57122         * doc/posix-functions/vsprintf.texi: Update.
57123         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57124
57125 2008-02-06  Bruno Haible  <bruno@clisp.org>
57126
57127         Fix bug introduced on 2008-01-26.
57128         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57129
57130 2008-02-06  Bruno Haible  <bruno@clisp.org>
57131
57132         Fix bug introduced on 2007-06-10.
57133         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57134         !NEED_PRINTF_FLAG_ZERO.
57135
57136 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57137
57138         getloadavg: use libperfstat on AIX5
57139         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57140
57141 2008-02-03  Bruno Haible  <bruno@clisp.org>
57142
57143         * lib/diffseq.h: Add comments about required #includes.
57144         Reported by Michael Biggs <gnulib@doubleplum.net>.
57145
57146 2008-02-01  Bruno Haible  <bruno@clisp.org>
57147
57148         * users.txt: Add gnuit.
57149
57150 2008-01-31  Bruno Haible  <bruno@clisp.org>
57151
57152         * lib/md4.c (set_uint32): Mark as inline.
57153         * lib/md5.c (set_uint32): Likewise.
57154         * lib/sha1.c (set_uint32): Likewise.
57155         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57156         * m4/md5.m4 (gl_MD5): Likewise.
57157         * m4/sha1.m4 (gl_SHA1): Likewise.
57158
57159 2008-01-31  Jim Meyering  <meyering@redhat.com>
57160
57161         Use "sizeof VAR", rather than a literal "4".
57162         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57163         * lib/md4.c (md4_read_ctx): Likewise.
57164         * lib/sha1.c (sha1_read_ctx): Likewise.
57165
57166 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57167
57168         * tests/test-sha1.c: New file, based on test-md5.c.
57169
57170         * modules/crypto/sha1-tests: New file.
57171
57172 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57173
57174         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57175
57176 2008-01-31  Jim Meyering  <meyering@redhat.com>
57177
57178         Prefer "sizeof v" over the equivalent "4".
57179         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57180         * lib/md5.c (set_uint32): Likewise.
57181         * lib/sha1.c (set_uint32): Likewise.
57182
57183 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57184
57185         * lib/sha1.c (set_uint32): Mark function as static.
57186
57187 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57188
57189         md2: clarify comments to say that alignment is not required.
57190         * lib/md2.h: Remove warning about alignment in comment.
57191         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57192         never been required.
57193
57194 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57195
57196         md4: adapt alignment constraint fix from sha1.
57197         * lib/md4.c (set_uint32): New function, from sha1.c
57198         (md4_read_ctx): Use it.
57199         (md4_finish_ctx): Doc fix.
57200         * lib/md4.h: Doc fix.
57201
57202 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57203
57204         md5: adapt alignment constraint fix from sha1.
57205         * lib/md5.c (set_uint32): New function, from sha1.c
57206         (md5_read_ctx): Use it.
57207         (md5_finish_ctx): Doc fix.
57208         * lib/md5.h: Doc fix.
57209
57210 2008-01-30  Peter Palfrader  <weasel@debian.org>
57211
57212         sha1: remove the result buffer alignment constraint
57213         * lib/sha1.c (set_uint32): New function.
57214         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57215         constraint.
57216         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57217         * lib/sha1.h: Likewise.
57218
57219 2008-01-30  Andreas Schwab  <schwab@suse.de>
57220             Bruno Haible  <bruno@clisp.org>
57221
57222         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57223         correct definition of LDBL_MIN_EXP.
57224
57225 2008-01-30  Karl Berry  <karl@gnu.org>
57226
57227         * config/srclist-update: try to preserve x bit on updates.
57228         * config/srclistvars.sh: update for karl.
57229
57230 2008-01-29  Jim Meyering  <meyering@redhat.com>
57231
57232         vasnprintf.c: Avoid warning about unused label
57233         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57234         "overflow" label definition and associated code with the
57235         same cpp condition that guards the sole use of that label.
57236
57237 2008-01-26  Bruno Haible  <bruno@clisp.org>
57238
57239         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57240         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57241         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57242         * lib/isnanl-nolibm.h (isnanl): Likewise.
57243         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57244
57245 2008-01-26  Bruno Haible  <bruno@clisp.org>
57246
57247         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57248         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57249
57250 2008-01-26  Bruno Haible  <bruno@clisp.org>
57251
57252         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57253         GCC >= 4.0 built-in.
57254         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57255
57256 2008-01-26  Bruno Haible  <bruno@clisp.org>
57257
57258         Rename isnan, applicable to 'double' only, to isnand.
57259         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57260         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57261         (configure.ac): Update.
57262         (Include): Replace "isnan.h" with "isnand.h".
57263         * m4/isnand.m4: Renamed from m4/isnan.m4.
57264         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57265         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57266         instead of isnan.c.
57267         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57268         instead of HAVE_ISNAN_IN_LIBC.
57269         (isnand): Renamed from isnan.
57270         * lib/isnand.c: New file.
57271         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57272         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57273         (Makefile.am): Update.
57274         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57275         Include isnand.h instead of isnan.h.
57276         (main): Test isnand instead of isnan.
57277         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57278         isnan-nolibm.
57279         * modules/frexp (Depends-on): Likewise.
57280         * modules/frexp-tests (Depends-on): Likewise.
57281         * modules/frexp-nolibm (Depends-on): Likewise.
57282         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57283         * modules/isfinite (Depends-on): Likewise.
57284         * modules/round-tests (Depends-on): Likewise.
57285         * modules/signbit (Depends-on): Likewise.
57286         * modules/signbit-tests (Depends-on): Likewise.
57287         * modules/snprintf-posix (Depends-on): Likewise.
57288         * modules/sprintf-posix (Depends-on): Likewise.
57289         * modules/trunc-tests (Depends-on): Likewise.
57290         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57291         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57292         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57293         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57294         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57295         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57296         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57297         * modules/vasnprintf-posix (Depends-on): Likewise.
57298         * modules/vasprintf-posix (Depends-on): Likewise.
57299         * modules/vfprintf-posix (Depends-on): Likewise.
57300         * modules/vsnprintf-posix (Depends-on): Likewise.
57301         * modules/vsprintf-posix (Depends-on): Likewise.
57302         * lib/frexp.c: Include isnand.h instead of isnan.h.
57303         (ISNAN): Set to isnand instead of isnan.
57304         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57305         (gl_isfinited): Use isnand instead of isnan.
57306         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57307         (gl_signbitd): Use isnand instead of isnan.
57308         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57309         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57310         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57311         (main): Use isnand instead of isnan.
57312         * tests/test-round1.c: Include isnand.h.
57313         (main): Use isnand instead of isnan.
57314         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57315         (ISNAN): Set to isnand instead of isnan.
57316         * tests/test-trunc1.c: Include isnand.h.
57317         (main): Use isnand instead of isnan.
57318         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57319         (equal): Use isnand instead of isnan.
57320         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
57321         isnand-nolibm.
57322         * NEWS: Mention the change.
57323
57324 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57325             Bruno Haible  <bruno@clisp.org>
57326
57327         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
57328         the GCC builtins for signbits are present and set
57329         REPLACE_SIGNBIT_USING_GCC if so.
57330         * lib/math.in.h (signbit): Define using GCC builtins if
57331         REPLACE_SIGNBIT_USING_GCC is set.
57332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
57333         REPLACE_SIGNBIT_USING_GCC.
57334         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
57335
57336 2008-01-25  Jim Meyering  <meyering@redhat.com>
57337
57338         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
57339         * lib/poll.c: Include <config.h>, not "config.h".
57340         * tests/test-getaddrinfo.c: Likewise.
57341
57342 2008-01-25  Simon Josefsson  <simon@josefsson.org>
57343
57344         * modules/sockets-tests: New file.
57345
57346 2008-01-24  Simon Josefsson  <simon@josefsson.org>
57347
57348         * modules/sockets: New module, can be used to call WSA_Startup and
57349         WSA_Cleanup when needed.
57350
57351         * lib/sockets.h, lib/sockets.c: New files.
57352
57353         * m4/sockets.m4: New file.
57354
57355         * tests/test-sockets.c: New file.
57356
57357 2008-01-19  Bruno Haible  <bruno@clisp.org>
57358
57359         * doc/posix-headers: Renamed from doc/headers.
57360         * doc/posix-functions: Renamed from doc/functions.
57361         * doc/gnulib.texi: Update.
57362
57363 2008-01-19  Bruno Haible  <bruno@clisp.org>
57364
57365         * doc/glibc-functions/strcasestr.texi: Include contents of
57366         doc/functions/strcasestr.texi, fixing the list of platforms.
57367         * doc/functions/strcasestr.texi: Remove file.
57368
57369 2008-01-19  Bruno Haible  <bruno@clisp.org>
57370
57371         * doc/glibc-functions/memmem.texi: Include contents of
57372         doc/functions/memmem.texi.
57373         * doc/functions/memmem.texi: Remove file.
57374
57375 2008-01-18  Bruno Haible  <bruno@clisp.org>
57376
57377         * doc/glibc-functions/*.texi: New files.
57378         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57379         to use the new files.
57380
57381 2008-01-17  Bruno Haible  <bruno@clisp.org>
57382
57383         * tests/test-gethostname.c (main): Fix printf statement.
57384
57385 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57386
57387         * modules/gethostname-tests: New file.
57388
57389         * tests/test-gethostname.c: New file.
57390
57391 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57392
57393         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57394         used by the UNAME case.  Reported by Bruno Haible
57395         <bruno@clisp.org>.
57396
57397 2008-01-17  Eric Blake  <ebb9@byu.net>
57398
57399         Convert c-strcasestr to be more efficient.
57400         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
57401         (Depends-on): Add c-strcase, remove malloca, strnlen.
57402         * tests/test-c-strcasestr.c (main): Enhance test.
57403         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
57404
57405 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57406
57407         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
57408         Use it in creating po/Makevars.
57409
57410 2008-01-15  Simon Josefsson  <simon@josefsson.org>
57411
57412         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
57413         Applications that requires it should initialize libgcrypt
57414         manually.
57415
57416 2008-01-16  Simon Josefsson  <simon@josefsson.org>
57417
57418         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
57419
57420 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
57421
57422         Fix problem with getdate on mingw32 reported by Simon Josefsson
57423         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
57424         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
57425         tzname", when deciding whether to declare tzname.
57426         * lib/strftime.c (tzname): Likewise.
57427
57428 2008-01-15  Bruno Haible  <bruno@clisp.org>
57429
57430         Work around a MacOS X 10.5 bug in frexpl().
57431         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
57432         * doc/functions/frexpl.texi: Document the bug.
57433         Reported by Elias Pipping <pipping@gentoo.org>.
57434
57435 2008-01-14  Eric Blake  <ebb9@byu.net>
57436
57437         Touch up previous patch.
57438         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
57439         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
57440
57441         Convert strcasestr module to use Two-Way algorithm.
57442         * modules/strcasestr-simple: New module, based on the old
57443         strcasestr, but with Two-Way rather than KMP.
57444         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
57445         * lib/string.in.h (rpl_strcasestr): Declare.
57446         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
57447         performance.
57448         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
57449         * modules/string (Makefile.am): Support strcasestr.
57450         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57451         * modules/strcasestr-tests (Depends-on): Check for alarm.
57452         * tests/test-strcasestr.c: Augment test.
57453         * lib/str-two-way.h: Clean up stray macro.
57454         * NEWS: Document new module.
57455         * MODULES.html.sh (string handling): Likewise.
57456         * doc/functions/strcasestr.texi: New file.
57457         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
57458         here, since it is not a POSIX function.
57459
57460 2008-01-14  Colin Watson  <cjwatson@debian.org>
57461             Bruno Haible  <bruno@clisp.org>
57462
57463         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
57464         works fine; if not, set REPLACE_STRSIGNAL.
57465         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
57466         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57467         REPLACE_STRSIGNAL.
57468         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
57469         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
57470         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
57471
57472 2008-01-14  Bruno Haible  <bruno@clisp.org>
57473
57474         * modules/strsignal (Include): Change to <string.h>.
57475
57476 2008-01-14  Colin Watson  <cjwatson@debian.org>
57477
57478         * modules/argp (Notice): Add a notice recommending to change
57479         XGETTEXT_OPTIONS.
57480         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
57481
57482 2008-01-13  Colin Watson  <cjwatson@debian.org>
57483
57484         * modules/strsignal-tests: New file.
57485         * tests/test-strsignal.c: New file.
57486
57487         * lib/strsignal.c: New file, from glibc with modifications.
57488         * lib/siglist.h: New file, from glibc with modifications.
57489         * lib/string.in.h (strsignal): New declaration.
57490         * m4/strsignal.m4: New file.
57491         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57492         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
57493         * modules/strsignal: New file.
57494         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
57495         HAVE_DECL_STRSIGNAL.
57496
57497 2008-01-13  Bruno Haible  <bruno@clisp.org>
57498
57499         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
57500         locale encoding is not ASCII. Needed for OpenBSD 4.0.
57501         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57502         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57503
57504 2008-01-13  Bruno Haible  <bruno@clisp.org>
57505
57506         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57507         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57508         * lib/argp.h (__attribute__): Likewise.
57509         * lib/c-stack.c (__attribute__): Likewise.
57510         * lib/error.h (__attribute__): Likewise.
57511         * lib/fts.c (__attribute__): Likewise.
57512         * lib/openat.h (__attribute__): Likewise.
57513         * lib/stdio.in.h (__attribute__): Likewise.
57514         * lib/string.in.h (__attribute__): Likewise.
57515         * lib/utimens.c (__attribute__): Likewise.
57516         * lib/vasnprintf.h (__attribute__): Likewise.
57517         * lib/xalloc.h (__attribute__): Likewise.
57518         * lib/xprintf.h (__attribute__): Likewise.
57519         * lib/xstrtol.h (__attribute__): Likewise.
57520         * lib/xvasprintf.h (__attribute__): Likewise.
57521
57522 2008-01-12  Bruno Haible  <bruno@clisp.org>
57523
57524         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57525         * doc/glibc-headers/a.out.texi: New file.
57526         * doc/glibc-headers/aliases.texi: New file.
57527         * doc/glibc-headers/alloca.texi: New file.
57528         * doc/glibc-headers/ar.texi: New file.
57529         * doc/glibc-headers/argp.texi: New file.
57530         * doc/glibc-headers/argz.texi: New file.
57531         * doc/glibc-headers/byteswap.texi: New file.
57532         * doc/glibc-headers/crypt.texi: New file.
57533         * doc/glibc-headers/endian.texi: New file.
57534         * doc/glibc-headers/envz.texi: New file.
57535         * doc/glibc-headers/err.texi: New file.
57536         * doc/glibc-headers/error.texi: New file.
57537         * doc/glibc-headers/execinfo.texi: New file.
57538         * doc/glibc-headers/fpu_control.texi: New file.
57539         * doc/glibc-headers/fstab.texi: New file.
57540         * doc/glibc-headers/fts.texi: New file.
57541         * doc/glibc-headers/getopt.texi: New file.
57542         * doc/glibc-headers/ieee754.texi: New file.
57543         * doc/glibc-headers/ifaddrs.texi: New file.
57544         * doc/glibc-headers/libintl.texi: New file.
57545         * doc/glibc-headers/mcheck.texi: New file.
57546         * doc/glibc-headers/mntent.texi: New file.
57547         * doc/glibc-headers/obstack.texi: New file.
57548         * doc/glibc-headers/paths.texi: New file.
57549         * doc/glibc-headers/printf.texi: New file.
57550         * doc/glibc-headers/pty.texi: New file.
57551         * doc/glibc-headers/resolv.texi: New file.
57552         * doc/glibc-headers/shadow.texi: New file.
57553         * doc/glibc-headers/sysexits.texi: New file.
57554         * doc/glibc-headers/ttyent.texi: New file.
57555
57556 2008-01-12  Jim Meyering  <meyering@redhat.com>
57557
57558         announce-gen: emit Gnulib's git-based version string.
57559         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57560         New option --gnulib-version=V, where V is expected to be
57561         the output of running git describe in the gnulib directory.
57562         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57563         not useful, and plan to stop publishing an xdelta file with each
57564         coreutils release.
57565
57566         * build-aux/announce-gen: Also check for lzma-compressed files.
57567
57568 2008-01-11  Bruno Haible  <bruno@clisp.org>
57569
57570         * tests/test-memmem.c (main): Increase maximum allowed time.
57571         * tests/test-strstr.c (main): Likewise.
57572
57573 2008-01-11  Bruno Haible  <bruno@clisp.org>
57574
57575         * doc/functions/memmem.texi: Add more precisions about platforms.
57576         * doc/functions/strstr.texi: Likewise.
57577
57578 2008-01-10  Eric Blake  <ebb9@byu.net>
57579
57580         * m4/strstr.m4: Delete cruft from copy-n-paste.
57581         Reported by Bruno Haible.
57582
57583 2008-01-10  Bruno Haible  <bruno@clisp.org>
57584
57585         Make c-strstr rely on strstr.
57586         * lib/c-strstr.c: Don't include str-kmp.h.
57587         (c_strstr): Define in terms of strstr.
57588         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57589         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57590
57591 2008-01-10  Bruno Haible  <bruno@clisp.org>
57592
57593         * doc/gnulib.texi (String Functions in C Locale): New section.
57594         * doc/c-ctype.texi: New file.
57595         * doc/c-strcase.texi: New file.
57596         * doc/c-strcaseeq.texi: New file.
57597         * doc/c-strcasestr.texi: New file.
57598         * doc/c-strstr.texi: New file.
57599         * doc/c-strtod.texi: New file.
57600         * doc/c-strtold.texi: New file.
57601
57602 2008-01-10  Eric Blake  <ebb9@byu.net>
57603
57604         * lib/relocatable.h: Fix a comment.
57605
57606 2008-01-10  Eric Blake  <ebb9@byu.net>
57607
57608         Share two-way algorithm.
57609         * lib/str-two-way.h: New file, merged from...
57610         * lib/memmem.c: ...here...
57611         * lib/strstr.c: ...and here.
57612         * modules/memmem (Files): Use it.
57613         * modules/strstr (Files): Likewise.
57614
57615         Avoid quadratic strstr implementations.
57616         * lib/strstr.c: New file.
57617         * m4/strstr.m4: Likewise.
57618         * modules/strstr: Likewise.
57619         * modules/strstr-tests: Likewise.
57620         * tests/test-strstr.c: Likewise.
57621         * lib/string.in.h (rpl_strstr): Declare.
57622         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57623         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57624         * modules/string (Makefile.am): Likewise.
57625         * MODULES.html.sh (string handling): Mention new module.
57626         * doc/functions/strstr.texi (strstr): Document the bug.
57627
57628 2008-01-10  Bruno Haible  <bruno@clisp.org>
57629
57630         * lib/relocatable.h (relocate): State whether result is freshly
57631         allocated or not.
57632         * lib/relocatable.c (relocate): Return a freshly allocated string
57633         instead of a pointer to a privately held string.
57634         Reported by Sylvain Beucler <beuc@gnu.org>.
57635
57636 2008-01-10  Colin Watson  <cjwatson@debian.org>
57637
57638         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57639         s/S_ISNLK/S_ISLNK/.
57640
57641 2008-01-09  Bruno Haible  <bruno@clisp.org>
57642
57643         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57644         and other files.
57645         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57646         if it's only a guess.
57647         * modules/memmem: Simplify by depending on memmem-simple.
57648
57649 2008-01-09  Bruno Haible  <bruno@clisp.org>
57650
57651         Work around OpenBSD 4.0 tdelete() bug.
57652         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57653         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57654         macros and don't redefine the enum values.
57655         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57656         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57657         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
57658
57659 2008-01-09  Bruno Haible  <bruno@clisp.org>
57660
57661         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
57662         (main): Don't perform the tests if setlocale did not install a UTF-8
57663         locale. Needed on OpenBSD 4.0.
57664         * modules/wcwidth-tests (Depends-on): Add localcharset.
57665
57666 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57667
57668         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
57669         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
57670         * NEWS: announce this.
57671         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
57672
57673 2008-01-09  Simon Josefsson  <simon@josefsson.org>
57674         and Eric Blake  <ebb9@byu.net>
57675
57676         Add memmem-simple module.
57677         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
57678         (gl_FUNC_MEMMEM): Separate performance from presence checks.
57679         * modules/memmem-simple: New file.
57680         * modules/memmem (Description): Tweak.
57681         * MODULES.html.sh (string handling): Mention new module.
57682         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
57683         addressed by memmem-simple.
57684         * NEWS: Document the difference.
57685
57686 2008-01-09  Eric Blake  <ebb9@byu.net>
57687
57688         Give gcc some memmem optimization hints.
57689         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
57690         (strcasestr): Declare as pure.
57691         * modules/memmem (Maintainer): Claim my implementation.
57692
57693 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57694
57695         Support AIX 6.1 and higher.
57696         * build-aux/config.libpath: Likewise.
57697         * build-aux/config.rpath: Likewise.
57698
57699 2008-01-08  Jim Meyering  <meyering@redhat.com>
57700             Bruno Haible  <bruno@clisp.org>
57701
57702         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
57703         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
57704         Reported by Peter Fales in
57705         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
57706
57707 2008-01-08  Bruno Haible  <bruno@clisp.org>
57708
57709         * modules/unictype/category-of (Depends-on): Add
57710         unictype/category-none.
57711         * modules/unictype/category-and-tests (Depends-on): Add
57712         unictype/category-{L,N,Lu,Nd}.
57713         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
57714         * modules/unictype/category-or-tests (Depends-on): Add
57715         unictype/category-{L,N}.
57716         * modules/unictype/category-name-tests (Depends-on): Add
57717         unictype/category-{Z,Nl}.
57718         Reported by Simon Josefsson.
57719
57720 2008-01-08  Bruno Haible  <bruno@clisp.org>
57721
57722         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
57723         convention better.
57724         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
57725         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
57726         Reported by Peter Miller <millerp@canb.auug.org.au>.
57727
57728 2008-01-08  Eric Blake  <ebb9@byu.net>
57729
57730         Rewrite memmem to guarantee linear complexity without malloc.
57731         * lib/memmem.c (memmem): Use Two-Way rather than
57732         Knuth-Morris-Pratt, to allow O(1) space usage.
57733         (critical_factorization, two_way_short_needle)
57734         (two_way_long_needle): New functions.
57735         (knuth_morris_pratt): Delete.
57736         * modules/memmem (Depends-on): No longer need malloca or stdbool.
57737         Add stdint.
57738         * tests/test-memmem.c (main): Add tests for periodic needle and
57739         sublinear performance.
57740         * doc/functions/memmem.texi (memmem): Document other deficiencies
57741         in cygwin and older glibc.
57742
57743 2008-01-08  Bruno Haible  <bruno@clisp.org>
57744
57745         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
57746         augmentation.
57747
57748 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
57749
57750         Add a configure time option: --disable-acl.
57751         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
57752         AC_ARG_ENABLE(acl).
57753
57754 2008-01-06  Simon Josefsson  <simon@josefsson.org>
57755
57756         * tests/test-localename.c: Don't include obsolete "setenv.h".
57757
57758         * modules/localename-tests (Depends-on): Need unsetenv.
57759
57760 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57761
57762         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
57763
57764 2008-01-06  Colin Watson  <cjwatson@debian.org>
57765
57766         * users.txt: Add man-db.
57767
57768 2008-01-07  Bruno Haible  <bruno@clisp.org>
57769
57770         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
57771         previous section name.
57772
57773 2008-01-07  Bruno Haible  <bruno@clisp.org>
57774
57775         * lib/progname.c (set_program_name): Don't strip off a leading
57776         "lt-" prefix outside a .libs directory.
57777         Suggested by Paul Eggert.
57778
57779 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
57780             Bruno Haible  <bruno@clisp.org>
57781
57782         Improve memory cleanup in 'relocatable' module.
57783         * lib/relocatable.h (compute_curr_prefix): Change return type to
57784         'char *'.
57785         * lib/relocatable.c (compute_curr_prefix): Change return type to
57786         'char *'. Free curr_installdir after use.
57787         (relocate): Free curr_prefix_better after use.
57788         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
57789
57790 2008-01-01  Bruno Haible  <bruno@clisp.org>
57791
57792         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
57793         failure on older glibc systems.
57794         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57795
57796 2008-01-05  Eric Blake  <ebb9@byu.net>
57797
57798         Avoid quadratic system memmem.
57799         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
57800         Reported by Ralf Wildenhues.
57801
57802         Fix memmem test for mingw.
57803         * modules/memmem-tests (configure.ac): Check for alarm.
57804         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
57805         it.
57806         * doc/functions/memmem.texi: New file.
57807         * doc/gnulib.texi (Function Substitutes): Add memmem.
57808         Reported by Bruno Haible.
57809
57810 2008-01-04  Bruno Haible  <bruno@clisp.org>
57811
57812         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
57813         Require gl_HEADER_STRINGS_H_DEFAULTS, not
57814         gl_HEADER_STRING_H_DEFAULTS.
57815
57816 2008-01-04  Eric Blake  <ebb9@byu.net>
57817
57818         Shorten duration of memmem test.
57819         * tests/test-memmem.c (main): Use alarm to declare failure if test
57820         is taking too long.
57821         Reported by Ralf Wildenhues.
57822
57823 2007-12-21  Simon Josefsson  <simon@josefsson.org>
57824
57825         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
57826         string, needed by strerror.
57827
57828 2008-01-03  Colin Watson  <cjwatson@debian.org>
57829             Bruno Haible  <bruno@clisp.org>
57830
57831         * doc/gnulib-tool.texi (Localization): New section.
57832
57833 2008-01-02  Bruno Haible  <bruno@clisp.org>
57834
57835         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
57836         variables to 'unsigned char *' type.
57837         Reported by Paul Eggert.
57838
57839 2008-01-02  Jim Meyering  <jim@meyering.net>
57840
57841         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
57842
57843 2007-12-31  Jim Meyering  <jim@meyering.net>
57844
57845         Avoid use of private FTS type name.
57846         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
57847
57848 2007-12-30  Karl Berry  <karl@gnu.org>
57849
57850         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
57851         work around defect in Texinfo and/or the standalone Info browser.
57852
57853 2007-12-30  Bruno Haible  <bruno@clisp.org>
57854
57855         Unify 5 copies of the KMP code.
57856         * lib/str-kmp.h: New file.
57857         * lib/c-strcasestr.c: Include str-kmp.h.
57858         (knuth_morris_pratt): Remove function.
57859         (c_strcasestr): Update.
57860         * lib/c-strstr.c: Include str-kmp.h.
57861         (knuth_morris_pratt): Remove function.
57862         (c_strcasestr): Update.
57863         * lib/mbscasestr.c: Include str-kmp.h.
57864         (knuth_morris_pratt_unibyte): Remove function.
57865         * lib/mbsstr.c: Include str-kmp.h.
57866         (knuth_morris_pratt_unibyte): Remove function.
57867         * lib/strcasestr.c: Include str-kmp.h.
57868         (knuth_morris_pratt): Remove function.
57869         (strcasestr): Update.
57870         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
57871         * modules/c-strstr (Files): Likewise.
57872         * modules/mbscasestr (Files): Likewise.
57873         * modules/mbsstr (Files): Likewise.
57874         * modules/strcasestr (Files): Likewise.
57875         Suggested by Paul Eggert.
57876
57877 2007-12-30  Bruno Haible  <bruno@clisp.org>
57878
57879         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
57880         defined.
57881
57882 2007-12-30  Bruno Haible  <bruno@clisp.org>
57883
57884         * lib/xmalloca.h: Include xalloc.h.
57885         (xnmalloca): New macro.
57886
57887 2007-12-30  Bruno Haible  <bruno@clisp.org>
57888
57889         * lib/malloca.h (nmalloca): New macro.
57890         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
57891         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
57892         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
57893         knuth_morris_pratt_multibyte): Likewise.
57894         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
57895         knuth_morris_pratt_multibyte): Likewise.
57896         * lib/memmem.c (knuth_morris_pratt): Likewise.
57897         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
57898
57899 2007-12-25  Bruno Haible  <bruno@clisp.org>
57900
57901         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
57902         * lib/glob.c: Don't include openat.h.
57903         (link_exists2_p): Add back the code that deals with the
57904         !GLOB_ALTDIRFUNC case.
57905         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
57906         let it do the filename concatenation.
57907         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
57908         * modules/glob (Depends-on): Remove openat.
57909
57910 2007-12-31  Bruno Haible  <bruno@clisp.org>
57911
57912         * modules/dirfd (License): Change to LGPLv2+.
57913         Approved by Jim Meyering.
57914
57915 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57916
57917         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
57918         when multiplying M by sizeof (size_t).
57919
57920 2007-12-10  Martin Lambers  <marlam@marlam.de>
57921
57922         Override getpagesize on mingw.
57923         * lib/getpagesize.c: New file.
57924         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
57925         * modules/getpagesize (Files): Add lib/getpagesize.c.
57926         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
57927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57928         REPLACE_GETPAGESIZE.
57929         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
57930
57931 2007-12-25  Bruno Haible  <bruno@clisp.org>
57932
57933         * modules/localcharset (Notice): New field.
57934         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
57935         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
57936
57937 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57938             Bruno Haible  <bruno@clisp.org>
57939
57940         Avoid using the syntax symbol() in formatted documentation.
57941         * MODULES.html.sh (func_module): When replacing symbol() with a
57942         hyperlink, remove the parentheses. Show an error if some remain.
57943         Recognize and render the '...' syntax.
57944         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
57945         Rework. Add paragraph about GCC's inlining.
57946         * doc/alloca.texi: Likewise.
57947         * doc/error.texi: Remove parentheses from symbol reference.
57948         * doc/gnulib-intro.texi: Likewise.
57949         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
57950         * modules/fnmatch (Description): Reword to say "the ... function".
57951         * modules/full-read (Description): Likewise.
57952         * modules/full-write (Description): Likewise.
57953         * modules/safe-read (Description): Likewise.
57954         * modules/safe-write (Description): Likewise.
57955         * modules/strchrnul (Description): Likewise.
57956         * modules/trim (Description): Likewise.
57957         * modules/error (Description): Remove parentheses from symbol
57958         references.
57959         * modules/verror (Description): Likewise.
57960         Reported by Karl Berry.
57961
57962 2007-12-25  Bruno Haible  <bruno@clisp.org>
57963
57964         Fixup after 2007-10-16 commit.
57965         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
57966
57967 2007-12-24  Bruno Haible  <bruno@clisp.org>
57968
57969         Make --enable-relocatable work with DESTDIR.
57970         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
57971         to compute installdir from destprog.
57972         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
57973         also set the RELOC_DESTDIR variable.
57974         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
57975
57976 2007-12-24  Bruno Haible  <bruno@clisp.org>
57977
57978         Fix link error due to xalloc_die().
57979         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
57980         of xreadlink.
57981         * lib/relocwrapper.c: Update comments.
57982         * build-aux/install-reloc: Remove xreadlink.c from file list.
57983         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
57984         xreadlink.c.
57985         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
57986
57987 2007-12-24  Bruno Haible  <bruno@clisp.org>
57988
57989         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
57990         * lib/setenv.h: Remove file.
57991         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
57992         lib/setenv.h.
57993         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
57994         (Depends-on): Add stdlib.
57995         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
57996         gl_FUNC_UNSETENV.
57997         (Include): Replace setenv.h with <stdlib.h>.
57998         * modules/unsetenv: New file.
57999         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58000         * lib/unsetenv.c: Include <stdlib.h> first.
58001         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58002         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58003         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58004         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58005         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58006         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58007         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58008         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58009         * doc/functions/unsetenv.texi: Update.
58010         * modules/xsetenv (Depends-on): Add unsetenv.
58011         * modules/getdate (Depends-on): Likewise.
58012         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58013         * lib/xsetenv.c: Don't include setenv.h.
58014         * lib/getdate.y: Likewise.
58015         * lib/relocwrapper.c: Likewise.
58016         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58017         (Depends-on): Add stdlib.
58018         * NEWS: Mention the changes.
58019         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58020
58021 2007-12-23  Bruno Haible  <bruno@clisp.org>
58022
58023         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58024         indentation.
58025
58026 2007-12-23  Bruno Haible  <bruno@clisp.org>
58027
58028         * lib/c-strcasestr.c: Add more comments.
58029         * lib/c-strstr.c: Likewise.
58030         * lib/mbscasestr.c: Likewise.
58031         * lib/mbsstr.c: Likewise.
58032         * lib/strcasestr.c: Likewise.
58033         * lib/memmem.c: Likewise.
58034
58035 2007-12-23  Bruno Haible  <bruno@clisp.org>
58036
58037         * tests/test-memmem.c: Include <string.h> first.
58038
58039 2007-12-22  Bruno Haible  <bruno@clisp.org>
58040
58041         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58042         the contents of $testsbase.
58043         Reported by Ralf Wildenhues.
58044
58045 2007-12-22  Bruno Haible  <bruno@clisp.org>
58046
58047         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58048         two variables local_ldadd_before, local_ldadd_last.
58049
58050 2007-12-20  Eric Blake  <ebb9@byu.net>
58051
58052         Work around circular library issue when cross-compiling.
58053         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58054         that progname.o does not need to pull in rpl_memcmp.
58055
58056 2007-12-19  Eric Blake  <ebb9@byu.net>
58057
58058         Fix memmem to avoid O(n^2) worst-case complexity.
58059         * lib/memmem.c (knuth_morris_pratt): New function.
58060         (memmem): Use it if first few naive iterations fail.
58061         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58062         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58063         * modules/memchr (License): Likewise.
58064         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58065         malloca.
58066         * tests/test-memmem.c: Rewrite, borrowing ideas from
58067         test-mbsstr1.c; the old version wouldn't even compile!
58068         * modules/memmem-tests: New file.
58069         * lib/string.in.h (rpl_memmem): Add declaration.
58070         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58071         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58072         REPLACE_MEMMEM.
58073
58074 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58075
58076         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58077         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58078         before any system include files, and undef after them all.  This
58079         should fix a problem on VMS reported by John E. Malmberg in
58080         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58081
58082 2007-12-17  Eric Blake  <ebb9@byu.net>
58083
58084         Revert addition of verify, for BSD/OS.
58085         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58086         can't handle large files, for the sake of obsolete platforms.
58087         * modules/fseeko (Depends-on): Remove verify.
58088         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58089         * doc/functions/ftello.texi (ftello): Likewise.
58090         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58091         Reported by Larry Jones.
58092
58093 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58094
58095         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58096         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58097
58098 2007-12-17  Jim Meyering  <meyering@redhat.com>
58099
58100         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58101         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58102         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58103         * modules/getcwd (Depends-on): Add openat.
58104         Reported by Petr Salinger.
58105
58106 2007-12-17  Bruno Haible  <bruno@clisp.org>
58107
58108         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58109         avoid a segmentation fault of the configure test on x86_64 systems.
58110
58111 2007-12-15  Jim Meyering  <meyering@redhat.com>
58112
58113         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58114
58115 2007-12-13  Eric Blake  <ebb9@byu.net>
58116
58117         Another fseek test.
58118         * tests/test-fseek.c (main): Also test ungetc handling.
58119         * tests/test-fseeko.c (main): Likewise.
58120         * modules/fseeko (Depends-on): Add verify.
58121         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58122         large.
58123         Reported by Larry Jones.
58124
58125         Fix fseeko on mingw.
58126         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58127         seek.
58128
58129         Beef up fseek tests.
58130         * tests/test-fseek.c (main): Also test eof handling.
58131         * tests/test-fseeko.c (main): Likewise.
58132         Reported by Larry Jones.
58133
58134 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58135
58136         Fix fseeko on BSD-based platforms.
58137         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58138         successful seek.
58139
58140 2007-12-12  Eric Blake  <ebb9@byu.net>
58141
58142         Allow circular dependency of separate libtests.a
58143         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58144         when use_libtests.
58145
58146 2007-12-11  Eric Blake  <ebb9@byu.net>
58147
58148         Fix bug with -0.0L in previous patch.
58149         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58150         * tests/test-isnan.c (main): Also test on zeroes.
58151         * tests/test-isnanf.c (main): Likewise.
58152         * tests/test-isnanl.h (main): Likewise.
58153
58154         Detect pseudo-denormals on x86 even when cross-compiling.
58155         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58156         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58157         invalid bit patterns that happen to satisfy ==.
58158
58159         Avoid link failures with separate libtests.a.
58160         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58161         last, to satisfy circular dependencies.
58162
58163 2007-12-11  Eric Blake  <ebb9@byu.net>
58164         and Bruno Haible  <bruno@clisp.org>
58165
58166         Fix OpenBSD 4.0 <float.h> handling of long double.
58167         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58168         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58169         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58170
58171 2007-12-11  Jim Meyering  <meyering@redhat.com>
58172
58173         * users.txt: Add libvirt.
58174
58175         Support versions of autoconf prior to 2.59c.
58176         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58177         if it is not already defined.
58178
58179 2007-12-09  Bruno Haible  <bruno@clisp.org>
58180
58181         Let 'gnulib-tool --import' collect sources needed for the tests in
58182         tests/ rather than in lib/.
58183         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58184         argument. If true, add rules to generate libtests.a, and put libtests.a
58185         into $(LDADD). Consider source files in subdirectories and set
58186         uses_subdirs.
58187         (func_emit_initmacro_start, func_emit_initmacro_end,
58188         func_emit_initmacro_done): Pass all arguments explicitly.
58189         (func_import): Determine two module lists main_modules,
58190         testsrelated_modules. Determine use_libtests. Determine two variables
58191         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58192         instead of just sed_transform_lib_file. Determine two variables
58193         main_files and testsrelated_files. Compute 'files' as the union of
58194         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58195         func_add_or_update. In the generated gnulib-comp.m4, collect the
58196         object files for tests/ in different variables than those for lib/.
58197         Substitute LIBTESTS_LIBDEPS.
58198         (func_create_testdir): Combine the uses_subdirs results from
58199         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58200
58201 2007-12-09  Bruno Haible  <bruno@clisp.org>
58202
58203         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58204         the build-aux directory.
58205
58206 2007-12-09  Bruno Haible  <bruno@clisp.org>
58207
58208         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58209         introduced on 2006-09-09.
58210
58211 2007-12-07  Jim Meyering  <meyering@redhat.com>
58212
58213         Let these macros work also with autoconf-2.59.
58214         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58215         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58216         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58217
58218 2007-12-06  Jim Meyering  <meyering@redhat.com>
58219
58220         Avoid a configure-time syntax error in gl_FUNC_ACL.
58221         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58222         function in each branch, before testing the cache variable.
58223
58224 2007-12-04  Eric Blake  <ebb9@byu.net>
58225
58226         Make scripts executable.
58227         * build-aux/config.guess: Add execute permissions.
58228         * build-aux/config.sub: Likewise.
58229         * build-aux/gendocs.sh: Likewise.
58230
58231         Fix frexp on mingw.
58232         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58233         cross-compiling.
58234         * doc/functions/frexp.texi (frexp): Document the bug.
58235
58236         Make cygwin fseeko check more reliable.
58237         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58238         version numbers, rather than unrelated feature check.
58239         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58240         * doc/functions/ftello.texi (ftello): Likewise.
58241         Reported by Bruno Haible.
58242
58243         * m4/strerror.m4: Bump version number.
58244
58245 2007-12-03  Bruno Haible  <bruno@clisp.org>
58246
58247         * doc/functions/mprotect.texi: Mention the mingw problem.
58248
58249 2007-12-03  Eric Blake  <ebb9@byu.net>
58250
58251         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58252         REPLACE_STRERROR is initialized before this macro.
58253
58254 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58255
58256         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58257         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58258         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58259         put -lsec in even for programs other than 'ls'.  This fixes a problem
58260         for gettext reported by Bruno Haible in
58261         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58262         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58263         Add support for Solaris 10.  This isn't efficient, but should get the
58264         job done for now.
58265
58266 2007-12-03  James Youngman  <jay@gnu.org>
58267
58268         * doc/regexprops-generic.texi: change "an close-group" to "a
58269         close-group" and "illegal" to "not allowed".
58270
58271 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58272
58273         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58274         pr_byname.h. Needed for the rare case when the maintainer has done
58275         "make maintainer-clean" in the source directory and then attempts a
58276         build outside the source directory.
58277         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58278         scripts_byname.h.
58279
58280 2007-12-02  Martin Lambers <marlam@marlam.de>
58281             Bruno Haible  <bruno@clisp.org>
58282
58283         * lib/getpagesize.h: Remove file.
58284         * lib/unistd.in.h: Include declaration of getpagesize here.
58285         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58286         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58287         HAVE_SYS_PARAM_H.
58288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58289         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58290         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58291         (Depends-on): Add unistd.
58292         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58293         (Include): Use <unistd.h> instead of getpagesize.h.
58294         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58295         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58296         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58297         gl_GETPAGESIZE invocation, already handled by module dependency.
58298         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58299
58300 2007-12-02  Bruno Haible  <bruno@clisp.org>
58301
58302         * modules/strings-tests: New file.
58303         * tests/test-strings.c: New file.
58304
58305         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58306         * lib/strings.in.h: New file.
58307         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58308         * m4/strings_h.m4: New file.
58309         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58310         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58311         * modules/strings: New file.
58312         * modules/string (Makefile.am): Update.
58313         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58314         Reported by Karl Berry.
58315
58316 2007-12-01  Eric Blake  <ebb9@byu.net>
58317
58318         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58319         accomodate fix in cygwin 1.5.25.
58320
58321 2007-12-01  Jim Meyering  <meyering@redhat.com>
58322
58323         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
58324         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
58325         that would inhibit utf8-optimization of a regexp containing line-
58326         or buffer-anchors, e.g., `^', `$'.
58327
58328 2007-11-30  Bruno Haible  <bruno@clisp.org>
58329
58330         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
58331         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
58332         glthread_recursive_lock_init.
58333         * lib/lock.c (glthread_recursive_lock_init)
58334         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
58335         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58336
58337 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
58338
58339         New function qset_acl, like set_acl but with syscall semantics.
58340         * lib/acl.h (qset_acl): New decl.
58341         * lib/acl.c (qset_acl): New function.
58342         (set_acl): Use new function.  Use more-consistent diagnostics.
58343
58344 2007-11-28  Jim Meyering  <meyering@redhat.com>
58345
58346         * modules/physmem (License): Change from GPL to LGPLv2+.
58347
58348 2007-11-26  Bruno Haible  <bruno@clisp.org>
58349
58350         * lib/vasnprintf.c (decode_long_double): Don't abort if the
58351         'long double' type has excess precision.
58352         Reported by Jim Meyering in
58353         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
58354
58355 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58356
58357         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58358         Sync from <http://gnu.org/licenses>.
58359         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58360         with license text from same location.
58361         * doc/maintain.texi, doc/standards.texi:  Sync from
58362         <http://savannah.gnu.org/projects/gnustandards>.
58363
58364 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
58365         and Jim Meyering  <meyering@redhat.com>
58366
58367         Adjust getdate' grammar to accept a slightly more regular language.
58368         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58369         Before, the former was rejected.
58370         * lib/getdate.y (digits_to_date_time): New function, factored
58371         out of ...
58372         (number): ...here.  Just call digits_to_date_time.
58373         (hybrid): New non-terminal to handle an <unsigned number,
58374         signed relative offset> sequence consistently.
58375
58376 2007-11-18  Jim Meyering  <meyering@redhat.com>
58377
58378         Pull my changes from coreutils:
58379         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58380         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58381         use of $gnulib_tool_option_extras, so that it's separated from the
58382         preceding argument.
58383
58384         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58385         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58386         parent destination directories before copying a file into place.
58387
58388 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58389
58390         bootstrap: work also with 4-argument variant of AC_INIT
58391         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58392
58393 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58394
58395         Port test-getaddrinfo to Solaris.
58396         Problem reported by Bruno Haible in
58397         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
58398         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
58399         explanation of setting 'hints'.
58400         Don't reject an implementation merely because it returns EAI_SERVICE.
58401         (EAI_SERVICE): Define to 0 if not defined.
58402
58403 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58404
58405         The license of gnu-make and posix-shell is now "GPLed build tool".
58406         * modules/gnu-make (License): Likewise.
58407         * modules/posix-shell (License): Likewise.
58408
58409         New module posix-shell, for determining a POSIX shell
58410         or perhaps something that is close enough to a POSIX shell.
58411         * m4/posix-shell.m4: New file.
58412         * modules/posix-shell: New file.
58413
58414         * MODULES.html.sh: Mention new module.
58415
58416         New module gnu-make, for determining whether we're using GNU Make.
58417         * m4/gnu-make.m4: New file.
58418         * modules/gnu-make: New file.
58419         * MODULES.html.sh: Mention new module.
58420
58421 2007-11-14  Jim Meyering  <meyering@redhat.com>
58422
58423         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
58424         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
58425         use this macro to create a function _definition_.
58426         Remove useless "#undef ARGMATCH_DIE".
58427
58428 2007-11-14  Bruno Haible  <bruno@clisp.org>
58429
58430         * lib/config.charset: Update for OpenBSD 4.1.
58431         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
58432
58433 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
58434
58435         Document 64-bit #if problems in stdint.texi.
58436         * doc/headers/stdint.texi (stdint.h): Mention problems with
58437         64-bit-#if, and how to work around them.
58438
58439         Don't insist on 'long long int' support in the preprocessor.  It
58440         breaks too many things.  For example, PRIdMAX still uses a 'long
58441         long int' format with the latest Sun compiler, even though
58442         HAVE_LONG_LONG_INT isn't defined due to that compiler's
58443         preprocessor problem.  This causes the latest coreutils to dump
58444         core on Solaris 10 sparc with the Sun C compiler.
58445         Instead, fix the 2007-10-16 problem in a different way, by evaluating
58446         the troublesome expressions at configure-time, not at #if-time.
58447         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
58448         preprocessor.
58449         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
58450         compile-time C checks, done at 'configure'-time.
58451         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
58452         * modules/inttypes (Makefile): Substitute the new symbols that
58453         gl_INTTYPES_H now generates.
58454         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
58455
58456 2007-11-12  Bruno Haible  <bruno@clisp.org>
58457
58458         Tests for Unicode character classification functions.
58459
58460         * modules/unictype/bidicategory-byname-tests: New file.
58461         * modules/unictype/bidicategory-name-tests: New file.
58462         * modules/unictype/bidicategory-of-tests: New file.
58463         * modules/unictype/bidicategory-test-tests: New file.
58464         * modules/unictype/block-list-tests: New file.
58465         * modules/unictype/block-of-tests: New file.
58466         * modules/unictype/block-test-tests: New file.
58467         * modules/unictype/category-C-tests: New file.
58468         * modules/unictype/category-Cc-tests: New file.
58469         * modules/unictype/category-Cf-tests: New file.
58470         * modules/unictype/category-Cn-tests: New file.
58471         * modules/unictype/category-Co-tests: New file.
58472         * modules/unictype/category-Cs-tests: New file.
58473         * modules/unictype/category-L-tests: New file.
58474         * modules/unictype/category-Ll-tests: New file.
58475         * modules/unictype/category-Lm-tests: New file.
58476         * modules/unictype/category-Lo-tests: New file.
58477         * modules/unictype/category-Lt-tests: New file.
58478         * modules/unictype/category-Lu-tests: New file.
58479         * modules/unictype/category-M-tests: New file.
58480         * modules/unictype/category-Mc-tests: New file.
58481         * modules/unictype/category-Me-tests: New file.
58482         * modules/unictype/category-Mn-tests: New file.
58483         * modules/unictype/category-N-tests: New file.
58484         * modules/unictype/category-Nd-tests: New file.
58485         * modules/unictype/category-Nl-tests: New file.
58486         * modules/unictype/category-No-tests: New file.
58487         * modules/unictype/category-P-tests: New file.
58488         * modules/unictype/category-Pc-tests: New file.
58489         * modules/unictype/category-Pd-tests: New file.
58490         * modules/unictype/category-Pe-tests: New file.
58491         * modules/unictype/category-Pf-tests: New file.
58492         * modules/unictype/category-Pi-tests: New file.
58493         * modules/unictype/category-Po-tests: New file.
58494         * modules/unictype/category-Ps-tests: New file.
58495         * modules/unictype/category-S-tests: New file.
58496         * modules/unictype/category-Sc-tests: New file.
58497         * modules/unictype/category-Sk-tests: New file.
58498         * modules/unictype/category-Sm-tests: New file.
58499         * modules/unictype/category-So-tests: New file.
58500         * modules/unictype/category-Z-tests: New file.
58501         * modules/unictype/category-Zl-tests: New file.
58502         * modules/unictype/category-Zp-tests: New file.
58503         * modules/unictype/category-Zs-tests: New file.
58504         * modules/unictype/category-and-not-tests: New file.
58505         * modules/unictype/category-and-tests: New file.
58506         * modules/unictype/category-byname-tests: New file.
58507         * modules/unictype/category-name-tests: New file.
58508         * modules/unictype/category-none-tests: New file.
58509         * modules/unictype/category-of-tests: New file.
58510         * modules/unictype/category-or-tests: New file.
58511         * modules/unictype/category-test-withtable-tests: New file.
58512         * modules/unictype/combining-class-tests: New file.
58513         * modules/unictype/ctype-alnum-tests: New file.
58514         * modules/unictype/ctype-alpha-tests: New file.
58515         * modules/unictype/ctype-blank-tests: New file.
58516         * modules/unictype/ctype-cntrl-tests: New file.
58517         * modules/unictype/ctype-digit-tests: New file.
58518         * modules/unictype/ctype-graph-tests: New file.
58519         * modules/unictype/ctype-lower-tests: New file.
58520         * modules/unictype/ctype-print-tests: New file.
58521         * modules/unictype/ctype-punct-tests: New file.
58522         * modules/unictype/ctype-space-tests: New file.
58523         * modules/unictype/ctype-upper-tests: New file.
58524         * modules/unictype/ctype-xdigit-tests: New file.
58525         * modules/unictype/decimal-digit-tests: New file.
58526         * modules/unictype/digit-tests: New file.
58527         * modules/unictype/mirror-tests: New file.
58528         * modules/unictype/numeric-tests: New file.
58529         * modules/unictype/property-alphabetic-tests: New file.
58530         * modules/unictype/property-ascii-hex-digit-tests: New file.
58531         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58532         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58533         * modules/unictype/property-bidi-block-separator-tests: New file.
58534         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58535         * modules/unictype/property-bidi-common-separator-tests: New file.
58536         * modules/unictype/property-bidi-control-tests: New file.
58537         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58538         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58539         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58540         * modules/unictype/property-bidi-european-digit-tests: New file.
58541         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58542         * modules/unictype/property-bidi-left-to-right-tests: New file.
58543         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58544         * modules/unictype/property-bidi-other-neutral-tests: New file.
58545         * modules/unictype/property-bidi-pdf-tests: New file.
58546         * modules/unictype/property-bidi-segment-separator-tests: New file.
58547         * modules/unictype/property-bidi-whitespace-tests: New file.
58548         * modules/unictype/property-byname-tests: New file.
58549         * modules/unictype/property-combining-tests: New file.
58550         * modules/unictype/property-composite-tests: New file.
58551         * modules/unictype/property-currency-symbol-tests: New file.
58552         * modules/unictype/property-dash-tests: New file.
58553         * modules/unictype/property-decimal-digit-tests: New file.
58554         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58555         * modules/unictype/property-deprecated-tests: New file.
58556         * modules/unictype/property-diacritic-tests: New file.
58557         * modules/unictype/property-extender-tests: New file.
58558         * modules/unictype/property-format-control-tests: New file.
58559         * modules/unictype/property-grapheme-base-tests: New file.
58560         * modules/unictype/property-grapheme-extend-tests: New file.
58561         * modules/unictype/property-grapheme-link-tests: New file.
58562         * modules/unictype/property-hex-digit-tests: New file.
58563         * modules/unictype/property-hyphen-tests: New file.
58564         * modules/unictype/property-id-continue-tests: New file.
58565         * modules/unictype/property-id-start-tests: New file.
58566         * modules/unictype/property-ideographic-tests: New file.
58567         * modules/unictype/property-ids-binary-operator-tests: New file.
58568         * modules/unictype/property-ids-trinary-operator-tests: New file.
58569         * modules/unictype/property-ignorable-control-tests: New file.
58570         * modules/unictype/property-iso-control-tests: New file.
58571         * modules/unictype/property-join-control-tests: New file.
58572         * modules/unictype/property-left-of-pair-tests: New file.
58573         * modules/unictype/property-line-separator-tests: New file.
58574         * modules/unictype/property-logical-order-exception-tests: New file.
58575         * modules/unictype/property-lowercase-tests: New file.
58576         * modules/unictype/property-math-tests: New file.
58577         * modules/unictype/property-non-break-tests: New file.
58578         * modules/unictype/property-not-a-character-tests: New file.
58579         * modules/unictype/property-numeric-tests: New file.
58580         * modules/unictype/property-other-alphabetic-tests: New file.
58581         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58582         * modules/unictype/property-other-grapheme-extend-tests: New file.
58583         * modules/unictype/property-other-id-continue-tests: New file.
58584         * modules/unictype/property-other-id-start-tests: New file.
58585         * modules/unictype/property-other-lowercase-tests: New file.
58586         * modules/unictype/property-other-math-tests: New file.
58587         * modules/unictype/property-other-uppercase-tests: New file.
58588         * modules/unictype/property-paired-punctuation-tests: New file.
58589         * modules/unictype/property-paragraph-separator-tests: New file.
58590         * modules/unictype/property-pattern-syntax-tests: New file.
58591         * modules/unictype/property-pattern-white-space-tests: New file.
58592         * modules/unictype/property-private-use-tests: New file.
58593         * modules/unictype/property-punctuation-tests: New file.
58594         * modules/unictype/property-quotation-mark-tests: New file.
58595         * modules/unictype/property-radical-tests: New file.
58596         * modules/unictype/property-sentence-terminal-tests: New file.
58597         * modules/unictype/property-soft-dotted-tests: New file.
58598         * modules/unictype/property-space-tests: New file.
58599         * modules/unictype/property-terminal-punctuation-tests: New file.
58600         * modules/unictype/property-test-tests: New file.
58601         * modules/unictype/property-titlecase-tests: New file.
58602         * modules/unictype/property-unassigned-code-value-tests: New file.
58603         * modules/unictype/property-unified-ideograph-tests: New file.
58604         * modules/unictype/property-uppercase-tests: New file.
58605         * modules/unictype/property-variation-selector-tests: New file.
58606         * modules/unictype/property-white-space-tests: New file.
58607         * modules/unictype/property-xid-continue-tests: New file.
58608         * modules/unictype/property-xid-start-tests: New file.
58609         * modules/unictype/property-zero-width-tests: New file.
58610         * modules/unictype/scripts-tests: New file.
58611         * modules/unictype/syntax-c-ident-tests: New file.
58612         * modules/unictype/syntax-c-whitespace-tests: New file.
58613         * modules/unictype/syntax-java-ident-tests: New file.
58614         * modules/unictype/syntax-java-whitespace-tests: New file.
58615         * tests/unictype/test-bidi_byname.c: New file.
58616         * tests/unictype/test-bidi_name.c: New file.
58617         * tests/unictype/test-bidi_of.c: New file.
58618         * tests/unictype/test-bidi_test.c: New file.
58619         * tests/unictype/test-block_list.c: New file.
58620         * tests/unictype/test-block_of.c: New file.
58621         * tests/unictype/test-block_test.c: New file.
58622         * tests/unictype/test-categ_and.c: New file.
58623         * tests/unictype/test-categ_and_not.c: New file.
58624         * tests/unictype/test-categ_byname.c: New file.
58625         * tests/unictype/test-categ_name.c: New file.
58626         * tests/unictype/test-categ_none.c: New file.
58627         * tests/unictype/test-categ_of.c: New file.
58628         * tests/unictype/test-categ_or.c: New file.
58629         * tests/unictype/test-categ_test_withtable.c: New file.
58630         * tests/unictype/test-combining.c: New file.
58631         * tests/unictype/test-decdigit.c: New file.
58632         * tests/unictype/test-digit.c: New file.
58633         * tests/unictype/test-mirror.c: New file.
58634         * tests/unictype/test-numeric.c: New file.
58635         * tests/unictype/test-pr_byname.c: New file.
58636         * tests/unictype/test-pr_test.c: New file.
58637         * tests/unictype/test-predicate-part1.h: New file.
58638         * tests/unictype/test-predicate-part2.h: New file.
58639         * tests/unictype/test-scripts.c: New file.
58640         * tests/unictype/test-sy_c_ident.c: New file.
58641         * tests/unictype/test-sy_java_ident.c: New file.
58642
58643         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58644         for Unicode 5.0.0.
58645         * tests/unictype/test-categ_Cc.c: Likewise.
58646         * tests/unictype/test-categ_Cf.c: Likewise.
58647         * tests/unictype/test-categ_Cn.c: Likewise.
58648         * tests/unictype/test-categ_Co.c: Likewise.
58649         * tests/unictype/test-categ_Cs.c: Likewise.
58650         * tests/unictype/test-categ_L.c: Likewise.
58651         * tests/unictype/test-categ_Ll.c: Likewise.
58652         * tests/unictype/test-categ_Lm.c: Likewise.
58653         * tests/unictype/test-categ_Lo.c: Likewise.
58654         * tests/unictype/test-categ_Lt.c: Likewise.
58655         * tests/unictype/test-categ_Lu.c: Likewise.
58656         * tests/unictype/test-categ_M.c: Likewise.
58657         * tests/unictype/test-categ_Mc.c: Likewise.
58658         * tests/unictype/test-categ_Me.c: Likewise.
58659         * tests/unictype/test-categ_Mn.c: Likewise.
58660         * tests/unictype/test-categ_N.c: Likewise.
58661         * tests/unictype/test-categ_Nd.c: Likewise.
58662         * tests/unictype/test-categ_Nl.c: Likewise.
58663         * tests/unictype/test-categ_No.c: Likewise.
58664         * tests/unictype/test-categ_P.c: Likewise.
58665         * tests/unictype/test-categ_Pc.c: Likewise.
58666         * tests/unictype/test-categ_Pd.c: Likewise.
58667         * tests/unictype/test-categ_Pe.c: Likewise.
58668         * tests/unictype/test-categ_Pf.c: Likewise.
58669         * tests/unictype/test-categ_Pi.c: Likewise.
58670         * tests/unictype/test-categ_Po.c: Likewise.
58671         * tests/unictype/test-categ_Ps.c: Likewise.
58672         * tests/unictype/test-categ_S.c: Likewise.
58673         * tests/unictype/test-categ_Sc.c: Likewise.
58674         * tests/unictype/test-categ_Sk.c: Likewise.
58675         * tests/unictype/test-categ_Sm.c: Likewise.
58676         * tests/unictype/test-categ_So.c: Likewise.
58677         * tests/unictype/test-categ_Z.c: Likewise.
58678         * tests/unictype/test-categ_Zl.c: Likewise.
58679         * tests/unictype/test-categ_Zp.c: Likewise.
58680         * tests/unictype/test-categ_Zs.c: Likewise.
58681         * tests/unictype/test-ctype_alnum.c: Likewise.
58682         * tests/unictype/test-ctype_alpha.c: Likewise.
58683         * tests/unictype/test-ctype_blank.c: Likewise.
58684         * tests/unictype/test-ctype_cntrl.c: Likewise.
58685         * tests/unictype/test-ctype_digit.c: Likewise.
58686         * tests/unictype/test-ctype_graph.c: Likewise.
58687         * tests/unictype/test-ctype_lower.c: Likewise.
58688         * tests/unictype/test-ctype_print.c: Likewise.
58689         * tests/unictype/test-ctype_punct.c: Likewise.
58690         * tests/unictype/test-ctype_space.c: Likewise.
58691         * tests/unictype/test-ctype_upper.c: Likewise.
58692         * tests/unictype/test-ctype_xdigit.c: Likewise.
58693         * tests/unictype/test-decdigit.h: Likewise.
58694         * tests/unictype/test-digit.h: Likewise.
58695         * tests/unictype/test-numeric.h: Likewise.
58696         * tests/unictype/test-pr_alphabetic.c: Likewise.
58697         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
58698         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58699         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
58700         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
58701         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
58702         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
58703         * tests/unictype/test-pr_bidi_control.c: Likewise.
58704         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
58705         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
58706         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58707         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58708         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58709         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58710         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58711         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58712         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
58713         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
58714         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
58715         * tests/unictype/test-pr_combining.c: Likewise.
58716         * tests/unictype/test-pr_composite.c: Likewise.
58717         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58718         * tests/unictype/test-pr_dash.c: Likewise.
58719         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58720         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
58721         * tests/unictype/test-pr_deprecated.c: Likewise.
58722         * tests/unictype/test-pr_diacritic.c: Likewise.
58723         * tests/unictype/test-pr_extender.c: Likewise.
58724         * tests/unictype/test-pr_format_control.c: Likewise.
58725         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58726         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58727         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58728         * tests/unictype/test-pr_hex_digit.c: Likewise.
58729         * tests/unictype/test-pr_hyphen.c: Likewise.
58730         * tests/unictype/test-pr_id_continue.c: Likewise.
58731         * tests/unictype/test-pr_id_start.c: Likewise.
58732         * tests/unictype/test-pr_ideographic.c: Likewise.
58733         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
58734         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
58735         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58736         * tests/unictype/test-pr_iso_control.c: Likewise.
58737         * tests/unictype/test-pr_join_control.c: Likewise.
58738         * tests/unictype/test-pr_left_of_pair.c: Likewise.
58739         * tests/unictype/test-pr_line_separator.c: Likewise.
58740         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58741         * tests/unictype/test-pr_lowercase.c: Likewise.
58742         * tests/unictype/test-pr_math.c: Likewise.
58743         * tests/unictype/test-pr_non_break.c: Likewise.
58744         * tests/unictype/test-pr_not_a_character.c: Likewise.
58745         * tests/unictype/test-pr_numeric.c: Likewise.
58746         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58747         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
58748         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
58749         * tests/unictype/test-pr_other_id_continue.c: Likewise.
58750         * tests/unictype/test-pr_other_id_start.c: Likewise.
58751         * tests/unictype/test-pr_other_lowercase.c: Likewise.
58752         * tests/unictype/test-pr_other_math.c: Likewise.
58753         * tests/unictype/test-pr_other_uppercase.c: Likewise.
58754         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
58755         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
58756         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
58757         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
58758         * tests/unictype/test-pr_private_use.c: Likewise.
58759         * tests/unictype/test-pr_punctuation.c: Likewise.
58760         * tests/unictype/test-pr_quotation_mark.c: Likewise.
58761         * tests/unictype/test-pr_radical.c: Likewise.
58762         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58763         * tests/unictype/test-pr_soft_dotted.c: Likewise.
58764         * tests/unictype/test-pr_space.c: Likewise.
58765         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58766         * tests/unictype/test-pr_titlecase.c: Likewise.
58767         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58768         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58769         * tests/unictype/test-pr_uppercase.c: Likewise.
58770         * tests/unictype/test-pr_variation_selector.c: Likewise.
58771         * tests/unictype/test-pr_white_space.c: Likewise.
58772         * tests/unictype/test-pr_xid_continue.c: Likewise.
58773         * tests/unictype/test-pr_xid_start.c: Likewise.
58774         * tests/unictype/test-pr_zero_width.c: Likewise.
58775         * tests/unictype/test-sy_c_whitespace.c: Likewise.
58776         * tests/unictype/test-sy_java_whitespace.c: Likewise.
58777
58778 2007-11-12  Bruno Haible  <bruno@clisp.org>
58779
58780         Unicode character classification functions.
58781         * lib/unictype.h: New file.
58782         * modules/unictype/base: New file.
58783         * modules/unictype/category-L: New file.
58784         * modules/unictype/category-Lu: New file.
58785         * modules/unictype/category-Ll: New file.
58786         * modules/unictype/category-Lt: New file.
58787         * modules/unictype/category-Lm: New file.
58788         * modules/unictype/category-Lo: New file.
58789         * modules/unictype/category-M: New file.
58790         * modules/unictype/category-Mn: New file.
58791         * modules/unictype/category-Mc: New file.
58792         * modules/unictype/category-Me: New file.
58793         * modules/unictype/category-N: New file.
58794         * modules/unictype/category-Nd: New file.
58795         * modules/unictype/category-Nl: New file.
58796         * modules/unictype/category-No: New file.
58797         * modules/unictype/category-P: New file.
58798         * modules/unictype/category-Pc: New file.
58799         * modules/unictype/category-Pd: New file.
58800         * modules/unictype/category-Ps: New file.
58801         * modules/unictype/category-Pe: New file.
58802         * modules/unictype/category-Pi: New file.
58803         * modules/unictype/category-Pf: New file.
58804         * modules/unictype/category-Po: New file.
58805         * modules/unictype/category-S: New file.
58806         * modules/unictype/category-Sm: New file.
58807         * modules/unictype/category-Sc: New file.
58808         * modules/unictype/category-Sk: New file.
58809         * modules/unictype/category-So: New file.
58810         * modules/unictype/category-Z: New file.
58811         * modules/unictype/category-Zs: New file.
58812         * modules/unictype/category-Zl: New file.
58813         * modules/unictype/category-Zp: New file.
58814         * modules/unictype/category-C: New file.
58815         * modules/unictype/category-Cc: New file.
58816         * modules/unictype/category-Cf: New file.
58817         * modules/unictype/category-Cs: New file.
58818         * modules/unictype/category-Co: New file.
58819         * modules/unictype/category-Cn: New file.
58820         * modules/unictype/category-or: New file.
58821         * modules/unictype/category-of: New file.
58822         * modules/unictype/category-test: New file.
58823         * modules/unictype/category-test-withtable: New file.
58824         * modules/unictype/category-byname: New file.
58825         * modules/unictype/category-none: New file.
58826         * modules/unictype/category-and: New file.
58827         * modules/unictype/category-and-not: New file.
58828         * modules/unictype/category-name: New file.
58829         * modules/unictype/combining-class: New file.
58830         * modules/unictype/category-all: New file.
58831         * modules/unictype/bidicategory-all: New file.
58832         * modules/unictype/bidicategory-byname: New file.
58833         * modules/unictype/bidicategory-name: New file.
58834         * modules/unictype/bidicategory-of: New file.
58835         * modules/unictype/bidicategory-test: New file.
58836         * modules/unictype/decimal-digit: New file.
58837         * modules/unictype/digit: New file.
58838         * modules/unictype/numeric: New file.
58839         * modules/unictype/mirror: New file.
58840         * modules/unictype/property-white-space: New file.
58841         * modules/unictype/property-alphabetic: New file.
58842         * modules/unictype/property-other-alphabetic: New file.
58843         * modules/unictype/property-not-a-character: New file.
58844         * modules/unictype/property-default-ignorable-code-point: New file.
58845         * modules/unictype/property-other-default-ignorable-code-point: New
58846         file.
58847         * modules/unictype/property-deprecated: New file.
58848         * modules/unictype/property-logical-order-exception: New file.
58849         * modules/unictype/property-variation-selector: New file.
58850         * modules/unictype/property-private-use: New file.
58851         * modules/unictype/property-unassigned-code-value: New file.
58852         * modules/unictype/property-uppercase: New file.
58853         * modules/unictype/property-other-uppercase: New file.
58854         * modules/unictype/property-lowercase: New file.
58855         * modules/unictype/property-other-lowercase: New file.
58856         * modules/unictype/property-titlecase: New file.
58857         * modules/unictype/property-soft-dotted: New file.
58858         * modules/unictype/property-id-start: New file.
58859         * modules/unictype/property-other-id-start: New file.
58860         * modules/unictype/property-id-continue: New file.
58861         * modules/unictype/property-other-id-continue: New file.
58862         * modules/unictype/property-xid-start: New file.
58863         * modules/unictype/property-xid-continue: New file.
58864         * modules/unictype/property-pattern-white-space: New file.
58865         * modules/unictype/property-pattern-syntax: New file.
58866         * modules/unictype/property-join-control: New file.
58867         * modules/unictype/property-grapheme-base: New file.
58868         * modules/unictype/property-grapheme-extend: New file.
58869         * modules/unictype/property-other-grapheme-extend: New file.
58870         * modules/unictype/property-grapheme-link: New file.
58871         * modules/unictype/property-bidi-control: New file.
58872         * modules/unictype/property-bidi-left-to-right: New file.
58873         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
58874         * modules/unictype/property-bidi-arabic-right-to-left: New file.
58875         * modules/unictype/property-bidi-european-digit: New file.
58876         * modules/unictype/property-bidi-eur-num-separator: New file.
58877         * modules/unictype/property-bidi-eur-num-terminator: New file.
58878         * modules/unictype/property-bidi-arabic-digit: New file.
58879         * modules/unictype/property-bidi-common-separator: New file.
58880         * modules/unictype/property-bidi-block-separator: New file.
58881         * modules/unictype/property-bidi-segment-separator: New file.
58882         * modules/unictype/property-bidi-whitespace: New file.
58883         * modules/unictype/property-bidi-non-spacing-mark: New file.
58884         * modules/unictype/property-bidi-boundary-neutral: New file.
58885         * modules/unictype/property-bidi-pdf: New file.
58886         * modules/unictype/property-bidi-embedding-or-override: New file.
58887         * modules/unictype/property-bidi-other-neutral: New file.
58888         * modules/unictype/property-hex-digit: New file.
58889         * modules/unictype/property-ascii-hex-digit: New file.
58890         * modules/unictype/property-ideographic: New file.
58891         * modules/unictype/property-unified-ideograph: New file.
58892         * modules/unictype/property-radical: New file.
58893         * modules/unictype/property-ids-binary-operator: New file.
58894         * modules/unictype/property-ids-trinary-operator: New file.
58895         * modules/unictype/property-zero-width: New file.
58896         * modules/unictype/property-space: New file.
58897         * modules/unictype/property-non-break: New file.
58898         * modules/unictype/property-iso-control: New file.
58899         * modules/unictype/property-format-control: New file.
58900         * modules/unictype/property-dash: New file.
58901         * modules/unictype/property-hyphen: New file.
58902         * modules/unictype/property-punctuation: New file.
58903         * modules/unictype/property-line-separator: New file.
58904         * modules/unictype/property-paragraph-separator: New file.
58905         * modules/unictype/property-quotation-mark: New file.
58906         * modules/unictype/property-sentence-terminal: New file.
58907         * modules/unictype/property-terminal-punctuation: New file.
58908         * modules/unictype/property-currency-symbol: New file.
58909         * modules/unictype/property-math: New file.
58910         * modules/unictype/property-other-math: New file.
58911         * modules/unictype/property-paired-punctuation: New file.
58912         * modules/unictype/property-left-of-pair: New file.
58913         * modules/unictype/property-combining: New file.
58914         * modules/unictype/property-composite: New file.
58915         * modules/unictype/property-decimal-digit: New file.
58916         * modules/unictype/property-numeric: New file.
58917         * modules/unictype/property-diacritic: New file.
58918         * modules/unictype/property-extender: New file.
58919         * modules/unictype/property-ignorable-control: New file.
58920         * modules/unictype/property-test: New file.
58921         * modules/unictype/property-byname: New file.
58922         * modules/unictype/property-all: New file.
58923         * modules/unictype/scripts: New file.
58924         * modules/unictype/scripts-all: New file.
58925         * modules/unictype/block-of: New file.
58926         * modules/unictype/block-test: New file.
58927         * modules/unictype/block-list: New file.
58928         * modules/unictype/block-all: New file.
58929         * modules/unictype/syntax-c-whitespace: New file.
58930         * modules/unictype/syntax-java-whitespace: New file.
58931         * modules/unictype/syntax-c-ident: New file.
58932         * modules/unictype/syntax-java-ident: New file.
58933         * modules/unictype/ctype-alnum: New file.
58934         * modules/unictype/ctype-alpha: New file.
58935         * modules/unictype/ctype-cntrl: New file.
58936         * modules/unictype/ctype-digit: New file.
58937         * modules/unictype/ctype-graph: New file.
58938         * modules/unictype/ctype-lower: New file.
58939         * modules/unictype/ctype-print: New file.
58940         * modules/unictype/ctype-punct: New file.
58941         * modules/unictype/ctype-space: New file.
58942         * modules/unictype/ctype-upper: New file.
58943         * modules/unictype/ctype-xdigit: New file.
58944         * modules/unictype/ctype-blank: New file.
58945         * lib/unictype/bidi_byname.c: New file.
58946         * lib/unictype/bidi_name.c: New file.
58947         * lib/unictype/bidi_of.c: New file.
58948         * lib/unictype/bidi_test.c: New file.
58949         * lib/unictype/bitmap.h: New file.
58950         * lib/unictype/block_test.c: New file.
58951         * lib/unictype/blocks.c: New file.
58952         * lib/unictype/categ_C.c: New file.
58953         * lib/unictype/categ_Cc.c: New file.
58954         * lib/unictype/categ_Cf.c: New file.
58955         * lib/unictype/categ_Cn.c: New file.
58956         * lib/unictype/categ_Co.c: New file.
58957         * lib/unictype/categ_Cs.c: New file.
58958         * lib/unictype/categ_L.c: New file.
58959         * lib/unictype/categ_Ll.c: New file.
58960         * lib/unictype/categ_Lm.c: New file.
58961         * lib/unictype/categ_Lo.c: New file.
58962         * lib/unictype/categ_Lt.c: New file.
58963         * lib/unictype/categ_Lu.c: New file.
58964         * lib/unictype/categ_M.c: New file.
58965         * lib/unictype/categ_Mc.c: New file.
58966         * lib/unictype/categ_Me.c: New file.
58967         * lib/unictype/categ_Mn.c: New file.
58968         * lib/unictype/categ_N.c: New file.
58969         * lib/unictype/categ_Nd.c: New file.
58970         * lib/unictype/categ_Nl.c: New file.
58971         * lib/unictype/categ_No.c: New file.
58972         * lib/unictype/categ_P.c: New file.
58973         * lib/unictype/categ_Pc.c: New file.
58974         * lib/unictype/categ_Pd.c: New file.
58975         * lib/unictype/categ_Pe.c: New file.
58976         * lib/unictype/categ_Pf.c: New file.
58977         * lib/unictype/categ_Pi.c: New file.
58978         * lib/unictype/categ_Po.c: New file.
58979         * lib/unictype/categ_Ps.c: New file.
58980         * lib/unictype/categ_S.c: New file.
58981         * lib/unictype/categ_Sc.c: New file.
58982         * lib/unictype/categ_Sk.c: New file.
58983         * lib/unictype/categ_Sm.c: New file.
58984         * lib/unictype/categ_So.c: New file.
58985         * lib/unictype/categ_Z.c: New file.
58986         * lib/unictype/categ_Zl.c: New file.
58987         * lib/unictype/categ_Zp.c: New file.
58988         * lib/unictype/categ_Zs.c: New file.
58989         * lib/unictype/categ_and.c: New file.
58990         * lib/unictype/categ_and_not.c: New file.
58991         * lib/unictype/categ_byname.c: New file.
58992         * lib/unictype/categ_name.c: New file.
58993         * lib/unictype/categ_none.c: New file.
58994         * lib/unictype/categ_of.c: New file.
58995         * lib/unictype/categ_or.c: New file.
58996         * lib/unictype/categ_test.c: New file.
58997         * lib/unictype/combining.c: New file.
58998         * lib/unictype/ctype_alnum.c: New file.
58999         * lib/unictype/ctype_alpha.c: New file.
59000         * lib/unictype/ctype_blank.c: New file.
59001         * lib/unictype/ctype_cntrl.c: New file.
59002         * lib/unictype/ctype_digit.c: New file.
59003         * lib/unictype/ctype_graph.c: New file.
59004         * lib/unictype/ctype_lower.c: New file.
59005         * lib/unictype/ctype_print.c: New file.
59006         * lib/unictype/ctype_punct.c: New file.
59007         * lib/unictype/ctype_space.c: New file.
59008         * lib/unictype/ctype_upper.c: New file.
59009         * lib/unictype/ctype_xdigit.c: New file.
59010         * lib/unictype/decdigit.c: New file.
59011         * lib/unictype/digit.c: New file.
59012         * lib/unictype/identsyntaxmap.h: New file.
59013         * lib/unictype/mirror.c: New file.
59014         * lib/unictype/numeric.c: New file.
59015         * lib/unictype/pr_alphabetic.c: New file.
59016         * lib/unictype/pr_ascii_hex_digit.c: New file.
59017         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59018         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59019         * lib/unictype/pr_bidi_block_separator.c: New file.
59020         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59021         * lib/unictype/pr_bidi_common_separator.c: New file.
59022         * lib/unictype/pr_bidi_control.c: New file.
59023         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59024         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59025         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59026         * lib/unictype/pr_bidi_european_digit.c: New file.
59027         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59028         * lib/unictype/pr_bidi_left_to_right.c: New file.
59029         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59030         * lib/unictype/pr_bidi_other_neutral.c: New file.
59031         * lib/unictype/pr_bidi_pdf.c: New file.
59032         * lib/unictype/pr_bidi_segment_separator.c: New file.
59033         * lib/unictype/pr_bidi_whitespace.c: New file.
59034         * lib/unictype/pr_byname.c: New file.
59035         * lib/unictype/pr_byname.gperf: New file.
59036         * lib/unictype/pr_combining.c: New file.
59037         * lib/unictype/pr_composite.c: New file.
59038         * lib/unictype/pr_currency_symbol.c: New file.
59039         * lib/unictype/pr_dash.c: New file.
59040         * lib/unictype/pr_decimal_digit.c: New file.
59041         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59042         * lib/unictype/pr_deprecated.c: New file.
59043         * lib/unictype/pr_diacritic.c: New file.
59044         * lib/unictype/pr_extender.c: New file.
59045         * lib/unictype/pr_format_control.c: New file.
59046         * lib/unictype/pr_grapheme_base.c: New file.
59047         * lib/unictype/pr_grapheme_extend.c: New file.
59048         * lib/unictype/pr_grapheme_link.c: New file.
59049         * lib/unictype/pr_hex_digit.c: New file.
59050         * lib/unictype/pr_hyphen.c: New file.
59051         * lib/unictype/pr_id_continue.c: New file.
59052         * lib/unictype/pr_id_start.c: New file.
59053         * lib/unictype/pr_ideographic.c: New file.
59054         * lib/unictype/pr_ids_binary_operator.c: New file.
59055         * lib/unictype/pr_ids_trinary_operator.c: New file.
59056         * lib/unictype/pr_ignorable_control.c: New file.
59057         * lib/unictype/pr_iso_control.c: New file.
59058         * lib/unictype/pr_join_control.c: New file.
59059         * lib/unictype/pr_left_of_pair.c: New file.
59060         * lib/unictype/pr_line_separator.c: New file.
59061         * lib/unictype/pr_logical_order_exception.c: New file.
59062         * lib/unictype/pr_lowercase.c: New file.
59063         * lib/unictype/pr_math.c: New file.
59064         * lib/unictype/pr_non_break.c: New file.
59065         * lib/unictype/pr_not_a_character.c: New file.
59066         * lib/unictype/pr_numeric.c: New file.
59067         * lib/unictype/pr_other_alphabetic.c: New file.
59068         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59069         * lib/unictype/pr_other_grapheme_extend.c: New file.
59070         * lib/unictype/pr_other_id_continue.c: New file.
59071         * lib/unictype/pr_other_id_start.c: New file.
59072         * lib/unictype/pr_other_lowercase.c: New file.
59073         * lib/unictype/pr_other_math.c: New file.
59074         * lib/unictype/pr_other_uppercase.c: New file.
59075         * lib/unictype/pr_paired_punctuation.c: New file.
59076         * lib/unictype/pr_paragraph_separator.c: New file.
59077         * lib/unictype/pr_pattern_syntax.c: New file.
59078         * lib/unictype/pr_pattern_white_space.c: New file.
59079         * lib/unictype/pr_private_use.c: New file.
59080         * lib/unictype/pr_punctuation.c: New file.
59081         * lib/unictype/pr_quotation_mark.c: New file.
59082         * lib/unictype/pr_radical.c: New file.
59083         * lib/unictype/pr_sentence_terminal.c: New file.
59084         * lib/unictype/pr_soft_dotted.c: New file.
59085         * lib/unictype/pr_space.c: New file.
59086         * lib/unictype/pr_terminal_punctuation.c: New file.
59087         * lib/unictype/pr_test.c: New file.
59088         * lib/unictype/pr_titlecase.c: New file.
59089         * lib/unictype/pr_unassigned_code_value.c: New file.
59090         * lib/unictype/pr_unified_ideograph.c: New file.
59091         * lib/unictype/pr_uppercase.c: New file.
59092         * lib/unictype/pr_variation_selector.c: New file.
59093         * lib/unictype/pr_white_space.c: New file.
59094         * lib/unictype/pr_xid_continue.c: New file.
59095         * lib/unictype/pr_xid_start.c: New file.
59096         * lib/unictype/pr_zero_width.c: New file.
59097         * lib/unictype/scripts.c: New file.
59098         * lib/unictype/sy_c_ident.c: New file.
59099         * lib/unictype/sy_c_whitespace.c: New file.
59100         * lib/unictype/sy_java_ident.c: New file.
59101         * lib/unictype/sy_java_whitespace.c: New file.
59102
59103         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59104         Unicode 5.0.0.
59105         * lib/unictype/blocks.h: Likewise.
59106         * lib/unictype/categ_C.h: Likewise.
59107         * lib/unictype/categ_Cc.h: Likewise.
59108         * lib/unictype/categ_Cf.h: Likewise.
59109         * lib/unictype/categ_Cn.h: Likewise.
59110         * lib/unictype/categ_Co.h: Likewise.
59111         * lib/unictype/categ_Cs.h: Likewise.
59112         * lib/unictype/categ_L.h: Likewise.
59113         * lib/unictype/categ_Ll.h: Likewise.
59114         * lib/unictype/categ_Lm.h: Likewise.
59115         * lib/unictype/categ_Lo.h: Likewise.
59116         * lib/unictype/categ_Lt.h: Likewise.
59117         * lib/unictype/categ_Lu.h: Likewise.
59118         * lib/unictype/categ_M.h: Likewise.
59119         * lib/unictype/categ_Mc.h: Likewise.
59120         * lib/unictype/categ_Me.h: Likewise.
59121         * lib/unictype/categ_Mn.h: Likewise.
59122         * lib/unictype/categ_N.h: Likewise.
59123         * lib/unictype/categ_Nd.h: Likewise.
59124         * lib/unictype/categ_Nl.h: Likewise.
59125         * lib/unictype/categ_No.h: Likewise.
59126         * lib/unictype/categ_P.h: Likewise.
59127         * lib/unictype/categ_Pc.h: Likewise.
59128         * lib/unictype/categ_Pd.h: Likewise.
59129         * lib/unictype/categ_Pe.h: Likewise.
59130         * lib/unictype/categ_Pf.h: Likewise.
59131         * lib/unictype/categ_Pi.h: Likewise.
59132         * lib/unictype/categ_Po.h: Likewise.
59133         * lib/unictype/categ_Ps.h: Likewise.
59134         * lib/unictype/categ_S.h: Likewise.
59135         * lib/unictype/categ_Sc.h: Likewise.
59136         * lib/unictype/categ_Sk.h: Likewise.
59137         * lib/unictype/categ_Sm.h: Likewise.
59138         * lib/unictype/categ_So.h: Likewise.
59139         * lib/unictype/categ_Z.h: Likewise.
59140         * lib/unictype/categ_Zl.h: Likewise.
59141         * lib/unictype/categ_Zp.h: Likewise.
59142         * lib/unictype/categ_Zs.h: Likewise.
59143         * lib/unictype/categ_of.h: Likewise.
59144         * lib/unictype/combining.h: Likewise.
59145         * lib/unictype/ctype_alnum.h: Likewise.
59146         * lib/unictype/ctype_alpha.h: Likewise.
59147         * lib/unictype/ctype_blank.h: Likewise.
59148         * lib/unictype/ctype_cntrl.h: Likewise.
59149         * lib/unictype/ctype_digit.h: Likewise.
59150         * lib/unictype/ctype_graph.h: Likewise.
59151         * lib/unictype/ctype_lower.h: Likewise.
59152         * lib/unictype/ctype_print.h: Likewise.
59153         * lib/unictype/ctype_punct.h: Likewise.
59154         * lib/unictype/ctype_space.h: Likewise.
59155         * lib/unictype/ctype_upper.h: Likewise.
59156         * lib/unictype/ctype_xdigit.h: Likewise.
59157         * lib/unictype/decdigit.h: Likewise.
59158         * lib/unictype/digit.h: Likewise.
59159         * lib/unictype/mirror.h: Likewise.
59160         * lib/unictype/numeric.h: Likewise.
59161         * lib/unictype/pr_alphabetic.h: Likewise.
59162         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59163         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59164         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59165         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59166         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59167         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59168         * lib/unictype/pr_bidi_control.h: Likewise.
59169         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59170         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59171         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59172         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59173         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59174         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59175         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59176         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59177         * lib/unictype/pr_bidi_pdf.h: Likewise.
59178         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59179         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59180         * lib/unictype/pr_combining.h: Likewise.
59181         * lib/unictype/pr_composite.h: Likewise.
59182         * lib/unictype/pr_currency_symbol.h: Likewise.
59183         * lib/unictype/pr_dash.h: Likewise.
59184         * lib/unictype/pr_decimal_digit.h: Likewise.
59185         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59186         * lib/unictype/pr_deprecated.h: Likewise.
59187         * lib/unictype/pr_diacritic.h: Likewise.
59188         * lib/unictype/pr_extender.h: Likewise.
59189         * lib/unictype/pr_format_control.h: Likewise.
59190         * lib/unictype/pr_grapheme_base.h: Likewise.
59191         * lib/unictype/pr_grapheme_extend.h: Likewise.
59192         * lib/unictype/pr_grapheme_link.h: Likewise.
59193         * lib/unictype/pr_hex_digit.h: Likewise.
59194         * lib/unictype/pr_hyphen.h: Likewise.
59195         * lib/unictype/pr_id_continue.h: Likewise.
59196         * lib/unictype/pr_id_start.h: Likewise.
59197         * lib/unictype/pr_ideographic.h: Likewise.
59198         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59199         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59200         * lib/unictype/pr_ignorable_control.h: Likewise.
59201         * lib/unictype/pr_iso_control.h: Likewise.
59202         * lib/unictype/pr_join_control.h: Likewise.
59203         * lib/unictype/pr_left_of_pair.h: Likewise.
59204         * lib/unictype/pr_line_separator.h: Likewise.
59205         * lib/unictype/pr_logical_order_exception.h: Likewise.
59206         * lib/unictype/pr_lowercase.h: Likewise.
59207         * lib/unictype/pr_math.h: Likewise.
59208         * lib/unictype/pr_non_break.h: Likewise.
59209         * lib/unictype/pr_not_a_character.h: Likewise.
59210         * lib/unictype/pr_numeric.h: Likewise.
59211         * lib/unictype/pr_other_alphabetic.h: Likewise.
59212         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59213         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59214         * lib/unictype/pr_other_id_continue.h: Likewise.
59215         * lib/unictype/pr_other_id_start.h: Likewise.
59216         * lib/unictype/pr_other_lowercase.h: Likewise.
59217         * lib/unictype/pr_other_math.h: Likewise.
59218         * lib/unictype/pr_other_uppercase.h: Likewise.
59219         * lib/unictype/pr_paired_punctuation.h: Likewise.
59220         * lib/unictype/pr_paragraph_separator.h: Likewise.
59221         * lib/unictype/pr_pattern_syntax.h: Likewise.
59222         * lib/unictype/pr_pattern_white_space.h: Likewise.
59223         * lib/unictype/pr_private_use.h: Likewise.
59224         * lib/unictype/pr_punctuation.h: Likewise.
59225         * lib/unictype/pr_quotation_mark.h: Likewise.
59226         * lib/unictype/pr_radical.h: Likewise.
59227         * lib/unictype/pr_sentence_terminal.h: Likewise.
59228         * lib/unictype/pr_soft_dotted.h: Likewise.
59229         * lib/unictype/pr_space.h: Likewise.
59230         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59231         * lib/unictype/pr_titlecase.h: Likewise.
59232         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59233         * lib/unictype/pr_unified_ideograph.h: Likewise.
59234         * lib/unictype/pr_uppercase.h: Likewise.
59235         * lib/unictype/pr_variation_selector.h: Likewise.
59236         * lib/unictype/pr_white_space.h: Likewise.
59237         * lib/unictype/pr_xid_continue.h: Likewise.
59238         * lib/unictype/pr_xid_start.h: Likewise.
59239         * lib/unictype/pr_zero_width.h: Likewise.
59240         * lib/unictype/scripts.h: Likewise.
59241         * lib/unictype/scripts_byname.gperf: Likewise.
59242         * lib/unictype/sy_c_ident.h: Likewise.
59243         * lib/unictype/sy_c_whitespace.h: Likewise.
59244         * lib/unictype/sy_java_ident.h: Likewise.
59245         * lib/unictype/sy_java_whitespace.h: Likewise.
59246
59247         * lib/unictype/Makefile: New file.
59248         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59249         glibc.
59250         * lib/unictype/3level.h: New file, copied from glibc.
59251         * lib/unictype/3levelbit.h: New file.
59252
59253 2007-11-11  Bruno Haible  <bruno@clisp.org>
59254
59255         * modules/gperf: New file.
59256         * modules/iconv_open (Depends-on): Add it.
59257         (Makefile.am): Remove the GPERF definition.
59258
59259 2007-11-11  Bruno Haible  <bruno@clisp.org>
59260
59261         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59262         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59263
59264 2007-11-11  Bruno Haible  <bruno@clisp.org>
59265
59266         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59267         (usage): Remove function.
59268
59269 2007-11-11  Bruno Haible  <bruno@clisp.org>
59270
59271         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59272         gl_FUNC_CEILF_LIBS.
59273         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59274         gl_FUNC_CEIL_LIBS.
59275         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59276         gl_FUNC_CEILL_LIBS.
59277         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59278         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59279         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59280
59281 2007-11-11  Bruno Haible  <bruno@clisp.org>
59282
59283         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59284         roundf were declared but do not exist on functions.
59285         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59286         roundl were declared but do not exist on functions.
59287         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59288         HAVE_FLOORL_AND_CEILL, respectively.
59289         Needed for Sun C on Solaris 10.
59290
59291 2007-11-11  Bruno Haible  <bruno@clisp.org>
59292
59293         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59294         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59295         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59296         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59297         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59298         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59299         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59300         HAVE_DECL_ROUNDF.
59301         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59302         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59304         of HAVE_DECL_ROUND*.
59305         * modules/math (Makefile.am): Update.
59306
59307 2007-11-10  Bruno Haible  <bruno@clisp.org>
59308
59309         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59310         ptrdiff_t as m4/intl.m4.
59311
59312 2007-11-10  Jim Meyering  <meyering@redhat.com>
59313
59314         Avoid link failure for the argmatch test.
59315         * tests/test-argmatch.c (usage): Define function to avoid a link
59316         failure: argmatch_die requires a usage function.
59317
59318 2007-11-09  Bruno Haible  <bruno@clisp.org>
59319
59320         * doc/functions/snprintf.texi: Mention BeOS deficiency.
59321         * doc/functions/vsnprintf.texi: Likewise.
59322         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
59323         with a size argument < 2.
59324
59325 2007-11-09  Bruno Haible  <bruno@clisp.org>
59326
59327         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
59328         buffer. Fixes an inefficiency introduced on 2007-11-03.
59329
59330 2007-11-09  Bruno Haible  <bruno@clisp.org>
59331
59332         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
59333         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
59334
59335 2007-11-08  Jim Meyering  <meyering@redhat.com>
59336
59337         Change cache variable name prefix "jm_" to "gl_" everywhere.
59338         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
59339         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
59340         * m4/uptime.m4: s/gl_/jm_/
59341
59342 2007-11-07  Bruno Haible  <bruno@clisp.org>
59343
59344         Update to GNU gettext 0.17.
59345         * m4/intl.m4: Update to GNU gettext 0.17.
59346         * m4/po.m4: Likewise.
59347         * modules/gettext (Files): Remove m4/ulonglong.m4.
59348         (configure.ac): Require gettext infrastructure from version 0.17.
59349
59350 2007-11-06  Bruno Haible  <bruno@clisp.org>
59351
59352         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
59353         symbolic values are not defined in a public header.
59354         * lib/freadable.c (freadable) [QNX]: Likewise.
59355         * lib/freadahead.c (freadahead) [QNX]: Likewise.
59356         * lib/freading.c (freading) [QNX]: Likewise.
59357         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59358         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59359         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59360         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59361         Reported by Alain Magloire.
59362
59363         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59364
59365 2007-11-05  Bruno Haible  <bruno@clisp.org>
59366
59367         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59368         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59369         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59370         Reported by Eric Blake.
59371
59372 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59373             Bruno Haible  <bruno@clisp.org>
59374
59375         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59376         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59377         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59378         (malloc): Undefine also before including <stdlib.h>.
59379         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59380         Needed on OSF/1 4.0.
59381
59382 2007-11-05  Jim Meyering  <meyering@redhat.com>
59383
59384         git-version-gen: sync from coreutils.
59385         * build-aux/git-version-gen: Add comments.
59386         Change the first '-' to '.' in the snapshot version string,
59387         e.g., 6.9-377-08144 -> 6.9.377-08144
59388         Remove first parameter.
59389         Don't declare a version "-dirty" merely because a time
59390         stamp has changed.
59391
59392 2007-11-04  Bruno Haible  <bruno@clisp.org>
59393
59394         * lib/lock.h: Protect all macro definitions containing an 'if'
59395         statement through a "do { ... } while (0)".
59396         * lib/tls.h: Likewise.
59397
59398 2007-11-04  Bruno Haible  <bruno@clisp.org>
59399
59400         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
59401
59402 2007-11-04  Bruno Haible  <bruno@clisp.org>
59403
59404         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
59405         * modules/fprintf-posix (Depends-on): Add nocrash.
59406         * modules/snprintf-posix (Depends-on): Likewise.
59407         * modules/sprintf-posix (Depends-on): Likewise.
59408         * modules/vasnprintf-posix (Depends-on): Likewise.
59409         * modules/vasprintf-posix (Depends-on): Likewise.
59410         * modules/vfprintf-posix (Depends-on): Likewise.
59411         * modules/vsnprintf-posix (Depends-on): Likewise.
59412         * modules/vsprintf-posix (Depends-on): Likewise.
59413         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59414         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59415         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59416         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59417         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59418         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59419         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59420
59421 2007-11-04  Bruno Haible  <bruno@clisp.org>
59422
59423         * modules/nocrash: New file.
59424         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
59425         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
59426
59427 2007-11-04  Bruno Haible  <bruno@clisp.org>
59428
59429         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
59430         precision handling.
59431         * tests/test-vasprintf-posix.c (test_function): Likewise.
59432         * tests/test-snprintf-posix.h (test_function): Likewise.
59433         * tests/test-sprintf-posix.h (test_function): Likewise.
59434
59435         Fix *printf behaviour for large precisions on mingw and BeOS.
59436         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
59437         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
59438         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
59439         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59440         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59441         gl_PRINTF_PRECISION and test its result. Invoke
59442         gl_PREREQ_VASNPRINTF_PRECISION.
59443         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59444         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59445         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59446         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59447         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59448         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59449         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59450         * doc/functions/fprintf.texi: Update.
59451         * doc/functions/printf.texi: Update.
59452         * doc/functions/snprintf.texi: Update.
59453         * doc/functions/sprintf.texi: Update.
59454         * doc/functions/vfprintf.texi: Update.
59455         * doc/functions/vprintf.texi: Update.
59456         * doc/functions/vsnprintf.texi: Update.
59457         * doc/functions/vsprintf.texi: Update.
59458
59459 2007-11-04  Bruno Haible  <bruno@clisp.org>
59460
59461         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
59462
59463 2007-11-04  Bruno Haible  <bruno@clisp.org>
59464
59465         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
59466         Reported by Sylvain Beucler <beuc@gnu.org>.
59467
59468 2007-11-03  Bruno Haible  <bruno@clisp.org>
59469
59470         * tests/test-fprintf-posix2.sh: New file.
59471         * tests/test-fprintf-posix2.c: New file.
59472         * modules/fprintf-posix-tests (Files): Add them.
59473         (TESTS): Add test-fprintf-posix2.sh.
59474         (configure.ac): Check for getrlimit and setrlimit.
59475         (check_PROGRAMS): Add test-fprintf-posix2.
59476
59477         * tests/test-printf-posix2.sh: New file.
59478         * tests/test-printf-posix2.c: New file.
59479         * modules/printf-posix-tests (Files): Add them.
59480         (TESTS): Add test-printf-posix2.sh.
59481         (configure.ac): Check for getrlimit and setrlimit.
59482         (check_PROGRAMS): Add test-printf-posix2.
59483
59484         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
59485         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
59486         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
59487         (decode_double): New function, copied from decode_long_double.
59488         (scale10_round_decimal_decoded): New function, extracted from
59489         scale10_round_decimal_long_double.
59490         (scale10_round_decimal_long_double): Use it.
59491         (scale10_round_decimal_double): New function.
59492         (floorlog10): New function.
59493         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
59494         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
59495         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59496         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59497         gl_PRINTF_ENOMEM and test its result. Invoke
59498         gl_PREREQ_VASNPRINTF_ENOMEM.
59499         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59500         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59501         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59502         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59503         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59504         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59505         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59506         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59507         * modules/snprintf-posix (Depends-on): Likewise.
59508         * modules/sprintf-posix (Depends-on): Likewise.
59509         * modules/vasnprintf-posix (Depends-on): Likewise.
59510         * modules/vasprintf-posix (Depends-on): Likewise.
59511         * modules/vfprintf-posix (Depends-on): Likewise.
59512         * modules/vsnprintf-posix (Depends-on): Likewise.
59513         * modules/vsprintf-posix (Depends-on): Likewise.
59514         * doc/functions/fprintf.texi: Update.
59515         * doc/functions/printf.texi: Update.
59516         * doc/functions/snprintf.texi: Update.
59517         * doc/functions/sprintf.texi: Update.
59518         * doc/functions/vfprintf.texi: Update.
59519         * doc/functions/vprintf.texi: Update.
59520         * doc/functions/vsnprintf.texi: Update.
59521         * doc/functions/vsprintf.texi: Update.
59522
59523 2007-11-03  Bruno Haible  <bruno@clisp.org>
59524
59525         * modules/frexp-nolibm-tests: New file.
59526
59527         * modules/frexp-nolibm: New file.
59528         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59529
59530 2007-11-03  Bruno Haible  <bruno@clisp.org>
59531
59532         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59533         value is C99 compliant.
59534         Needed for OSF/1 5.1.
59535
59536 2007-11-03  Bruno Haible  <bruno@clisp.org>
59537
59538         Fix out-of-memory handling of vasnprintf.
59539         * lib/printf-parse.c: Include <errno.h>.
59540         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59541         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59542         is already set.
59543
59544 2007-11-02  Eric Blake  <ebb9@byu.net>
59545
59546         Fix tests on cygwin.
59547         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59548
59549 2007-11-01  Bruno Haible  <bruno@clisp.org>
59550
59551         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59552         warning.
59553         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59554         needed for POSIX compatibility.
59555
59556 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59557
59558         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59559         for compatibility with GNU.
59560
59561 2007-11-01  Bruno Haible  <bruno@clisp.org>
59562
59563         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59564         (putenv): Renamed from rpl_putenv. Change argument type from
59565         'const char *' to 'char *'.
59566         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59567         of defining putenv in config.h, just set REPLACE_PUTENV.
59568         * modules/putenv (Depends-on): Add stdlib.
59569         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59570         (Include): Use <stdlib.h>.
59571         * lib/stdlib.in.h (putenv): New declaration.
59572         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59573         REPLACE_PUTENV.
59574         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59575         REPLACE_PUTENV.
59576         Needed for MacOS X 10.5.0.
59577         Reported by Peter O'Gorman <peter@pogma.com>.
59578
59579 2007-11-01  Jim Meyering  <meyering@redhat.com>
59580
59581         Treat an empty date string exactly like "0".
59582         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59583         if the remaining date string (to be parsed) is empty, use "0".
59584         Reported by Mischa Molhoek and discussed in this thread:
59585         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59586
59587 2007-10-31  Bruno Haible  <bruno@clisp.org>
59588
59589         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59590         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59591         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59592         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59593         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59594         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59595
59596 2007-10-31  Bruno Haible  <bruno@clisp.org>
59597
59598         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59599         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59600         (AC_TYPE_LONG_LONG_INT): Use it.
59601         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59602         it as well.
59603         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59604         to m4/longlong.m4.
59605         * modules/stdint (Files): Remove m4/ulonglong.m4.
59606         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59607         m4/ulonglong.m4.
59608         * modules/strtoumax (Files): Likewise.
59609
59610 2007-10-30  Bruno Haible  <bruno@clisp.org>
59611
59612         * modules/xvasprintf-posix: New file.
59613         Suggested by Eric Blake.
59614
59615 2007-10-30  Bruno Haible  <bruno@clisp.org>
59616
59617         * modules/xprintf-posix-tests: New file.
59618         * tests/test-xprintf-posix.sh: New file.
59619         * tests/test-xprintf-posix.c: New file.
59620         * tests/test-xfprintf-posix.c: New file.
59621
59622         * modules/xprintf-posix: New file.
59623
59624 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59625
59626         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59627         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59628         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59629
59630 2007-10-29  Bruno Haible  <bruno@clisp.org>
59631
59632         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59633         contain the special marker '_cv_'.
59634         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59635         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59636         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59637         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59638         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59639         Reported by Ralf Wildenhues.
59640
59641 2007-10-29  Bruno Haible  <bruno@clisp.org>
59642
59643         * gnulib-tool (func_import): When --lgpl is not specified, set
59644         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59645         GPLv3.
59646         Reported by Simon Josefsson.
59647
59648 2007-10-28  Bruno Haible  <bruno@clisp.org>
59649
59650         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59651         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59652         HAVE_DECL_ISFINITE.
59653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59654         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59655         HAVE_DECL_ISFINITE.
59656
59657 2007-10-28  Bruno Haible  <bruno@clisp.org>
59658
59659         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
59660         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
59661
59662 2007-10-28  Bruno Haible  <bruno@clisp.org>
59663
59664         Fix link errors with Sun C 5.0 on Solaris 10.
59665         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
59666         function is declared but not present in the compiler's libm.
59667         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59668         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
59669         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
59670         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
59671         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
59672         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
59673         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
59674         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59675         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
59676         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
59677         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
59678         HAVE_DECL_FLOORL.
59679
59680 2007-10-28  Bruno Haible  <bruno@clisp.org>
59681
59682         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
59683         gl_FUNC_FLOORL. Cache the result.
59684         (gl_FUNC_FLOORL): Use it.
59685         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
59686         gl_FUNC_CEILL. Cache the result.
59687         (gl_FUNC_CEILL): Use it.
59688
59689         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
59690         gl_FUNC_FLOOR. Cache the result.
59691         (gl_FUNC_FLOOR): Use it.
59692         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
59693         gl_FUNC_CEIL. Cache the result.
59694         (gl_FUNC_CEIL): Use it.
59695
59696         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
59697         gl_FUNC_FLOORF. Cache the result.
59698         (gl_FUNC_FLOORF): Use it.
59699         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
59700         gl_FUNC_CEILF. Cache the result.
59701         (gl_FUNC_CEILF): Use it.
59702
59703 2007-10-28  Bruno Haible  <bruno@clisp.org>
59704
59705         * gnulib-tool: Allow specifying the LGPL version number through
59706         --lgpl=2 or --lgpl=3.
59707         (func_usage): Document --lgpl with argument.
59708         Handle --lgpl=... arguments.
59709         (func_import): Recognize also gl_LGPL calls with an argument. When
59710         --lgpl=2 is used and the module's license is just LGPL, report an
59711         error. Set sed_transform_lib_file according to the lgpl variable. In
59712         the generated files, use --lgpl or gl_LGPL invocations with argument,
59713         if necessary.
59714         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
59715         an LGPv2+ license.
59716         * doc/gnulib-tool.texi (Modified imports): Update explanation of
59717         gl_LGPL macro.
59718
59719 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59720             Bruno Haible  <bruno@clisp.org>
59721
59722         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
59723         (u16_uctomb_aux): Likewise.
59724         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
59725         !HAVE_INLINE.
59726         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
59727
59728 2007-10-28  Bruno Haible  <bruno@clisp.org>
59729
59730         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
59731         Invoke AM_GETTEXT_OPTION if it exists.
59732         * modules/vasprintf: Likewise.
59733         * modules/verror: Likewise.
59734         * modules/xprintf: Likewise.
59735         * modules/xvasprintf: Likewise.
59736
59737 2007-10-27  Ben Pfaff  <blp@gnu.org>
59738
59739         * lib/math.in.h: Define isfinite macro and prototypes for
59740         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
59741         implementations.
59742         * m4/math_h.m4: New substitutions for isfinite module.
59743         * lib/isfinite.c: New file.
59744         * m4/isfinite.m4: New file.
59745         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
59746         * modules/isfinite: New file.
59747         * modules/isfinite-tests: New file.
59748         * tests/tests-isfinite.c: New file.
59749         * doc/functions/isfinite.texi: Mention isfinite module.
59750         * MODULES.html.sh: Mention new module.
59751
59752 2007-10-27  Ben Pfaff  <blp@gnu.org>
59753
59754         Ralf Wildenhues reported that Tru64 4.0D declares the round
59755         functions but does not have definitions.
59756         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
59757         cannot be found in any library, set the output variable to
59758         "missing" instead of "".
59759         * m4/round.m4: Also use our substitute if we cannot find round in
59760         any library, even if it is declared.
59761         * m4/roundf.m4: Likewise for roundf.
59762         * m4/roundl.m4: Likewise for roundl.
59763         * lib/math.in.h: Undefine roundf, round, roundl before defining
59764         their replacements, to allow for hypothetical systems where these
59765         may be defined as macros but not available in libraries.
59766
59767 2007-10-27  Bruno Haible  <bruno@clisp.org>
59768
59769         * doc/gnulib.texi: Invoke @firstparagraphindent.
59770         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
59771         changes in gnulib.
59772         (Source changes): New section.
59773
59774 2007-10-26  Bruno Haible  <bruno@clisp.org>
59775
59776         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
59777         borrowed from autoconf.
59778
59779 2007-10-26  Bruno Haible  <bruno@clisp.org>
59780
59781         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
59782         strerror returned the empty string. Needed on HP-UX 11.00.
59783
59784 2007-10-24  Micah Cowan  <micah@cowan.name>
59785
59786         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
59787         * build-aux/bootstrap: Remove support for now-unnecessary option,
59788         --cvs-user, and envvars CVS_USER, CVS_RSH.
59789
59790 2007-10-24  Jim Meyering  <meyering@redhat.com>
59791
59792         Avoid diagnostics from sha1sum when there is no cached checksum.
59793         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
59794         if the po.s1 file hasn't been created yet.
59795
59796         * build-aux/bootstrap: Sync from coreutils:
59797         2007-10-24  Jim Meyering  <meyering@redhat.com>
59798         Get gnulib from the git repository, not from an obsolete cvs one.
59799         * build-aux/bootstrap: Suggestion from Micah Cowan.
59800         2007-10-04  Jim Meyering  <jim@meyering.net>
59801         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
59802         (update_po_files): Work also when there are no .po files in po/.
59803
59804 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59805
59806         * README: Append ".git" to git and cg examples.
59807         Problem reported by Benoit Sigoure.
59808
59809 2007-10-23  Micah Cowan  <micah@cowan.name>
59810
59811         * users.txt: Add wget.
59812
59813 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59814
59815         Fix linking of some unistdio tests on FreeBSD.
59816         * modules/unistdio/u16-vsnprintf-tests
59817         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
59818         * modules/unistdio/u16-vsprintf-tests
59819         (test_u16_vsnprintf1_LDADD): Likewise.
59820         * modules/unistdio/u32-vsnprintf-tests
59821         (test_u32_vsnprintf1_LDADD): Likewise.
59822         * modules/unistdio/u32-vsprintf-tests
59823         (test_u32_vsprintf1_LDADD): Likewise.
59824         * modules/unistdio/u8-vsnprintf-tests
59825         (test_u8_vsnprintf1_LDADD): Likewise.
59826         * modules/unistdio/u8-vsprintf-tests
59827         (test_u8_vsprintf1_LDADD): Likewise.
59828         * modules/unistdio/ulc-vsnprintf-tests
59829         (test_ulc_vsnprintf1_LDADD): Likewise.
59830         * modules/unistdio/ulc-vsprintf-tests
59831         (test_ulc_vsprintf1_LDADD): Likewise.
59832
59833         Fix linking of some uniconv tests on FreeBSD.
59834         * modules/uniconv/u16-conv-from-enc-tests
59835         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
59836         * modules/uniconv/u16-conv-to-enc-tests
59837         (test_u16_conv_to_enc_LDADD): Likewise.
59838         * modules/uniconv/u16-strconv-from-enc-tests
59839         (test_u16_strconv_from_enc_LDADD): Likewise.
59840         * modules/uniconv/u16-strconv-to-enc-tests
59841         (test_u16_strconv_to_enc_LDADD): Likewise.
59842         * modules/uniconv/u32-conv-from-enc-tests
59843         (test_u32_conv_from_enc_LDADD): Likewise.
59844         * modules/uniconv/u32-conv-to-enc-tests
59845         (test_u32_conv_to_enc_LDADD): Likewise.
59846         * modules/uniconv/u32-strconv-from-enc-tests
59847         (test_u32_strconv_from_enc_LDADD): Likewise.
59848         * modules/uniconv/u32-strconv-to-enc-tests
59849         (test_u32_strconv_to_enc_LDADD): Likewise.
59850         * modules/uniconv/u8-conv-from-enc-tests
59851         (test_u8_conv_from_enc_LDADD): Likewise.
59852         * modules/uniconv/u8-conv-to-enc-tests
59853         (test_u8_conv_to_enc_LDADD): Likewise.
59854         * modules/uniconv/u8-strconv-from-enc-tests
59855         (test_u8_strconv_from_enc_LDADD): Likewise.
59856         * modules/uniconv/u8-strconv-to-enc-tests
59857         (test_u8_strconv_to_enc_LDADD): Likewise.
59858
59859 2007-10-22  Bruno Haible  <bruno@clisp.org>
59860
59861         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
59862         size.
59863
59864 2007-10-22  Eric Blake  <ebb9@byu.net>
59865
59866         Tweak x*printf documentation.
59867         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
59868         variable name and comments.
59869         Suggested by Bruno Haible.
59870
59871 2007-10-22  Bruno Haible  <bruno@clisp.org>
59872
59873         * lib/acl.c (copy_acl): Fix file name in comment.
59874
59875 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59876
59877         Fix Tru64 problem with stdbool.h.
59878         * lib/stdbool.in.h (false, true):
59879         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
59880         Don't declare as an enum in this situation; it runs afoul of Tru64.
59881         Problem reported by Steven M. Schweda in
59882         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
59883
59884 2007-10-22  Eric Blake  <ebb9@byu.net>
59885
59886         Also wrap vf?printf.
59887         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
59888         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
59889         (xvprintf, xvfprintf): New functions.
59890
59891 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59892
59893         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
59894         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
59895
59896         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
59897         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
59898
59899 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59900
59901         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
59902         by Bruno Haible.
59903
59904 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59905
59906         * lib/getloadavg.c
59907         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
59908         Undef `sys' after including sys/table.h, for Tru64 4.0D.
59909
59910         * tests/test-i-ring.c: Work for C89.
59911
59912 2007-10-22  Bruno Haible  <bruno@clisp.org>
59913
59914         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
59915         -1u, in preprocessor expression, so that we don't test for the bug
59916         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
59917         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
59918
59919 2007-10-22  Eric Blake  <ebb9@byu.net>
59920
59921         * tests/test-yesno.sh: Silence stderr during test.
59922
59923 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59924
59925         * modules/crypto/gc-camellia: New file.
59926
59927         * m4/gc-camellia.m4: New file.
59928
59929         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
59930
59931         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
59932
59933 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59934
59935         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
59936         --help to stdout.  Reported by sms@antinode.org (Steven
59937         M. Schweda).
59938
59939 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59940
59941         * users.txt: Fix link to libksba.
59942
59943 2007-10-21  Ben Pfaff  <blp@gnu.org>
59944
59945         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
59946         round.c roundf implementation that depends on floorf and ceilf to
59947         be tested unconditionally.
59948
59949 2007-10-21  Ben Pfaff  <blp@gnu.org>
59950
59951         * m4/check-libm-func.m4: Removed.
59952         * m4/check-math-lib.m4: New file.
59953         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
59954         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
59955         definition and lack of AC_LIBOBJ([roundf]).
59956         * m4/roundl.m4: Ditto, and similarly for roundl.
59957         * modules/round: Reference new m4 file.
59958         * modules/roundf: Ditto.
59959         * modules/roundl: Ditto.
59960         * tests/test-round2.c (main): Use ROUND instead of round.
59961         Bug report from Bruno Haible.
59962
59963 2007-10-21  Bruno Haible  <bruno@clisp.org>
59964
59965         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
59966         context.
59967
59968 2007-10-21  Bruno Haible  <bruno@clisp.org>
59969
59970         * tests/test-wcwidth.c (main): Allow negative result for some control
59971         characters.
59972
59973         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
59974         Needed on OSF/1 5.1.
59975
59976 2007-10-21  Bruno Haible  <bruno@clisp.org>
59977
59978         * tests/test-floorf1.c: Include isnanf.h.
59979         (main): Use isnanf() instead of isnan().
59980         * tests/test-ceilf1.c: Include isnanf.h.
59981         (main): Use isnanf() instead of isnan().
59982         * tests/test-truncf1.c: Include isnanf.h.
59983         (main): Use isnanf() instead of isnan().
59984         * tests/test-roundf1.c: Include isnanf.h.
59985         (main): Use isnanf() instead of isnan().
59986
59987 2007-10-21  Eric Blake  <ebb9@byu.net>
59988
59989         * users.txt: Update URL for m4.
59990
59991 2007-10-21  Bruno Haible  <bruno@clisp.org>
59992
59993         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
59994
59995 2007-10-21  Bruno Haible  <bruno@clisp.org>
59996
59997         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
59998         Git's management files if the CVS files are not present.
59999
60000 2007-10-20  Bruno Haible  <bruno@clisp.org>
60001
60002         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60003         gcc-3.4.x.
60004
60005 2007-10-20  Ben Pfaff  <blp@gnu.org>
60006
60007         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60008         implementations.
60009         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60010         * lib/round.c: New file.
60011         * lib/roundf.c: New file.
60012         * lib/roundl.c: New file.
60013         * m4/round.m4: New file.
60014         * m4/roundf.m4: New file.
60015         * m4/roundl.m4: New file.
60016         * m4/check-libm-func-m4: New file.
60017         * modules/math: Replace round, roundf, roundl related @VARS@ in
60018         math.in.h.
60019         * modules/round: New file.
60020         * modules/round-tests: New file.
60021         * modules/roundf: New file.
60022         * modules/roundf-tests: New file.
60023         * modules/roundl: New file.
60024         * modules/roundl-tests: New file.
60025         * tests/test-round1.c: New file.
60026         * tests/test-round2.c: New file.
60027         * tests/test-roundf1.c: New file.
60028         * tests/test-roundf2.c: New file.
60029         * tests/test-roundl.c: New file.
60030         * doc/functions/round.texi: Mention round module.
60031         * doc/functions/roundf.texi: Mention roundf module.
60032         * doc/functions/roundl.texi: Mention roundl module.
60033         * MODULES.html.sh: Mention new modules.
60034         Thanks to Bruno Haible for suggestions.
60035
60036 2007-10-20  Jim Meyering  <meyering@redhat.com>
60037
60038         * lib/xprintf.c: Include <config.h> unconditionally.
60039
60040         Change xprintf's license to GPL.
60041         * modules/xprintf (License): s/LGPL/GPL/, since this module
60042         depends on modules (exit and exitfail) which are GPL.
60043         Suggestion from Bruno Haible.
60044
60045         xprintf fixes.
60046         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60047         Use a clearer diagnostic.
60048         Patch from Bruno Haible.
60049
60050 2007-10-20  Bruno Haible  <bruno@clisp.org>
60051
60052         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60053         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60054         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60055
60056 2007-10-20  Bruno Haible  <bruno@clisp.org>
60057
60058         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60059         precision in the comparison result > x - 1 or similar.
60060         * tests/test-ceilf2.c (correct_result_p): Likewise.
60061         * tests/test-truncf2.c (correct_result_p): Likewise.
60062         * tests/test-trunc2.c (correct_result_p): Likewise.
60063         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60064
60065 2007-10-20  Bruno Haible  <bruno@clisp.org>
60066
60067         * modules/ceil: New file.
60068         * m4/ceil.m4: New file.
60069         * doc/functions/ceil.texi: Mention the 'ceil' module.
60070
60071 2007-10-20  Bruno Haible  <bruno@clisp.org>
60072
60073         * modules/floor: New file.
60074         * m4/floor.m4: New file.
60075         * doc/functions/floor.texi: Mention the 'floor' module.
60076
60077 2007-10-20  Bruno Haible  <bruno@clisp.org>
60078
60079         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60080         of %a.
60081         * modules/floorf-tests (Depends-on): Likewise.
60082         * modules/truncf-tests (Depends-on): Likewise.
60083         * modules/trunc-tests (Depends-on): Likewise.
60084         Reported by Ben Pfaff.
60085
60086 2007-10-19  Jim Meyering  <meyering@redhat.com>
60087
60088         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60089         Don't bother testing specific errno values.  Just test ferror.
60090
60091         New module: xprintf
60092         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60093
60094 2007-10-19  Bruno Haible  <bruno@clisp.org>
60095
60096         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60097         syntax.
60098         * modules/javaexec (Makefile.am): Likewise.
60099         * modules/relocatable-prog (Makefile.am): Likewise.
60100         Suggested by Jim Meyering.
60101
60102 2007-10-18  Bruno Haible  <bruno@clisp.org>
60103
60104         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60105         Reported by Jim Meyering.
60106
60107 2007-10-18  Eric Blake  <ebb9@byu.net>
60108
60109         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60110
60111 2007-10-18  Bruno Haible  <bruno@clisp.org>
60112
60113         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60114         the format string into writable memory. Needed in Fortify conditions.
60115
60116 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60117             Bruno Haible  <bruno@clisp.org>
60118
60119         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60120         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60121         * modules/trim (Depends-on): Add mbchar.
60122         (configure.ac): Add gl_FUNC_MBRTOWC.
60123         (Makefile.am): Augment lib_SOURCES.
60124
60125 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60126
60127         Modify glob.c to use fstatat and dirfd, to simplify it.
60128         Suggested by Eric Blake.
60129         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60130         Don't include <stdbool.h>; not used.
60131         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60132         (link_exists_p): Simplify implementation, since we can now assume
60133         dirfd and fstatat.
60134         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60135
60136 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60137
60138         * gnulib-tool (func_get_dependencies): Fix sed script to
60139         match only tests.
60140
60141 2007-10-17  Bruno Haible  <bruno@clisp.org>
60142
60143         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60144         allow locale names without encoding suffix.
60145         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60146         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60147
60148 2007-10-16  Bruno Haible  <bruno@clisp.org>
60149
60150         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60151         * lib/getgroups.c (getgroups): Likewise.
60152         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60153
60154 2007-10-16  Bruno Haible  <bruno@clisp.org>
60155
60156         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60157         * modules/malloc-posix (License): Likewise.
60158         * modules/realloc-posix (License): Likewise.
60159         * modules/calloc-posix (License): Likewise.
60160         * modules/intprops (License): Change from GPL to LGPL, with
60161         Paul Eggert's approval.
60162
60163 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60164
60165         Merge glibc changes into lib/glob.c.
60166
60167         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60168         2007-10-15 04:59:03 UTC.  Here are the changes:
60169
60170         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60171
60172         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60173
60174         * lib/glob.c: Add some branch prediction throughout.
60175
60176         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60177
60178         [BZ #5103]
60179         * lib/glob.c (glob): Recognize patterns starting \/.
60180
60181         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60182
60183         [BZ #3996]
60184         * lib/glob.c (attribute_hidden): Define if not defined.
60185         (glob): Unescape dirname, filename or username when needed and not
60186         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60187         is NULL.  Handle unescaped [ in pattern without closing ].
60188         Don't pass GLOB_CHECK down to recursive glob for directories.
60189         (__glob_pattern_type): New function.
60190         (__glob_pattern_p): Implement using __glob_pattern_type.
60191         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60192         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60193         Remove unreachable code.
60194
60195         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60196
60197         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60198         explain why there are no leaks.
60199
60200         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60201
60202         [BZ #3253]
60203         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60204         time, rather allocate increasingly bigger arrays of pointers, if
60205         possible with alloca, if too large with malloc.
60206
60207 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60208
60209         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60210         Problem reported by H.Merijn Brand in
60211         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60212         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60213         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60214
60215 2007-10-15  Bruno Haible  <bruno@clisp.org>
60216
60217         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60218         with explicit rpl_ prefix.
60219         * lib/fopen.c (fopen): Likewise.
60220         * lib/freopen.c (freopen): Likewise.
60221         * lib/iconv.c (iconv): Likewise.
60222         * lib/iconv_close.c (iconv_close): Likewise.
60223
60224 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60225
60226         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60227
60228 2007-10-15  Bruno Haible  <bruno@clisp.org>
60229
60230         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60231         <stddef.h> instead of <stdlib.h> since we only need NULL.
60232         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60233
60234 2007-10-15  Bruno Haible  <bruno@clisp.org>
60235
60236         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60237         Replace paragraph talking about LIBOBJS.
60238         Reported by Colin Watson <cjwatson@debian.org>.
60239
60240 2007-10-15  Bruno Haible  <bruno@clisp.org>
60241
60242         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60243         <stdlib.h> before using NULL.
60244
60245 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60246
60247         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60248         Reported by Albert Chin <china@thewrittenword.com>.
60249
60250 2007-10-14  Bruno Haible  <bruno@clisp.org>
60251
60252         * modules/iconv_open-utf-tests: New file.
60253         * tests/test-iconv-utf.c: New file.
60254
60255         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60256         * modules/iconv_open-utf: New file.
60257         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60258         (iconv, iconv_close): New declarations.
60259         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60260         be defined.
60261         (iconv_open): Add special handling of conversion between UTF-8 and
60262         UTF-{16,32}{BE,LE}.
60263         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60264         * lib/iconv_close.c: New file.
60265         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60266         gl_FUNC_ICONV_OPEN.
60267         (gl_FUNC_ICONV_OPEN): Use it.
60268         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60269         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60270         and REPLACE_ICONV_UTF.
60271         * modules/iconv_open (Depends-on): Add c-strcase.
60272         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60273         ICONV_CONST.
60274         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60275
60276 2007-10-13  Albert Chin  <china@thewrittenword.com>
60277             Bruno Haible  <bruno@clisp.org>
60278
60279         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60280         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60281
60282 2007-10-13  Bruno Haible  <bruno@clisp.org>
60283
60284         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60285         defined, use the ISO C99 inline semantics.
60286         * lib/argp.h (ARGP_EI): Likewise.
60287
60288 2007-10-13  Bruno Haible  <bruno@clisp.org>
60289
60290         Handle 'inline' change in gcc 4.3.0.
60291         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60292         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60293         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60294         argp_fmtstream_point): Disable 'extern' declaration if the function
60295         definition is going to be provided inline.
60296         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60297         semantics, not the ISO C99 inline semantics.
60298         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60299         'extern' declaration if the function definition is going to be provided
60300         inline.
60301         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60302         the GNU C inline semantics, not the ISO C99 inline semantics. With
60303         GCC 4.2, avoid a warning.
60304
60305 2007-10-13  Bruno Haible  <bruno@clisp.org>
60306
60307         * lib/freading.h (freading): Enable the use of __freading for
60308         glibc >= 2.7.
60309         * lib/freading.c (freading): Likewise.
60310
60311 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60312
60313         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60314         "warning: C99 inline functions are not supported; using GNU89".
60315
60316 2007-10-12  Bruno Haible  <bruno@clisp.org>
60317
60318         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60319         of 2.
60320         * tests/test-ceilf2.c: New file.
60321         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
60322
60323         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
60324         * modules/ceilf-tests: Update.
60325
60326 2007-10-12  Bruno Haible  <bruno@clisp.org>
60327
60328         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
60329         of 2.
60330         * tests/test-floorf2.c: New file.
60331         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
60332
60333         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
60334         * modules/floorf-tests: Update.
60335
60336 2007-10-12  Bruno Haible  <bruno@clisp.org>
60337
60338         * tests/test-trunc2.c: New file.
60339         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
60340
60341         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
60342         * modules/trunc-tests: Update.
60343
60344 2007-10-12  Bruno Haible  <bruno@clisp.org>
60345
60346         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
60347         of 2.
60348         * tests/test-truncf2.c: New file.
60349         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
60350
60351         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
60352         * modules/truncf-tests: Update.
60353
60354 2007-10-11  Eric Blake  <ebb9@byu.net>
60355
60356         Don't claim strerror is broken on Interix.
60357         * doc/functions/strerror.texi (strerror): Known broken systems are
60358         now Solaris 8, and not Interix.
60359         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60360         Interix on cross-compile.
60361         Reported by Martin Koeppe in
60362         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60363
60364 2007-10-11  Bruno Haible  <bruno@clisp.org>
60365
60366         * modules/i-ring-tests: New file.
60367         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60368         instead of assert.
60369
60370 2007-10-11  Bruno Haible  <bruno@clisp.org>
60371
60372         * modules/filenamecat-tests: New file.
60373         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60374         * lib/filenamecat.c: Remove test code.
60375
60376 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60377
60378         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60379
60380         * lib/strerror.c: Include <string.h> always, to test interface,
60381         and to remove the need for the dummy.
60382         Include intprops.h to compute width instead of doing it ourselves
60383         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60384         (strerror): Define it to return NULL if there's no system strerror.
60385         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60386         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60387         ancient pre-strerror Unix systems well any more.  Saying "unknown
60388         system error" is enough.
60389         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60390         simpler strerror.c implementation.
60391         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60392         Simplify the tests to reflect the simpler strerror implementation.
60393         * modules/strerror (Depends-on): Add intprops.
60394
60395 2007-10-09  Eric Blake  <ebb9@byu.net>
60396
60397         Silence test-fpending.
60398         * modules/fpending-tests (Files): Add wrapper script.
60399         * tests/test-fpending.sh: New file.
60400
60401 2007-10-09  Bruno Haible  <bruno@clisp.org>
60402
60403         * MODULES.html.sh (func_module): Don't create a hyperlink for
60404         function names like 'printf_frexp'.
60405         (Misc): Add crc, memxor.
60406         (Characteristics of floating types): New section.
60407         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
60408         isnanf-nolibm, signbit, trunc, truncf, truncl.
60409         (Enhancements for ISO C 99 functions): New subsection Input/output.
60410         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
60411         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
60412         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
60413         (Compatibility checks for POSIX:2001 functions): Add clock-time.
60414         (Enhancements for POSIX:2001 functions): Add chdir-long.
60415         (File system functions): Add areadlink, chdir-safer, read-file.
60416         Remove cycle-check.
60417         (File system as inode set): New section.
60418         (Date and time): Add gethrxtime.
60419         (Multithreading): Add openmp.
60420         (Internationalization functions): Add localename.
60421         (Unicode string functions): Add unistr/u*-mbsnlen.
60422         (Support for maintaining and releasing projects): Add git-version-gen.
60423         (Lone files): Remove directories.
60424
60425 2007-10-08  Ben Pfaff  <blp@gnu.org>
60426
60427         * lib/xmalloca.h: Fix typo in comment.
60428
60429 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60430
60431         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
60432         when avoiding problems with integer overflow.  Use a portable test
60433         instead.
60434
60435 2007-10-08  Simon Josefsson  <simon@josefsson.org>
60436
60437         * modules/dummy (License): Change to LGPLv2+.
60438         * modules/float (License): Likewise
60439         * modules/realloc (License): Likewise
60440         * modules/stdlib (License): Likewise
60441
60442 2007-10-07  Bruno Haible  <bruno@clisp.org>
60443
60444         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
60445         * floor.c (TWO_MANT_DIG): Likewise.
60446         * ceil.c (TWO_MANT_DIG): Likewise.
60447         Reported by Ben Pfaff.
60448
60449 2007-10-07  Bruno Haible  <bruno@clisp.org>
60450
60451         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
60452         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
60453         * lib/frexp.c (FUNC): Likewise.
60454         * lib/printf-frexp.h (printf_frexp): Likewise.
60455         * lib/printf-frexpl.h (printf_frexpl): Likewise.
60456         * lib/printf-frexp.c (FUNC): Likewise.
60457         Suggested by Jim Meyering.
60458
60459 2007-10-07  Jim Meyering  <meyering@redhat.com>
60460
60461         Make xnanosleep's integer overflow test more robust.
60462         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
60463         so that gcc-4.3.0 doesn't optimize away this test for overflow.
60464
60465 2007-10-07  Bruno Haible  <bruno@clisp.org>
60466
60467         * NEWS: Mention the license change.
60468
60469         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
60470         abbreviations in the modules files.
60471
60472         Change copyright notice from GPLv2+ to GPLv3+.
60473         * README: Change copyright notice.
60474         * MODULES.html.sh: Likewise.
60475         * build-aux/bootstrap.conf: Likewise.
60476         * build-aux/config.libpath: Likewise.
60477         * build-aux/csharpcomp.sh.in: Likewise.
60478         * build-aux/csharpexec.sh.in: Likewise.
60479         * build-aux/install-reloc: Likewise.
60480         * build-aux/javacomp.sh.in: Likewise.
60481         * build-aux/javaexec.sh.in: Likewise.
60482         * build-aux/ldd.sh.in: Likewise.
60483         * build-aux/reloc-ldflags: Likewise.
60484         * build-aux/relocatable.sh.in: Likewise.
60485         * build-aux/x-to-1.in: Likewise.
60486         * check-module: Likewise.
60487         * config/srclistvars.sh: Likewise.
60488         * gnulib-tool: Likewise.
60489         * lib/acl-internal.h: Likewise.
60490         * lib/acl.c: Likewise.
60491         * lib/acl.h: Likewise.
60492         * lib/acl_entries.c: Likewise.
60493         * lib/areadlink-with-size.c: Likewise.
60494         * lib/areadlink.c: Likewise.
60495         * lib/areadlink.h: Likewise.
60496         * lib/argmatch.c: Likewise.
60497         * lib/argmatch.h: Likewise.
60498         * lib/argp-ba.c: Likewise.
60499         * lib/argp-eexst.c: Likewise.
60500         * lib/argp-fmtstream.c: Likewise.
60501         * lib/argp-fmtstream.h: Likewise.
60502         * lib/argp-fs-xinl.c: Likewise.
60503         * lib/argp-help.c: Likewise.
60504         * lib/argp-namefrob.h: Likewise.
60505         * lib/argp-parse.c: Likewise.
60506         * lib/argp-pin.c: Likewise.
60507         * lib/argp-pv.c: Likewise.
60508         * lib/argp-pvh.c: Likewise.
60509         * lib/argp-xinl.c: Likewise.
60510         * lib/argp.h: Likewise.
60511         * lib/at-func.c: Likewise.
60512         * lib/atanl.c: Likewise.
60513         * lib/backupfile.c: Likewise.
60514         * lib/backupfile.h: Likewise.
60515         * lib/basename.c: Likewise.
60516         * lib/binary-io.h: Likewise.
60517         * lib/byteswap.in.h: Likewise.
60518         * lib/c-stack.c: Likewise.
60519         * lib/c-stack.h: Likewise.
60520         * lib/c-strcasestr.c: Likewise.
60521         * lib/c-strcasestr.h: Likewise.
60522         * lib/c-strstr.c: Likewise.
60523         * lib/c-strstr.h: Likewise.
60524         * lib/c-strtod.c: Likewise.
60525         * lib/calloc.c: Likewise.
60526         * lib/canon-host.c: Likewise.
60527         * lib/canon-host.h: Likewise.
60528         * lib/canonicalize-lgpl.c: Likewise.
60529         * lib/canonicalize.c: Likewise.
60530         * lib/canonicalize.h: Likewise.
60531         * lib/ceil.c: Likewise.
60532         * lib/ceilf.c: Likewise.
60533         * lib/ceill.c: Likewise.
60534         * lib/chdir-long.c: Likewise.
60535         * lib/chdir-long.h: Likewise.
60536         * lib/chdir-safer.c: Likewise.
60537         * lib/chdir-safer.h: Likewise.
60538         * lib/chown.c: Likewise.
60539         * lib/classpath.c: Likewise.
60540         * lib/classpath.h: Likewise.
60541         * lib/clean-temp.c: Likewise.
60542         * lib/clean-temp.h: Likewise.
60543         * lib/cloexec.c: Likewise.
60544         * lib/close-stream.c: Likewise.
60545         * lib/closein.c: Likewise.
60546         * lib/closein.h: Likewise.
60547         * lib/closeout.c: Likewise.
60548         * lib/closeout.h: Likewise.
60549         * lib/concat-filename.c: Likewise.
60550         * lib/copy-file.c: Likewise.
60551         * lib/copy-file.h: Likewise.
60552         * lib/count-one-bits.h: Likewise.
60553         * lib/crc.c: Likewise.
60554         * lib/crc.h: Likewise.
60555         * lib/creat-safer.c: Likewise.
60556         * lib/csharpcomp.c: Likewise.
60557         * lib/csharpcomp.h: Likewise.
60558         * lib/csharpexec.c: Likewise.
60559         * lib/csharpexec.h: Likewise.
60560         * lib/cycle-check.c: Likewise.
60561         * lib/cycle-check.h: Likewise.
60562         * lib/diacrit.c: Likewise.
60563         * lib/diacrit.h: Likewise.
60564         * lib/diffseq.h: Likewise.
60565         * lib/dirchownmod.c: Likewise.
60566         * lib/dirent.in.h: Likewise.
60567         * lib/dirfd.c: Likewise.
60568         * lib/dirfd.h: Likewise.
60569         * lib/dirname.c: Likewise.
60570         * lib/dirname.h: Likewise.
60571         * lib/dummy.c: Likewise.
60572         * lib/dup-safer.c: Likewise.
60573         * lib/dup2.c: Likewise.
60574         * lib/eealloc.h: Likewise.
60575         * lib/error.c: Likewise.
60576         * lib/error.h: Likewise.
60577         * lib/euidaccess.c: Likewise.
60578         * lib/exclude.c: Likewise.
60579         * lib/exclude.h: Likewise.
60580         * lib/execute.c: Likewise.
60581         * lib/execute.h: Likewise.
60582         * lib/exitfail.c: Likewise.
60583         * lib/exitfail.h: Likewise.
60584         * lib/expl.c: Likewise.
60585         * lib/fatal-signal.c: Likewise.
60586         * lib/fatal-signal.h: Likewise.
60587         * lib/fbufmode.c: Likewise.
60588         * lib/fbufmode.h: Likewise.
60589         * lib/fchdir.c: Likewise.
60590         * lib/fchmodat.c: Likewise.
60591         * lib/fchownat.c: Likewise.
60592         * lib/fcntl--.h: Likewise.
60593         * lib/fcntl-safer.h: Likewise.
60594         * lib/fcntl.in.h: Likewise.
60595         * lib/fd-safer.c: Likewise.
60596         * lib/fflush.c: Likewise.
60597         * lib/file-has-acl.c: Likewise.
60598         * lib/file-set.c: Likewise.
60599         * lib/file-type.c: Likewise.
60600         * lib/file-type.h: Likewise.
60601         * lib/fileblocks.c: Likewise.
60602         * lib/filemode.c: Likewise.
60603         * lib/filemode.h: Likewise.
60604         * lib/filename.h: Likewise.
60605         * lib/filenamecat.c: Likewise.
60606         * lib/filenamecat.h: Likewise.
60607         * lib/findprog.c: Likewise.
60608         * lib/findprog.h: Likewise.
60609         * lib/float.in.h: Likewise.
60610         * lib/floor.c: Likewise.
60611         * lib/floorf.c: Likewise.
60612         * lib/floorl.c: Likewise.
60613         * lib/fopen-safer.c: Likewise.
60614         * lib/fopen.c: Likewise.
60615         * lib/fpending.c: Likewise.
60616         * lib/fpending.h: Likewise.
60617         * lib/fprintf.c: Likewise.
60618         * lib/fprintftime.h: Likewise.
60619         * lib/fpucw.h: Likewise.
60620         * lib/fpurge.c: Likewise.
60621         * lib/fpurge.h: Likewise.
60622         * lib/freadable.c: Likewise.
60623         * lib/freadable.h: Likewise.
60624         * lib/freadahead.c: Likewise.
60625         * lib/freadahead.h: Likewise.
60626         * lib/freading.c: Likewise.
60627         * lib/freading.h: Likewise.
60628         * lib/free.c: Likewise.
60629         * lib/freopen.c: Likewise.
60630         * lib/frexp.c: Likewise.
60631         * lib/frexpl.c: Likewise.
60632         * lib/fseek.c: Likewise.
60633         * lib/fseterr.c: Likewise.
60634         * lib/fseterr.h: Likewise.
60635         * lib/fstatat.c: Likewise.
60636         * lib/fstrcmp.c: Likewise.
60637         * lib/fstrcmp.h: Likewise.
60638         * lib/fsusage.c: Likewise.
60639         * lib/fsusage.h: Likewise.
60640         * lib/ftell.c: Likewise.
60641         * lib/ftello.c: Likewise.
60642         * lib/fts-cycle.c: Likewise.
60643         * lib/fts.c: Likewise.
60644         * lib/fts_.h: Likewise.
60645         * lib/full-read.c: Likewise.
60646         * lib/full-read.h: Likewise.
60647         * lib/full-write.c: Likewise.
60648         * lib/full-write.h: Likewise.
60649         * lib/fwritable.c: Likewise.
60650         * lib/fwritable.h: Likewise.
60651         * lib/fwriteerror.c: Likewise.
60652         * lib/fwriteerror.h: Likewise.
60653         * lib/fwriting.c: Likewise.
60654         * lib/fwriting.h: Likewise.
60655         * lib/gcd.c: Likewise.
60656         * lib/gcd.h: Likewise.
60657         * lib/getcwd.c: Likewise.
60658         * lib/getdate.h: Likewise.
60659         * lib/getdate.y: Likewise.
60660         * lib/getdomainname.c: Likewise.
60661         * lib/getdomainname.h: Likewise.
60662         * lib/getgroups.c: Likewise.
60663         * lib/gethostname.c: Likewise.
60664         * lib/gethrxtime.c: Likewise.
60665         * lib/gethrxtime.h: Likewise.
60666         * lib/getloadavg.c: Likewise.
60667         * lib/getndelim2.c: Likewise.
60668         * lib/getndelim2.h: Likewise.
60669         * lib/getnline.c: Likewise.
60670         * lib/getnline.h: Likewise.
60671         * lib/getopt.c: Likewise.
60672         * lib/getopt.in.h: Likewise.
60673         * lib/getopt1.c: Likewise.
60674         * lib/getopt_int.h: Likewise.
60675         * lib/getpagesize.h: Likewise.
60676         * lib/getsubopt.c: Likewise.
60677         * lib/gettime.c: Likewise.
60678         * lib/getugroups.c: Likewise.
60679         * lib/getugroups.h: Likewise.
60680         * lib/getusershell.c: Likewise.
60681         * lib/gl_anyavltree_list1.h: Likewise.
60682         * lib/gl_anyavltree_list2.h: Likewise.
60683         * lib/gl_anyhash_list1.h: Likewise.
60684         * lib/gl_anyhash_list2.h: Likewise.
60685         * lib/gl_anylinked_list1.h: Likewise.
60686         * lib/gl_anylinked_list2.h: Likewise.
60687         * lib/gl_anyrbtree_list1.h: Likewise.
60688         * lib/gl_anyrbtree_list2.h: Likewise.
60689         * lib/gl_anytree_list1.h: Likewise.
60690         * lib/gl_anytree_list2.h: Likewise.
60691         * lib/gl_anytree_oset.h: Likewise.
60692         * lib/gl_anytreehash_list1.h: Likewise.
60693         * lib/gl_anytreehash_list2.h: Likewise.
60694         * lib/gl_array_list.c: Likewise.
60695         * lib/gl_array_list.h: Likewise.
60696         * lib/gl_array_oset.c: Likewise.
60697         * lib/gl_array_oset.h: Likewise.
60698         * lib/gl_avltree_list.c: Likewise.
60699         * lib/gl_avltree_list.h: Likewise.
60700         * lib/gl_avltree_oset.c: Likewise.
60701         * lib/gl_avltree_oset.h: Likewise.
60702         * lib/gl_avltreehash_list.c: Likewise.
60703         * lib/gl_avltreehash_list.h: Likewise.
60704         * lib/gl_carray_list.c: Likewise.
60705         * lib/gl_carray_list.h: Likewise.
60706         * lib/gl_linked_list.c: Likewise.
60707         * lib/gl_linked_list.h: Likewise.
60708         * lib/gl_linkedhash_list.c: Likewise.
60709         * lib/gl_linkedhash_list.h: Likewise.
60710         * lib/gl_list.c: Likewise.
60711         * lib/gl_list.h: Likewise.
60712         * lib/gl_oset.c: Likewise.
60713         * lib/gl_oset.h: Likewise.
60714         * lib/gl_rbtree_list.c: Likewise.
60715         * lib/gl_rbtree_list.h: Likewise.
60716         * lib/gl_rbtree_oset.c: Likewise.
60717         * lib/gl_rbtree_oset.h: Likewise.
60718         * lib/gl_rbtreehash_list.c: Likewise.
60719         * lib/gl_rbtreehash_list.h: Likewise.
60720         * lib/gl_sublist.c: Likewise.
60721         * lib/gl_sublist.h: Likewise.
60722         * lib/group-member.c: Likewise.
60723         * lib/group-member.h: Likewise.
60724         * lib/hard-locale.c: Likewise.
60725         * lib/hard-locale.h: Likewise.
60726         * lib/hash-pjw.c: Likewise.
60727         * lib/hash-pjw.h: Likewise.
60728         * lib/hash-triple.c: Likewise.
60729         * lib/hash.c: Likewise.
60730         * lib/hash.h: Likewise.
60731         * lib/human.c: Likewise.
60732         * lib/human.h: Likewise.
60733         * lib/i-ring.c: Likewise.
60734         * lib/i-ring.h: Likewise.
60735         * lib/idcache.c: Likewise.
60736         * lib/imaxabs.c: Likewise.
60737         * lib/imaxdiv.c: Likewise.
60738         * lib/inet_pton.c: Likewise.
60739         * lib/inet_pton.h: Likewise.
60740         * lib/intprops.h: Likewise.
60741         * lib/inttostr.c: Likewise.
60742         * lib/inttostr.h: Likewise.
60743         * lib/inttypes.in.h: Likewise.
60744         * lib/isapipe.c: Likewise.
60745         * lib/isdir.c: Likewise.
60746         * lib/isnan.c: Likewise.
60747         * lib/isnan.h: Likewise.
60748         * lib/isnanf.c: Likewise.
60749         * lib/isnanf.h: Likewise.
60750         * lib/isnanl-nolibm.h: Likewise.
60751         * lib/isnanl.c: Likewise.
60752         * lib/isnanl.h: Likewise.
60753         * lib/javacomp.c: Likewise.
60754         * lib/javacomp.h: Likewise.
60755         * lib/javaexec.c: Likewise.
60756         * lib/javaexec.h: Likewise.
60757         * lib/javaversion.c: Likewise.
60758         * lib/javaversion.h: Likewise.
60759         * lib/javaversion.java: Likewise.
60760         * lib/lbrkprop.h: Likewise.
60761         * lib/lchmod.h: Likewise.
60762         * lib/lchown.c: Likewise.
60763         * lib/ldexpl.c: Likewise.
60764         * lib/linebreak.c: Likewise.
60765         * lib/linebreak.h: Likewise.
60766         * lib/linebuffer.c: Likewise.
60767         * lib/linebuffer.h: Likewise.
60768         * lib/locale.in.h: Likewise.
60769         * lib/logl.c: Likewise.
60770         * lib/long-options.c: Likewise.
60771         * lib/long-options.h: Likewise.
60772         * lib/lstat.c: Likewise.
60773         * lib/lstat.h: Likewise.
60774         * lib/math.in.h: Likewise.
60775         * lib/mbchar.c: Likewise.
60776         * lib/mbchar.h: Likewise.
60777         * lib/mbfile.h: Likewise.
60778         * lib/mbiter.h: Likewise.
60779         * lib/mbscasecmp.c: Likewise.
60780         * lib/mbscasestr.c: Likewise.
60781         * lib/mbschr.c: Likewise.
60782         * lib/mbscspn.c: Likewise.
60783         * lib/mbslen.c: Likewise.
60784         * lib/mbsncasecmp.c: Likewise.
60785         * lib/mbsnlen.c: Likewise.
60786         * lib/mbspbrk.c: Likewise.
60787         * lib/mbspcasecmp.c: Likewise.
60788         * lib/mbsrchr.c: Likewise.
60789         * lib/mbssep.c: Likewise.
60790         * lib/mbsspn.c: Likewise.
60791         * lib/mbsstr.c: Likewise.
60792         * lib/mbstok_r.c: Likewise.
60793         * lib/mbswidth.c: Likewise.
60794         * lib/mbswidth.h: Likewise.
60795         * lib/mbuiter.h: Likewise.
60796         * lib/memcasecmp.c: Likewise.
60797         * lib/memcasecmp.h: Likewise.
60798         * lib/memchr.c: Likewise.
60799         * lib/memcmp.c: Likewise.
60800         * lib/memcoll.c: Likewise.
60801         * lib/memcoll.h: Likewise.
60802         * lib/memcpy.c: Likewise.
60803         * lib/memrchr.c: Likewise.
60804         * lib/mkancesdirs.c: Likewise.
60805         * lib/mkdir-p.c: Likewise.
60806         * lib/mkdir-p.h: Likewise.
60807         * lib/mkdir.c: Likewise.
60808         * lib/mkdirat.c: Likewise.
60809         * lib/mkdtemp.c: Likewise.
60810         * lib/mkstemp-safer.c: Likewise.
60811         * lib/mkstemp.c: Likewise.
60812         * lib/modechange.c: Likewise.
60813         * lib/modechange.h: Likewise.
60814         * lib/mountlist.c: Likewise.
60815         * lib/mountlist.h: Likewise.
60816         * lib/mpsort.c: Likewise.
60817         * lib/nanosleep.c: Likewise.
60818         * lib/obstack.c: Likewise.
60819         * lib/obstack.h: Likewise.
60820         * lib/open-safer.c: Likewise.
60821         * lib/open.c: Likewise.
60822         * lib/openat-die.c: Likewise.
60823         * lib/openat-priv.h: Likewise.
60824         * lib/openat-proc.c: Likewise.
60825         * lib/openat.c: Likewise.
60826         * lib/openat.h: Likewise.
60827         * lib/pagealign_alloc.c: Likewise.
60828         * lib/pagealign_alloc.h: Likewise.
60829         * lib/physmem.c: Likewise.
60830         * lib/physmem.h: Likewise.
60831         * lib/pipe-safer.c: Likewise.
60832         * lib/pipe.c: Likewise.
60833         * lib/pipe.h: Likewise.
60834         * lib/posixtm.c: Likewise.
60835         * lib/posixtm.h: Likewise.
60836         * lib/posixver.c: Likewise.
60837         * lib/printf-frexp.c: Likewise.
60838         * lib/printf-frexp.h: Likewise.
60839         * lib/printf-frexpl.c: Likewise.
60840         * lib/printf-frexpl.h: Likewise.
60841         * lib/printf.c: Likewise.
60842         * lib/progname.c: Likewise.
60843         * lib/progname.h: Likewise.
60844         * lib/progreloc.c: Likewise.
60845         * lib/putenv.c: Likewise.
60846         * lib/quote.c: Likewise.
60847         * lib/quote.h: Likewise.
60848         * lib/quotearg.c: Likewise.
60849         * lib/quotearg.h: Likewise.
60850         * lib/raise.c: Likewise.
60851         * lib/readline.c: Likewise.
60852         * lib/readline.h: Likewise.
60853         * lib/readlink.c: Likewise.
60854         * lib/readtokens.c: Likewise.
60855         * lib/readtokens.h: Likewise.
60856         * lib/readtokens0.c: Likewise.
60857         * lib/readtokens0.h: Likewise.
60858         * lib/readutmp.c: Likewise.
60859         * lib/readutmp.h: Likewise.
60860         * lib/realloc.c: Likewise.
60861         * lib/relocwrapper.c: Likewise.
60862         * lib/rename-dest-slash.c: Likewise.
60863         * lib/rename.c: Likewise.
60864         * lib/rmdir.c: Likewise.
60865         * lib/rpmatch.c: Likewise.
60866         * lib/safe-read.c: Likewise.
60867         * lib/safe-read.h: Likewise.
60868         * lib/safe-write.c: Likewise.
60869         * lib/safe-write.h: Likewise.
60870         * lib/same-inode.h: Likewise.
60871         * lib/same.c: Likewise.
60872         * lib/same.h: Likewise.
60873         * lib/save-cwd.c: Likewise.
60874         * lib/save-cwd.h: Likewise.
60875         * lib/savedir.c: Likewise.
60876         * lib/savedir.h: Likewise.
60877         * lib/savewd.c: Likewise.
60878         * lib/savewd.h: Likewise.
60879         * lib/search.in.h: Likewise.
60880         * lib/setenv.c: Likewise.
60881         * lib/setenv.h: Likewise.
60882         * lib/settime.c: Likewise.
60883         * lib/sh-quote.c: Likewise.
60884         * lib/sh-quote.h: Likewise.
60885         * lib/sig2str.c: Likewise.
60886         * lib/sig2str.h: Likewise.
60887         * lib/signal.in.h: Likewise.
60888         * lib/signbitd.c: Likewise.
60889         * lib/signbitf.c: Likewise.
60890         * lib/signbitl.c: Likewise.
60891         * lib/sigprocmask.c: Likewise.
60892         * lib/sincosl.c: Likewise.
60893         * lib/sleep.c: Likewise.
60894         * lib/sprintf.c: Likewise.
60895         * lib/sqrtl.c: Likewise.
60896         * lib/stat-time.h: Likewise.
60897         * lib/stdio--.h: Likewise.
60898         * lib/stdio-safer.h: Likewise.
60899         * lib/stdlib--.h: Likewise.
60900         * lib/stdlib-safer.h: Likewise.
60901         * lib/stdlib.in.h: Likewise.
60902         * lib/stpcpy.c: Likewise.
60903         * lib/stpncpy.c: Likewise.
60904         * lib/strchrnul.c: Likewise.
60905         * lib/strcspn.c: Likewise.
60906         * lib/strerror.c: Likewise.
60907         * lib/strftime.c: Likewise.
60908         * lib/strftime.h: Likewise.
60909         * lib/striconveh.c: Likewise.
60910         * lib/striconveh.h: Likewise.
60911         * lib/striconveha.c: Likewise.
60912         * lib/striconveha.h: Likewise.
60913         * lib/stripslash.c: Likewise.
60914         * lib/strnlen1.c: Likewise.
60915         * lib/strnlen1.h: Likewise.
60916         * lib/strtod.c: Likewise.
60917         * lib/strtoimax.c: Likewise.
60918         * lib/strtok_r.c: Likewise.
60919         * lib/strtol.c: Likewise.
60920         * lib/strtoll.c: Likewise.
60921         * lib/strtoul.c: Likewise.
60922         * lib/strtoull.c: Likewise.
60923         * lib/sysexits.in.h: Likewise.
60924         * lib/tempname.c: Likewise.
60925         * lib/tempname.h: Likewise.
60926         * lib/timespec.h: Likewise.
60927         * lib/tls.c: Likewise.
60928         * lib/tls.h: Likewise.
60929         * lib/tmpdir.c: Likewise.
60930         * lib/tmpdir.h: Likewise.
60931         * lib/tmpfile-safer.c: Likewise.
60932         * lib/tmpfile.c: Likewise.
60933         * lib/trigl.c: Likewise.
60934         * lib/trigl.h: Likewise.
60935         * lib/trim.c: Likewise.
60936         * lib/trim.h: Likewise.
60937         * lib/trunc.c: Likewise.
60938         * lib/truncf.c: Likewise.
60939         * lib/truncl.c: Likewise.
60940         * lib/tsearch.c: Likewise.
60941         * lib/unicodeio.c: Likewise.
60942         * lib/unicodeio.h: Likewise.
60943         * lib/unistd--.h: Likewise.
60944         * lib/unistd-safer.h: Likewise.
60945         * lib/unistdio/ulc-fprintf.c: Likewise.
60946         * lib/unistdio/ulc-vfprintf.c: Likewise.
60947         * lib/unlinkdir.c: Likewise.
60948         * lib/unlinkdir.h: Likewise.
60949         * lib/unlocked-io.h: Likewise.
60950         * lib/unsetenv.c: Likewise.
60951         * lib/userspec.c: Likewise.
60952         * lib/utime.c: Likewise.
60953         * lib/utimecmp.c: Likewise.
60954         * lib/utimecmp.h: Likewise.
60955         * lib/utimens.c: Likewise.
60956         * lib/verify.h: Likewise.
60957         * lib/verror.c: Likewise.
60958         * lib/verror.h: Likewise.
60959         * lib/version-etc-fsf.c: Likewise.
60960         * lib/version-etc.c: Likewise.
60961         * lib/version-etc.h: Likewise.
60962         * lib/vfprintf.c: Likewise.
60963         * lib/vprintf.c: Likewise.
60964         * lib/vsprintf.c: Likewise.
60965         * lib/w32spawn.h: Likewise.
60966         * lib/wait-process.c: Likewise.
60967         * lib/wait-process.h: Likewise.
60968         * lib/wcwidth.c: Likewise.
60969         * lib/write-any-file.c: Likewise.
60970         * lib/xalloc-die.c: Likewise.
60971         * lib/xalloc.h: Likewise.
60972         * lib/xasprintf.c: Likewise.
60973         * lib/xgetcwd.c: Likewise.
60974         * lib/xgetcwd.h: Likewise.
60975         * lib/xgetdomainname.c: Likewise.
60976         * lib/xgetdomainname.h: Likewise.
60977         * lib/xgethostname.c: Likewise.
60978         * lib/xmalloc.c: Likewise.
60979         * lib/xmalloca.c: Likewise.
60980         * lib/xmalloca.h: Likewise.
60981         * lib/xmemcoll.c: Likewise.
60982         * lib/xnanosleep.c: Likewise.
60983         * lib/xreadlink.c: Likewise.
60984         * lib/xreadlink.h: Likewise.
60985         * lib/xsetenv.c: Likewise.
60986         * lib/xsetenv.h: Likewise.
60987         * lib/xstriconv.c: Likewise.
60988         * lib/xstriconv.h: Likewise.
60989         * lib/xstrndup.c: Likewise.
60990         * lib/xstrndup.h: Likewise.
60991         * lib/xstrtod.c: Likewise.
60992         * lib/xstrtod.h: Likewise.
60993         * lib/xstrtol-error.c: Likewise.
60994         * lib/xstrtol.c: Likewise.
60995         * lib/xstrtol.h: Likewise.
60996         * lib/xtime.h: Likewise.
60997         * lib/xvasprintf.c: Likewise.
60998         * lib/xvasprintf.h: Likewise.
60999         * lib/yesno.c: Likewise.
61000         * lib/yesno.h: Likewise.
61001         * posix-modules: Likewise.
61002         * tests/test-alloca-opt.c: Likewise.
61003         * tests/test-arcfour.c: Likewise.
61004         * tests/test-arctwo.c: Likewise.
61005         * tests/test-argmatch.c: Likewise.
61006         * tests/test-argp-2.sh: Likewise.
61007         * tests/test-argp.c: Likewise.
61008         * tests/test-arpa_inet.c: Likewise.
61009         * tests/test-array_list.c: Likewise.
61010         * tests/test-array_oset.c: Likewise.
61011         * tests/test-atexit.c: Likewise.
61012         * tests/test-avltree_list.c: Likewise.
61013         * tests/test-avltree_oset.c: Likewise.
61014         * tests/test-avltreehash_list.c: Likewise.
61015         * tests/test-base64.c: Likewise.
61016         * tests/test-binary-io.c: Likewise.
61017         * tests/test-byteswap.c: Likewise.
61018         * tests/test-c-ctype.c: Likewise.
61019         * tests/test-c-strcasecmp.c: Likewise.
61020         * tests/test-c-strcasestr.c: Likewise.
61021         * tests/test-c-strncasecmp.c: Likewise.
61022         * tests/test-c-strstr.c: Likewise.
61023         * tests/test-canonicalize-lgpl.c: Likewise.
61024         * tests/test-canonicalize.c: Likewise.
61025         * tests/test-carray_list.c: Likewise.
61026         * tests/test-ceilf.c: Likewise.
61027         * tests/test-ceill.c: Likewise.
61028         * tests/test-count-one-bits.c: Likewise.
61029         * tests/test-crc.c: Likewise.
61030         * tests/test-dirname.c: Likewise.
61031         * tests/test-fbufmode.c: Likewise.
61032         * tests/test-fcntl.c: Likewise.
61033         * tests/test-fflush.c: Likewise.
61034         * tests/test-floorf.c: Likewise.
61035         * tests/test-floorl.c: Likewise.
61036         * tests/test-fopen.c: Likewise.
61037         * tests/test-fprintf-posix.c: Likewise.
61038         * tests/test-fprintf-posix.h: Likewise.
61039         * tests/test-fpurge.c: Likewise.
61040         * tests/test-freadable.c: Likewise.
61041         * tests/test-freadahead.c: Likewise.
61042         * tests/test-freading.c: Likewise.
61043         * tests/test-freopen.c: Likewise.
61044         * tests/test-frexp.c: Likewise.
61045         * tests/test-frexpl.c: Likewise.
61046         * tests/test-fseek.c: Likewise.
61047         * tests/test-fseeko.c: Likewise.
61048         * tests/test-fseterr.c: Likewise.
61049         * tests/test-fstrcmp.c: Likewise.
61050         * tests/test-ftell.c: Likewise.
61051         * tests/test-ftello.c: Likewise.
61052         * tests/test-fwritable.c: Likewise.
61053         * tests/test-fwriting.c: Likewise.
61054         * tests/test-getaddrinfo.c: Likewise.
61055         * tests/test-getpass.c: Likewise.
61056         * tests/test-gettimeofday.c: Likewise.
61057         * tests/test-hmac-md5.c: Likewise.
61058         * tests/test-hmac-sha1.c: Likewise.
61059         * tests/test-iconv.c: Likewise.
61060         * tests/test-iconvme.c: Likewise.
61061         * tests/test-inttypes.c: Likewise.
61062         * tests/test-isnan.c: Likewise.
61063         * tests/test-isnanf.c: Likewise.
61064         * tests/test-isnanl-nolibm.c: Likewise.
61065         * tests/test-isnanl.c: Likewise.
61066         * tests/test-isnanl.h: Likewise.
61067         * tests/test-ldexpl.c: Likewise.
61068         * tests/test-linked_list.c: Likewise.
61069         * tests/test-linkedhash_list.c: Likewise.
61070         * tests/test-locale.c: Likewise.
61071         * tests/test-localename.c: Likewise.
61072         * tests/test-lock.c: Likewise.
61073         * tests/test-lseek.c: Likewise.
61074         * tests/test-malloca.c: Likewise.
61075         * tests/test-math.c: Likewise.
61076         * tests/test-mbscasecmp.c: Likewise.
61077         * tests/test-mbscasestr1.c: Likewise.
61078         * tests/test-mbscasestr2.c: Likewise.
61079         * tests/test-mbscasestr3.c: Likewise.
61080         * tests/test-mbscasestr4.c: Likewise.
61081         * tests/test-mbschr.c: Likewise.
61082         * tests/test-mbscspn.c: Likewise.
61083         * tests/test-mbsncasecmp.c: Likewise.
61084         * tests/test-mbspbrk.c: Likewise.
61085         * tests/test-mbspcasecmp.c: Likewise.
61086         * tests/test-mbsrchr.c: Likewise.
61087         * tests/test-mbsspn.c: Likewise.
61088         * tests/test-mbsstr1.c: Likewise.
61089         * tests/test-mbsstr2.c: Likewise.
61090         * tests/test-mbsstr3.c: Likewise.
61091         * tests/test-md5.c: Likewise.
61092         * tests/test-memmem.c: Likewise.
61093         * tests/test-netinet_in.c: Likewise.
61094         * tests/test-open.c: Likewise.
61095         * tests/test-printf-frexp.c: Likewise.
61096         * tests/test-printf-frexpl.c: Likewise.
61097         * tests/test-printf-posix.c: Likewise.
61098         * tests/test-printf-posix.h: Likewise.
61099         * tests/test-rbtree_list.c: Likewise.
61100         * tests/test-rbtree_oset.c: Likewise.
61101         * tests/test-rbtreehash_list.c: Likewise.
61102         * tests/test-read-file.c: Likewise.
61103         * tests/test-rijndael.c: Likewise.
61104         * tests/test-search.c: Likewise.
61105         * tests/test-signbit.c: Likewise.
61106         * tests/test-sleep.c: Likewise.
61107         * tests/test-snprintf-posix.c: Likewise.
61108         * tests/test-snprintf-posix.h: Likewise.
61109         * tests/test-snprintf.c: Likewise.
61110         * tests/test-sprintf-posix.c: Likewise.
61111         * tests/test-sprintf-posix.h: Likewise.
61112         * tests/test-stat-time.c: Likewise.
61113         * tests/test-stdbool.c: Likewise.
61114         * tests/test-stdint.c: Likewise.
61115         * tests/test-stdio.c: Likewise.
61116         * tests/test-stdlib.c: Likewise.
61117         * tests/test-stpncpy.c: Likewise.
61118         * tests/test-strcasestr.c: Likewise.
61119         * tests/test-striconv.c: Likewise.
61120         * tests/test-striconveh.c: Likewise.
61121         * tests/test-striconveha.c: Likewise.
61122         * tests/test-string.c: Likewise.
61123         * tests/test-sys_select.c: Likewise.
61124         * tests/test-sys_socket.c: Likewise.
61125         * tests/test-sys_stat.c: Likewise.
61126         * tests/test-sys_time.c: Likewise.
61127         * tests/test-sysexits.c: Likewise.
61128         * tests/test-time.c: Likewise.
61129         * tests/test-tls.c: Likewise.
61130         * tests/test-trunc.c: Likewise.
61131         * tests/test-truncf.c: Likewise.
61132         * tests/test-truncl.c: Likewise.
61133         * tests/test-unistd.c: Likewise.
61134         * tests/test-vasnprintf-posix.c: Likewise.
61135         * tests/test-vasnprintf-posix2.c: Likewise.
61136         * tests/test-vasnprintf.c: Likewise.
61137         * tests/test-vasprintf-posix.c: Likewise.
61138         * tests/test-vasprintf.c: Likewise.
61139         * tests/test-verify.c: Likewise.
61140         * tests/test-vfprintf-posix.c: Likewise.
61141         * tests/test-vprintf-posix.c: Likewise.
61142         * tests/test-vsnprintf-posix.c: Likewise.
61143         * tests/test-vsnprintf.c: Likewise.
61144         * tests/test-vsprintf-posix.c: Likewise.
61145         * tests/test-wchar.c: Likewise.
61146         * tests/test-wctype.c: Likewise.
61147         * tests/test-wcwidth.c: Likewise.
61148         * tests/test-xstrtol.c: Likewise.
61149         * tests/test-xvasprintf.c: Likewise.
61150         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61151         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61152         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61153         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61154         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61155         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61156         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61157         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61158         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61159         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61160         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61161         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61162         * tests/uniname/test-uninames.c: Likewise.
61163         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61164         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61165         * tests/unistdio/test-u16-printf1.h: Likewise.
61166         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61167         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61168         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61169         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61170         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61171         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61172         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61173         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61174         * tests/unistdio/test-u32-printf1.h: Likewise.
61175         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61176         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61177         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61178         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61179         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61180         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61181         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61182         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61183         * tests/unistdio/test-u8-printf1.h: Likewise.
61184         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61185         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61186         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61187         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61188         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61189         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61190         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61191         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61192         * tests/unistdio/test-ulc-printf1.h: Likewise.
61193         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61194         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61195         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61196         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61197         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61198         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61199         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61200         * tests/uniwidth/test-u16-width.c: Likewise.
61201         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61202         * tests/uniwidth/test-u32-width.c: Likewise.
61203         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61204         * tests/uniwidth/test-u8-width.c: Likewise.
61205         * tests/uniwidth/test-uc_width.c: Likewise.
61206         * config/srclist-update: Likewise.
61207         (fixlicense): Update to GPLv3+.
61208
61209         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61210         * tests/test-tsearch.c: Change copyright notice.
61211
61212         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61213         * lib/c-strcaseeq.h: Change copyright notice.
61214         * lib/streq.h: Likewise.
61215         * lib/uniconv.h: Likewise.
61216         * lib/uniconv/u-conv-from-enc.h: Likewise.
61217         * lib/uniconv/u-conv-to-enc.h: Likewise.
61218         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61219         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61220         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61221         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61222         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61223         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61224         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61225         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61226         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61227         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61228         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61229         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61230         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61231         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61232         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61233         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61234         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61235         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61236         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61237         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61238         * lib/uniname.h: Likewise.
61239         * lib/uniname/uniname.c: Likewise.
61240         * lib/unistdio.h: Likewise.
61241         * lib/unistdio/u-asnprintf.h: Likewise.
61242         * lib/unistdio/u-asprintf.h: Likewise.
61243         * lib/unistdio/u-printf-args.c: Likewise.
61244         * lib/unistdio/u-printf-args.h: Likewise.
61245         * lib/unistdio/u-printf-parse.h: Likewise.
61246         * lib/unistdio/u-snprintf.h: Likewise.
61247         * lib/unistdio/u-sprintf.h: Likewise.
61248         * lib/unistdio/u-vasprintf.h: Likewise.
61249         * lib/unistdio/u-vsnprintf.h: Likewise.
61250         * lib/unistdio/u-vsprintf.h: Likewise.
61251         * lib/unistdio/u16-asnprintf.c: Likewise.
61252         * lib/unistdio/u16-asprintf.c: Likewise.
61253         * lib/unistdio/u16-printf-parse.c: Likewise.
61254         * lib/unistdio/u16-snprintf.c: Likewise.
61255         * lib/unistdio/u16-sprintf.c: Likewise.
61256         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61257         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61258         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61259         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61260         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61261         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61262         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61263         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61264         * lib/unistdio/u16-vasnprintf.c: Likewise.
61265         * lib/unistdio/u16-vasprintf.c: Likewise.
61266         * lib/unistdio/u16-vsnprintf.c: Likewise.
61267         * lib/unistdio/u16-vsprintf.c: Likewise.
61268         * lib/unistdio/u32-asnprintf.c: Likewise.
61269         * lib/unistdio/u32-asprintf.c: Likewise.
61270         * lib/unistdio/u32-printf-parse.c: Likewise.
61271         * lib/unistdio/u32-snprintf.c: Likewise.
61272         * lib/unistdio/u32-sprintf.c: Likewise.
61273         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61274         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61275         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61276         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61277         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61278         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61279         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61280         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61281         * lib/unistdio/u32-vasnprintf.c: Likewise.
61282         * lib/unistdio/u32-vasprintf.c: Likewise.
61283         * lib/unistdio/u32-vsnprintf.c: Likewise.
61284         * lib/unistdio/u32-vsprintf.c: Likewise.
61285         * lib/unistdio/u8-asnprintf.c: Likewise.
61286         * lib/unistdio/u8-asprintf.c: Likewise.
61287         * lib/unistdio/u8-printf-parse.c: Likewise.
61288         * lib/unistdio/u8-snprintf.c: Likewise.
61289         * lib/unistdio/u8-sprintf.c: Likewise.
61290         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61291         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61292         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61293         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61294         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61295         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61296         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61297         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61298         * lib/unistdio/u8-vasnprintf.c: Likewise.
61299         * lib/unistdio/u8-vasprintf.c: Likewise.
61300         * lib/unistdio/u8-vsnprintf.c: Likewise.
61301         * lib/unistdio/u8-vsprintf.c: Likewise.
61302         * lib/unistdio/ulc-asnprintf.c: Likewise.
61303         * lib/unistdio/ulc-asprintf.c: Likewise.
61304         * lib/unistdio/ulc-printf-parse.c: Likewise.
61305         * lib/unistdio/ulc-snprintf.c: Likewise.
61306         * lib/unistdio/ulc-sprintf.c: Likewise.
61307         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61308         * lib/unistdio/ulc-vasprintf.c: Likewise.
61309         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61310         * lib/unistdio/ulc-vsprintf.c: Likewise.
61311         * lib/unistr.h: Likewise.
61312         * lib/unistr/u-cpy-alloc.h: Likewise.
61313         * lib/unistr/u-cpy.h: Likewise.
61314         * lib/unistr/u-endswith.h: Likewise.
61315         * lib/unistr/u-move.h: Likewise.
61316         * lib/unistr/u-set.h: Likewise.
61317         * lib/unistr/u-startswith.h: Likewise.
61318         * lib/unistr/u-stpcpy.h: Likewise.
61319         * lib/unistr/u-stpncpy.h: Likewise.
61320         * lib/unistr/u-strcat.h: Likewise.
61321         * lib/unistr/u-strcpy.h: Likewise.
61322         * lib/unistr/u-strcspn.h: Likewise.
61323         * lib/unistr/u-strdup.h: Likewise.
61324         * lib/unistr/u-strlen.h: Likewise.
61325         * lib/unistr/u-strncat.h: Likewise.
61326         * lib/unistr/u-strncpy.h: Likewise.
61327         * lib/unistr/u-strnlen.h: Likewise.
61328         * lib/unistr/u-strpbrk.h: Likewise.
61329         * lib/unistr/u-strspn.h: Likewise.
61330         * lib/unistr/u-strstr.h: Likewise.
61331         * lib/unistr/u-strtok.h: Likewise.
61332         * lib/unistr/u16-check.c: Likewise.
61333         * lib/unistr/u16-chr.c: Likewise.
61334         * lib/unistr/u16-cmp.c: Likewise.
61335         * lib/unistr/u16-cpy-alloc.c: Likewise.
61336         * lib/unistr/u16-cpy.c: Likewise.
61337         * lib/unistr/u16-endswith.c: Likewise.
61338         * lib/unistr/u16-mblen.c: Likewise.
61339         * lib/unistr/u16-mbsnlen.c: Likewise.
61340         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61341         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61342         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61343         * lib/unistr/u16-mbtouc.c: Likewise.
61344         * lib/unistr/u16-mbtoucr.c: Likewise.
61345         * lib/unistr/u16-move.c: Likewise.
61346         * lib/unistr/u16-next.c: Likewise.
61347         * lib/unistr/u16-prev.c: Likewise.
61348         * lib/unistr/u16-set.c: Likewise.
61349         * lib/unistr/u16-startswith.c: Likewise.
61350         * lib/unistr/u16-stpcpy.c: Likewise.
61351         * lib/unistr/u16-stpncpy.c: Likewise.
61352         * lib/unistr/u16-strcat.c: Likewise.
61353         * lib/unistr/u16-strchr.c: Likewise.
61354         * lib/unistr/u16-strcmp.c: Likewise.
61355         * lib/unistr/u16-strcpy.c: Likewise.
61356         * lib/unistr/u16-strcspn.c: Likewise.
61357         * lib/unistr/u16-strdup.c: Likewise.
61358         * lib/unistr/u16-strlen.c: Likewise.
61359         * lib/unistr/u16-strmblen.c: Likewise.
61360         * lib/unistr/u16-strmbtouc.c: Likewise.
61361         * lib/unistr/u16-strncat.c: Likewise.
61362         * lib/unistr/u16-strncmp.c: Likewise.
61363         * lib/unistr/u16-strncpy.c: Likewise.
61364         * lib/unistr/u16-strnlen.c: Likewise.
61365         * lib/unistr/u16-strpbrk.c: Likewise.
61366         * lib/unistr/u16-strrchr.c: Likewise.
61367         * lib/unistr/u16-strspn.c: Likewise.
61368         * lib/unistr/u16-strstr.c: Likewise.
61369         * lib/unistr/u16-strtok.c: Likewise.
61370         * lib/unistr/u16-to-u32.c: Likewise.
61371         * lib/unistr/u16-to-u8.c: Likewise.
61372         * lib/unistr/u16-uctomb-aux.c: Likewise.
61373         * lib/unistr/u16-uctomb.c: Likewise.
61374         * lib/unistr/u32-check.c: Likewise.
61375         * lib/unistr/u32-chr.c: Likewise.
61376         * lib/unistr/u32-cmp.c: Likewise.
61377         * lib/unistr/u32-cpy-alloc.c: Likewise.
61378         * lib/unistr/u32-cpy.c: Likewise.
61379         * lib/unistr/u32-endswith.c: Likewise.
61380         * lib/unistr/u32-mblen.c: Likewise.
61381         * lib/unistr/u32-mbsnlen.c: Likewise.
61382         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61383         * lib/unistr/u32-mbtouc.c: Likewise.
61384         * lib/unistr/u32-mbtoucr.c: Likewise.
61385         * lib/unistr/u32-move.c: Likewise.
61386         * lib/unistr/u32-next.c: Likewise.
61387         * lib/unistr/u32-prev.c: Likewise.
61388         * lib/unistr/u32-set.c: Likewise.
61389         * lib/unistr/u32-startswith.c: Likewise.
61390         * lib/unistr/u32-stpcpy.c: Likewise.
61391         * lib/unistr/u32-stpncpy.c: Likewise.
61392         * lib/unistr/u32-strcat.c: Likewise.
61393         * lib/unistr/u32-strchr.c: Likewise.
61394         * lib/unistr/u32-strcmp.c: Likewise.
61395         * lib/unistr/u32-strcpy.c: Likewise.
61396         * lib/unistr/u32-strcspn.c: Likewise.
61397         * lib/unistr/u32-strdup.c: Likewise.
61398         * lib/unistr/u32-strlen.c: Likewise.
61399         * lib/unistr/u32-strmblen.c: Likewise.
61400         * lib/unistr/u32-strmbtouc.c: Likewise.
61401         * lib/unistr/u32-strncat.c: Likewise.
61402         * lib/unistr/u32-strncmp.c: Likewise.
61403         * lib/unistr/u32-strncpy.c: Likewise.
61404         * lib/unistr/u32-strnlen.c: Likewise.
61405         * lib/unistr/u32-strpbrk.c: Likewise.
61406         * lib/unistr/u32-strrchr.c: Likewise.
61407         * lib/unistr/u32-strspn.c: Likewise.
61408         * lib/unistr/u32-strstr.c: Likewise.
61409         * lib/unistr/u32-strtok.c: Likewise.
61410         * lib/unistr/u32-to-u16.c: Likewise.
61411         * lib/unistr/u32-to-u8.c: Likewise.
61412         * lib/unistr/u32-uctomb.c: Likewise.
61413         * lib/unistr/u8-check.c: Likewise.
61414         * lib/unistr/u8-chr.c: Likewise.
61415         * lib/unistr/u8-cmp.c: Likewise.
61416         * lib/unistr/u8-cpy-alloc.c: Likewise.
61417         * lib/unistr/u8-cpy.c: Likewise.
61418         * lib/unistr/u8-endswith.c: Likewise.
61419         * lib/unistr/u8-mblen.c: Likewise.
61420         * lib/unistr/u8-mbsnlen.c: Likewise.
61421         * lib/unistr/u8-mbtouc-aux.c: Likewise.
61422         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61423         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61424         * lib/unistr/u8-mbtouc.c: Likewise.
61425         * lib/unistr/u8-mbtoucr.c: Likewise.
61426         * lib/unistr/u8-move.c: Likewise.
61427         * lib/unistr/u8-next.c: Likewise.
61428         * lib/unistr/u8-prev.c: Likewise.
61429         * lib/unistr/u8-set.c: Likewise.
61430         * lib/unistr/u8-startswith.c: Likewise.
61431         * lib/unistr/u8-stpcpy.c: Likewise.
61432         * lib/unistr/u8-stpncpy.c: Likewise.
61433         * lib/unistr/u8-strcat.c: Likewise.
61434         * lib/unistr/u8-strchr.c: Likewise.
61435         * lib/unistr/u8-strcmp.c: Likewise.
61436         * lib/unistr/u8-strcpy.c: Likewise.
61437         * lib/unistr/u8-strcspn.c: Likewise.
61438         * lib/unistr/u8-strdup.c: Likewise.
61439         * lib/unistr/u8-strlen.c: Likewise.
61440         * lib/unistr/u8-strmblen.c: Likewise.
61441         * lib/unistr/u8-strmbtouc.c: Likewise.
61442         * lib/unistr/u8-strncat.c: Likewise.
61443         * lib/unistr/u8-strncmp.c: Likewise.
61444         * lib/unistr/u8-strncpy.c: Likewise.
61445         * lib/unistr/u8-strnlen.c: Likewise.
61446         * lib/unistr/u8-strpbrk.c: Likewise.
61447         * lib/unistr/u8-strrchr.c: Likewise.
61448         * lib/unistr/u8-strspn.c: Likewise.
61449         * lib/unistr/u8-strstr.c: Likewise.
61450         * lib/unistr/u8-strtok.c: Likewise.
61451         * lib/unistr/u8-to-u16.c: Likewise.
61452         * lib/unistr/u8-to-u32.c: Likewise.
61453         * lib/unistr/u8-uctomb-aux.c: Likewise.
61454         * lib/unistr/u8-uctomb.c: Likewise.
61455         * lib/unitypes.h: Likewise.
61456         * lib/uniwidth.h: Likewise.
61457         * lib/uniwidth/cjk.h: Likewise.
61458         * lib/uniwidth/u16-strwidth.c: Likewise.
61459         * lib/uniwidth/u16-width.c: Likewise.
61460         * lib/uniwidth/u32-strwidth.c: Likewise.
61461         * lib/uniwidth/u32-width.c: Likewise.
61462         * lib/uniwidth/u8-strwidth.c: Likewise.
61463         * lib/uniwidth/u8-width.c: Likewise.
61464         * lib/uniwidth/width.c: Likewise.
61465
61466 2007-10-07  Bruno Haible  <bruno@clisp.org>
61467
61468         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
61469         The file is still under LGPL (see modules/inttypes).
61470
61471 2007-10-06  Bruno Haible  <bruno@clisp.org>
61472
61473         * modules/trunc (Dependencies): Add 'extensions'.
61474         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
61475         Reported by Ben Pfaff <blp@gnu.org>.
61476
61477 2007-10-06  Bruno Haible  <bruno@clisp.org>
61478
61479         * modules/freopen-tests: New file.
61480         * tests/test-freopen.c: New file.
61481
61482         * modules/fopen-tests: New file.
61483         * tests/test-fopen.c: New file.
61484
61485         * modules/fopen: New file.
61486         * lib/fopen.c: New file.
61487         * m4/fopen.m4: New file.
61488         * modules/freopen: New file.
61489         * lib/freopen.c: New file.
61490         * m4/freopen.m4: New file.
61491         * lib/stdio.in.h (fopen, freopen): New declarations.
61492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
61493         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61494         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
61495         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61496         * doc/functions/fopen.texi: Mention the 'fopen' module.
61497         * doc/functions/freopen.texi: Mention the 'freopen' module.
61498
61499 2007-10-06  Bruno Haible  <bruno@clisp.org>
61500
61501         * modules/open-tests: New file.
61502         * tests/test-open.c: New file.
61503
61504         * modules/open: New file.
61505         * lib/open.c: New file.
61506         * m4/open.m4: New file.
61507         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61508         lib/open.c does.
61509         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61510         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61511         macros.
61512         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61513         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61514         REPLACE_OPEN.
61515         * doc/functions/open.texi: Mention the 'open' module.
61516
61517 2007-10-04  Bruno Haible  <bruno@clisp.org>
61518
61519         * modules/ceill-tests: New file.
61520         * tests/test-ceill.c: New file.
61521
61522         * modules/ceill: New file.
61523         * lib/ceill.c: Replace entire file.
61524         * m4/ceill.m4: New file.
61525         * lib/math.in.h (ceill): Replace declaration.
61526         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61527         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61528         * doc/functions/ceill.texi: Mention the 'ceill' module.
61529         * modules/mathl (Files): Remove lib/ceill.c.
61530         (Depends-on): Add ceill.
61531
61532 2007-10-04  Bruno Haible  <bruno@clisp.org>
61533
61534         * modules/ceilf-tests: New file.
61535         * tests/test-ceilf.c: New file.
61536
61537         * modules/ceilf: New file.
61538         * lib/ceil.c: New file.
61539         * lib/ceilf.c: New file.
61540         * m4/ceilf.m4: New file.
61541         * lib/math.in.h (ceilf): New declaration.
61542         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61543         HAVE_DECL_CEILF.
61544         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61545         HAVE_DECL_CEILF.
61546         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61547
61548 2007-10-04  Bruno Haible  <bruno@clisp.org>
61549
61550         * modules/floorl-tests: New file.
61551         * tests/test-floorl.c: New file.
61552
61553         * modules/floorl: New file.
61554         * lib/floorl.c: Replace entire file.
61555         * m4/floorl.m4: New file.
61556         * lib/math.in.h (floorl): Replace declaration.
61557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61558         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61559         * doc/functions/floorl.texi: Mention the 'floorl' module.
61560         * modules/mathl (Files): Remove lib/floorl.c.
61561         (Depends-on): Add floorl.
61562
61563 2007-10-04  Bruno Haible  <bruno@clisp.org>
61564
61565         * modules/floorf-tests: New file.
61566         * tests/test-floorf.c: New file.
61567
61568         * modules/floorf: New file.
61569         * lib/floor.c: New file.
61570         * lib/floorf.c: New file.
61571         * m4/floorf.m4: New file.
61572         * lib/math.in.h (floorf): New declaration.
61573         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61574         HAVE_DECL_FLOORF.
61575         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61576         HAVE_DECL_FLOORF.
61577         * doc/functions/floorf.texi: Mention the 'floorf' module.
61578
61579 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61580             Bruno Haible  <bruno@clisp.org>
61581
61582         Advertise for the Git server instead of the CVS server.
61583         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61584         repository instead of the CVS one.
61585         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61586         about all VCS systems generically.
61587         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61588
61589 2007-10-04  Bruno Haible  <bruno@clisp.org>
61590
61591         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61592         means.
61593         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61594
61595 2007-10-04  Bruno Haible  <bruno@clisp.org>
61596
61597         * modules/truncl-tests: New file.
61598         * tests/test-truncl.c: New file.
61599
61600         * modules/truncl: New file.
61601         * lib/truncl.c: New file.
61602         * m4/truncl.m4: New file.
61603         * lib/math.in.h (truncl): New declaration.
61604         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61605         HAVE_DECL_TRUNCL.
61606         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61607         HAVE_DECL_TRUNCL.
61608         * doc/functions/truncl.texi: Mention the 'truncl' module.
61609
61610 2007-10-04  Bruno Haible  <bruno@clisp.org>
61611
61612         * modules/truncf-tests: New file.
61613         * tests/test-truncf.c: New file.
61614
61615         * modules/truncf: New file.
61616         * lib/trunc.c: Make paramerizable through USE_* macros.
61617         * lib/truncf.c: New file.
61618         * m4/truncf.m4: New file.
61619         * lib/math.in.h (truncf): New declaration.
61620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61621         HAVE_DECL_TRUNCF.
61622         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61623         HAVE_DECL_TRUNCF.
61624         * doc/functions/truncf.texi: Mention the 'truncf' module.
61625
61626 2007-10-03  Bruno Haible  <bruno@clisp.org>
61627
61628         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61629         augmentation also for tests modules.
61630         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61631         * modules/atexit-tests (Makefile.am): Likewise.
61632         * modules/binary-io-tests (Makefile.am): Likewise.
61633         * modules/c-strcase-tests (Makefile.am): Likewise.
61634         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61635         * modules/canonicalize-tests (Makefile.am): Likewise.
61636         * modules/closein-tests (Makefile.am): Likewise.
61637         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61638         * modules/freadahead-tests (Makefile.am): Likewise.
61639         * modules/fseek-tests (Makefile.am): Likewise.
61640         * modules/fseeko-tests (Makefile.am): Likewise.
61641         * modules/ftell-tests (Makefile.am): Likewise.
61642         * modules/ftello-tests (Makefile.am): Likewise.
61643         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61644         * modules/isnanl-tests (Makefile.am): Likewise.
61645         * modules/lseek-tests (Makefile.am): Likewise.
61646         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61647         * modules/mbscasestr-tests (Makefile.am): Likewise.
61648         * modules/mbschr-tests (Makefile.am): Likewise.
61649         * modules/mbscspn-tests (Makefile.am): Likewise.
61650         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61651         * modules/mbspbrk-tests (Makefile.am): Likewise.
61652         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61653         * modules/mbsrchr-tests (Makefile.am): Likewise.
61654         * modules/mbsspn-tests (Makefile.am): Likewise.
61655         * modules/mbsstr-tests (Makefile.am): Likewise.
61656         * modules/printf-posix-tests (Makefile.am): Likewise.
61657         * modules/snprintf-posix-tests (Makefile.am): Likewise.
61658         * modules/sprintf-posix-tests (Makefile.am): Likewise.
61659         * modules/tsearch-tests (Makefile.am): Likewise.
61660         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61661         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61662         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61663         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61664         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61665         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61666         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61667         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61668         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
61669         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
61670         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61671         * modules/xstrtol-tests (Makefile.am): Likewise.
61672         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61673         * modules/yesno-tests (Makefile.am): Likewise.
61674
61675 2007-10-03  Bruno Haible  <bruno@clisp.org>
61676
61677         * modules/trunc-tests: New file.
61678         * tests/test-trunc.c: New file.
61679
61680         * modules/trunc: New file.
61681         * lib/trunc.c: New file.
61682         * m4/trunc.m4: New file.
61683         * lib/math.in.h (trunc): New declaration.
61684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
61685         HAVE_DECL_TRUNC.
61686         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
61687         HAVE_DECL_TRUNC.
61688         * doc/functions/trunc.texi: Mention the 'trunc' module.
61689
61690 2007-10-03  Bruno Haible  <bruno@clisp.org>
61691
61692         * tests/test-fpending.c: New file, mostly copied
61693         from coreutils/lib/t-fpending.c.
61694         * modules/fpending-tests: New file.
61695
61696 2007-10-03  Bruno Haible  <bruno@clisp.org>
61697
61698         Port the stdio extensions to QNX (untested).
61699         * lib/fseterr.c (fseterr): Add support for QNX.
61700         * lib/fbufmode.c (fbufmode): Likewise.
61701         * lib/freadable.c (freadable): Likewise.
61702         * lib/fwritable.c (fwritable): Likewise.
61703         * lib/freading.c (freading): Likewise.
61704         * lib/fwriting.c (fwriting): Likewise.
61705         * lib/freadahead.c (freadahed): Likewise.
61706         * lib/fpurge.c (fpurge): Likewise.
61707         * lib/fseeko.c (rpl_fseeko): Likewise.
61708
61709 2007-10-03  Bruno Haible  <bruno@clisp.org>
61710             Jim Meyering  <jim@meyering.net>
61711             Eric Blake  <ebb9@byu.net>
61712
61713         * doc/relocatable.texi: Use @command instead of @program.
61714
61715 2007-10-02  Jim Meyering  <jim@meyering.net>
61716
61717         Perform one more "_.h" -> ".in.h" substitution.
61718         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
61719         instead of unistd_.h here, too.
61720
61721 2007-10-01  Bruno Haible  <bruno@clisp.org>
61722
61723         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
61724         Needed for the alloca-opt module.
61725
61726 2007-09-30  Bruno Haible  <bruno@clisp.org>
61727
61728         * lib/alloca.in.h: Renamed from lib/alloca_.h.
61729         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
61730         alloca_.h.
61731         * lib/argz.in.h: Renamed from lib/argz_.h.
61732         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
61733         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
61734         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
61735         byteswap_.h.
61736         * lib/dirent.in.h: Renamed from lib/dirent_.h.
61737         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
61738         dirent_.h.
61739         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
61740         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
61741         fcntl_.h.
61742         * lib/float.in.h: Renamed from lib/float_.h.
61743         * modules/float (Files, Makefile.am): Use float.in.h instead of
61744         float_.h.
61745         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
61746         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
61747         fnmatch_.h.
61748         * lib/getopt.in.h: Renamed from lib/getopt_.h.
61749         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
61750         getopt_.h.
61751         * lib/glob.in.h: Renamed from lib/glob_.h.
61752         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
61753         * lib/iconv.in.h: Renamed from lib/iconv_.h.
61754         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
61755         iconv_.h.
61756         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
61757         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
61758         inttypes_.h.
61759         * lib/locale.in.h: Renamed from lib/locale_.h.
61760         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
61761         locale_.h.
61762         * lib/math.in.h: Renamed from lib/math_.h.
61763         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
61764         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
61765         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
61766         of netinet_in_.h. Add dependency.
61767         * lib/poll.in.h: Renamed from lib/poll_.h.
61768         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
61769         * lib/search.in.h: Renamed from lib/search_.h.
61770         * modules/search (Files, Makefile.am): Use search.in.h instead of
61771         search_.h.
61772         * lib/signal.in.h: Renamed from lib/signal_.h.
61773         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
61774         _signal.h.
61775         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
61776         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
61777         stdbool_.h.
61778         * lib/stdint.in.h: Renamed from lib/stdint_.h.
61779         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
61780         stdint_.h.
61781         * lib/stdio.in.h: Renamed from lib/stdio_.h.
61782         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
61783         stdio_.h.
61784         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
61785         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
61786         stdlib_.h.
61787         * lib/string.in.h: Renamed from lib/string_.h.
61788         * modules/string (Files, Makefile.am): Use string.in.h instead of
61789         string_.h.
61790         * doc/gnulib-tool.texi (Initial import): Update.
61791         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
61792         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
61793         of sys_select_.h. Add dependency.
61794         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
61795         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
61796         of sys_socket_.h.
61797         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
61798         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
61799         sys_stat_.h.
61800         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
61801         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
61802         sys_time_.h.
61803         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
61804         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
61805         sysexits_.h.
61806         * lib/time.in.h: Renamed from lib/time_.h.
61807         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
61808         * lib/unistd.in.h: Renamed from lib/unistd_.h.
61809         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
61810         unistd_.h.
61811         * lib/wchar.in.h: Renamed from lib/wchar_.h.
61812         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
61813         wchar_.h.
61814         * lib/wctype.in.h: Renamed from lib/wctype_.h.
61815         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
61816         wctype_.h.
61817         * build-aux/bootstrap (slurp): Update.
61818         * lib/.cppi-disable: Update.
61819
61820 2007-09-30  Bruno Haible  <bruno@clisp.org>
61821
61822         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
61823         Needed on BeOS.
61824
61825 2007-09-30  Bruno Haible  <bruno@clisp.org>
61826
61827         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
61828
61829 2007-09-29  Bruno Haible  <bruno@clisp.org>
61830
61831         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
61832
61833 2007-09-29  Bruno Haible  <bruno@clisp.org>
61834
61835         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
61836         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
61837         * build-aux/install-reloc: Compile also areadlink.c.
61838         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
61839
61840 2007-09-29  Bruno Haible  <bruno@clisp.org>
61841
61842         * gnulib-tool (func_emit_initmacro_done): Indentation.
61843
61844 2007-09-29  Bruno Haible  <bruno@clisp.org>
61845
61846         * README: Add CVS checkout update instructions.
61847         Info from Bob Proulx <bob@proulx.com>.
61848
61849 2007-09-28  Eric Blake  <ebb9@byu.net>
61850
61851         Provide move-if-change.
61852         * build-aux/move-if-change: New file, based on best practice
61853         rather than any canonical upstream location.
61854
61855 2007-09-28  Jim Meyering  <jim@meyering.net>
61856
61857         Fix canonicalize loop-detection corner case.
61858         Do not attempt to stat the symlink values stored via seen_triple.
61859         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
61860         on linux-2.6.18, (but not 2.6.22).
61861         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
61862         triple_compare.  The former compares dev,ino,filename, while the latter
61863         would actually stat dirname(filename) when dev and ino were equal.
61864         * lib/hash-triple.c: Install <string.h>.
61865         (STREQ): Define.
61866         (triple_compare_ino_str): New function.
61867         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
61868
61869 2007-09-28  Eric Blake  <ebb9@byu.net>
61870
61871         Enforce that AC_REPLACE_FUNCS files exist.
61872         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
61873         override check for typos.
61874
61875         Fix test-closein on Solaris 10.
61876         * tests/test-closein.c (main): Don't assume stdin can be inherited
61877         closed on all systems.
61878         * tests/test-closein.sh: Likewise.
61879         Reported by Piotr Tarnowski.
61880
61881 2007-09-28  Jim Meyering  <jim@meyering.net>
61882
61883         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
61884
61885 2007-09-27  Jim Meyering  <jim@meyering.net>
61886
61887         canonicalize: Avoid a false-positive cycle failure.
61888         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
61889         Sort.  Remove cycle-check.
61890         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
61891         not cycle-check.h.
61892         (seen_triple): New function.
61893         (canonicalize_filename_mode): Use it instead of cycle-check.
61894         * tests/test-canonicalize.c: Add a test for this bug.
61895         * tests/test-canonicalize.sh: Set up and run the test.
61896
61897         New module, file-set, from coreutils.
61898         * modules/file-set: Define it.
61899         * lib/file-set.c, lib/file-set.h: Implement.
61900
61901         New module, hash-triple, from coreutils.
61902         * modules/hash-triple: Define it.
61903         * lib/hash-triple.c, lib/hash-triple.h: Implement.
61904
61905 2007-09-25  Eric Blake  <ebb9@byu.net>
61906
61907         Fix strerror on Interix.
61908         * lib/string_.h (strerror): Declare replacement.
61909         * doc/functions/strerror.texi (strerror): Document the Interix
61910         shortcoming.
61911         * modules/string (Makefile.am): Support new hooks.
61912         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
61913         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
61914         gl_FUNC_STRERROR_SEPARATE.
61915         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
61916         * lib/strerror.c (rpl_strerror): Provide replacement.
61917         * modules/strerror (Depends-on): Add string.
61918         (configure.ac): Detect use of module.
61919         * tests/test-strerror.c: New file.
61920         * modules/strerror-tests: New test module.
61921         * modules/argp (Depends-on): Add strerror.
61922         * modules/error (Depends-on): Likewise.
61923         Reported by Martin Koeppe.
61924
61925 2007-09-24  Bruno Haible  <bruno@clisp.org>
61926
61927         * README: Update git instructions.
61928
61929 2007-09-24  Eric Blake  <ebb9@byu.net>
61930
61931         Revert fpending breakage from 2007-09-08.
61932         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
61933         __fpending.c.
61934
61935 2007-09-24  Jim Meyering  <jim@meyering.net>
61936
61937         filenamecat.c: Add a test.
61938         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
61939         showing how the function works when DIR is the empty string.
61940
61941 2007-09-21  Simon Josefsson  <simon@josefsson.org>
61942
61943         * tests/test-canonicalize.sh: Turn on executable bit.
61944
61945 2007-09-19  Eric Blake  <ebb9@byu.net>
61946
61947         * README: Update CVS instructions.
61948
61949 2007-09-18  Bruno Haible  <bruno@clisp.org>
61950
61951         * modules/areadlink: New file.
61952         * lib/areadlink.h (areadlink): New declaration.
61953         * lib/areadlink.c: New file, based on lib/xreadlink.c.
61954
61955 2007-09-17  Jim Meyering  <jim@meyering.net>
61956
61957         * lib/savewd.c (ESTALE) [!defined]: Define.
61958         Reported to be required on Interix by Martin Koeppe.
61959
61960 2007-09-17  Bruno Haible  <bruno@clisp.org>
61961
61962         * gnulib-tool (func_version): Use $version.
61963
61964 2007-09-16  Bruno Haible  <bruno@clisp.org>
61965
61966         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
61967         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
61968         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
61969         Reported by Greg Schafer <gschafer@zip.com.au>.
61970
61971 2007-09-15  Bruno Haible  <bruno@clisp.org>
61972
61973         * gnulib-tool (sed): Try a little harder to make bash understand the
61974         alias.
61975         Reported by Bruce Korb <bruce.korb@gmail.com>.
61976
61977 2007-09-13  Eric Blake  <ebb9@byu.net>
61978
61979         * ChangeLog: Remove conflict markers.
61980
61981 2007-09-13  Simon Josefsson  <simon@josefsson.org>
61982
61983         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
61984         Reported by Bruno Haible <bruno@clisp.org>.
61985
61986 2007-09-12  Bruno Haible  <bruno@clisp.org>
61987
61988         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
61989         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
61990         is not defined.
61991
61992 2007-09-12  Eric Blake  <ebb9@byu.net>
61993
61994         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
61995         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
61996         Autoconf definition.
61997         * modules/euidaccess (Depends-on): Add extensions, for
61998         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
61999         * modules/fnmatch (Depends-on): Likewise.
62000         * modules/getaddrinfo (Depends-on): Likewise.
62001         * modules/getdelim (Depends-on): Likewise.
62002         * modules/getline (Depends-on): Likewise.
62003         * modules/getsubopt (Depends-on): Likewise.
62004         * modules/gettext (Depends-on): Likewise.
62005         * modules/group-member (Depends-on): Likewise.
62006         * modules/mbchar (Depends-on): Likewise.
62007         * modules/memmem (Depends-on): Likewise.
62008         * modules/mempcpy (Depends-on): Likewise.
62009         * modules/memrchr (Depends-on): Likewise.
62010         * modules/pagealign_alloc (Depends-on): Likewise.
62011         * modules/readutmp (Depends-on): Likewise.
62012         * modules/stpcpy (Depends-on): Likewise.
62013         * modules/stpncpy (Depends-on): Likewise.
62014         * modules/strchrnul (Depends-on): Likewise.
62015         * modules/strndup (Depends-on): Likewise.
62016         * modules/strsep (Depends-on): Likewise.
62017         * modules/strverscmp (Depends-on): Likewise.
62018         * modules/vasprintf (Depends-on): Likewise.
62019         * modules/wcwidth (Depends-on): Likewise.
62020         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62021         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62022         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62023         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62024         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62025         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62026         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62027         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62028         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62029         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62030         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62031         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62032         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62033         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62034         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62035         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62036         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62037         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62038         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62039         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62040         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62041         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62042         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62043         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62044         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62045         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62046         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62047         so that lock.m4 can be used in gettext without extensions module.
62048
62049 2007-09-11  Bruno Haible  <bruno@clisp.org>
62050
62051         * m4/isc-posix.m4: Remove file.
62052         Suggested by Eric Blake.
62053
62054 2007-09-11  Eric Blake  <ebb9@byu.net>
62055
62056         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62057
62058 2007-09-10  Bruno Haible  <bruno@clisp.org>
62059
62060         * posix-modules: Fix typo in error message.
62061         Reported by Matt <mkraai@beckman.com>.
62062
62063 2007-09-09  Bruno Haible  <bruno@clisp.org>
62064
62065         * doc/functions/getdelim.texi: Update list of platforms lacking the
62066         function.
62067         * doc/functions/getline.texi: Likewise.
62068
62069 2007-09-09  Jim Meyering  <jim@meyering.net>
62070
62071         * lib/hash.c (hash_initialize): Detect calloc failure.
62072         Reported by Bruno Haible.
62073
62074 2007-09-09  Bruno Haible  <bruno@clisp.org>
62075
62076         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62077         malloc or realloc fails.
62078
62079 2007-09-09  Bruno Haible  <bruno@clisp.org>
62080
62081         * modules/getcwd (Depends-on): Add malloc-posix.
62082         * modules/glob (Depends-on): Likewise.
62083         * modules/putenv (Depends-on): Likewise.
62084         * modules/strdup (Depends-on): Likewise.
62085         * modules/getdelim (Depends-on): Add realloc-posix.
62086         * modules/read-file (Depends-on): Likewise.
62087
62088 2007-09-09  Bruno Haible  <bruno@clisp.org>
62089
62090         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62091         (gl_FUNC_MALLOC_POSIX): Require it.
62092         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62093         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62094         * modules/realloc (Files): Add m4/malloc.m4.
62095         * modules/calloc (Files): Likewise.
62096
62097 2007-09-09  Bruno Haible  <bruno@clisp.org>
62098
62099         * modules/malloc-posix: New file.
62100         * modules/malloc (Depends-on): Add malloc-posix.
62101         * lib/malloc.c: Include errno.h.
62102         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62103         and a POSIX-compatible malloc into a single function. Set ENOMEM
62104         when returning NULL.
62105         * m4/malloc.m4: New file.
62106         * doc/functions/malloc.texi: Mention the malloc-posix module.
62107         * lib/stdlib_.h (malloc): New declaration.
62108         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62109         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62110         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62111         and HAVE_MALLOC_POSIX.
62112
62113 2007-09-09  Bruno Haible  <bruno@clisp.org>
62114
62115         * modules/realloc-posix: New file.
62116         * modules/realloc (Depends-on): Add realloc-posix.
62117         * lib/realloc.c: Include errno.h.
62118         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62119         and a POSIX-compatible realloc into a single function. Set ENOMEM
62120         when returning NULL.
62121         * m4/realloc.m4: New file.
62122         * doc/functions/realloc.texi: Mention the realloc-posix module.
62123         * lib/stdlib_.h (realloc): New declaration.
62124         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62125         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62126         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62127         and HAVE_REALLOC_POSIX.
62128
62129 2007-09-09  Bruno Haible  <bruno@clisp.org>
62130
62131         * modules/calloc-posix: New file.
62132         * modules/calloc (Depends-on): Add calloc-posix.
62133         * lib/calloc.c: Include errno.h.
62134         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62135         and a POSIX-compatible calloc into a single function. Set ENOMEM
62136         when returning NULL.
62137         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62138         * doc/functions/calloc.texi: Mention the calloc-posix module.
62139         * lib/stdlib_.h (calloc): New declaration.
62140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62141         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62142         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62143         and HAVE_CALLOC_POSIX.
62144
62145 2007-09-09  Bruno Haible  <bruno@clisp.org>
62146
62147         Allow for modules to show an arbitrary notice.
62148         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62149         * gnulib-tool: New option --extract-notice.
62150         (func_usage): Document it.
62151         (sed_extract_prog): Update.
62152         (func_get_notice): New function.
62153         (func_modules_notice): New function.
62154         (func_import, func_create_testdir): Invoke it.
62155         Suggested by Jim Meyering.
62156
62157 2007-09-09  Bruno Haible  <bruno@clisp.org>
62158
62159         * gnulib-tool: New options --verbose, --quiet.
62160         (func_usage): Document them.
62161         (verbose): New variable.
62162         (func_execute_command): New function.
62163         (func_import): Don't show the module list and the file list if
62164         $verbose < 0.
62165         (func_create_testdir): Likewise. Use func_execute_command.
62166         (func_create_megatestdir): Use func_execute_command.
62167
62168 2007-09-08  Bruno Haible  <bruno@clisp.org>
62169
62170         * gnulib-tool (func_import): Prefer rsync over wget when available,
62171         for fetching the PO files.
62172
62173 2007-09-08  Bruno Haible  <bruno@clisp.org>
62174
62175         * posix-modules: New file. Portions copied from gnulib-tool.
62176         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62177
62178 2007-09-08  Jim Meyering  <jim@meyering.net>
62179
62180         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62181         * lib/fpending.h: Rename from __fpending.h.
62182         * lib/fpending.c: Rename from __fpending.c.
62183         Include "fpending.h", not "__fpending.h".
62184         * lib/__fpending.h, lib/__fpending.c: Remove files.
62185         * modules/fpending (Files): Reflect new file names.
62186         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62187
62188 2007-09-08  Bruno Haible  <bruno@clisp.org>
62189
62190         * m4/inttypes-h.m4: Remove stub file.
62191
62192 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62193
62194         * doc/headers/stdint.texi: Discuss #include_next issue.
62195
62196 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62197
62198         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62199
62200 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62201
62202         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62203         in variable name.
62204
62205 2007-09-03  Jim Meyering  <jim@meyering.net>
62206
62207         New module: git-version-gen.
62208         * modules/git-version-gen: New file.
62209
62210         Import changes from coreutils for bootstrap script.
62211
62212         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62213
62214         bootstrap: uses rsync to download the .po files
62215         * build-aux/bootstrap (po_download_command_format): New global.
62216         (download_po_files): Use rsync.
62217         (update_po_files): Don't remove .po files after download,
62218         so future rsync runs can take advantage of the copies.
62219
62220         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62221
62222         Solve the unnecessary-.po-file-regeneration problem once and for all.
62223         * build-aux/bootstrap (download_po_files): New function, renamed from
62224         get_translations.  Now, downloads, but doesn't update LINGUAS.
62225         (update_po_files): New function.
62226
62227         bootstrap: Ignore more.
62228         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62229         uniwidth to e.g., lib/.gitignore.
62230         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62231
62232         * build-aux/bootstrap: New setting: vc_ignore.
62233         (insert_sorted_if_absent): Create $file if absent.
62234         Adapt to new, possibly empty, list: $vc_ignore.
62235
62236         bootstrap: generate more ignorable names
62237         * build-aux/bootstrap (slurp): When generating ignorable names,
62238         also map .sin to .sed, .gperf to .c, and .y to .c.
62239
62240 2007-09-03  Jim Meyering  <jim@meyering.net>
62241
62242         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62243         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62244
62245 2007-09-02  Bruno Haible  <bruno@clisp.org>
62246
62247         Fix mis-recognition of 'mcs' on QNX 6.
62248         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62249         output contains the string "Mono".
62250         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62251         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62252
62253 2007-09-01  Bruno Haible  <bruno@clisp.org>
62254
62255         Fix collision between uniwidth/* and linebreak modules.
62256         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62257         u32_width): Remove declarations.
62258         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62259         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62260         streq3, streq2, streq1, streq0): Remove functions.
62261         (STREQ): Remove macro.
62262         (is_cjk_encoding): Remove function.
62263         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62264         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62265         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62266         * NEWS: Document the change.
62267
62268 2007-09-01  Bruno Haible  <bruno@clisp.org>
62269
62270         * lib/streq.h: Add double-inclusion guard.
62271
62272 2007-09-01  Karl Berry  <karl@gnu.org>
62273
62274         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62275
62276 2007-08-28  Jim Meyering  <jim@meyering.net>
62277
62278         Rename mreadlink_with_size to areadlink_with_size.
62279         * NEWS: Document the change.
62280         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62281         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62282         * lib/mreadlink.h: Rename this to...
62283         * lib/areadlink.h: ...this.
62284         * modules/mreadlink-with-size: Rename this to...
62285         * modules/areadlink-with-size: ...this.
62286         * lib/canonicalize.c: Reflect the renaming.
62287         * modules/canonicalize: Likewise.
62288
62289 2007-08-26  Bruno Haible  <bruno@clisp.org>
62290
62291         * gnulib-tool (func_import): When deciding which files to remove,
62292         consider also dangling symbolic links.
62293         Reported by Eric Blake.
62294
62295 2007-08-26  Bruno Haible  <bruno@clisp.org>
62296
62297         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62298
62299 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62300
62301         * lib/readline.c: Don't include getline.h, the prototype is now
62302         found in stdio.h.
62303
62304 2007-08-23  Jim Meyering  <jim@meyering.net>
62305
62306         Getdelim touchup.
62307         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62308         around the funlockfile call, since funlockfile never sets errno.
62309         Don't set errno upon failed realloc.
62310
62311 2007-08-22  Eric Blake  <ebb9@byu.net>
62312
62313         Getline touchups.
62314         * lib/getdelim.c (getdelim): Revert regression that required *n to
62315         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62316         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62317         getdelim, rather than whether implementation is missing.
62318         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62319         * lib/stdio_.h (getline): Also declare if replacement is
62320         required.
62321         * doc/functions/getdelim.texi: New file.
62322         * doc/functions/getline.texi: Likewise.
62323         * doc/gnulib.texi (Function Substitutes): Add new files.
62324         Reported by Bruno Haible.
62325
62326 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
62327
62328         * users.txt: Add Guile.
62329
62330 2007-08-22  Eric Blake  <ebb9@byu.net>
62331
62332         * tests/test-getdelim.c (main): Use remove, not unlink.
62333         * tests/test-getline.c (main): Likewise.
62334
62335         Move getline and getdelim into stdio.h, per POSIX 200x.
62336         * modules/getline (Files): Remove getline.h.
62337         (Depends-on): Add stdio.
62338         (configure.ac): Add module indicator.
62339         * modules/getdelim (Files): Remove getdelim.h.
62340         (Depends-on): Add stdio.
62341         (configure.ac): Add module indicator.
62342         * modules/stdio (Makefile.am): Work with new indicators.
62343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62344         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
62345         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62346         * lib/getdelim.h: Delete.
62347         * lib/getline.h: Delete.
62348         * lib/stdio_.h (getdelim, getline): Declare.
62349         * modules/getdelim-tests: New module.
62350         * modules/getline-tests: Likewise.
62351         * tests/test-getdelim.c: New file.
62352         * tests/test-getline.c: Likewise.
62353         * NEWS: Document the change.
62354         * lib/getline.c: Update choice of header.
62355         * lib/csharpcomp.c: Likewise.
62356         * lib/getpass.c: Likewise.
62357         * lib/javacomp.c: Likewise.
62358         * lib/javaversion.c: Likewise.
62359         * lib/yesno.c: Likewise.
62360         * lib/getdelim.c: Likewise.
62361         (getdelim): Set errno on failure, and avoid memory leak.
62362
62363 2007-08-19  Bruno Haible  <bruno@clisp.org>
62364
62365         * modules/closein (Depends-on): Add freadahead.
62366         * lib/closein.c: Include freadahead.h.
62367         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62368         is zero.
62369
62370 2007-08-19  Bruno Haible  <bruno@clisp.org>
62371
62372         * modules/freadahead-tests: New file.
62373         * tests/test-freadahead.sh: New file.
62374         * tests/test-freadahead.c: New file.
62375
62376         * modules/freadahead: New file.
62377         * lib/freadahead.h: New file.
62378         * lib/freadahead.c: New file.
62379         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62380         fbufmode, fpurge, freadable, fwritable.
62381
62382 2007-08-19  Eric Blake  <ebb9@byu.net>
62383
62384         Test yesno in combination with closein.
62385         * lib/yesno.c (yesno): Document use of stdin.
62386         * modules/yesno-tests (Files): New module.
62387         * tests/test-yesno.c (main): New file.
62388         * tests/test-yesno.sh: Likewise.
62389
62390 2007-08-19  Bruno Haible  <bruno@clisp.org>
62391
62392         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62393         * lib/fseeko.c (rpl_fseeko): Likewise.
62394         * lib/fseterr.c (fseterr): Likewise.
62395
62396 2007-08-19  Bruno Haible  <bruno@clisp.org>
62397
62398         * tests/test-lseek.c (main): Disable a test for BeOS.
62399         * doc/functions/lseek.texi: Document the BeOS bug.
62400
62401 2007-08-19  Bruno Haible  <bruno@clisp.org>
62402             Eric Blake  <ebb9@byu.net>
62403
62404         * lib/lseek.c: Include <sys/stat.h>.
62405         (rpl_lseek): Add workaround code also for Unix platforms.
62406         Needed for BeOS.
62407         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
62408         * doc/functions/lseek.texi: Document BeOS definiency.
62409
62410 2007-08-18  Bruno Haible  <bruno@clisp.org>
62411
62412         * modules/fstrcmp-tests: New file.
62413         * tests/test-fstrcmp.c: New file.
62414
62415 2007-08-18  Bruno Haible  <bruno@clisp.org>
62416
62417         * modules/fstrcmp: New file, from GNU gettext with modifications.
62418         * lib/fstrcmp.h: New file, from GNU gettext.
62419         * lib/fstrcmp.c: New file, from GNU gettext.
62420         * MODULES.html.sh (String handling): Add fstrcmp.
62421
62422 2007-08-18  Bruno Haible  <bruno@clisp.org>
62423
62424         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
62425         'bool'.
62426         (diag, compareseq): Remove const from the ctxt argument.
62427         (USE_HEURISTIC): Undefine at the end.
62428
62429 2007-08-18  Jim Meyering  <jim@meyering.net>
62430
62431         New file: lib/idcache.h
62432         * NEWS: Mention the addition.
62433         * modules/idcache (Files): Add lib/idcache.h
62434         * lib/idcache.c: Include "idcache.h".
62435         Don't include <sys/types.h>.
62436         Add a FIXME comment.
62437         Move file-scoped "static" declarations to the top.
62438         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
62439
62440 2007-08-17  Bruno Haible  <bruno@clisp.org>
62441         and Paul Eggert  <eggert@cs.ucla.edu>
62442
62443         * MODULES.html.sh: Add diffseq.
62444         * modules/diffseq: New file.
62445         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
62446         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
62447
62448 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62449
62450         Import changes from coreutils for bootstrap script.
62451
62452         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
62453
62454         * build-aux/bootstrap (slurp): Work even in environments where
62455         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
62456         current code does not slurp files whose names start with ".", and
62457         this looks like it might be a troublesome area.
62458
62459         2007-07-11  Jim Meyering  <jim@meyering.net>
62460
62461         If there's a GPL vN copyright comment, require that N == 3.
62462
62463         2007-07-08  Jim Meyering  <jim@meyering.net>
62464
62465         Run the coreutils-specific code only if tests/Makefile.am.in exists.
62466         * build-aux/bootstrap (mam_template): Move definition out of loop.
62467
62468         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
62469
62470         * build-aux/bootstrap (symlink_to_dir): Rename function from
62471         symlink_to_gnulib.  Add a directory parameter.  Update all
62472         callers.
62473         (cp_mark_as_generated): Also check for -- and link to -- files in
62474         gl/.
62475
62476         2007-07-08  Jim Meyering  <jim@meyering.net>
62477
62478         Adapt to deeper hierarchy in gnulib.
62479         * build-aux/bootstrap (symlink_to_dir): If the destination
62480         directory doesn't exist, create it. This is required at least for
62481         "lib/uniwidth/cjk.h".
62482
62483         2007-05-15  Jim Meyering  <jim@meyering.net>
62484
62485         * build-aux/bootstrap: Now that generated Makefile.am files
62486         are no longer under version control, they must be created at
62487         bootstrap time.
62488
62489 2007-08-14  Ben Pfaff  <blp@gnu.org>
62490
62491         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
62492
62493 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62494
62495         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
62496         given the changes below.
62497         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
62498         even on hosts that have padding bits beyond the supported 64.
62499
62500 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62501
62502         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
62503         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
62504         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62505         depends on it.
62506         (xstrtol_error): Remove.
62507         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62508         but with a different signature.
62509         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62510         * lib/xstrtol-error.c: Include exitfail.h.
62511         (xstrtol_fatal): New function, with a different signature from the
62512         old xstrtol_error, so that the caller need not worry about passing
62513         in an exit status, or about storage management of the option argument.
62514         (xstrtol_error): Now a static function.  Redo signature to
62515         implement xstrtol_fatal.  Output the correct number of hyphens in
62516         front of the option so that the caller need not worry about
62517         storage management.
62518         (N_): New macro.
62519         (_): Remove; not used now.
62520         * modules/xstrtol: Depend on getopt.
62521         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62522         of old STRTOL_FATAL_ERROR macro.
62523         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62524         of test program.
62525         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62526         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62527
62528 2007-08-08  Eric Blake  <ebb9@byu.net>
62529
62530         * lib/xstrtol-error.c: Add missing include.
62531
62532         Move xstrtol messages into gnulib domain, when --pobase is used.
62533         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62534         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62535         * modules/xstrtol (Files): Distribute new file.
62536         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62537         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62538         * tests/test-xstrtol.c: ...into new file.
62539         * tests/test-xstrtoul.c: Also test xstrtoul.
62540         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62541         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62542         * tests/test-xstrtol.sh: Drive the tests.
62543         * tests/test-xstrtoimax.sh: Likewise.
62544         * tests/test-xstrtoumax.sh: Likewise.
62545         * modules/xstrtol-tests: New module.
62546         * modules/xstrtoimax-tests: Likewise.
62547         * modules/xstrtoumax-tests: Likewise.
62548
62549 2007-08-08  Jim Meyering  <jim@meyering.net>
62550
62551         New function: mfile_name_concat.
62552         * lib/filenamecat.c (mfile_name_concat): New function, just like
62553         file_name_concat, but return NULL upon failure rather than exiting
62554         with a diagnostic.
62555         * lib/filenamecat.h: Declare it.
62556
62557 2007-08-07  Bruno Haible  <bruno@clisp.org>
62558
62559         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62560         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62561         warning from gcc.
62562         Reported by Eric Blake.
62563
62564 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62565
62566         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62567         * modules/crypto/arcfour (License): Likewise.
62568         * modules/crypto/des-tests (License): Likewise.
62569         * modules/crypto/gc-arctwo-tests (License): Likewise.
62570         * modules/crypto/gc-des-tests (License): Likewise.
62571         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62572         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62573         * modules/crypto/gc-md2-tests (License): Likewise.
62574         * modules/crypto/gc-md4-tests (License): Likewise.
62575         * modules/crypto/gc-md5-tests (License): Likewise.
62576         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62577         * modules/crypto/gc-rijndael-tests (License): Likewise.
62578         * modules/crypto/gc-sha1-tests (License): Likewise.
62579         * modules/crypto/gc-tests (License): Likewise.
62580         * modules/crypto/hmac-md5 (License): Likewise.
62581         * modules/crypto/hmac-sha1 (License): Likewise.
62582         * modules/crypto/md2-tests (License): Likewise.
62583         * modules/crypto/md4-tests (License): Likewise.
62584         * modules/crypto/md5 (License): Likewise.
62585         * modules/crypto/rijndael (License): Likewise.
62586         * modules/crypto/sha1 (License): Likewise.
62587         * modules/memxor (License): Likewise.
62588
62589 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62590         and Bruno Haible  <bruno@clisp.org>
62591
62592         * NEWS: Describe interface changes to human, xstrtol.
62593         * lib/human.h: Include <xstrtol.h>.
62594         (human_options): Return enum strtol_error, not int.  Remove
62595         bool arg; take int * instead.
62596         * lib/human.c: Don't include "gettext.h".
62597         (_): Remove; no longer used.
62598         Don't include <xstrtol.h>, since human.h does it.
62599         (human_options): Adjust to abovementioned interface changes.
62600         Do not report error to stderr; that's now the caller's
62601         responsibility.
62602         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62603         interface change.
62604         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62605         Str, Argument_type_string.  All uses changed.  Put " argument"
62606         in diagnostics to make them clearer.  Change wording of suffix
62607         message for clarity.
62608         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62609         Argument_type_string.
62610         (STRTOL_FATAL_WARN): Remove; no longer used.
62611         * modules/human (Depends-on): Remove gettext-h.
62612
62613 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62614
62615         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62616
62617 2007-07-31  Bruno Haible  <bruno@clisp.org>
62618
62619         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62620         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62621         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62622
62623 2007-07-31  Bruno Haible  <bruno@clisp.org>
62624
62625         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62626         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62627
62628 2007-07-30  Bruno Haible  <bruno@clisp.org>
62629
62630         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62631         * modules/c-ctype (License): Likewise.
62632         * modules/c-strcase (License): Likewise.
62633         * modules/check-version (License): Likewise.
62634         * modules/iconv (License): Likewise.
62635         * modules/iconv_open (License): Likewise.
62636         * modules/read-file (License): Likewise.
62637         * modules/striconv (License): Likewise.
62638         * modules/strverscmp (License): Likewise.
62639         * modules/vasprintf (License): Likewise.
62640         * modules/crypto/des (License): Likewise.
62641         * modules/crypto/gc (License): Likewise.
62642         * modules/crypto/gc-arcfour (License): Likewise.
62643         * modules/crypto/gc-arctwo (License): Likewise.
62644         * modules/crypto/gc-des (License): Likewise.
62645         * modules/crypto/gc-hmac-md5 (License): Likewise.
62646         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62647         * modules/crypto/gc-md2 (License): Likewise.
62648         * modules/crypto/gc-md4 (License): Likewise.
62649         * modules/crypto/gc-md5 (License): Likewise.
62650         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62651         * modules/crypto/gc-random (License): Likewise.
62652         * modules/crypto/gc-rijndael (License): Likewise.
62653         * modules/crypto/gc-sha1 (License): Likewise.
62654         * modules/crypto/md2 (License): Likewise.
62655         * modules/crypto/md4 (License): Likewise.
62656
62657 2007-07-30  Jim Meyering  <jim@meyering.net>
62658
62659         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
62660         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
62661         it has valid stat data.  This bug would cause du not to count the
62662         sizes of inaccessible directories.
62663         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
62664         in <http://bugzilla.redhat.com/250077>.
62665
62666 2007-07-25  Peter O'Gorman  <peter@pogma.com>
62667             Bruno Haible  <bruno@clisp.org>
62668
62669         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
62670         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
62671         #include_next, gives a diagnostic about it, but reports no error in
62672         the exit code.
62673         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
62674
62675 2007-07-24  Ben Pfaff  <blp@gnu.org>
62676
62677         Improve name: "count-one-bits" is better than "popcount".
62678         * MODULES.html.sh: Update name.
62679         * lib/popcount.h: Renamed lib/count-one-bits.h.
62680         (popcount): Renamed count_one_bits.
62681         (popcountl): Renamed count_one_bits_l.
62682         (popcountll): Renamed count_one_bits_ll.
62683         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
62684         * modules/popcount: Renamed module/count-one-bits.
62685         * modules/popcount-tests: Renamed module/count-one-bits-tests.
62686         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
62687
62688 2007-07-23  Ben Pfaff  <blp@gnu.org>
62689
62690         * lib/popcount.h (popcount32): Reduce size of constants, to allow
62691         better code generation, and add U to large constants to avoid
62692         warnings, in non-GCC case.
62693         Suggested by Bruno Haible.
62694
62695 2007-07-23  Ben Pfaff  <blp@gnu.org>
62696
62697         * lib/popcount.h: Use verify_true instead of if...abort.
62698         * modules/popcount: Depend on verify module.
62699         Suggested by Jim Meyering.
62700
62701 2007-07-23  Bruno Haible  <bruno@clisp.org>
62702
62703         * gnulib-tool (func_import): Create a .cvsignore file also when the
62704         directory is not yet in CVS but the toplevel directory is. When
62705         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
62706         Reported by Karl Berry.
62707
62708 2007-07-22  Ben Pfaff  <blp@gnu.org>
62709
62710         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
62711         case.
62712         Suggested by Eric Blake.
62713
62714 2007-07-22  Ben Pfaff  <blp@gnu.org>
62715
62716         New module: popcount.
62717         * MODULES.html.sh: Add popcount.
62718         * modules/popcount: New file.
62719         * modules/popcount-tests: New file.
62720         * tests/test-popcount.c: New file.
62721         * lib/popcount.h: New file.
62722         * m4/popcount.m4: New file.
62723
62724 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62725
62726         * build-aux/announce-gen: Update to GPLv3.
62727
62728         * build-aux/config.guess: Update from config.
62729
62730 2007-07-21  Bruno Haible  <bruno@clisp.org>
62731
62732         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
62733         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
62734
62735 2007-07-20  Jim Meyering  <jim@meyering.net>
62736
62737         * check-module: Diagnose a self-dependency.
62738
62739 2007-07-19  Bruno Haible  <bruno@clisp.org>
62740
62741         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
62742         empty.
62743         Reported by Eric Blake.
62744
62745 2007-07-18  Bruno Haible  <bruno@clisp.org>
62746
62747         * gnulib-tool: New options --po-base, --po-domain.
62748         (func_usage): Document them.
62749         (pobase, po_domain): New variables.
62750         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
62751         DEFAULT_TEXT_DOMAIN.
62752         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
62753         (func_import): Consider pobase and po_domain. Create a po/ directory.
62754         (func_create_testdir): Set pobase and po_domain to empty.
62755         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
62756         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
62757
62758 2007-07-18  Bruno Haible  <bruno@clisp.org>
62759
62760         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62761         EXTRA_DIST augmentation for files in build-aux/.
62762
62763 2007-07-16  Bruno Haible  <bruno@clisp.org>
62764
62765         * modules/lseek (License): Use the synonymous term "LGPLv2+".
62766         * modules/getdelim (License): Likewise.
62767
62768 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62769
62770         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
62771         * modules/d-type (License): Likewise.
62772         * modules/extensions (License): Likewise.
62773         * modules/fnmatch (License): Likewise.
62774         * modules/fseeko (License): Likewise.
62775         * modules/getaddrinfo (License): Likewise.
62776         * modules/getline (License): Likewise.
62777         * modules/getlogin_r (License): Likewise.
62778         * modules/getpass (License): Likewise.
62779         * modules/gettimeofday (License): Likewise.
62780         * modules/glob (License): Likewise.
62781         * modules/inet_ntop (License): Likewise.
62782         * modules/malloc (License): Likewise.
62783         * modules/malloca (License): Likewise.
62784         * modules/memmem (License): Likewise.
62785         * modules/mempcpy (License): Likewise.
62786         * modules/memset (License): Likewise.
62787         * modules/minmax (License): Likewise.
62788         * modules/mktime (License): Likewise.
62789         * modules/netinet_in (License): Likewise.
62790         * modules/pathmax (License): Likewise.
62791         * modules/poll (License): Likewise.
62792         * modules/regex (License): Likewise.
62793         * modules/snprintf (License): Likewise.
62794         * modules/stdbool (License): Likewise.
62795         * modules/stdint (License): Likewise.
62796         * modules/stdio (License): Likewise.
62797         * modules/strcase (License): Likewise.
62798         * modules/strcasestr (License): Likewise.
62799         * modules/strdup (License): Likewise.
62800         * modules/string (License): Likewise.
62801         * modules/strndup (License): Likewise.
62802         * modules/strnlen (License): Likewise.
62803         * modules/strpbrk (License): Likewise.
62804         * modules/strptime (License): Likewise.
62805         * modules/strsep (License): Likewise.
62806         * modules/sys_select (License): Likewise.
62807         * modules/sys_socket (License): Likewise.
62808         * modules/sys_stat (License): Likewise.
62809         * modules/sys_time (License): Likewise.
62810         * modules/time (License): Likewise.
62811         * modules/time_r (License): Likewise.
62812         * modules/timegm (License): Likewise.
62813         * modules/unistd (License): Likewise.
62814         * modules/vsnprintf (License): Likewise.
62815         * modules/wctype (License): Likewise.
62816
62817 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62818
62819         * modules/argz (License): LGPLv2+.
62820
62821 2007-07-15  Karl Berry  <karl@gnu.org>
62822
62823         * doc/gnulib.texi: revise node structure per new fdl.texi.
62824
62825 2007-07-14  Bruno Haible  <bruno@clisp.org>
62826
62827         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
62828         the output file.
62829         * lib/uniname/uninames.h: Regenerated.
62830
62831 2007-07-14  Karl Berry  <karl@gnu.org>
62832
62833         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
62834         omitting sectioning and index commands.
62835
62836 2007-07-13  Bruno Haible  <bruno@clisp.org>
62837
62838         New gnulib-tool option --more-symlinks.
62839         * gnulib-tool (func_usage): Document --more-symlinks.
62840         (do_copyrights): New variable.
62841         Recognize option --more-symlinks.
62842         (func_import): Don't add a copyright notice transform to
62843         sed_transform_lib_file if do_copyrights is empty.
62844
62845 2007-07-13  Bruno Haible  <bruno@clisp.org>
62846
62847         * lib/vasnprintf.c (decimal_point_char): Define also if
62848         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
62849         && !NEED_PRINTF_DIRECTIVE_A.
62850         Reported by Clemens Koller <clemens.koller@anagramm.de> via
62851         Gary V. Vaughan <gary@gnu.org>.
62852
62853 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
62854
62855         * lib/inttypes_.h: Undo previous change, since it was fixed
62856         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
62857
62858 2007-07-13  Bruno Haible  <bruno@clisp.org>
62859
62860         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
62861         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
62862
62863 2007-07-13  Jim Meyering  <jim@meyering.net>
62864
62865         df: Don't fail for Tru64's "file-on-file mount".
62866         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
62867         so we fall through and use statfs instead.  Details here:
62868         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
62869         Reported by Albert Chin.
62870
62871 2007-07-13  Bruno Haible  <bruno@clisp.org>
62872
62873         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
62874         * modules/configmake (License): Likewise.
62875         * modules/gettext (License): Likewise.
62876         * modules/gettext-h (License): Likewise.
62877         * modules/include_next (License): Likewise.
62878         * modules/link-warning (License): Likewise.
62879         * modules/localcharset (License): Likewise.
62880         * modules/localename (License): Likewise.
62881         * modules/lock (License): Likewise.
62882         * modules/relocatable-lib-lgpl (License): Likewise.
62883         * modules/size_max (License): Likewise.
62884         * modules/vasnprintf (License): Likewise.
62885         * modules/wchar (License): Likewise.
62886         * modules/xsize (License): Likewise.
62887
62888 2007-07-13  Bruno Haible  <bruno@clisp.org>
62889
62890         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
62891         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
62892
62893 2007-07-12  Bruno Haible  <bruno@clisp.org>
62894
62895         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
62896         in the modules files.
62897
62898 2007-07-11  Karl Berry  <karl@gnu.org>
62899
62900         * MODULES.html.sh (func_module): use
62901          sed -e '\|^'"${includefile}"'$|d'
62902          instead of /.../d, to avoid errors on $includefile's containing /.
62903
62904 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62905
62906         * gnulib-tool (func_import): Avoid duplication of --avoid
62907         statements
62908         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
62909         names to `_' in variable names.
62910
62911 2007-07-10  Eric Blake  <ebb9@byu.net>
62912
62913         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
62914         * NEWS: Document this change.
62915
62916 2007-07-08  Bruno Haible  <bruno@clisp.org>
62917
62918         Update to Unicode 5.0.
62919         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
62920         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
62921         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
62922         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
62923         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
62924         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
62925         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
62926         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
62927         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
62928         U+10A3F, U+1D242..U+1D244.
62929         (nonspacing_table_ind): Update.
62930         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
62931         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
62932
62933 2007-07-08  Bruno Haible  <bruno@clisp.org>
62934
62935         Update to Unicode 5.0.
62936         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
62937         code transform. Extend the name index field of unicode_name_to_code and
62938         unicode_code_to_name from 16 to 24 bits.
62939         * lib/uniname/uniname.c (unicode_character_name,
62940         unicode_name_character): Add the range 0x12xxx to the code transform.
62941         * lib/uniname/uninames.h: Regenerated.
62942         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
62943
62944 2007-07-07  Bruno Haible  <bruno@clisp.org>
62945
62946         * modules/wcwidth-tests: New file.
62947         * tests/test-wcwidth.c: New file.
62948
62949         Work around MacOS X wcwidth() bug.
62950         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
62951         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
62952         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
62953         original wcwidth in non-UTF-8 locales.
62954         * modules/wcwidth (Depends-on): Add localcharset, streq,
62955         uniwidth/width.
62956         * doc/functions/wcwidth.texi: Update.
62957
62958 2007-07-07  Bruno Haible  <bruno@clisp.org>
62959
62960         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
62961         (wcwidth): New declaration.
62962         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
62963         macros.
62964         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
62965         here. Prepare for creating <wchar.h> unconditionally.
62966         * modules/wchar (Depends-on): Add link-warning.
62967         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
62968         REPLACE_WCWIDTH, and GL_LINK_WARNING.
62969         * lib/wcwidth.h: Remove file.
62970         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
62971         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
62972         * modules/wcwidth (Files): Remove lib/wcwidth.h.
62973         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
62974         (Include): Replace wcwidth.h with <wchar.h>.
62975         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
62976         * lib/mbchar.h: Don't include wcwidth.h.
62977         * lib/mbswidth.c: Likewise.
62978         * NEWS: Mention the change.
62979
62980 2007-07-07  Bruno Haible  <bruno@clisp.org>
62981
62982         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
62983         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
62984         definition with an external declaration.
62985         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
62986         defined as a function. Remove AC_C_INLINE requirement.
62987         * modules/wcwidth (Files): Add lib/wcwidth.c.
62988         (Makefile.am): Remove redundant statement.
62989
62990 2007-07-07  Bruno Haible  <bruno@clisp.org>
62991
62992         * MODULES.html.sh (Unicode string functions): Add the new modules.
62993
62994         * tests/uniwidth/test-u32-strwidth.c: New file.
62995         * modules/uniwidth/u32-strwidth-tests: New file.
62996
62997         * lib/uniwidth/u32-strwidth.c: New file.
62998         * modules/uniwidth/u32-strwidth: New file.
62999
63000         * tests/uniwidth/test-u16-strwidth.c: New file.
63001         * modules/uniwidth/u16-strwidth-tests: New file.
63002
63003         * lib/uniwidth/u16-strwidth.c: New file.
63004         * modules/uniwidth/u16-strwidth: New file.
63005
63006         * tests/uniwidth/test-u8-strwidth.c: New file.
63007         * modules/uniwidth/u8-strwidth-tests: New file.
63008
63009         * lib/uniwidth/u8-strwidth.c: New file.
63010         * modules/uniwidth/u8-strwidth: New file.
63011
63012         * tests/uniwidth/test-u32-width.c: New file.
63013         * modules/uniwidth/u32-width-tests: New file.
63014
63015         * lib/uniwidth/u32-width.c: New file.
63016         * modules/uniwidth/u32-width: New file.
63017
63018         * tests/uniwidth/test-u16-width.c: New file.
63019         * modules/uniwidth/u16-width-tests: New file.
63020
63021         * lib/uniwidth/u16-width.c: New file.
63022         * modules/uniwidth/u16-width: New file.
63023
63024         * tests/uniwidth/test-u8-width.c: New file.
63025         * modules/uniwidth/u8-width-tests: New file.
63026
63027         * lib/uniwidth/u8-width.c: New file.
63028         * modules/uniwidth/u8-width: New file.
63029
63030         * tests/uniwidth/test-uc_width.c: New file.
63031         * modules/uniwidth/width-tests: New file.
63032
63033         * lib/uniwidth/width.c: New file, from GNU libiconv.
63034         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63035         * modules/uniwidth/width: New file.
63036
63037         * lib/uniwidth.h: New file, from GNU libiconv.
63038         * modules/uniwidth/base: New file.
63039
63040 2007-07-07  Bruno Haible  <bruno@clisp.org>
63041
63042         * lib/uniname.h: New file, from GNU gettext.
63043         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63044         * lib/uniname/uninames.h: New file, from GNU gettext.
63045         * lib/uniname/uniname.c: New file, from GNU gettext.
63046         * tests/uniname/test-uninames.sh: New file.
63047         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63048         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63049         * modules/uniname/base: New file.
63050         * modules/uniname/uniname: New file.
63051         * modules/uniname/uniname-tests: New file.
63052         * MODULES.html.sh (Unicode string functions): Add the new modules.
63053
63054 2007-07-06  Bruno Haible  <bruno@clisp.org>
63055
63056         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63057
63058 2007-07-06  Bruno Haible  <bruno@clisp.org>
63059
63060         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63061         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63062         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63063         include <sys/time.h>.
63064         Reported by Eric Blake.
63065
63066 2007-07-06  Eric Blake  <ebb9@byu.net>
63067
63068         Fix testing canonicalize on cygwin.
63069         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63070         Revert patch from 2007-06-19.
63071         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63072         canonicalize module is also in use.
63073         * tests/test-canonicalize.c: New file.
63074         * tests/test-canonicalize.sh: Likewise.
63075         * modules/canonicalize-tests: Likewise.
63076
63077 2007-07-06  Jim Meyering  <jim@meyering.net>
63078
63079         * lib/getugroups.c (getugroups): Detect getgrent failure.
63080         Adjust comment to reflect reality: this function may return -1.
63081
63082 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63083
63084         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63085         the new TP address.
63086         (usage): Fix typo
63087         (gnulib_mk): New variable.
63088
63089 2007-07-05  Jim Meyering  <jim@meyering.net>
63090
63091         Don't let endgrent clobber errno, no matter how improbable.
63092         * lib/getugroups.c (getugroups): Save and restore errno around
63093         endgrent call.
63094
63095         Close the group DB even when failing with 2^31 or more members.
63096         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63097
63098 2007-07-04  Jim Meyering  <jim@meyering.net>
63099
63100         * lib/getugroups.h: New file.
63101         * lib/getugroups.c: Include "getugroups.h".
63102         Remove uses of "register" keyword.
63103         Move local variable, "cp", down into scope where used.
63104         Give "username" parameter the "const" attribute.
63105         * modules/getugroups (Files): Add lib/getugroups.h
63106
63107 2007-07-04  Karl Berry  <karl@gnu.org>
63108
63109         * MODULES.html.sh (func_all_modules): Complete rename of
63110         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63111
63112 2007-07-02  Bruno Haible  <bruno@clisp.org>
63113
63114         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63115         mode, when inttypes.h comes from gnulib.
63116         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63117
63118 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63119
63120         * NEWS: Mention lgpl module name change.
63121
63122         * modules/lgpl-2.1: Renamed from lgpl.
63123
63124         * NEWS: Mention gpl module name change.
63125
63126         * modules/gpl-3.0: New file, based on gpl-2.0.
63127
63128         * modules/gpl-2.0: Renamed from gpl.
63129
63130         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63131         doc/gpl-2.0.texi.
63132
63133 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63134
63135         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63136         #define __STDC_LIMIT_MACROS temporarily while including
63137         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63138         Problem reported by Joel E. Denny in
63139         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63140
63141 2007-07-01  Bruno Haible  <bruno@clisp.org>
63142
63143         * lib/unistdio.h: New file.
63144         * lib/unistdio/u-asnprintf.h: New file.
63145         * lib/unistdio/u-asprintf.h: New file.
63146         * lib/unistdio/u-printf-args.c: New file.
63147         * lib/unistdio/u-printf-args.h: New file.
63148         * lib/unistdio/u-printf-parse.h: New file.
63149         * lib/unistdio/u-snprintf.h: New file.
63150         * lib/unistdio/u-sprintf.h: New file.
63151         * lib/unistdio/u-vasprintf.h: New file.
63152         * lib/unistdio/u-vsnprintf.h: New file.
63153         * lib/unistdio/u-vsprintf.h: New file.
63154         * lib/unistdio/ulc-asnprintf.c: New file.
63155         * lib/unistdio/ulc-asprintf.c: New file.
63156         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63157         * lib/unistdio/ulc-printf-parse.c: New file.
63158         * lib/unistdio/ulc-snprintf.c: New file.
63159         * lib/unistdio/ulc-sprintf.c: New file.
63160         * lib/unistdio/ulc-vasnprintf.c: New file.
63161         * lib/unistdio/ulc-vasprintf.c: New file.
63162         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63163         * lib/unistdio/ulc-vsnprintf.c: New file.
63164         * lib/unistdio/ulc-vsprintf.c: New file.
63165         * lib/unistdio/u8-asnprintf.c: New file.
63166         * lib/unistdio/u8-asprintf.c: New file.
63167         * lib/unistdio/u8-printf-parse.c: New file.
63168         * lib/unistdio/u8-snprintf.c: New file.
63169         * lib/unistdio/u8-sprintf.c: New file.
63170         * lib/unistdio/u8-vasnprintf.c: New file.
63171         * lib/unistdio/u8-vasprintf.c: New file.
63172         * lib/unistdio/u8-vsnprintf.c: New file.
63173         * lib/unistdio/u8-vsprintf.c: New file.
63174         * lib/unistdio/u8-u8-asnprintf.c: New file.
63175         * lib/unistdio/u8-u8-asprintf.c: New file.
63176         * lib/unistdio/u8-u8-snprintf.c: New file.
63177         * lib/unistdio/u8-u8-sprintf.c: New file.
63178         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63179         * lib/unistdio/u8-u8-vasprintf.c: New file.
63180         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63181         * lib/unistdio/u8-u8-vsprintf.c: New file.
63182         * lib/unistdio/u16-asnprintf.c: New file.
63183         * lib/unistdio/u16-asprintf.c: New file.
63184         * lib/unistdio/u16-printf-parse.c: New file.
63185         * lib/unistdio/u16-snprintf.c: New file.
63186         * lib/unistdio/u16-sprintf.c: New file.
63187         * lib/unistdio/u16-vasnprintf.c: New file.
63188         * lib/unistdio/u16-vasprintf.c: New file.
63189         * lib/unistdio/u16-vsnprintf.c: New file.
63190         * lib/unistdio/u16-vsprintf.c: New file.
63191         * lib/unistdio/u16-u16-asnprintf.c: New file.
63192         * lib/unistdio/u16-u16-asprintf.c: New file.
63193         * lib/unistdio/u16-u16-snprintf.c: New file.
63194         * lib/unistdio/u16-u16-sprintf.c: New file.
63195         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63196         * lib/unistdio/u16-u16-vasprintf.c: New file.
63197         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63198         * lib/unistdio/u16-u16-vsprintf.c: New file.
63199         * lib/unistdio/u32-asnprintf.c: New file.
63200         * lib/unistdio/u32-asprintf.c: New file.
63201         * lib/unistdio/u32-printf-parse.c: New file.
63202         * lib/unistdio/u32-snprintf.c: New file.
63203         * lib/unistdio/u32-sprintf.c: New file.
63204         * lib/unistdio/u32-vasnprintf.c: New file.
63205         * lib/unistdio/u32-vasprintf.c: New file.
63206         * lib/unistdio/u32-vsnprintf.c: New file.
63207         * lib/unistdio/u32-vsprintf.c: New file.
63208         * lib/unistdio/u32-u32-asnprintf.c: New file.
63209         * lib/unistdio/u32-u32-asprintf.c: New file.
63210         * lib/unistdio/u32-u32-snprintf.c: New file.
63211         * lib/unistdio/u32-u32-sprintf.c: New file.
63212         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63213         * lib/unistdio/u32-u32-vasprintf.c: New file.
63214         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63215         * lib/unistdio/u32-u32-vsprintf.c: New file.
63216         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63217         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63218         * tests/unistdio/test-ulc-printf1.h: New file.
63219         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63220         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63221         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63222         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63223         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63224         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63225         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63226         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63227         * tests/unistdio/test-u8-asnprintf1.c: New file.
63228         * tests/unistdio/test-u8-asnprintf1.h: New file.
63229         * tests/unistdio/test-u8-printf1.h: New file.
63230         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63231         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63232         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63233         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63234         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63235         * tests/unistdio/test-u8-vasprintf1.c: New file.
63236         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63237         * tests/unistdio/test-u8-vsprintf1.c: New file.
63238         * tests/unistdio/test-u16-asnprintf1.c: New file.
63239         * tests/unistdio/test-u16-asnprintf1.h: New file.
63240         * tests/unistdio/test-u16-printf1.h: New file.
63241         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63242         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63243         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63244         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63245         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63246         * tests/unistdio/test-u16-vasprintf1.c: New file.
63247         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63248         * tests/unistdio/test-u16-vsprintf1.c: New file.
63249         * tests/unistdio/test-u32-asnprintf1.c: New file.
63250         * tests/unistdio/test-u32-asnprintf1.h: New file.
63251         * tests/unistdio/test-u32-printf1.h: New file.
63252         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63253         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63254         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63255         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63256         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63257         * tests/unistdio/test-u32-vasprintf1.c: New file.
63258         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63259         * tests/unistdio/test-u32-vsprintf1.c: New file.
63260         * modules/unistdio/base: New file.
63261         * modules/unistdio/u-printf-args: New file.
63262         * modules/unistdio/ulc-asnprintf: New file.
63263         * modules/unistdio/ulc-asprintf: New file.
63264         * modules/unistdio/ulc-fprintf: New file.
63265         * modules/unistdio/ulc-printf-parse: New file.
63266         * modules/unistdio/ulc-snprintf: New file.
63267         * modules/unistdio/ulc-sprintf: New file.
63268         * modules/unistdio/ulc-vasnprintf: New file.
63269         * modules/unistdio/ulc-vasprintf: New file.
63270         * modules/unistdio/ulc-vfprintf: New file.
63271         * modules/unistdio/ulc-vsnprintf: New file.
63272         * modules/unistdio/ulc-vsprintf: New file.
63273         * modules/unistdio/u8-asnprintf: New file.
63274         * modules/unistdio/u8-asprintf: New file.
63275         * modules/unistdio/u8-printf-parse: New file.
63276         * modules/unistdio/u8-snprintf: New file.
63277         * modules/unistdio/u8-sprintf: New file.
63278         * modules/unistdio/u8-vasnprintf: New file.
63279         * modules/unistdio/u8-vasprintf: New file.
63280         * modules/unistdio/u8-vsnprintf: New file.
63281         * modules/unistdio/u8-vsprintf: New file.
63282         * modules/unistdio/u8-u8-asnprintf: New file.
63283         * modules/unistdio/u8-u8-asprintf: New file.
63284         * modules/unistdio/u8-u8-snprintf: New file.
63285         * modules/unistdio/u8-u8-sprintf: New file.
63286         * modules/unistdio/u8-u8-vasnprintf: New file.
63287         * modules/unistdio/u8-u8-vasprintf: New file.
63288         * modules/unistdio/u8-u8-vsnprintf: New file.
63289         * modules/unistdio/u8-u8-vsprintf: New file.
63290         * modules/unistdio/u16-asnprintf: New file.
63291         * modules/unistdio/u16-asprintf: New file.
63292         * modules/unistdio/u16-printf-parse: New file.
63293         * modules/unistdio/u16-snprintf: New file.
63294         * modules/unistdio/u16-sprintf: New file.
63295         * modules/unistdio/u16-vasnprintf: New file.
63296         * modules/unistdio/u16-vasprintf: New file.
63297         * modules/unistdio/u16-vsnprintf: New file.
63298         * modules/unistdio/u16-vsprintf: New file.
63299         * modules/unistdio/u16-u16-asnprintf: New file.
63300         * modules/unistdio/u16-u16-asprintf: New file.
63301         * modules/unistdio/u16-u16-snprintf: New file.
63302         * modules/unistdio/u16-u16-sprintf: New file.
63303         * modules/unistdio/u16-u16-vasnprintf: New file.
63304         * modules/unistdio/u16-u16-vasprintf: New file.
63305         * modules/unistdio/u16-u16-vsnprintf: New file.
63306         * modules/unistdio/u16-u16-vsprintf: New file.
63307         * modules/unistdio/u32-asnprintf: New file.
63308         * modules/unistdio/u32-asprintf: New file.
63309         * modules/unistdio/u32-printf-parse: New file.
63310         * modules/unistdio/u32-snprintf: New file.
63311         * modules/unistdio/u32-sprintf: New file.
63312         * modules/unistdio/u32-vasnprintf: New file.
63313         * modules/unistdio/u32-vasprintf: New file.
63314         * modules/unistdio/u32-vsnprintf: New file.
63315         * modules/unistdio/u32-vsprintf: New file.
63316         * modules/unistdio/u32-u32-asnprintf: New file.
63317         * modules/unistdio/u32-u32-asprintf: New file.
63318         * modules/unistdio/u32-u32-snprintf: New file.
63319         * modules/unistdio/u32-u32-sprintf: New file.
63320         * modules/unistdio/u32-u32-vasnprintf: New file.
63321         * modules/unistdio/u32-u32-vasprintf: New file.
63322         * modules/unistdio/u32-u32-vsnprintf: New file.
63323         * modules/unistdio/u32-u32-vsprintf: New file.
63324         * modules/unistdio/ulc-asnprintf-tests: New file.
63325         * modules/unistdio/ulc-vasnprintf-tests: New file.
63326         * modules/unistdio/ulc-vasprintf-tests: New file.
63327         * modules/unistdio/ulc-vsnprintf-tests: New file.
63328         * modules/unistdio/ulc-vsprintf-tests: New file.
63329         * modules/unistdio/u8-asnprintf-tests: New file.
63330         * modules/unistdio/u8-vasnprintf-tests: New file.
63331         * modules/unistdio/u8-vasprintf-tests: New file.
63332         * modules/unistdio/u8-vsnprintf-tests: New file.
63333         * modules/unistdio/u8-vsprintf-tests: New file.
63334         * modules/unistdio/u16-asnprintf-tests: New file.
63335         * modules/unistdio/u16-vasnprintf-tests: New file.
63336         * modules/unistdio/u16-vasprintf-tests: New file.
63337         * modules/unistdio/u16-vsnprintf-tests: New file.
63338         * modules/unistdio/u16-vsprintf-tests: New file.
63339         * modules/unistdio/u32-asnprintf-tests: New file.
63340         * modules/unistdio/u32-vasnprintf-tests: New file.
63341         * modules/unistdio/u32-vasprintf-tests: New file.
63342         * modules/unistdio/u32-vsnprintf-tests: New file.
63343         * modules/unistdio/u32-vsprintf-tests: New file.
63344         * MODULES.html.sh (Unicode string functions): Add the new modules.
63345
63346 2007-07-01  Bruno Haible  <bruno@clisp.org>
63347
63348         * lib/sprintf.c (sprintf): Limit the available length estimation,
63349         to avoid address wraparound.
63350         * lib/vsprintf.c (vsprintf): Likewise.
63351         * modules/sprintf-posix (Dependencies): Add stdint.
63352         * modules/vsprintf-posix (Dependencies): Likewise.
63353
63354 2007-07-01  Bruno Haible  <bruno@clisp.org>
63355
63356         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
63357         Windows PATH as well. Conservative double-quoting. Comments.
63358
63359 2007-07-01  Bruno Haible  <bruno@clisp.org>
63360             Eric Blake  <ebb9@byu.net>
63361             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63362
63363         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63364         empty components in $PATH, denoting '.'.
63365
63366 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63367
63368         * gnulib-tool: Fix indentation.
63369         (func_create_megatestdir): Likewise.
63370         Report by Bruno Haible.
63371
63372 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63373
63374         Sync from Automake.
63375         * build-aux/gnupload: Fix shell portability issues with for loops.
63376         Report by Karl Berry.
63377
63378 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63379
63380         * build-aux/maint.mk (POURL): Use translationproject.org.
63381
63382 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63383             Bruno Haible  <bruno@clisp.org>
63384
63385         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63386         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63387         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63388         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63389         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63390
63391 2007-06-27  Bruno Haible  <bruno@clisp.org>
63392
63393         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63394         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
63395
63396 2007-06-26  Karl Berry  <karl@gnu.org>
63397
63398         * MODULES.html.sh: remove xreadlink-with-size.
63399
63400 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63401
63402         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
63403         method that I hope also handles the double-include problem noted
63404         by Bruno Haible in
63405         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
63406
63407 2007-06-23  Bruno Haible  <bruno@clisp.org>
63408
63409         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63410         Don't let the 'mostlyclean' target fail if the last subdirectory could
63411         not be removed.
63412         Reported by Karl Berry.
63413
63414 2007-06-23  Bruno Haible  <bruno@clisp.org>
63415
63416         * gnulib-tool (echo): Add a speedier workaround for ksh.
63417         * tests/test-echo.sh: Likewise.
63418
63419 2007-06-23  Bruno Haible  <bruno@clisp.org>
63420
63421         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
63422         * tests/test-echo.sh: Likewise.
63423
63424 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63425
63426         * gnulib-tool (IFS): Initialize early, so we don't set it to
63427         empty later.
63428         (self_abspathname): Rewrite algorithm to set it, reindent.
63429         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
63430         (func_create_megatestdir): Merge some sed scripts.
63431
63432 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63433
63434         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
63435         exposed by Sun Studio 11 cc on Solaris 8.
63436
63437 2007-06-22  Bruno Haible  <bruno@clisp.org>
63438
63439         * gnulib-tool (echo): Ensure the echo primitive does not interpret
63440         backslashes.
63441         * tests/test-echo.sh: New file.
63442
63443 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63444
63445         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
63446         simplify `sed_replace_build_aux' scripts, they are portable but
63447         echoing them with `echo' is not.
63448         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
63449
63450 2007-06-21  Karl Berry  <karl@gnu.org>
63451
63452         * config/srclist.txt: guess we can't handle the licenses via
63453         srclist at the moment.
63454
63455 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63456
63457         * MODULES.html.sh: Add include_next.
63458         * modules/include_next: New file.
63459
63460 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63461
63462         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
63463         INCLUDE_NEXT.
63464         (gl_CHECK_NEXT_HEADERS): New macro.
63465         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
63466         the obsolescent gl_ABSOLUTE_HEADER.
63467         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
63468         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
63469         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
63470         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63471         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63472         * m4/math_h.m4 (gl_MATH_H): Likewise.
63473         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
63474         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63475         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
63476         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63477         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
63478         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
63479         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
63480         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63481         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63482         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
63483         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63484         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63485         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
63486         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63487         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63488         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63489         * m4/inttypes.m4 (gl_INTTYPES_H): Define
63490         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
63491         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
63492         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
63493         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
63494         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
63495         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
63496         * lib/float_.h: Likewise.
63497         * lib/inttypes_.h: Likewise.
63498         * lib/math_.h: Likewise.
63499         * lib/search_.h: Likewise.
63500         * lib/signal_.h: Likewise.
63501         * lib/stdint_.h: Likewise.
63502         * lib/stdio_.h: Likewise.
63503         * lib/stdlib_.h: Likewise.
63504         * lib/string_.h: Likewise.
63505         * lib/sys_stat_.h: Likewise.
63506         * lib/sys_time_.h: Likewise.
63507         * lib/time_.h: Likewise.
63508         * lib/unistd_.h: Likewise.
63509         * lib/wchar_.h: Likewise.
63510         * lib/wctype_.h: Likewise.
63511         * lib/dirent_.h: Likewise.
63512         * lib/iconv_.h: Likewise.
63513         * lib/locale_.h: Likewise.
63514         * lib/netinet_in_.h: Likewise.
63515         * lib/sys_select_.h: Likewise.
63516         * lib/sys_socket_.h: Likewise.
63517         * lib/sysexits_.h: Likewise.
63518         * modules/fcntl (Depends-on): Depend on include_next, not
63519         absolute_header.
63520         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63521         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63522         * modules/fchdir: Likewise.
63523         * modules/float: Likewise.
63524         * modules/iconv_open: Likewise.
63525         * modules/inttypes: Likewise.
63526         * modules/locale: Likewise.
63527         * modules/math: Likewise.
63528         * modules/netinet_in: Likewise.
63529         * modules/search: Likewise.
63530         * modules/signal: Likewise.
63531         * modules/stdint: Likewise.
63532         * modules/stdio: Likewise.
63533         * modules/stdlib: Likewise.
63534         * modules/string: Likewise.
63535         * modules/sys_select: Likewise.
63536         * modules/sys_socket: Likewise.
63537         * modules/sys_stat: Likewise.
63538         * modules/sys_time: Likewise.
63539         * modules/sysexits: Likewise.
63540         * modules/time: Likewise.
63541         * modules/unistd: Likewise.
63542         * modules/wchar: Likewise.
63543         * modules/wctype: Likewise.
63544         * modules/sys_stat: Change maintainer to "all".
63545         * modules/unistd: Likewise.
63546
63547 2007-06-20  Karl Berry  <karl@gnu.org>
63548
63549         * config/srclist.txt: track www changes in license files.
63550
63551 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63552
63553         * build-aux/bootstrap: Remove stray dot.
63554         Make sure build_aux settings are honored when linking
63555         gnulib_extra_files.
63556
63557 2007-06-19  Eric Blake  <ebb9@byu.net>
63558
63559         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63560         Allow compilation on cygwin.
63561
63562 2007-06-19  Jim Meyering  <jim@meyering.net>
63563
63564         xreadlink-with-size: Remove module.  No longer used.
63565         Ex-callers now use xreadlink or mreadlink-with-size.
63566         * modules/xreadlink-with-size: Remove module.
63567         * lib/xreadlink-with-size.c: Remove file.
63568         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63569         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63570         just before the function definition *is* accurate.
63571
63572         Eliminate one way canonicalize_filename_mode could exit.
63573         * lib/canonicalize.c (canonicalize_filename_mode):
63574         Use mreadlink_with_size, not xreadlink_with_size.
63575
63576 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63577
63578         Detect porting problems to FreeBSD/arm, which has time_t wider than
63579         long int.  Original problem reported for GNU diff by Xin Li in
63580         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63581         * modules/getdate (Depends-on): Add intprops, verify.
63582         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63583         is an integer type no wider than long int.
63584
63585 2007-06-18  Jim Meyering  <jim@meyering.net>
63586
63587         New module: mreadlink-with-size.
63588         * MODULES.html.sh: Add mreadlink-with-size.
63589         * modules/mreadlink-with-size: New module
63590         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63591         not xreadlink-with-size.
63592         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63593
63594 2007-06-16  Bruno Haible  <bruno@clisp.org>
63595
63596         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63597         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63598         Reported by Gary V. Vaughan <gary@gnu.org>.
63599
63600 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63601
63602         Revamp lchown so that it lives in unistd.h where it belongs.
63603         * lib/lchown.h: Remove.
63604         * lib/dirchownmod.c: Don't include lib/lchown.h.
63605         * lib/fchownat.c: Likewise.
63606         * lib/openat.c: Likewise.
63607         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63608         does not follow symlinks.
63609         (EOPNOTSUPP): Define if not defined.
63610         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63611         is defined to 0.
63612         (lchown): New decl.
63613         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63614         Do not check for lchown decl.
63615         Set REPLACE_LCHOWN.
63616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63617         REPLACE_LCHOWN.
63618         * modules/chown: Make it clear it follows symlinks.
63619         * modules/lchown: Make it clear it doesn't follow symlinks.
63620         (Files): Remove lib/lchown.h
63621         (Depends-on): Add unistd.
63622         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63623         (Include): Include <unistd.h>, not "lchown.h".
63624         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63625         REPLACE_LCHOWN.
63626
63627 2007-06-15  Jim Meyering  <jim@meyering.net>
63628
63629         Change license (GPL to LGPL) of fsusage and dependents.
63630         * modules/fsusage (License): Change to LGPL.
63631         * modules/full-read (License): Likewise.
63632         * modules/full-write (License): Likewise.
63633         * modules/safe-read (License): Likewise.
63634         * modules/safe-write (License): Likewise.
63635
63636 2007-06-14  Ben Pfaff  <blp@gnu.org>
63637
63638         Missing part of allocsa -> malloca transition.
63639         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63640         gl_MALLOCA.
63641
63642 2007-06-12  Bruno Haible  <bruno@clisp.org>
63643
63644         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63645         to ia64, x86_64, i386.
63646         Reported by Eric Blake.
63647
63648 2007-06-12  Bruno Haible  <bruno@clisp.org>
63649
63650         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63651         cross-compiling to x86_64.
63652
63653 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63654
63655         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63656         glitch reported by Ralf Wildenhues in
63657         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
63658
63659         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
63660         Vin Shelton.
63661
63662 2007-06-11  Bruno Haible  <bruno@clisp.org>
63663
63664         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
63665         replacement string.
63666         Reported by Eric Blake.
63667
63668 2007-06-10  Bruno Haible  <bruno@clisp.org>
63669
63670         Prepare vasnprintf code for use with Unicode strings.
63671         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
63672         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
63673         TYPE_U32_STRING.
63674         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
63675         a_u32_string variants.
63676         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63677         * lib/printf-args.c: Don't include config.h and the specification
63678         header if PRINTF_FETCHARGS is already defined.
63679         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63680         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
63681         TYPE_U16_STRING, TYPE_U32_STRING.
63682         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
63683         u16_directive, u16_directives, u32_directive, u32_directives): New
63684         types.
63685         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
63686         New declarations.
63687         * lib/printf-parse.c: Don't include config.h and the specification
63688         header if PRINTF_PARSE is already defined. Eliminate the set of
63689         parameters for WIDE_CHAR_VERSION; the user of this file must provide
63690         them now. Include c-ctype.h.
63691         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
63692         directive and CHAR_T_ONLY_ASCII.
63693         * lib/vasnprintf.c: Don't include config.h and the specification header
63694         if VASNPRINTF is already defined.
63695         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
63696         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
63697         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
63698         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
63699         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
63700         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
63701         code accordingly.
63702         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
63703         pad_ourselves also in this case, with the 'c' and 's' directives, and
63704         with a different notion of "width".
63705         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
63706
63707 2007-06-10  Bruno Haible  <bruno@clisp.org>
63708
63709         * modules/unistr/u32-mbsnlen: New file.
63710         * lib/unistr/u32-mbsnlen.c: New file.
63711
63712         * modules/unistr/u16-mbsnlen: New file.
63713         * lib/unistr/u16-mbsnlen.c: New file.
63714
63715         * modules/unistr/u8-mbsnlen: New file.
63716         * lib/unistr/u8-mbsnlen.c: New file.
63717
63718         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
63719         declarations.
63720
63721 2007-06-10  Bruno Haible  <bruno@clisp.org>
63722
63723         * lib/string_.h (mbsnlen): New declaration.
63724         * lib/mbsnlen.c: New file.
63725         * m4/mbsnlen.m4: New file.
63726         * modules/mbsnlen: New file.
63727         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
63728         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
63729         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
63730
63731 2007-06-10  Bruno Haible  <bruno@clisp.org>
63732
63733         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
63734
63735 2007-06-10  Bruno Haible  <bruno@clisp.org>
63736
63737         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
63738         * lib/mbuiter.h: Likewise.
63739
63740 2007-06-10  Bruno Haible  <bruno@clisp.org>
63741
63742         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
63743         declaration.
63744
63745 2007-06-10  Karl Berry  <karl@gnu.org>
63746
63747         * config/srclist.txt: remove gettext entries, Bruno prefers
63748         to update individually.
63749
63750 2007-06-10  Bruno Haible  <bruno@clisp.org>
63751
63752         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
63753         'maxlen'. Ensure only length + width bytes are allocated, not
63754         length + 1 + width.
63755
63756 2007-06-09  Bruno Haible  <bruno@clisp.org>
63757
63758         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
63759         (CHAR_T): Remove macro.
63760         (VASNPRINTF): Update.
63761
63762 2007-06-09  Bruno Haible  <bruno@clisp.org>
63763
63764         * MODULES.html.sh (Unicode string functions): Add the new modules.
63765
63766         * modules/uniconv/u32-conv-to-enc: New file.
63767         * lib/uniconv/u32-conv-to-enc.c: New file.
63768         * modules/uniconv/u32-conv-to-enc-tests: New file.
63769         * tests/uniconv/test-u32-conv-to-enc.c: New file.
63770
63771         * modules/uniconv/u16-conv-to-enc: New file.
63772         * lib/uniconv/u16-conv-to-enc.c: New file.
63773         * lib/uniconv/u-conv-to-enc.h: New file.
63774         * modules/uniconv/u16-conv-to-enc-tests: New file.
63775         * tests/uniconv/test-u16-conv-to-enc.c: New file.
63776
63777         * modules/uniconv/u8-conv-to-enc: New file.
63778         * lib/uniconv/u8-conv-to-enc.c: New file.
63779         * modules/uniconv/u8-conv-to-enc-tests: New file.
63780         * tests/uniconv/test-u8-conv-to-enc.c: New file.
63781
63782         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63783         u32_conv_to_encoding): New declarations.
63784
63785 2007-06-09  Bruno Haible  <bruno@clisp.org>
63786
63787         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
63788
63789 2007-06-09  Bruno Haible  <bruno@clisp.org>
63790
63791         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
63792         * modules/malloca: Renamed from modules/allocsa, updated.
63793         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
63794         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
63795         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
63796         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
63797         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
63798         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
63799         * modules/xmalloca: Renamed from modules/xallocsa, updated.
63800         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
63801         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
63802         * modules/c-strcasestr (Depends-on): Update.
63803         * lib/c-strcasestr.c: Update.
63804         * modules/c-strstr (Depends-on): Update.
63805         * lib/c-strstr.c: Update.
63806         * modules/canonicalize-lgpl (Depends-on): Update.
63807         * lib/canonicalize-lgpl.c: Update.
63808         * modules/clean-temp (Depends-on): Update.
63809         * lib/clean-temp.c: Update.
63810         * modules/csharpcomp (Depends-on): Update.
63811         * lib/csharpcomp.c: Update.
63812         * modules/csharpexec (Depends-on): Update.
63813         * lib/csharpexec.c: Update.
63814         * modules/javacomp (Depends-on): Update.
63815         * lib/javacomp.c: Update.
63816         * modules/javaexec (Depends-on): Update.
63817         * lib/javaexec.c: Update.
63818         * modules/mbscasestr (Depends-on): Update.
63819         * lib/mbscasestr.c: Update.
63820         * modules/mbsstr (Depends-on): Update.
63821         * lib/mbsstr.c: Update.
63822         * modules/setenv (Depends-on): Update.
63823         * lib/setenv.c: Update.
63824         * modules/strcasestr (Depends-on): Update.
63825         * lib/strcasestr.c: Update.
63826         * modules/striconveha (Depends-on): Update.
63827         * lib/striconveha.c: Update.
63828         * modules/relocatable-prog-wrapper (Files): Update.
63829         * lib/relocwrapper.c: Update.
63830         * build-aux/install-reloc: Update.
63831         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
63832
63833 2007-06-08  Bruno Haible  <bruno@clisp.org>
63834
63835         Port to uClibc.
63836         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
63837         * lib/fpurge.c (fpurge): Likewise.
63838         * lib/freading.c (freading): Likewise.
63839         * lib/fseeko.c (rpl_fseeko): Likewise.
63840         * lib/fseterr.c (fseterr): Likewise.
63841         * lib/fwriting.c (fwriting): Likewise.
63842         * tests/test-fflush.c (main): Avoid a failure on uClibc.
63843
63844 2007-06-08  Bruno Haible  <bruno@clisp.org>
63845
63846         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
63847         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
63848         * modules/gettext (Files): Add m4/intlmacosx.m4.
63849
63850 2007-06-07  Bruno Haible  <bruno@clisp.org>
63851
63852         * modules/localename-tests: New file.
63853         * tests/test-localename.c: New file.
63854
63855         New module 'localename'.
63856         * lib/localename.h: New file.
63857         * lib/localename.c: New file, from GNU gettext.
63858         * m4/localename.m4: New file.
63859         * modules/localename: New file.
63860
63861 2007-06-07  Bruno Haible  <bruno@clisp.org>
63862
63863         Work around the lack of <wchar.h> on some builds of uClibc.
63864         * doc/headers/wchar.texi: Update.
63865         * lib/wchar_.h: Include <wchar.h> only if it exists.
63866         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
63867         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
63868         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
63869         doesn't exist.
63870         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
63871         * modules/mbfile (Depends-on): Add wchar.
63872         * modules/mbiter (Depends-on): Likewise.
63873         * modules/mbuiter (Depends-on): Likewise.
63874         Reported by Simon Josefsson.
63875
63876 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63877
63878         Work around problem reported by Steven M. Schweda in
63879         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
63880         Tru64 5.1B with the Compaq compiler environment installed declares
63881         an 'isblank' function but does not define it in the C library.
63882         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
63883         * lib/regex_internal.h (isblank): Likewise.
63884         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
63885         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63886
63887 2007-06-05  Bruno Haible  <bruno@clisp.org>
63888
63889         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
63890         ia64.
63891         * modules/printf-safe: New file.
63892         * modules/fprintf-posix (Depends-on): Add printf-safe.
63893         * modules/printf-posix (Depends-on): Likewise.
63894         * modules/snprintf-posix (Depends-on): Likewise.
63895         * modules/sprintf-posix (Depends-on): Likewise.
63896         * modules/vasnprintf-posix (Depends-on): Likewise.
63897         * modules/vasprintf-posix (Depends-on): Likewise.
63898         * modules/vfprintf-posix (Depends-on): Likewise.
63899         * modules/vprintf-posix (Depends-on): Likewise.
63900         * modules/vsnprintf-posix (Depends-on): Likewise.
63901         * modules/vsprintf-posix (Depends-on): Likewise.
63902         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
63903         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
63904         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
63905         "no" on i386, x86_64, ia64.
63906         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
63907         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63908         on i386, x86_64, ia64.
63909         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
63910         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63911         on i386, x86_64, ia64.
63912         * tests/test-vasnprintf-posix.c: Include float.h.
63913         (LDBL80_WORDS): New macro.
63914         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63915         on i386, x86_64, ia64.
63916         * tests/test-vasprintf-posix.c: Include float.h.
63917         (LDBL80_WORDS): New macro.
63918         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63919         on i386, x86_64, ia64.
63920         * tests/test-snprintf-posix.c: Include float.h.
63921         * tests/test-sprintf-posix.c: Likewise.
63922         * tests/test-vsnprintf-posix.c: Likewise.
63923         * tests/test-vsprintf-posix.c: Likewise.
63924
63925 2007-06-05  Bruno Haible  <bruno@clisp.org>
63926
63927         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
63928         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
63929         non-IEEE numbers on i386, x86_64, ia64.
63930         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
63931         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
63932         * tests/test-isnanl.h: Include float.h.
63933         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
63934
63935 2007-06-05  Bruno Haible  <bruno@clisp.org>
63936
63937         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
63938         also the %a / %A. Handle the %a / %A code before this extra handling.
63939
63940 2007-06-05  Bruno Haible  <bruno@clisp.org>
63941
63942         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
63943         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
63944
63945 2007-06-05  Bruno Haible  <bruno@clisp.org>
63946
63947         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
63948         typo in variable name.
63949
63950 2007-06-05  Eric Blake  <ebb9@byu.net>
63951
63952         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
63953         Reported by Simon Josefsson.
63954
63955 2007-06-04  Bruno Haible  <bruno@clisp.org>
63956
63957         Avoid test failures on some PowerPC platforms.
63958         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
63959         Define differently for PowerPC.
63960         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
63961         Reported by Gary V. Vaughan <gary@gnu.org>.
63962
63963 2007-06-02  Bruno Haible  <bruno@clisp.org>
63964
63965         Fix test-stdint failure on FreeBSD/ia64.
63966         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
63967         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
63968         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
63969         * doc/headers/stdint.texi: Update.
63970
63971 2007-06-01  Bruno Haible  <bruno@clisp.org>
63972
63973         * tests/test-binary-io.c (main): Pass a third argument to open().
63974         Reported by Gary V. Vaughan <gary@gnu.org>.
63975
63976 2007-06-01  Bruno Haible  <bruno@clisp.org>
63977
63978         * doc/functions/frexpl.texi: Update for mingw.
63979
63980 2007-06-01  Bruno Haible  <bruno@clisp.org>
63981
63982         * tests/test-lseek.c (main): Disable test of errno for invalid third
63983         argument.
63984         * doc/functions/lseek.texi: Update.
63985         Reported by Gary V. Vaughan <gary@gnu.org>.
63986
63987 2007-05-28  Bruno Haible  <bruno@clisp.org>
63988
63989         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
63990
63991 2007-05-31  Eric Blake  <ebb9@byu.net>
63992
63993         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
63994         cross compiling.
63995
63996 2007-05-30  Eric Blake  <ebb9@byu.net>
63997         and Bruno Haible  <bruno@clisp.org>
63998
63999         Work around mingw test failures exposed by m4-1.4.9b.
64000         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64001         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64002         moment.
64003
64004 2007-05-30  Bruno Haible  <bruno@clisp.org>
64005
64006         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64007         assuming that they are closed. Needed on HP-UX 11.
64008
64009 2007-05-29  Bruno Haible  <bruno@clisp.org>
64010
64011         Fix a problem with #include_next.
64012         * lib/dirent_.h: Split the double-inclusion guard.
64013         * lib/fcntl_.h: Likewise.
64014         * lib/float_.h: Likewise.
64015         * lib/iconv_.h: Likewise.
64016         * lib/inttypes_.h: Likewise.
64017         * lib/locale_.h: Likewise.
64018         * lib/math_.h: Likewise.
64019         * lib/netinet_in_.h: Likewise.
64020         * lib/search_.h: Likewise.
64021         * lib/signal_.h: Likewise.
64022         * lib/stdint_.h: Likewise.
64023         * lib/stdio_.h: Likewise.
64024         * lib/stdlib_.h: Likewise.
64025         * lib/string_.h: Likewise.
64026         * lib/sys_select_.h: Likewise.
64027         * lib/sys_socket_.h: Likewise.
64028         * lib/sys_stat_.h: Likewise.
64029         * lib/sys_time_.h: Likewise.
64030         * lib/sysexits_.h: Likewise.
64031         * lib/time_.h: Likewise.
64032         * lib/unistd_.h: Likewise.
64033         * lib/wchar_.h: Likewise.
64034         * lib/wctype_.h: Likewise.
64035
64036 2007-05-29  Bruno Haible  <bruno@clisp.org>
64037
64038         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64039         for the moment.
64040
64041 2007-05-29  Bruno Haible  <bruno@clisp.org>
64042
64043         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64044         invocation.
64045         Reported by Eric Blake.
64046
64047 2007-05-29  Bruno Haible  <bruno@clisp.org>
64048
64049         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64050         compiling case.
64051
64052 2007-05-29  Eric Blake  <ebb9@byu.net>
64053             Bruno Haible  <bruno@clisp.org>
64054
64055         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64056         cross compiles.
64057
64058 2007-05-28  Eric Blake  <ebb9@byu.net>
64059
64060         * modules/closein-tests (test_closein_LDADD): Support test on
64061         cygwin with libtool.
64062
64063 2007-05-28  Bruno Haible  <bruno@clisp.org>
64064
64065         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64066         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64067         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64068         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64069         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64070         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64071         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64072         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64073         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64074
64075 2007-05-28  Eric Blake  <ebb9@byu.net>
64076
64077         Unconditionally include <config.h> in unit tests.
64078         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64079         * tests/test-allocsa.c, tests/test-arcfour.c,
64080         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64081         tests/test-array_list.c, tests/test-array_oset.c,
64082         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64083         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64084         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64085         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64086         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64087         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64088         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64089         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64090         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64091         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64092         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64093         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64094         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64095         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64096         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64097         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64098         test-md5.c, test-memmem.c, test-printf-posix.c,
64099         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64100         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64101         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64102         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64103         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64104         test-vasnprintf-posix2.c, test-vasnprintf.c,
64105         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64106         test-vfprintf-posix.c, test-vprintf-posix.c,
64107         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64108         test-xvasprintf.c: Likewise.
64109
64110 2007-05-28  Bruno Haible  <bruno@clisp.org>
64111
64112         * gnulib-tool (func_import): Remember the --with-tests command-line
64113         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64114         Reported by Eric Blake.
64115
64116 2007-05-28  Bruno Haible  <bruno@clisp.org>
64117
64118         * modules/ftell-tests: New file.
64119         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64120         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64121
64122         * lib/ftell.c: New file.
64123         * modules/ftell: New file.
64124         * m4/ftell.m4: New file.
64125         * doc/functions/ftell.texi: Update.
64126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64127         REPLACE_FTELL.
64128         * lib/stdio_.h (rpl_ftell): New declaration.
64129         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64130         REPLACE_FTELL.
64131
64132 2007-05-28  Eric Blake  <ebb9@byu.net>
64133
64134         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64135
64136 2007-05-28  Bruno Haible  <bruno@clisp.org>
64137
64138         * modules/fseek-tests: New file.
64139         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64140         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64141
64142         * lib/fseek.c: New file.
64143         * modules/fseek: New file.
64144         * m4/fseek.m4: New file.
64145         * doc/functions/fseek.texi: Update.
64146         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64147         REPLACE_FSEEK.
64148         * lib/stdio_.h (rpl_fseek): New declaration.
64149         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64150         REPLACE_FSEEK.
64151
64152 2007-05-28  Bruno Haible  <bruno@clisp.org>
64153
64154         * lib/stdio_.h (fflush): More comments.
64155
64156 2007-05-28  Bruno Haible  <bruno@clisp.org>
64157
64158         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64159         runtime test.
64160
64161 2007-05-28  Eric Blake  <ebb9@byu.net>
64162
64163         Improve lseek module.
64164         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64165         * lib/unistd_.h (lseek): Scale back link warning message.
64166         * tests/test-lseek.c: Beef up test.
64167         * tests/test-lseek.sh: Exercise more facets of lseek.
64168         Reported by Bruno Haible.
64169
64170 2007-05-28  Bruno Haible  <bruno@clisp.org>
64171
64172         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64173         to define.
64174
64175 2007-05-27  Bruno Haible  <bruno@clisp.org>
64176
64177         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64178
64179 2007-05-27  Bruno Haible  <bruno@clisp.org>
64180
64181         * modules/openmp: New file.
64182         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64183         Noah Misch.
64184
64185 2007-05-26  Bruno Haible  <bruno@clisp.org>
64186
64187         * modules/chdir-long (Depends-on): Add fchdir.
64188         * modules/chdir-safer (Depends-on): Likewise.
64189         * modules/fts (Depends-on): Likewise.
64190         * modules/fts-lgpl (Depends-on): Likewise.
64191         * modules/openat (Depends-on): Likewise.
64192         * modules/savewd (Depends-on): Likewise.
64193
64194 2007-05-24  Eric Blake  <ebb9@byu.net>
64195
64196         Fix lseek on mingw.
64197         * modules/lseek: New module.
64198         * m4/lseek.m4: New file.
64199         * lib/lseek.c: New file.
64200         * modules/lseek-tests: New file.
64201         * tests/test-lseek.c: New file.
64202         * tests/test-lseek.sh: New file.
64203         * MODULES.html.sh: Document lseek module.
64204         * modules/fflush (Depends-on): Add lseek, fseeko.
64205         * modules/fseeko (Depends-on): Likewise.
64206         * modules/ftello (Depends-on): Likewise.
64207         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64208         broken.
64209         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64210         broken.
64211         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64212         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64213         * lib/ftello.c (rpl_ftello): Likewise.
64214         * tests/test-fseeko.c (main): Test this.
64215         * tests/test-fseeko.sh: Likewise.
64216         * tests/test-ftello.c (main): Likewise.
64217         * tests/test-ftello.sh: Likewise.
64218         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64219         implies replacing fseek.
64220         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64221         HAVE_FTELLO.
64222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64223         * modules/unistd (Makefile.am): Likewise.
64224         * lib/unistd_.h (lseek): Declare a replacement.
64225         * doc/functions/lseek.texi (lseek): Document this fix.
64226         * doc/functions/fseek.texi (fseek): Likewise.
64227         * doc/functions/ftell.texi (ftell): Likewise.
64228
64229 2007-05-24  Bruno Haible  <bruno@clisp.org>
64230
64231         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64232         in the printed representation of a NaN.
64233         * tests/test-vasprintf-posix.c (test_function): Likewise.
64234         * tests/test-snprintf-posix.h (test_function): Likewise.
64235         * tests/test-sprintf-posix.h (test_function): Likewise.
64236         Reported by Eric Blake.
64237
64238 2007-05-23  Eric Blake  <ebb9@byu.net>
64239
64240         Fix fseeko/ftello on cygwin 1.5.24.
64241         * doc/functions/fseeko.texi (fseeko): Document the fix.
64242         * doc/functions/ftello.texi (ftello): Document the fix.
64243         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64244         * doc/functions/stdout.text (stdout): New file.
64245         * doc/functions/stderr.text (stderr): New file.
64246         * doc/gnulib.texi (Function Substitutes): Use new files.
64247         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64248         prior to 1.7.0.
64249         * tests/test-ftello.c (main): Likewise for ftello.
64250         * tests/test-fseeko.sh: New file.
64251         * tests/test-ftello.sh: New file.
64252         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64253         with seekable stdin.
64254         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64255         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64256         (gl_REPLACE_FSEEKO): New macro.
64257         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64258         * modules/fseeko (Files): Distribute fseeko.c.
64259         * modules/ftello (Files): Distribute ftello.c.
64260         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64261         mode.
64262         * lib/ftello.c (rpl_ftello): New file.
64263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64264         fseeko, ftello.
64265         (gl_STDIN_LARGE_OFFSET): New macro.
64266         * modules/stdio (Makefile.am): Perform the replacement.
64267         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64268
64269 2007-05-23  Bruno Haible  <bruno@clisp.org>
64270
64271         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64272         GNULIB_POSIXCHECK is defined.
64273
64274 2007-05-21  Bruno Haible  <bruno@clisp.org>
64275
64276         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64277         Check also the output for NaN arguments. When cross-compiling, guess
64278         no on IRIX.
64279         * lib/vasnprintf.c: Update comments.
64280         * tests/test-vasnprintf-posix.c (strisnan): New function.
64281         (test_function): Use it.
64282         * tests/test-vasprintf-posix.c (strisnan): New function.
64283         (test_function): Use it.
64284         * tests/test-snprintf-posix.h (strisnan): New function.
64285         (test_function): Use it.
64286         * tests/test-sprintf-posix.h (strisnan): New function.
64287         (test_function): Use it.
64288         Reported by Eric Blake.
64289
64290 2007-05-20  Bruno Haible  <bruno@clisp.org>
64291
64292         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64293         numbers that fails on BeOS.
64294         * doc/functions/frexpl.texi: Update.
64295
64296 2007-05-20  Jim Meyering  <jim@meyering.net>
64297
64298         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64299         forced upon us by glibc-2.6.
64300
64301 2007-05-20  Bruno Haible  <bruno@clisp.org>
64302
64303         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64304         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64305         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64306         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64307         NEED_PRINTF_INFINITE.
64308         (is_infinitel): New function.
64309         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64310         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64311         gl_PREREQ_VASNPRINTF_INFINITE.
64312         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64313         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64314         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64315         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64316         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64317         gl_PREREQ_VASNPRINTF_INFINITE.
64318         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64319         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64320         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64321         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64322         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64323         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64324         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64325         * doc/functions/fprintf.texi: Update.
64326         * doc/functions/printf.texi: Update.
64327         * doc/functions/snprintf.texi: Update.
64328         * doc/functions/sprintf.texi: Update.
64329         * doc/functions/vfprintf.texi: Update.
64330         * doc/functions/vprintf.texi: Update.
64331         * doc/functions/vsnprintf.texi: Update.
64332         * doc/functions/vsprintf.texi: Update.
64333
64334 2007-05-20  Bruno Haible  <bruno@clisp.org>
64335
64336         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
64337         was not found in libc.
64338         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64339
64340 2007-05-20  Bruno Haible  <bruno@clisp.org>
64341
64342         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64343         printed as "-nan" instead of "nan".
64344         * tests/test-vasprintf-posix.c (test_function): Likewise.
64345         * tests/test-snprintf-posix.h (test_function): Likewise.
64346         * tests/test-sprintf-posix.h (test_function): Likewise.
64347         Needed for HP-UX 11.
64348
64349 2007-05-20  Jim Meyering  <jim@meyering.net>
64350
64351         Fix buggy test for the fchownat-deref bug.
64352         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
64353         symlink required for the run-test.  Without it, this test would
64354         always declare that fchownat doesn't work, and client code would
64355         unnecessarily use the replacement function with fixed libc.
64356         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
64357         Reported by Greg Schafer.
64358
64359 2007-05-19  Bruno Haible  <bruno@clisp.org>
64360
64361         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64362         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64363         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64364         Needed for IRIX 6.5 and Solaris 2.5.1.
64365
64366 2007-05-19  Bruno Haible  <bruno@clisp.org>
64367
64368         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64369         (test_function): Skip tests involving -0.0 on platforms where
64370         -0.0 = 0.0.
64371         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64372         (test_function): Skip tests involving -0.0 on platforms where
64373         -0.0 = 0.0.
64374         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64375         (test_function): Skip tests involving -0.0 on platforms where
64376         -0.0 = 0.0.
64377         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64378         (test_function): Skip tests involving -0.0 on platforms where
64379         -0.0 = 0.0.
64380         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64381         tests.
64382         * tests/test-printf-posix.h (test_function): Likewise.
64383         * tests/test-printf-posix.output: Remove all -0.0 related results.
64384         Needed for IRIX 6.5.
64385
64386 2007-05-19  Bruno Haible  <bruno@clisp.org>
64387
64388         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64389         printed as "nan0x7fffffff" instead of "nan".
64390         * tests/test-vasprintf-posix.c (test_function): Likewise.
64391         * tests/test-snprintf-posix.h (test_function): Likewise.
64392         * tests/test-sprintf-posix.h (test_function): Likewise.
64393         * tests/test-fprintf-posix.h (NaN): Remove macro.
64394         (test_function): Remove all NaN related tests.
64395         * tests/test-printf-posix.h (NaN): Remove macro.
64396         (test_function): Remove all NaN related tests.
64397         * tests/test-printf-posix.output: Remove all NaN related results.
64398         Needed for IRIX 6.5.
64399
64400 2007-05-19  Bruno Haible  <bruno@clisp.org>
64401
64402         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
64403         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64404
64405 2007-05-19  Bruno Haible  <bruno@clisp.org>
64406
64407         * lib/float_.h: New file.
64408         * m4/float_h.m4: New file.
64409         * modules/float: New file.
64410         * modules/isnanl (Dependencies): Add float.
64411         * modules/isnanl-nolibm (Dependencies): Likewise.
64412         * modules/mathl (Dependencies): Likewise.
64413         * modules/printf-frexpl (Dependencies): Likewise.
64414         * modules/signbit (Dependencies): Likewise.
64415         * modules/vasnprintf (Dependencies): Likewise.
64416         * doc/headers/float.texi: Update.
64417
64418 2007-05-19  Jim Meyering  <jim@meyering.net>
64419
64420         * lib/utimens.c (gl_futimens): Rename from futimens,
64421         now that glibc-2.6 declares futimens.
64422         * lib/utimens.h: Likewise.
64423
64424 2007-05-19  Bruno Haible  <bruno@clisp.org>
64425
64426         Avoid test failures on mingw.
64427         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
64428         * tests/test-printf-posix.sh: Likewise.
64429         * tests/test-vfprintf-posix.sh: Likewise.
64430         * tests/test-vprintf-posix.sh: Likewise.
64431
64432 2007-05-19  Bruno Haible  <bruno@clisp.org>
64433
64434         Fix *printf result for NaN, Inf, -0.0 on mingw.
64435         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
64436         * lib/vasnprintf.c: Include math.h and isnan.h.
64437         (is_infinite_or_zero): New function.
64438         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
64439         values in the %f, %F, %e, %E, %g, %G directives.
64440         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
64441         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64442         gl_PRINTF_INFINITE and test its result. Invoke
64443         gl_PREREQ_VASNPRINTF_INFINITE.
64444         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64445         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64446         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64447         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64448         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64449         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64450         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64451         * doc/functions/fprintf.texi: Update.
64452         * doc/functions/printf.texi: Update.
64453         * doc/functions/snprintf.texi: Update.
64454         * doc/functions/sprintf.texi: Update.
64455         * doc/functions/vfprintf.texi: Update.
64456         * doc/functions/vprintf.texi: Update.
64457         * doc/functions/vsnprintf.texi: Update.
64458         * doc/functions/vsprintf.texi: Update.
64459
64460 2007-05-19  Bruno Haible  <bruno@clisp.org>
64461
64462         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
64463         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
64464         Instead of multiplying with 10^k, set extra_zeroes to k.
64465         (scale10_round_long_double): Remove function.
64466
64467 2007-05-18  Bruno Haible  <bruno@clisp.org>
64468
64469         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
64470         introduced on 2007-05-06.
64471
64472 2007-05-18  Bruno Haible  <bruno@clisp.org>
64473
64474         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
64475         %g directives.
64476         * tests/test-vasprintf-posix.c (test_function): Likewise.
64477         * tests/test-snprintf-posix.h (test_function): Likewise.
64478         * tests/test-sprintf-posix.h (test_function): Likewise.
64479
64480 2007-05-18  Bruno Haible  <bruno@clisp.org>
64481
64482         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
64483         (strmatch): New function.
64484         (test_function): Test the %f directive on numbers of various exponents.
64485         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
64486         (strmatch): New function.
64487         (test_function): Test the %f directive on numbers of various exponents.
64488         * tests/test-snprintf-posix.h (strmatch): New function.
64489         (test_function): Test the %f directive on numbers of various exponents.
64490         * tests/test-sprintf-posix.h (strmatch): New function.
64491         (test_function): Test the %f directive on numbers of various exponents.
64492         * tests/test-snprintf-posix.c (SIZEOF): New macro.
64493         * tests/test-sprintf-posix.c (SIZEOF): New macro.
64494         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
64495         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
64496
64497 2007-05-18  Bruno Haible  <bruno@clisp.org>
64498
64499         Add support for 'long double' number output.
64500         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
64501         * lib/vasnprintf.c: Include math.h and float+.h.
64502         (mp_limb_t): New type.
64503         (GMP_LIMB_BITS): New macro.
64504         (mp_twolimb_t): New type.
64505         (GMP_TWOLIMB_BITS): New macro.
64506         (mpn_t): New type.
64507         (multiply, divide, convert_to_decimal, decode_long_double,
64508         scale10_round_long_double, scale10_round_decimal_long_double,
64509         floorlog10l): New functions.
64510         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64511         for the %f, %F, %e, %E, %g, %G directives.
64512         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64513         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64514         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64515         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64516         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64517         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64518         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64519         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64520         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64521         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64522         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64523         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64524         * modules/snprintf-posix (Depends-on): Likewise.
64525         * modules/sprintf-posix (Depends-on): Likewise.
64526         * modules/vasnprintf-posix (Depends-on): Likewise.
64527         * modules/vasprintf-posix (Depends-on): Likewise.
64528         * modules/vfprintf-posix (Depends-on): Likewise.
64529         * modules/vsnprintf-posix (Depends-on): Likewise.
64530         * modules/vsprintf-posix (Depends-on): Likewise.
64531         * modules/vasnprintf (Files): Add lib/float+.h.
64532         * doc/functions/fprintf.texi: Update.
64533         * doc/functions/printf.texi: Update.
64534         * doc/functions/snprintf.texi: Update.
64535         * doc/functions/sprintf.texi: Update.
64536         * doc/functions/vfprintf.texi: Update.
64537         * doc/functions/vprintf.texi: Update.
64538         * doc/functions/vsnprintf.texi: Update.
64539         * doc/functions/vsprintf.texi: Update.
64540
64541 2007-05-18  Bruno Haible  <bruno@clisp.org>
64542
64543         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64544
64545 2007-05-18  Bruno Haible  <bruno@clisp.org>
64546
64547         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64548         for printing 64-bit integers. Needed for mingw.
64549
64550 2007-05-18  Bruno Haible  <bruno@clisp.org>
64551
64552         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64553         gl_FUNC_FREXPL_WORKS.
64554         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64555
64556 2007-05-18  Bruno Haible  <bruno@clisp.org>
64557
64558         * modules/frexpl-nolibm-tests: New file.
64559
64560         * modules/frexpl-nolibm: New file.
64561         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64562
64563 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64564
64565         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64566         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64567         GCC 4.2, which otherwise issues a lot of warnings.
64568         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64569         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64570         Likewise.
64571         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64572         * modules/iconv_open (iconv.h): Likewise.
64573         * modules/locale (locale.h): Likewise.
64574         * modules/netinet_in (netinet/in.h): Likewise.
64575         * modules/sys_select (sys_select.h): Likewise.
64576         * modules/sys_socket (sys/socket.h): Likewise.
64577         * modules/sys_stat (sys/stat.h): Likewise.
64578         * modules/sysexits (sysexits.h): Likewise.
64579         * modules/unistd (unistd.h): Likewise.
64580
64581 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64582
64583         * modules/closein-tests (Makefile.am): Distribute
64584         `test-closein.sh'.
64585
64586 2007-05-17  Bruno Haible  <bruno@clisp.org>
64587
64588         * tests/test-printf-posix.output: Renamed from
64589         tests/test-fprintf-posix.out.
64590         * modules/fprintf-posix-tests: Update.
64591         * modules/printf-posix-tests: Update.
64592         * modules/vfprintf-posix-tests: Update.
64593         * modules/vprintf-posix-tests: Update.
64594         * tests/test-fprintf-posix.sh: Update.
64595         * tests/test-printf-posix.sh: Update.
64596         * tests/test-vfprintf-posix.sh: Update.
64597         * tests/test-vprintf-posix.sh: Update.
64598         Reported by Ralf Wildenhues.
64599
64600 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64601
64602         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64603         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64604         GCC 4.2, which otherwise issues a lot of warnings.
64605         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64606         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64607         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64608         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64609         it should no longer be needed.
64610         * lib/string_.h: Likewise.
64611         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64612         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64613         * modules/inttypes (inttypes.h): Likewise.
64614         * modules/math (math.h): Likewise.
64615         * modules/search (search.h): Likewise.
64616         * modules/signal (signal.h): Likewise.
64617         * modules/stdint (stdint.h): Likewise.
64618         * modules/stdio (stdio.h): Likewise.
64619         * modules/stdlib (stdlib.h): Likewise.
64620         * modules/string (string.h): Likewise.
64621         * modules/sys_time (sys/time.h): Likewise.
64622         * modules/time (time.h): Likewise.
64623         * modules/wchar (wchar.h): Likewise.
64624         * modules/wctype (wtype.h): Likewise.
64625
64626 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64627
64628         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64629
64630 2007-05-13  Bruno Haible  <bruno@clisp.org>
64631
64632         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64633         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64634         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64635         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64636         (gl_PREREQ_STRTOK_R): Don't require it here.
64637
64638 2007-05-13  Bruno Haible  <bruno@clisp.org>
64639
64640         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64641         when used in C++ mode.
64642
64643 2007-05-12  Bruno Haible  <bruno@clisp.org>
64644
64645         * lib/linebuffer.h: Tweak doc.
64646         * lib/linebuffer.c: Likewise.
64647
64648 2007-05-12  James Youngman  <jay@gnu.org>
64649
64650         * lib/linebuffer.c (readlinebuffer_delim): New function,
64651         like readlinebuffer, but use a caller-specified delimiter.
64652         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64653         as the delimiter.
64654         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64655
64656 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64657
64658         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
64659         * modules/openat (Files): Remove openat-die.c.
64660         (Depends-on): Add openat-die.
64661         * modules/openat-die: New module.
64662
64663 2007-05-06  Bruno Haible  <bruno@clisp.org>
64664
64665         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
64666         Update with info about Cygwin.
64667         * doc/functions/fprintf.texi: Update.
64668         * doc/functions/printf.texi: Update.
64669         * doc/functions/snprintf.texi: Update.
64670         * doc/functions/sprintf.texi: Update.
64671         * doc/functions/vfprintf.texi: Update.
64672         * doc/functions/vprintf.texi: Update.
64673         * doc/functions/vsnprintf.texi: Update.
64674         * doc/functions/vsprintf.texi: Update.
64675         Reported by Eric Blake.
64676
64677 2007-05-06  Bruno Haible  <bruno@clisp.org>
64678
64679         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
64680         padding ourselves for the floating-point directives.
64681         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
64682         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
64683         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64684         gl_PRINTF_FLAG_ZERO and test its result. Invoke
64685         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
64686         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64687         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64688         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64689         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64690         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64691         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64692         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64693         * tests/test-snprintf-posix.h (test_function): Also check the width
64694         and some flags in the %f directive.
64695         * tests/test-sprintf-posix.h (test_function): Likewise.
64696         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64697         * tests/test-vasprintf-posix.c (test_function): Likewise.
64698         * doc/functions/fprintf.texi: Update.
64699         * doc/functions/printf.texi: Update.
64700         * doc/functions/snprintf.texi: Update.
64701         * doc/functions/sprintf.texi: Update.
64702         * doc/functions/vfprintf.texi: Update.
64703         * doc/functions/vprintf.texi: Update.
64704         * doc/functions/vsnprintf.texi: Update.
64705         * doc/functions/vsprintf.texi: Update.
64706
64707 2007-05-06  Bruno Haible  <bruno@clisp.org>
64708
64709         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
64710         pass the ' flag character to sprintf or snprintf.
64711         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
64712         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
64713         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64714         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
64715         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
64716         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64717         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64718         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64719         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64720         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64721         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64722         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64723         * tests/test-snprintf-posix.h (test_function): Also check the grouping
64724         flag.
64725         * tests/test-sprintf-posix.h (test_function): Likewise.
64726         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64727         * tests/test-vasprintf-posix.c (test_function): Likewise.
64728         * doc/functions/fprintf.texi: Update.
64729         * doc/functions/printf.texi: Update.
64730         * doc/functions/snprintf.texi: Update.
64731         * doc/functions/sprintf.texi: Update.
64732         * doc/functions/vfprintf.texi: Update.
64733         * doc/functions/vprintf.texi: Update.
64734         * doc/functions/vsnprintf.texi: Update.
64735         * doc/functions/vsprintf.texi: Update.
64736
64737 2007-05-01  Bruno Haible  <bruno@clisp.org>
64738
64739         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
64740
64741 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
64742
64743         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
64744         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
64745
64746 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64747
64748         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
64749         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
64750         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
64751
64752 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
64753
64754         * lib/argp-help.c (struct hol_entry): New member `ord'.
64755         (HOL_ENTRY_PTRCMP): Use ord for comparison
64756         (hol_sort): Initialize ord.
64757
64758 2007-05-01  Bruno Haible  <bruno@clisp.org>
64759
64760         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
64761         Reported by Eric Blake.
64762         * doc/gnulib.texi (Function Substitutes): Update.
64763
64764 2007-05-01  Bruno Haible  <bruno@clisp.org>
64765
64766         * doc/functions.texi: Remove file, now redundant through
64767         doc/functions/*.texi.
64768
64769 2007-05-01  Bruno Haible  <bruno@clisp.org>
64770
64771         * modules/argp (Depends-on): Add sleep.
64772
64773 2007-05-01  Bruno Haible  <bruno@clisp.org>
64774
64775         * modules/sleep-tests: New file.
64776         * tests/test-sleep.c: New file.
64777
64778         * modules/sleep: New file.
64779         * lib/sleep.c: New file.
64780         * m4/sleep.m4: New file.
64781         * lib/unistd_.h (sleep): New declaration.
64782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
64783         HAVE_SLEEP.
64784         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
64785         * doc/functions/sleep.texi: Document the sleep module.
64786
64787 2007-05-01  Bruno Haible  <bruno@clisp.org>
64788
64789         * lib/sigprocmask.h: Remove file.
64790         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
64791         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
64792         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
64793         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
64794         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
64795         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
64796         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
64797         HAVE_SIGSET_T as a shell variable.
64798         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
64799         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
64800         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
64801         (Depends-on): Add signal. Remove verify.
64802         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
64803         (Include): Mention <signal.h> instead of sigprocmask.h.
64804         * NEWS: Mention the change.
64805         * lib/fatal-signal.c: Don't include sigprocmask.h.
64806
64807 2007-05-01  Bruno Haible  <bruno@clisp.org>
64808
64809         * modules/signal: New file.
64810         * lib/signal_.h: New file.
64811         * m4/signal_h.m4: New file.
64812
64813 2007-05-01  Bruno Haible  <bruno@clisp.org>
64814
64815         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
64816         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
64817         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
64818         HAVE_WCTYPE_CTMP_BUG into wctype.h.
64819
64820 2007-05-01  Bruno Haible  <bruno@clisp.org>
64821
64822         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
64823         configure time.
64824         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
64825         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
64826         * modules/sys_stat (Makefile.am): Substitute their values into
64827         sys/stat.h.
64828
64829 2007-05-01  Bruno Haible  <bruno@clisp.org>
64830
64831         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
64832         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
64833         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
64834
64835 2007-05-01  Bruno Haible  <bruno@clisp.org>
64836
64837         * doc/header/assert.texi: Undo last change: don't mention the gnulib
64838         'assert' module here.
64839
64840 2007-05-01  Bruno Haible  <bruno@clisp.org>
64841
64842         * doc/functions/*.texi: New files.
64843         * doc/functions/google-ranking.txt: New file.
64844         * doc/gnulib.texi (Function Substitutes): New chapter.
64845         (ctime, inet_ntoa): Remove sections.
64846         * doc/ctime.texi: Remove file.
64847         * doc/inet_ntoa.texi: Remove file.
64848         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
64849         dependencies.
64850         (%.info): New rule, specifying a --reference-limit.
64851
64852 2007-05-01  Bruno Haible  <bruno@clisp.org>
64853
64854         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
64855
64856 2007-05-01  Bruno Haible  <bruno@clisp.org>
64857
64858         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
64859         the portability of 'mkdir' to mingw systems.
64860
64861 2007-05-01  Bruno Haible  <bruno@clisp.org>
64862
64863         * doc/headers/google-ranking.txt: New file.
64864
64865 2007-04-30  Eric Blake  <ebb9@byu.net>
64866
64867         Prefer fseeko to fseek.
64868         * modules/getpass (Depends-on): Add fseeko.
64869         * lib/getpass.c (getpass): Use fseeko, not fseek.
64870
64871 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
64872
64873         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
64874         assumes the sorting is stable, while most qsort implementations
64875         are not.  Use argument addresses to ensure they never compare as
64876         equal.
64877
64878         * tests/test-argp-2.sh (usage-indent test): Fix output
64879         (func_compare): Restore diff options
64880         * tests/test-argp.c: Restore #include "progname.h"
64881
64882 2007-04-29  Bruno Haible  <bruno@clisp.org>
64883
64884         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
64885         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64886         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
64887         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64888         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
64889         (configure.ac): Define CHECK_SNPRINTF_POSIX.
64890         (TESTS, check_PROGRAMS): Add test-snprintf.
64891         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
64892         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
64893         (TESTS, check_PROGRAMS): Add test-vsnprintf.
64894         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
64895         assertions that fail on HP-UX, OSF/1, or IRIX.
64896         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
64897
64898 2007-04-29  Bruno Haible  <bruno@clisp.org>
64899
64900         * MODULES.html.sh (posix_functions): Remove 'contents'.
64901
64902 2007-04-29  Karl Berry  <karl@gnu.org>
64903
64904         * config/srclist.txt (gendocs_template_min): new entry.
64905
64906 2007-04-29  Bruno Haible  <bruno@clisp.org>
64907
64908         Work around fpurge bug on BSD systems.
64909         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
64910         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
64911         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
64912         fpurge to rpl_fpurge if the system already has this function.
64913         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
64914         the case where the system already has this function. Correct invariants
64915         on BSD systems.
64916         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
64917         BSD systems.
64918
64919 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
64920
64921         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
64922         proposed by Sven Verdoolaege.
64923
64924         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
64925         options.
64926         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
64927         (usage and help tests): Update
64928
64929 2007-04-29  Bruno Haible  <bruno@clisp.org>
64930
64931         * tests/test-fflush.c (main): Use a file of size 17, not 10.
64932         Print more information in case of failure. Disable a test on BeOS.
64933
64934 2007-04-29  Bruno Haible  <bruno@clisp.org>
64935
64936         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
64937         This helps debugging on systems on which no gdb is available.
64938
64939 2007-04-29  Bruno Haible  <bruno@clisp.org>
64940
64941         * lib/freading.h: Improve comments.
64942         * lib/fwriting.h: Likewise.
64943         * tests/test-freading.c (main): Don't check freading immediately after
64944         repositioning. Needed for glibc.
64945
64946 2007-04-29  Bruno Haible  <bruno@clisp.org>
64947
64948         * lib/freading.c (freading): Trivial simplification.
64949
64950 2007-04-28  Bruno Haible  <bruno@clisp.org>
64951
64952         * tests/test-fwriting.c (main): Also test the interaction between
64953         fflush and fwriting.
64954         * modules/fwriting-tests (Depends-on): Add fflush.
64955
64956         * tests/test-freading.c (main): Also test the interaction between
64957         fflush and freading.
64958         * modules/freading-tests (Depends-on): Add fflush.
64959
64960 2007-04-28  Bruno Haible  <bruno@clisp.org>
64961
64962         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
64963         fseeko and ftello.
64964         Suggested by Eric Blake.
64965
64966 2007-04-28  Jim Meyering  <jim@meyering.net>
64967
64968         Avoid false-negative in gl_STDINT_H's C99 conformance test.
64969         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
64970         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
64971
64972 2007-04-27  Eric Blake  <ebb9@byu.net>
64973
64974         * doc/headers/assert.texi (assert.h): Document assert module use.
64975
64976 2007-04-27  Bruno Haible  <bruno@clisp.org>
64977
64978         * doc/headers/*.texi: New files.
64979         * doc/gnulib.texi (Header File Substitutes): New chapter.
64980         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
64981         dependencies.
64982         (standards.info ,standards.html, standards.dvi): Update dependencies.
64983         (mostlyclean, clean): New targets.
64984
64985 2007-04-27  Bruno Haible  <bruno@clisp.org>
64986
64987         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
64988         * modules/sysexits (Files, Makefile.am): Update.
64989
64990         * lib/sys_socket_.h: Renamed from lib/socket_.h.
64991         * modules/sys_socket (Files, Makefile.am): Update.
64992
64993         * lib/sys_stat_.h: Renamed from lib/stat_.h.
64994         * modules/sys_stat (Files, Makefile.am): Update.
64995
64996 2007-04-27  Eric Blake  <ebb9@byu.net>
64997
64998         * lib/freading.h: Improve comments.
64999         * lib/fwriting.h: Likewise.
65000         * lib/fflush.c: Likewise.
65001
65002         Fix closein for mingw.
65003         * modules/closein-tests: Add tests for closein.
65004         * tests/test-closein.c: New file.
65005         * tests/test-closein.sh: Likewise.
65006         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65007         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65008
65009 2007-04-27  Bruno Haible  <bruno@clisp.org>
65010
65011         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65012         version is < 6.
65013         * lib/math_.h [__DECC]: Likewise.
65014         * lib/stdio_.h [__DECC]: Likewise.
65015         * lib/stdlib_.h [__DECC]: Likewise.
65016         * lib/string_.h [__DECC]: Likewise.
65017         * lib/time_.h [__DECC]: Likewise.
65018         * lib/wchar_.h [__DECC]: Likewise.
65019         * lib/wctype_.h [__DECC]: Likewise.
65020
65021 2007-04-27  Bruno Haible  <bruno@clisp.org>
65022
65023         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65024
65025 2007-04-27  Bruno Haible  <bruno@clisp.org>
65026
65027         * lib/fflush.c: Add comments.
65028         * modules/fpurge-tests (Depends-on): Add fflush.
65029         * modules/freadable-tests (Depends-on): Likewise.
65030         * modules/fwritable-tests (Depends-on): Likewise.
65031
65032 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65033
65034         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65035         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65036         Report by Bruno Haible <bruno@clisp.org>.
65037
65038 2007-04-26  Eric Blake  <ebb9@byu.net>
65039
65040         Fix fflush on mingw.
65041         * modules/fflush (Depends-on): Add freading.
65042         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65043         but unread data.
65044
65045 2007-04-26  Eric Blake  <ebb9@byu.net>
65046         and Bruno Haible  <bruno@clisp.org>
65047
65048         Implement freading and fwriting.
65049         * lib/freading.c: New file.
65050         * lib/freading.h: Likewise.
65051         * m4/freading.m4: Likewise.
65052         * modules/freading: Likewise.
65053         * modules/freading-tests: Likewise.
65054         * tests/test-freading.c: Likewise.
65055         * lib/fwriting.c: New file.
65056         * lib/fwriting.h: Likewise.
65057         * m4/fwriting.m4: Likewise.
65058         * modules/fwriting: Likewise.
65059         * modules/fwriting-tests: Likewise.
65060         * tests/test-fwriting.c: Likewise.
65061         * MODULES.html.sh (File stream based Input/Output): Mention them.
65062
65063 2007-04-26  Bruno Haible  <bruno@clisp.org>
65064
65065         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65066         'long' when we assume it.
65067         Suggested by Eric Blake.
65068
65069 2007-04-26  Bruno Haible  <bruno@clisp.org>
65070
65071         Ensure fseeko, ftello are declared on glibc systems.
65072         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65073         * modules/fseeko (configure.ac-early): Likewise.
65074         * modules/ftello (configure.ac-early): Likewise.
65075         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65076         AC_FUNC_FSEEKO for this.
65077         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65078         (gl_CHECK_FSEEKO): Remove macro.
65079
65080 2007-04-26  Bruno Haible  <bruno@clisp.org>
65081
65082         * tests/test-fflush.c (main): Also check the ftell result after
65083         fflush and fseek/fseeko.
65084         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65085         file descriptor position cache in the stream.
65086         * lib/fseeko.c (rpl_fseeko): Likewise.
65087
65088 2007-04-26  Bruno Haible  <bruno@clisp.org>
65089
65090         * modules/fflush-tests (Depends-on): Add fseeko.
65091
65092 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65093             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65094
65095         * lib/argz_.h: ensure error_t definition is obtained in same
65096         mechanism system argz.h would have.
65097         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65098         argz facilities are known bad.  Err on the side of caution if
65099         cross-compiling.
65100
65101 2007-04-25  Eric Blake  <ebb9@byu.net>
65102
65103         * lib/fpurge.c (includes): Use stdlib.h for free.
65104         * tests/test-fflush.c (main): Also test fflush-fseeko.
65105
65106 2007-04-25  Bruno Haible  <bruno@clisp.org>
65107
65108         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65109         * lib/fseeko.c: New file.
65110         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65111         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65112         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65113         gl_FUNC_FSEEKO.
65114         (gl_FUNC_FSEEKO): Invoke it.
65115         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65116         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65117         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65118
65119 2007-04-25  Bruno Haible  <bruno@clisp.org>
65120
65121         * modules/fflush (Depends-on): Add ftello.
65122
65123 2007-04-25  Bruno Haible  <bruno@clisp.org>
65124
65125         * modules/ftello-tests: New file.
65126         * tests/test-ftello.c: New file.
65127
65128         * modules/ftello: New file.
65129         * m4/ftello.m4: New file.
65130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65131         HAVE_FTELLO.
65132         * lib/stdio_.h (ftello): New declaration.
65133         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65134         HAVE_FTELLO.
65135
65136 2007-04-25  Bruno Haible  <bruno@clisp.org>
65137
65138         * modules/fseeko-tests: New file.
65139         * tests/test-fseeko.c: New file.
65140
65141         * modules/fseeko: New file.
65142         * m4/fseeko.m4: New file.
65143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65144         HAVE_FSEEKO.
65145         * lib/stdio_.h (fseeko): New declaration.
65146         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65147         HAVE_FSEEKO.
65148
65149 2007-04-25  Bruno Haible  <bruno@clisp.org>
65150
65151         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65152
65153 2007-04-25  Bruno Haible  <bruno@clisp.org>
65154
65155         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65156         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65157         * tests/test-unistd.c: Likewise.
65158         * tests/test-fcntl.c: Likewise.
65159
65160 2007-04-23  Eric Blake  <ebb9@byu.net>
65161
65162         * lib/fflush.c: Fix missing include.
65163         Reported by Bruno Haible.
65164
65165 2007-04-23  Bruno Haible  <bruno@clisp.org>
65166
65167         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65168         Reported by Eric Blake.
65169
65170 2007-04-23  Bruno Haible  <bruno@clisp.org>
65171
65172         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65173
65174 2007-04-23  Bruno Haible  <bruno@clisp.org>
65175
65176         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65177
65178 2007-04-23  Bruno Haible  <bruno@clisp.org>
65179
65180         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65181         Needed on HP-UX 11.
65182
65183 2007-04-16  Eric Blake  <ebb9@byu.net>
65184
65185         Make fflush rely on fpurge.
65186         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65187         open coding all variants.
65188         * modules/fflush (Depends-on): Add fpurge and unistd.
65189         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65190         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65191
65192         Fix --with-tests compilation on cygwin.
65193         * modules/argmatch-tests (Makefile.am): List gnulib library first
65194         in LDADD.
65195         * modules/argp-tests (Makefile.am): Likewise.
65196         * modules/array-list-tests (Makefile.am): Likewise.
65197         * modules/array-oset-tests (Makefile.am): Likewise.
65198         * modules/avltree-list-tests (Makefile.am): Likewise.
65199         * modules/avltree-oset-tests (Makefile.am): Likewise.
65200         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65201         * modules/carray-list-tests (Makefile.am): Likewise.
65202         * modules/dirname-tests (Makefile.am): Likewise.
65203         * modules/frexp-tests (Makefile.am): Likewise.
65204         * modules/isnanl-tests (Makefile.am): Likewise.
65205         * modules/linked-list-tests (Makefile.am): Likewise.
65206         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65207         * modules/lock-tests (Makefile.am): Likewise.
65208         * modules/rbtree-list-tests (Makefile.am): Likewise.
65209         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65210         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65211         * modules/tls-tests (Makefile.am): Likewise.
65212         * modules/tsearch-tests (Makefile.am): Likewise.
65213         * modules/xvasprintf-tests (Makefile.am): Likewise.
65214
65215         Fix fpurge for cygwin.
65216         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65217         value.
65218         * modules/fpurge-tests (Depends-on): Clean up trash.
65219
65220 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65221
65222         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65223
65224         * m4/autobuild.m4: Re-indent.
65225
65226 2007-04-13  Bruno Haible  <bruno@clisp.org>
65227
65228         * modules/fpurge-tests: New file.
65229         * tests/test-fpurge.c: New file.
65230
65231         * modules/fpurge: New file.
65232         * lib/fpurge.h: New file.
65233         * lib/fpurge.c: New file.
65234         * m4/fpurge.m4: New file.
65235
65236 2007-04-13  Bruno Haible  <bruno@clisp.org>
65237
65238         * modules/fbufmode-tests: New file.
65239         * tests/test-fbufmode.c: New file.
65240
65241         * modules/fbufmode: New file.
65242         * lib/fbufmode.h: New file.
65243         * lib/fbufmode.c: New file.
65244         * m4/fbufmode.m4: New file.
65245
65246 2007-04-13  Bruno Haible  <bruno@clisp.org>
65247
65248         * modules/fwritable-tests: New file.
65249         * tests/test-fwritable.c: New file.
65250
65251         * modules/fwritable: New file.
65252         * lib/fwritable.h: New file.
65253         * lib/fwritable.c: New file.
65254         * m4/fwritable.m4: New file.
65255
65256 2007-04-13  Bruno Haible  <bruno@clisp.org>
65257
65258         * modules/freadable-tests: New file.
65259         * tests/test-freadable.c: New file.
65260
65261         * modules/freadable: New file.
65262         * lib/freadable.h: New file.
65263         * lib/freadable.c: New file.
65264         * m4/freadable.m4: New file.
65265
65266 2007-04-13  Bruno Haible  <bruno@clisp.org>
65267
65268         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65269         MOSTLYCLEANFILES.
65270
65271 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65272
65273         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65274         gzip bootstrap.conf to avoid dragging in i18n machinery.
65275         (gnulib_tool_option): Use it.
65276
65277 2007-04-13  Bruno Haible  <bruno@clisp.org>
65278
65279         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65280         %F directives.
65281         * tests/test-vasprintf-posix.c (test_function): Likewise.
65282         * tests/test-snprintf-posix.h (test_function): Likewise.
65283         * tests/test-sprintf-posix.h (test_function): Likewise.
65284         * tests/test-fprintf-posix.h (test_function): Likewise.
65285         * tests/test-printf-posix.h (test_function): Likewise.
65286         * tests/test-fprintf-posix.out: Likewise.
65287
65288 2007-04-13  Bruno Haible  <bruno@clisp.org>
65289
65290         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65291         * modules/tls-tests (configure.ac): Likewise.
65292         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65293
65294 2007-04-13  Bruno Haible  <bruno@clisp.org>
65295
65296         * lib/tls.c (glthread_tls_get): Fix return type.
65297         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65298
65299 2007-04-12  Eric Blake  <ebb9@byu.net>
65300
65301         * modules/gettime (Depends-on): Remove gettime.
65302         Reported by Dmitry V. Levin.
65303
65304 2007-04-12  Bruno Haible  <bruno@clisp.org>
65305
65306         * modules/fflush (Include): Mention <stdio.h>.
65307         * modules/strtoimax (Include): Mention <inttypes.h>.
65308         * modules/strtoumax (Include): Likewise.
65309
65310 2007-04-12  Eric Blake  <ebb9@byu.net>
65311
65312         * .cvsignore: New file.
65313         * .gitignore: Likewise.
65314
65315 2007-04-12  Bruno Haible  <bruno@clisp.org>
65316
65317         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65318         not before, since $(LDADD) often contains libgnu.a.
65319         * modules/striconv-tests (test_striconv_LDADD): Likewise.
65320         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
65321         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
65322         Needed on Cygwin.
65323
65324 2007-04-12  Eric Blake  <ebb9@byu.net>
65325
65326         Work around glibc's failure to flush stdin on fclose.
65327         * lib/closein.c (close_stdin): Flush stdin before closing.
65328
65329         Work around glibc's failure to reset seekable stdin on exit.
65330         * modules/closein: New module.
65331         * lib/closein.c: New file.
65332         * lib/closein.h: Likewise.
65333         * m4/closein.m4: Likewise.
65334         * MODULES.html.sh (File stream based Input/Output): Document it.
65335
65336 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65337
65338         * gnulib-tool: Rename generated 'autobuild' script to
65339         'do-autobuild' in --create-megatestdir output.
65340
65341         * doc/gnulib.texi (Build robot for gnulib): Fix.
65342
65343 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65344
65345         * modules/sysexits (Depends-on): Add absolute-header.
65346
65347 2007-04-12  Eric Blake  <ebb9@byu.net>
65348
65349         No need to preserve errno on success.
65350         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
65351         Reported by Bruno Haible.
65352
65353 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65354
65355         * MODULES.html.sh (Support for maintaining and releasing
65356         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
65357
65358 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65359
65360         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65361
65362 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65363
65364         * modules/autobuild: New module.
65365
65366         * m4/autobuild.m4: New file.
65367
65368 2007-04-11  Bruno Haible  <bruno@clisp.org>
65369
65370         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65371         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65372         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65373         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65374         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65375         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65376         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65377         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65378         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65379         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65380         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65381         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65382         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65383         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65384         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65385         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65386         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65387         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65388         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65389         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65390         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65391         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65392         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
65393         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65394         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65395         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
65396         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65397         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65398         Reported by Eric Blake.
65399
65400 2007-04-11  Bruno Haible  <bruno@clisp.org>
65401
65402         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
65403
65404 2007-04-10  Bruno Haible  <bruno@clisp.org>
65405
65406         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
65407         for NaN and Infinity. Needed on FreeBSD 6.1.
65408         * tests/test-vasnprintf-posix.c (test_function): Undo last change
65409         regarding results for "%010a" of Infinity and NaN.
65410         * tests/test-vasprintf-posix.c (test_function): Likewise.
65411         * tests/test-snprintf-posix.h (test_function): Likewise.
65412         * tests/test-sprintf-posix.h (test_function): Likewise.
65413         * tests/test-fprintf-posix.h (test_function): Likewise.
65414         * tests/test-printf-posix.h (test_function): Likewise.
65415         * tests/test-fprintf-posix.out: Likewise.
65416
65417 2007-04-10  Bruno Haible  <bruno@clisp.org>
65418
65419         * modules/locale-tests: New file.
65420         * tests/test-locale.c: New file.
65421
65422         * modules/locale: New file.
65423         * lib/locale_.h: New file.
65424         * m4/locale_h.m4: New file.
65425
65426 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
65427             Bruno Haible  <bruno@clisp.org>
65428
65429         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
65430         be determined, test for availability of the copysignf, copysign,
65431         copysignl functions.
65432         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
65433         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
65434         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
65435
65436 2007-04-09  Eric Blake  <ebb9@byu.net>
65437
65438         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
65439         * modules/stdio (Makefile.am): Support fflush.
65440         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65441         * modules/fflush: New file.
65442         * lib/fflush.c: Likewise.
65443         * m4/fflush.m4: Likewise.
65444         * modules/fflush-tests: New test.
65445         * tests/test-fflush.c: Likewise.
65446         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
65447
65448 2007-04-06  Bruno Haible  <bruno@clisp.org>
65449
65450         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
65451         (VASNPRINTF): Use signbit for faster determination whether to print a
65452         minus sign.
65453         * modules/vasnprintf (Files): Remove lib/float+.h.
65454         * modules/fprintf-posix (Depends-on): Add signbit.
65455         * modules/snprintf-posix (Depends-on): Likewise.
65456         * modules/sprintf-posix (Depends-on): Likewise.
65457         * modules/vasnprintf-posix (Depends-on): Likewise.
65458         * modules/vasprintf-posix (Depends-on): Likewise.
65459         * modules/vfprintf-posix (Depends-on): Likewise.
65460         * modules/vsnprintf-posix (Depends-on): Likewise.
65461         * modules/vsprintf-posix (Depends-on): Likewise.
65462
65463 2007-04-06  Bruno Haible  <bruno@clisp.org>
65464
65465         * tests/test-frexp.c (main): Test also the sign bit of zero results.
65466         * tests/test-frexpl.c (main): Likewise.
65467         * tests/test-ldexpl.c (main): Likewise.
65468         * modules/frexp-tests (Depends-on): Add signbit.
65469         * modules/frexpl-tests (Depdends-on): Likewise.
65470         * modules/ldexpl-tests (Depdends-on): Likewise.
65471
65472 2007-04-06  Bruno Haible  <bruno@clisp.org>
65473
65474         * modules/signbit-tests: New file.
65475         * tests/test-signbit.c: New file.
65476
65477         * modules/signbit: New file.
65478         * lib/signbitf.c: New file.
65479         * lib/signbitd.c: New file.
65480         * lib/signbitl.c: New file.
65481         * m4/signbit.m4: New file.
65482         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
65483         (signbit): New macro.
65484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
65485         REPLACE_SIGNBIT.
65486         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
65487         REPLACE_FREXPL into math.h.
65488
65489 2007-04-06  Bruno Haible  <bruno@clisp.org>
65490
65491         * modules/isnanf-nolibm-tests: New file.
65492         * tests/test-isnanf.c: New file.
65493
65494         * modules/isnanf-nolibm: New file.
65495         * lib/isnanf.h: New file.
65496         * lib/isnanf.c: New file.
65497         * lib/isnan.c: Consider the USE_FLOAT macro.
65498         * m4/isnanf.m4: New file.
65499
65500 2007-04-06  Bruno Haible  <bruno@clisp.org>
65501
65502         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
65503         (Link): New section.
65504
65505         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65506
65507 2007-04-06  Bruno Haible  <bruno@clisp.org>
65508
65509         Assume the 'long double' type.
65510         * m4/longdouble.m4: Remove file.
65511         * config/srclist.txt: Don't mention longdouble.m4.
65512         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65513         * lib/float+.h: Likewise.
65514         * lib/frexp.c: Likewise.
65515         * lib/printf-args.h: Likewise.
65516         * lib/printf-args.c: Likewise.
65517         * lib/printf-frexp.c: Likewise.
65518         * lib/printf-parse.c: Likewise.
65519         * lib/vasnprintf.c: Likewise.
65520         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65521         * m4/intl.m4: Likewise.
65522         * m4/isnanl.m4: Likewise.
65523         * m4/printf.m4: Likewise.
65524         * m4/printf-frexpl.m4: Likewise.
65525         * m4/vasnprintf.m4: Likewise.
65526         * modules/allocsa (Files): Remove m4/longdouble.m4.
65527         * modules/gettext (Files): Likewise.
65528         * modules/relocatable-prog-wrapper (Files): Likewise.
65529         * modules/vasnprintf (Files): Likewise.
65530         * modules/isnanl (Files): Likewise.
65531         (Include): Simplify.
65532         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65533         (Include): Simplify.
65534         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65535         (Include): Simplify.
65536         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65537         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65538         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65539         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65540         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65541         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65542         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65543         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65544         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65545         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65546         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65547         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65548         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65549         * tests/test-isnanl.c: Likewise.
65550         * tests/test-snprintf-posix.h: Likewise.
65551         * tests/test-sprintf-posix.h: Likewise.
65552         * tests/test-vasnprintf-posix.c: Likewise.
65553         * tests/test-vasnprintf-posix2.c: Likewise.
65554         * tests/test-vasprintf-posix.c: Likewise.
65555
65556 2007-04-06  Bruno Haible  <bruno@clisp.org>
65557
65558         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65559         * lib/math_.h [__DECC]: Include the overridden include file through
65560         #include_next, outside the double-inclusion guard.
65561         * lib/stdio_.h [__DECC]: Likewise.
65562         * lib/stdlib_.h [__DECC]: Likewise.
65563         * lib/string_.h [__DECC]: Likewise.
65564         * lib/time_.h [__DECC]: Likewise.
65565         * lib/wchar_.h [__DECC]: Likewise.
65566         * lib/wctype_.h [__DECC]: Likewise.
65567         * lib/inttypes_.h [__DECC]: Likewise.
65568         Reported by Albert Chin <china@thewrittenword.com> in
65569         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65570
65571 2007-04-04  Eric Blake  <ebb9@byu.net>
65572
65573         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65574         1.5.x.
65575
65576 2007-04-04  Bruno Haible  <bruno@clisp.org>
65577
65578         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65579         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65580
65581 2007-04-04  Bruno Haible  <bruno@clisp.org>
65582
65583         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65584         results for "%010a" of Infinity and NaN.
65585         * tests/test-vasprintf-posix.c (test_function): Likewise.
65586         * tests/test-snprintf-posix.h (test_function): Likewise.
65587         * tests/test-sprintf-posix.h (test_function): Likewise.
65588         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65589         * tests/test-printf-posix.h (test_function): Likewise.
65590         * tests/test-fprintf-posix.out: Update.
65591         Needed for FreeBSD 6.1.
65592
65593 2007-04-04  Bruno Haible  <bruno@clisp.org>
65594
65595         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65596         directly used by the gnulib modules nor by gnulib-tool.
65597
65598 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65599
65600         * DEPENDENCIES: Give overall description of version dependency
65601         desirability.  Use more-typical names for apps.
65602         Add shell, coreutils, diffutils, grep, tar, gzip.
65603
65604 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65605
65606         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65607
65608 2007-04-04  Karl Berry  <karl@gnu.org>
65609
65610         * MODULES.html.sh (func_module): missing '.
65611
65612 2007-04-03  Bruno Haible  <bruno@clisp.org>
65613
65614         * modules/argmatch-tests (Makefile.am): New variable
65615         test_argmatch_LDADD.
65616         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65617         * modules/array-list-tests (Makefile.am): New variable
65618         test_array_list_LDADD.
65619         * modules/array-oset-tests (Makefile.am): New variable
65620         test_array_oset_LDADD.
65621         * modules/avltree-list-tests (Makefile.am): New variable
65622         test_avltree_list_LDADD.
65623         * modules/avltree-oset-tests (Makefile.am): New variable
65624         test_avltree_oset_LDADD.
65625         * modules/avltreehash-list-tests (Makefile.am): New variable
65626         test_avltreehash_list_LDADD.
65627         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65628         test_canonicalize_lgpl_LDADD.
65629         * modules/carray-list-tests (Makefile.am): New variable
65630         test_carray_list_LDADD.
65631         * modules/dirname-tests (Makefile.am): New variable
65632         test_dirname_LDADD.
65633         * modules/linked-list-tests (Makefile.am): New variable
65634         test_linked_list_LDADD.
65635         * modules/linkedhash-list-tests (Makefile.am): New variable
65636         test_linkedhash_list_LDADD.
65637         * modules/rbtree-list-tests (Makefile.am): New variable
65638         test_rbtree_list_LDADD.
65639         * modules/rbtree-oset-tests (Makefile.am): New variable
65640         test_rbtree_oset_LDADD.
65641         * modules/rbtreehash-list-tests (Makefile.am): New variable
65642         test_rbtreehash_list_LDADD.
65643         * modules/xvasprintf-tests (Makefile.am): New variable
65644         test_xvasprintf_LDADD.
65645         Reported by Eric Blake.
65646
65647 2007-04-03  Eric Blake  <ebb9@byu.net>
65648
65649         * DEPENDENCIES: Weaken m4 requirements.
65650
65651 2007-04-03  Bruno Haible  <bruno@clisp.org>
65652
65653         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65654         * modules/isnanl-tests (configure.ac): Likewise.
65655
65656 2007-04-03  Ben Pfaff  <blp@gnu.org>
65657
65658         * modules/iconv_open: Add $(srcdir)/ to source directory
65659         references in Makefile fragments that call gperf, to fix VPATH
65660         builds.
65661
65662 2007-04-03  Bruno Haible  <bruno@clisp.org>
65663
65664         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
65665         * lib/ldexpl.c: Undo last change.
65666
65667 2007-04-03  Bruno Haible  <bruno@clisp.org>
65668
65669         * modules/printf-frexpl (Depends-on): Undo last change.
65670         (Files): Add m4/ldexpl.m4.
65671
65672 2007-04-03  Bruno Haible  <bruno@clisp.org>
65673
65674         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
65675         * modules/isnanl (Link): New section.
65676
65677         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
65678         * modules/frexp (Link): New section.
65679
65680         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
65681         * modules/frexpl (Link): New section.
65682
65683         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
65684         * modules/ldexpl (Link): New section.
65685
65686 2007-04-03  Bruno Haible  <bruno@clisp.org>
65687
65688         * modules/TEMPLATE-EXTENDED: New file.
65689         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
65690
65691 2007-04-03  Bruno Haible  <bruno@clisp.org>
65692
65693         * DEPENDENCIES: New file.
65694         Suggested by Simon Josefsson.
65695
65696 2007-04-03  Bruno Haible  <bruno@clisp.org>
65697
65698         * doc/gnulib.texi: Escape @.
65699
65700 2007-04-03  James Youngman  <jay@gnu.org>
65701         and Paul Eggert  <eggert@cs.ucla.edu>
65702
65703         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
65704         birthtime on all systems that have birthtime, not just those which
65705         use st_birthtimensec rather than st_birthtim.  Putting zero in
65706         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
65707         that the birth time is not available for files on an NFS mount.
65708
65709 2007-04-03  Simon Josefsson  <simon@josefsson.org>
65710
65711         * modules/memxor: Move back from crypto/, suggested by Bruno.
65712         * modules/crypto/hmac-sha1: Fix memxor dependency.
65713
65714         * modules/crypto/gc: Moved from ../.
65715
65716 2007-04-02  Eric Blake  <ebb9@byu.net>
65717
65718         * lib/ldexpl.c (includes): Avoid libm.
65719
65720         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
65721
65722 2007-04-02  Bruno Haible  <bruno@clisp.org>
65723
65724         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
65725         on IRIX.
65726
65727 2007-04-02  Bruno Haible  <bruno@clisp.org>
65728
65729         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
65730         x86 or x86_64 platforms running MacOS X.
65731         Reported by Ryan Schmidt <@ryandesign.com>.
65732
65733 2007-04-02  Bruno Haible  <bruno@clisp.org>
65734
65735         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
65736         i386.
65737
65738 2007-04-01  Simon Josefsson  <simon@josefsson.org>
65739
65740         * modules/crypto/arcfour: Moved from ../.
65741         * modules/crypto/arcfour-tests: Moved from ../.
65742         * modules/crypto/arctwo: Moved from ../.
65743         * modules/crypto/arctwo-tests: Moved from ../.
65744         * modules/crypto/des: Moved from ../.
65745         * modules/crypto/des-tests: Moved from ../.
65746         * modules/crypto/gc-arcfour: Moved from ../.
65747         * modules/crypto/gc-arcfour-tests: Moved from ../.
65748         * modules/crypto/gc-arctwo: Moved from ../.
65749         * modules/crypto/gc-arctwo-tests: Moved from ../.
65750         * modules/crypto/gc-des: Moved from ../.
65751         * modules/crypto/gc-des-tests: Moved from ../.
65752         * modules/crypto/gc-hmac-md5: Moved from ../.
65753         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
65754         * modules/crypto/gc-hmac-sha1: Moved from ../.
65755         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
65756         * modules/crypto/gc-md2: Moved from ../.
65757         * modules/crypto/gc-md2-tests: Moved from ../.
65758         * modules/crypto/gc-md4: Moved from ../.
65759         * modules/crypto/gc-md4-tests: Moved from ../.
65760         * modules/crypto/gc-md5: Moved from ../.
65761         * modules/crypto/gc-md5-tests: Moved from ../.
65762         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
65763         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
65764         * modules/crypto/gc-random: Moved from ../.
65765         * modules/crypto/gc-rijndael: Moved from ../.
65766         * modules/crypto/gc-rijndael-tests: Moved from ../.
65767         * modules/crypto/gc-sha1: Moved from ../.
65768         * modules/crypto/gc-sha1-tests: Moved from ../.
65769         * modules/crypto/gc-tests: Moved from ../.
65770         * modules/crypto/hmac-md5: Moved from ../.
65771         * modules/crypto/hmac-md5-tests: Moved from ../.
65772         * modules/crypto/hmac-sha1: Moved from ../.
65773         * modules/crypto/hmac-sha1-tests: Moved from ../.
65774         * modules/crypto/md2: Moved from ../.
65775         * modules/crypto/md2-tests: Moved from ../.
65776         * modules/crypto/md4: Moved from ../.
65777         * modules/crypto/md4-tests: Moved from ../.
65778         * modules/crypto/md5: Moved from ../.
65779         * modules/crypto/md5-tests: Moved from ../.
65780         * modules/crypto/memxor: Moved from ../.
65781         * modules/crypto/rijndael: Moved from ../.
65782         * modules/crypto/rijndael-tests: Moved from ../.
65783         * modules/crypto/sha1: Moved from ../.
65784
65785 2007-03-30  James Youngman  <jay@gnu.org>
65786
65787         * tests/test-stat-time.c (prepare_test): use chmod() rather than
65788         rename() to change the ctime of a file (because ctime is unaffected
65789         by rename on jfs2 on AIX 5.1).
65790         (main): Start by doing cleanup, in case a previous run failed leaving
65791         test files behind.
65792
65793 2007-03-31  Bruno Haible  <bruno@clisp.org>
65794
65795         Support old proprietary implementations of iconv.
65796         * modules/iconv_open: New file.
65797         * lib/iconv_.h: New file.
65798         * m4/iconv_h.m4: New file.
65799         * lib/iconv_open.c: New file.
65800         * lib/iconv_open-aix.gperf: New file.
65801         * lib/iconv_open-hpux.gperf: New file.
65802         * lib/iconv_open-irix.gperf: New file.
65803         * lib/iconv_open-osf.gperf: New file.
65804         * m4/iconv_open.m4: New file.
65805         * modules/linebreak (Depends-on): Add iconv_open.
65806         * modules/striconv (Depends-on): Likewise.
65807         * modules/striconveh (Depends-on): Likewise.
65808         * modules/unicodeio (Depends-on): Likewise.
65809         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
65810         (iconv_t)(-1).
65811         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
65812         conversion if cd is (iconv_t)(-1).
65813         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
65814         is not possible.
65815
65816 2007-03-31  Bruno Haible  <bruno@clisp.org>
65817
65818         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65819         work on Solaris either. Protect also second use of "autodetect_jp".
65820
65821 2007-03-31  Bruno Haible  <bruno@clisp.org>
65822
65823         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
65824         the function is not present.
65825
65826 2007-03-31  Bruno Haible  <bruno@clisp.org>
65827
65828         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
65829         the function is not present.
65830
65831 2007-03-31  Bruno Haible  <bruno@clisp.org>
65832
65833         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
65834         a bug in HP-UX iconv_open().
65835
65836 2007-03-31  Bruno Haible  <bruno@clisp.org>
65837
65838         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
65839         (Mathematics <math.h>): New section, add fpieee.
65840         (Input/output <stdio.h>): Add fseterr.
65841         (Mathematics <math.h>): New section, add printf-frexp.
65842         (Container data structures): Add sublist.
65843         (Core language properties): Add fpucw, inline.
65844         (Functions for greatest-width integer types <inttypes.h>): Add
65845         imaxabs, imaxdiv, inttypes.
65846         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
65847         isnanl-nolibm, ldexp.
65848         (Mathematics <math.h>): New section, add printf-frexpl.
65849         (Support for systems lacking POSIX:2001): Add fprintf-posix,
65850         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
65851         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
65852         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
65853         (Unicode string functions): Add unistr/u*-mbtoucr.
65854         (Java): Add javacomp-script, javaexec-script.
65855         (C#): Add csharpcomp-script, csharpexec-script.
65856         (Support for building libraries and executables): Add havelib,
65857         relocatable-*.
65858         (Support for maintaining and releasing projects): Renamed from
65859         'Support for maintaining and release projects'. Add announce-gen.
65860
65861 2007-03-31  Bruno Haible  <bruno@clisp.org>
65862
65863         * README: Talk primarily about git.
65864         (git and CVS): Renamed from CVS.
65865         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
65866         gnulib is available through git.
65867         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
65868
65869 2007-03-30  Bruno Haible  <bruno@clisp.org>
65870
65871         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
65872         * lib/poll_.h: Likewise.
65873         * lib/stat_.h: Likewise.
65874         * lib/sys_time_.h: Likewise.
65875         * lib/sysexit_.h: Likewise.
65876         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
65877         * lib/stdbool_.h: Likewise.
65878         * lib/byteswap_.h: Add double-inclusion guard.
65879
65880 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
65881
65882         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
65883
65884 2007-03-30  Karl Berry  <karl@gnu.org>
65885
65886         * config/srclist-update: double space after USA in the license
65887         substitution, since that's how it's usually (?) written.
65888
65889 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
65890
65891         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
65892         reported by Bruno Haible.
65893
65894 2007-03-29  Bruno Haible  <bruno@clisp.org>
65895
65896         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
65897         a bug in AIX iconv().
65898
65899 2007-03-29  Bruno Haible  <bruno@clisp.org>
65900
65901         * modules/ldexpl-tests: New file.
65902         * tests/test-ldexpl.c: New file.
65903
65904 2007-03-29  Bruno Haible  <bruno@clisp.org>
65905
65906         * lib/ldexpl.c: Include fpucw.h.
65907         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
65908         multiplication.
65909         * modules/ldexpl (Depends-on): Add fpucw.
65910
65911 2007-03-29  Bruno Haible  <bruno@clisp.org>
65912
65913         * modules/ldexpl: New file.
65914         * m4/ldexpl.m4: New file.
65915         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
65916         set.
65917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
65918         REPLACE_LDEXPL.
65919         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
65920         REPLACE_LDEXPL.
65921         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65922         gl_FUNC_LDEXPL_WORKS.
65923         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
65924         * modules/mathl (Files): Remove lib/ldexpl.c.
65925         (Depends-on): Add ldexpl.
65926
65927 2007-03-29  Bruno Haible  <bruno@clisp.org>
65928
65929         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
65930
65931 2007-03-29  Bruno Haible  <bruno@clisp.org>
65932
65933         * tests/test-striconveh.c (main): Don't assume that a direct conversion
65934         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
65935         and possibly also HP-UX.
65936         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65937         work on AIX, IRIX, HP-UX, OSF/1.
65938         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
65939         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
65940         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
65941         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
65942         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
65943         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
65944
65945 2007-03-29  Bruno Haible  <bruno@clisp.org>
65946
65947         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
65948
65949 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65950
65951         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
65952         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
65953
65954 2007-03-29  Eric Blake  <ebb9@byu.net>
65955
65956         * lib/acl-internal.h: Remove redundant include.
65957         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
65958         Cygwin when a file is locked.
65959
65960 2007-03-29  Bruno Haible  <bruno@clisp.org>
65961
65962         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
65963         file.
65964         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
65965
65966 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65967
65968         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
65969         try to remove a parent directory if the child couldn't be removed
65970         (except for the first rmdir, which could fail because the child
65971         doesn't exist).  Problem reported by Jeff Blaine in
65972         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
65973
65974 2007-03-28  Bruno Haible  <bruno@clisp.org>
65975
65976         * lib/striconveh.c (utf8conv_carefully): New function.
65977         (mem_cd_iconveh_internal): Invoke it.
65978
65979 2007-03-28  Bruno Haible  <bruno@clisp.org>
65980
65981         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
65982         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
65983         input.
65984         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
65985         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
65986         unistr/u8-uctomb.
65987
65988 2007-03-28  Bruno Haible  <bruno@clisp.org>
65989
65990         * modules/unistr/u8-mbtoucr: New file.
65991         * lib/unistr/u8-mbtoucr.c: New file.
65992         * modules/unistr/u16-mbtoucr: New file.
65993         * lib/unistr/u16-mbtoucr.c: New file.
65994         * modules/unistr/u16-mbtoucr: New file.
65995         * lib/unistr/u16-mbtoucr.c: New file.
65996         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
65997
65998 2007-03-27  Simon Josefsson  <simon@josefsson.org>
65999             Bruno Haible  <bruno@clisp.org>
66000
66001         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66002         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66003         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66004
66005         * m4/stdio_h.m4: Add stubs for vasprintf too.
66006
66007         * modules/stdio: Support vasprintf in sed command.
66008
66009         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66010         vasprintf.h.  Add stdio module indicator.
66011
66012         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66013         vasprintf.h.
66014
66015         * lib/vasprintf.h: File removed.
66016
66017         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66018         * lib/vasprintf.c: Ditto.
66019         * lib/xvasprintf.c: Ditto.
66020         * tests/test-vasprintf-posix.c: Ditto.
66021         * tests/test-vasprintf.c: Ditto.
66022
66023 2007-03-27  Bruno Haible  <bruno@clisp.org>
66024
66025         Make vasnprintf multithread-safe.
66026         * lib/vasnprintf.c (decimal_point_char): New function.
66027         (VASNPRINTF): Use it.
66028         Suggested by Simon Josefsson.
66029
66030 2007-03-27  Eric Blake  <ebb9@byu.net>
66031
66032         Support sub-second birthtime on cygwin.
66033         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66034         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66035         (get_stat_birthtime): Also work with st_birthtim.
66036
66037 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66038
66039         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66040         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66041         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66042         (get_stat_birthtime_ns): Simplify compile-time tests.
66043         (get_stat_birthtime): Change the API to look like
66044         get_stat_mtime etc., except return a negative tv_nsec on error.
66045         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66046         Don't check for "spare" fields.
66047         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66048         or for struct stat.st_birthtime, as these tests aren't used.
66049         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66050
66051 2007-03-27  Bruno Haible  <bruno@clisp.org>
66052
66053         * lib/stat-time.h: Include <sys/stat.h>.
66054
66055 2007-03-27  James Youngman  <jay@gnu.org>
66056
66057         * lib/stat-time.h (get_stat_birthtime): New function for
66058           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66059         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66060           and its variants.
66061         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66062         * modules/stat-time-test: New file.
66063         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66064
66065 2007-03-26  Bruno Haible  <bruno@clisp.org>
66066
66067         Better support of signalling NaNs.
66068         * lib/atanl.c: Include isnanl.h.
66069         (atanl): Perform test for NaN at the beginning of the function and
66070         through a call to isnanl.
66071         * lib/cosl.c: Include isnanl.h.
66072         (cosl): Perform test for NaN at the beginning of the function and
66073         through a call to isnanl.
66074         * lib/ldexpl.c: Include isnanl.h.
66075         (ldexpl): Perform test for NaN through a call to isnanl.
66076         * lib/logl.c: Include isnanl.h.
66077         (logl): Perform test for NaN at the beginning of the function and
66078         through a call to isnanl.
66079         * lib/sinl.c: Include isnanl.h.
66080         (sinl): Perform test for NaN at the beginning of the function and
66081         through a call to isnanl.
66082         * lib/sqrtl.c: Include isnanl.h.
66083         (sqrtl): Perform test for NaN at the beginning of the function and
66084         through a call to isnanl.
66085         * lib/tanl.c: Include isnanl.h.
66086         (tanl): Perform test for NaN at the beginning of the function and
66087         through a call to isnanl.
66088         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66089         * modules/mathl (Depends-on): Add isnanl.
66090
66091 2007-03-26  Eric Blake  <ebb9@byu.net>
66092
66093         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66094         regression in logic sense of previous patch.
66095
66096 2007-03-26  Bruno Haible  <bruno@clisp.org>
66097
66098         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66099         unportable shell command "if ! ...".
66100         Reported by Ralf Wildenhues.
66101
66102 2007-03-25  Bruno Haible  <bruno@clisp.org>
66103
66104         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66105         <sysexits.h> file, and only add EX_CONFIG.
66106         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66107         absolute file name and whether it is sufficient. Substitute also
66108         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66109         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66110         ABSOLUTE_SYSEXITS_H into sysexits.h.
66111
66112 2007-03-25  Bruno Haible  <bruno@clisp.org>
66113
66114         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66115         hints is NULL.
66116
66117 2007-03-25  Bruno Haible  <bruno@clisp.org>
66118
66119         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66120         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66121
66122 2007-03-25  Bruno Haible  <bruno@clisp.org>
66123
66124         * lib/vasnprintf.c: Include langinfo.h.
66125         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66126         multithread-safe.
66127         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66128         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66129         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66130         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66131         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66132         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66133         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66134         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66135         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66136         Reported by Simon Josefsson.
66137
66138 2007-03-25  Bruno Haible  <bruno@clisp.org>
66139
66140         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66141         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66142         * modules/vasnprintf (Depends-on): Add stdint.
66143
66144 2007-03-25  Bruno Haible  <bruno@clisp.org>
66145
66146         * modules/fpieee: New file.
66147         * m4/fpieee.m4: New file.
66148         * modules/isnan-nolibm (Depends-on): Add fpieee.
66149         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66150         * modules/isnanl (Depends-on): Add fpieee.
66151
66152 2007-03-25  Bruno Haible  <bruno@clisp.org>
66153
66154         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66155
66156 2007-03-25  Bruno Haible  <bruno@clisp.org>
66157
66158         Avoid test failures on IRIX 6.5.
66159         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66160         (main): Use it.
66161         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66162         macros.
66163         (main): Use them.
66164
66165 2007-03-25  Bruno Haible  <bruno@clisp.org>
66166
66167         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66168         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66169         exists but doesn't work.
66170         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66171         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66172         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66173         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66174         math.h.
66175
66176 2007-03-25  Bruno Haible  <bruno@clisp.org>
66177
66178         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66179         returns inf. Needed on IRIX 6.5.
66180
66181 2007-03-25  Bruno Haible  <bruno@clisp.org>
66182
66183         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66184         (main): Use isnanl instead of x != x idiom.
66185         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66186
66187         * tests/test-frexp.c: Include isnan.h.
66188         (main): Use isnan instead of x != x idiom.
66189         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66190
66191 2007-03-25  Bruno Haible  <bruno@clisp.org>
66192
66193         * tests/test-frexp.c (NaN): New function/macro.
66194         (main): Use it instead of 0.0 / 0.0.
66195         * tests/test-isnan.c (NaN): New function/macro.
66196         (main): Use it instead of 0.0 / 0.0.
66197         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66198         (test_function): Use it instead of 0.0 / 0.0.
66199         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66200         (test_function): Use it instead of 0.0 / 0.0.
66201         * tests/test-snprintf-posix.h (NaN): New function/macro.
66202         (test_function): Use it instead of 0.0 / 0.0.
66203         * tests/test-sprintf-posix.h (NaN): New function/macro.
66204         (test_function): Use it instead of 0.0 / 0.0.
66205         * tests/test-fprintf-posix.h (NaN): New function/macro.
66206         (test_function): Use it instead of 0.0 / 0.0.
66207         * tests/test-printf-posix.h (NaN): New function/macro.
66208         (test_function): Use it instead of 0.0 / 0.0.
66209
66210         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66211
66212 2007-03-25  Bruno Haible  <bruno@clisp.org>
66213
66214         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66215
66216 2007-03-25  Bruno Haible  <bruno@clisp.org>
66217
66218         * lib/regexec.c (merge_state_with_log): Make static.
66219
66220 2007-03-25  Bruno Haible  <bruno@clisp.org>
66221
66222         * lib/trigl.c (kernel_rem_pio2): Make static.
66223
66224 2007-03-25  Bruno Haible  <bruno@clisp.org>
66225
66226         * lib/sincosl.c (sincosl_table): Make static.
66227
66228 2007-03-25  Bruno Haible  <bruno@clisp.org>
66229
66230         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66231         if the compiler does not support C99.
66232
66233 2007-03-25  Bruno Haible  <bruno@clisp.org>
66234
66235         * modules/time (Makefile.am): Ensure all rule action lines start with a
66236         tab.
66237
66238 2007-03-24  Bruno Haible  <bruno@clisp.org>
66239
66240         * modules/tsearch-tests: New file.
66241         * tests/test-tsearch.sh: New file.
66242         * tests/test-tsearch.c: New file, mostly copied from glibc.
66243
66244         * modules/search-tests: New file.
66245         * tests/test-search.c: New file.
66246
66247         * modules/search: New file.
66248         * lib/search_.h: New file, incorporating lib/tsearch.h.
66249         * m4/search_h.m4: New file.
66250         * lib/tsearch.h: Remove file.
66251         * lib/tsearch.c: Include search.h instead of tsearch.h.
66252         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66253         HAVE_TSEARCH.
66254         * modules/tsearch (Files): Remove lib/tsearch.h.
66255         (Depends-on): Add search.
66256         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66257         (Include): Change tsearch.h into search.h.
66258
66259 2007-03-24  Bruno Haible  <bruno@clisp.org>
66260
66261         * modules/fpucw: New file.
66262         * lib/fpucw.h: New file.
66263         * lib/frexp.c: Include fpucw.h.
66264         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66265         (FUNC): Use them.
66266         * lib/printf-frexp.c: Include fpucw.h.
66267         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66268         (FUNC): Use them.
66269         * lib/vasnprintf.c: Include fpucw.h.
66270         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66271         'long double' calculations.
66272         * tests/test-frexpl.c: Include fpucw.h.
66273         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66274         * tests/test-printf-frexpl.c: Include fpucw.h.
66275         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66276         * modules/frexpl (Depends-on): Add fpucw.
66277         * modules/printf-frexpl (Depends-on): Likewise.
66278         * modules/fprintf-posix (Depends-on): Likewise.
66279         * modules/snprintf-posix (Depends-on): Likewise.
66280         * modules/sprintf-posix (Depends-on): Likewise.
66281         * modules/vasnprintf-posix (Depends-on): Likewise.
66282         * modules/vasprintf-posix (Depends-on): Likewise.
66283         * modules/vfprintf-posix (Depends-on): Likewise.
66284         * modules/vsnprintf-posix (Depends-on): Likewise.
66285         * modules/vsprintf-posix (Depends-on): Likewise.
66286         * modules/frexpl-tests (Depends-on): Likewise.
66287         * modules/printf-frexpl-tests (Depends-on): Likewise.
66288
66289 2007-03-24  Bruno Haible  <bruno@clisp.org>
66290
66291         * lib/float+.h: New file.
66292         * lib/isnan.c: Include float+.h.
66293         (SIZE): New macro.
66294         (FUNC): Compare only SIZE bytes of the value.
66295         * lib/vasnprintf.c: Include float+.h.
66296         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66297         SIZEOF_LDBL or SIZEOF_DBL bytes.
66298         * modules/isnan-nolibm (Files): Add lib/float+.h.
66299         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66300         * modules/isnanl (Files): Add lib/float+.h.
66301         * modules/vasnprintf (Files): Add lib/float+.h.
66302
66303 2007-03-24  Bruno Haible  <bruno@clisp.org>
66304
66305         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66306         include isnanl-nolibm.h.
66307
66308 2007-03-24  Bruno Haible  <bruno@clisp.org>
66309
66310         * tests/test-read-file.c (main): Don't produce spurious output for
66311         expected situations. Make the test fail if it encountered unexpected
66312         results.
66313
66314 2007-03-24  Bruno Haible  <bruno@clisp.org>
66315
66316         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66317         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66318
66319 2007-03-24  Bruno Haible  <bruno@clisp.org>
66320
66321         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
66322
66323 2007-03-24  Bruno Haible  <bruno@clisp.org>
66324
66325         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
66326         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
66327
66328         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
66329         * modules/utf8-ucs4: Turn into a symbolic link to module
66330         unistr/u8-mbtouc.
66331
66332         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
66333         utf8-ucs4-unsafe.
66334         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
66335         unistr/u8-mbtouc-unsafe.
66336
66337         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
66338         * modules/utf16-ucs4: Turn into a symbolic link to module
66339         unistr/u16-mbtouc.
66340
66341         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
66342         utf16-ucs4-unsafe.
66343         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
66344         unistr/u16-mbtouc-unsafe.
66345
66346         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
66347         * modules/ucs4-utf8: Turn into a symbolic link to module
66348         unistr/u8-ubtomb.
66349
66350         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
66351         * modules/ucs4-utf16: Turn into a symbolic link to module
66352         unistr/u16-ubtomb.
66353
66354 2007-03-24  Bruno Haible  <bruno@clisp.org>
66355
66356         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
66357         Enable the function only if HAVE_INLINE.
66358         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66359         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66360         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66361         Enable the function only if HAVE_INLINE.
66362         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66363         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66364         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66365         Enable the function only if HAVE_INLINE.
66366         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66367         Enable the function only if HAVE_INLINE.
66368         * modules/utf8-ucs4: Update.
66369         * modules/utf8-ucs4-unsafe: Update.
66370         * modules/utf16-ucs4: Update.
66371         * modules/utf16-ucs4-unsafe: Update.
66372         * modules/ucs4-utf8: Update.
66373         * modules/ucs4-utf16: Update.
66374
66375 2007-03-24  Bruno Haible  <bruno@clisp.org>
66376
66377         * lib/utf8-ucs4.h: Remove file.
66378         * lib/utf8-ucs4-unsafe.h: Remove file.
66379         * lib/utf16-ucs4.h: Remove file.
66380         * lib/utf16-ucs4-unsafe.h: Remove file.
66381         * lib/ucs4-utf8.h: Remove file.
66382         * lib/ucs4-utf16.h: Remove file.
66383         * lib/unistr.h: Include their previous contents.
66384         * m4/utf-ucs4.m4: Remove file.
66385         * m4/ucs4-utf.m4: Remove file.
66386         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66387         (Depends-on): Add unistr/base.
66388         (configure.ac): Remove gl_UTF_UCS4.
66389         (Makefile.am): Update.
66390         (Include): Change to unistr.h.
66391         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66392         (Depends-on): Add unistr/base.
66393         (configure.ac): Remove gl_UTF_UCS4.
66394         (Makefile.am): Update.
66395         (Include): Change to unistr.h.
66396         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
66397         (Depends-on): Add unistr/base.
66398         (configure.ac): Remove gl_UTF_UCS4.
66399         (Makefile.am): Update.
66400         (Include): Change to unistr.h.
66401         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
66402         (Depends-on): Add unistr/base.
66403         (configure.ac): Remove gl_UTF_UCS4.
66404         (Makefile.am): Update.
66405         (Include): Change to unistr.h.
66406         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
66407         (Depends-on): Add unistr/base.
66408         (configure.ac): Remove gl_UCS4_UTF.
66409         (Makefile.am): Update.
66410         (Include): Change to unistr.h.
66411         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
66412         (Depends-on): Add unistr/base.
66413         (configure.ac): Remove gl_UCS4_UTF.
66414         (Makefile.am): Update.
66415         (Include): Change to unistr.h.
66416         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
66417         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
66418         utf8-ucs4-unsafe.h.
66419         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
66420         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
66421         utf16-ucs4-unsafe.h.
66422         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
66423         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
66424         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
66425         * lib/unistr/u8-strchr.c: Likewise.
66426         * lib/unistr/u8-strrchr.c: Likewise.
66427         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
66428         * lib/unistr/u16-strchr.c: Likewise.
66429         * lib/unistr/u16-strrchr.c: Likewise.
66430         * lib/striconveh.c: Update.
66431         * lib/linebreak.c: Update.
66432
66433 2007-03-24  Bruno Haible  <bruno@clisp.org>
66434
66435         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
66436         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
66437
66438 2007-03-22  Bruno Haible  <bruno@clisp.org>
66439
66440         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
66441
66442 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66443
66444         * MODULES.html.sh (File system functions): New module write-any-file.
66445         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
66446         * m4/write-any-file.m4: New files.
66447
66448 2007-03-23  Eric Blake  <ebb9@byu.net>
66449
66450         * gnulib-tool: Rearrange space-tab sequences, since some editors
66451         like to eat them.
66452
66453 2007-03-23  Eric Blake  <ebb9@byu.net>
66454
66455         * lib/version-etc.c (version_etc_va): Update license wording to
66456         be more concise.  Recommended by Richard Stallman.
66457
66458 2007-03-22  Bruno Haible  <bruno@clisp.org>
66459
66460         * lib/poll.c (MSG_PEEK): New fallback definition.
66461
66462 2007-03-22  Bruno Haible  <bruno@clisp.org>
66463
66464         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
66465         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
66466         (main): Update.
66467         Fixes a compilation error on BeOS.
66468
66469 2007-03-22  Bruno Haible  <bruno@clisp.org>
66470
66471         * modules/frexpl-tests: New file.
66472         * tests/test-frexpl.c: New file.
66473
66474         * modules/frexpl: New file.
66475         * m4/frexpl.m4: New file.
66476         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
66477         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
66478         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
66479         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
66480         (Depends-on): Add frexpl. Remove isnanl-nolibm.
66481         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
66482
66483 2007-03-22  Bruno Haible  <bruno@clisp.org>
66484
66485         * lib/frexpl.c: Share code with lib/frexp.c.
66486         * modules/mathl (Files): Add lib/frexp.c.
66487         (Depends-on): Add isnanl-nolibm.
66488
66489 2007-03-22  Bruno Haible  <bruno@clisp.org>
66490
66491         * modules/printf-frexp (Files): Add m4/frexp.m4.
66492         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
66493         only if the found frexp function actually works.
66494
66495 2007-03-22  Bruno Haible  <bruno@clisp.org>
66496
66497         * lib/frexp.c: Remove older implementation that uses divisions.
66498
66499 2007-03-21  Bruno Haible  <bruno@clisp.org>
66500
66501         * modules/frexp-tests: New file.
66502         * tests/test-frexp.c: New file.
66503
66504         * modules/frexp: New file.
66505         * lib/frexp.c: New file.
66506         * m4/frexp.m4: New file.
66507         * lib/math_.h (frexp): New declaration.
66508         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66509         REPLACE_FREXP.
66510         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66511
66512 2007-03-21  Bruno Haible  <bruno@clisp.org>
66513
66514         * modules/isnanl-tests: New file.
66515         * tests/test-isnanl.c: New file.
66516
66517         * modules/isnanl: New file.
66518         * lib/isnanl.h: New file.
66519         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66520         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66521         gl_FUNC_ISNANL_WORKS.
66522         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66523         New macros.
66524
66525 2007-03-21  Bruno Haible  <bruno@clisp.org>
66526
66527         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66528         lib/isnanl.h.
66529         (Include): Update.
66530         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66531         * lib/vasnprintf.c: Update.
66532         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66533         tests/test-isnanl.h, remove tests/test-isnanl.c.
66534         (Makefile.am): Update.
66535         * tests/test-isnanl-nolibm.c: New file.
66536         * tests/test-isnanl.h: New file.
66537         * tests/test-isnanl.c: Remove file.
66538
66539 2007-03-21  Jim Meyering  <jim@meyering.net>
66540
66541         When trying to open ".", treat ESTALE like EACCES.
66542         * lib/savewd.c (savewd_save): Resort to forking not just upon
66543         failure with EACCES, but also when errno is ESTALE.
66544
66545 2007-03-20  Bruno Haible  <bruno@clisp.org>
66546
66547         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66548         Needed on AIX 5.1. Reported by Matthew Woehlke.
66549
66550 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66551
66552         Suggestions by Bruno Haible:
66553         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66554         our own.
66555         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66556         * modules/acl (Depends-on): Add gettext.
66557
66558 2007-03-19  Bruno Haible  <bruno@clisp.org>
66559
66560         * modules/iconvme: Remove file.
66561         * lib/iconvme.h: Remove file.
66562         * lib/iconvme.c: Remove file.
66563         * m4/iconvme.m4: Remove file.
66564
66565 2007-03-19  Bruno Haible  <bruno@clisp.org>
66566
66567         * doc/relocatable-maint.texi: Break long shell script line.
66568         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66569
66570 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66571
66572         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66573         handle file_has_acl.
66574         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66575         * lib/acl.c: Move header inclusions and related macro defns into
66576         lib/acl-internal.h.
66577         (S_ISLNK): Remove defn, since that's now done for us.
66578         (file_has_acl): Move to lib/file-has-acl.c.
66579         Call acl_trivial if available.  This is the crucial part of the fix.
66580         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66581         shared within the library.  Rewrite a bit, partly to make it compatible
66582         with the GNU coding style.
66583         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66584         Remove unnecessary double-quotes.
66585         Don't test for acl_to_text; the build will catch that.
66586         Replace acl_entries if it doesn't exist and it is needed.
66587         Check for -lsec and acl_trivial (as used on Solaris 10).
66588         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66589         lib/file-has-acl.c.
66590         (Depends-on): Add sys_stat, for S_ISLNK.
66591
66592 2007-03-19  Ben Pfaff  <blp@gnu.org>
66593
66594         * doc/gnulib.texi: Fix typos.
66595         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66596
66597 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66598
66599         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66600         If size is zero here, buf must be zero.
66601
66602 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66603
66604         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66605         <bruno@clisp.org>.
66606
66607 2007-03-18  Bruno Haible  <bruno@clisp.org>
66608
66609         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66610         Suggested by Eric Blake.
66611
66612 2007-03-18  Ben Pfaff  <blp@gnu.org>
66613
66614         * doc/relocatable.texi: Recommend using as prefix a directory
66615         that does not exist and will never be created.  Based on
66616         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66617         and others.
66618
66619 2007-03-17  Bruno Haible  <bruno@clisp.org>
66620
66621         * lib/fchownat.c: Include lchown.h.
66622
66623 2007-03-17  Bruno Haible  <bruno@clisp.org>
66624
66625         Fix endless loop when the given allocated size was > INT_MAX.
66626         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66627         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66628         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66629         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66630         * lib/sprintf.c (sprintf): Likewise.
66631
66632 2007-03-17  Bruno Haible  <bruno@clisp.org>
66633
66634         * tests/test-argp-2.sh (func_compare): Output a context diff.
66635
66636 2007-03-17  Bruno Haible  <bruno@clisp.org>
66637
66638         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66639         locale's decimal-point character.
66640
66641 2007-03-17  Bruno Haible  <bruno@clisp.org>
66642
66643         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66644         before comparing it. Needed because on some platforms (e.g. x86) a
66645         'long double' occupies less bytes than sizeof (long double).
66646
66647 2007-03-17  Bruno Haible  <bruno@clisp.org>
66648
66649         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66650         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66651         * tests/test-getaddrinfo.c (simple): Likewise.
66652         * tests/test-read-file.c (main): Likewise.
66653
66654 2007-03-17  Bruno Haible  <bruno@clisp.org>
66655
66656         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66657
66658 2007-03-17  Bruno Haible  <bruno@clisp.org>
66659
66660         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
66661         unused variable.
66662
66663 2007-03-17  Bruno Haible  <bruno@clisp.org>
66664
66665         * tests/test-c-strcasecmp.c: Include c-strcase.h.
66666         * tests/test-c-strncasecmp.c: Likewise.
66667
66668 2007-03-17  Bruno Haible  <bruno@clisp.org>
66669
66670         * modules/stdlib (Depends-on): Add unistd.
66671         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
66672         Needed for MacOS X 10.3.
66673
66674 2007-03-17  Bruno Haible  <bruno@clisp.org>
66675
66676         * lib/unistr/u-strdup.h: Include <stdlib.h>.
66677
66678 2007-03-17  Bruno Haible  <bruno@clisp.org>
66679
66680         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
66681
66682 2007-03-17  Bruno Haible  <bruno@clisp.org>
66683
66684         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
66685         to reflect files copied from gnulib (with or without modifications).
66686         Suggested by Jim Meyering.
66687
66688 2007-03-17  Eric Blake  <ebb9@byu.net>
66689
66690         * NEWS: Document stdlib change from 2007-02-18.
66691
66692 2007-03-17  Jim Meyering  <jim@meyering.net>
66693
66694         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
66695         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
66696         someone uses a name containing shell meta-characters.
66697         Reported by Alfred M. Szmidt.
66698
66699         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
66700
66701 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66702
66703         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
66704         and copy gettext configuration files only if configure.ac contains
66705         a use of AM_GNU_GETTEXT_VERSION.
66706
66707 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66708
66709         * build-aux/bootstrap (gnulib_name): New variable.
66710         (gnulib_tool_options): Use it.
66711
66712 2007-03-13  Simon Josefsson  <simon@josefsson.org>
66713
66714         * tests/test-des.c: Use new namespace.
66715
66716 2007-03-15  Bruno Haible  <bruno@clisp.org>
66717
66718         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
66719         Reported by James Youngman <jay@gnu.org>.
66720
66721 2007-03-15  Bruno Haible  <bruno@clisp.org>
66722
66723         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
66724         declared prototype. Needed with cc on OSF/1 5.1.
66725
66726 2007-03-15  Bruno Haible  <bruno@clisp.org>
66727
66728         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
66729         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
66730         (struct gl_list_implementation): Add dispose_fn argument to the
66731         'create_empty', 'create' methods.
66732         (struct gl_list_impl_base): Add field 'dispose_fn'.
66733         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
66734         argument.
66735         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
66736         dispose_fn argument.
66737         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
66738         dispose_fn on the dropped values.
66739         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
66740         dispose_fn argument.
66741         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
66742         dropped values.
66743         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
66744         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66745         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
66746         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66747         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
66748         argument.
66749         (gl_tree_list_free): Call dispose_fn on the dropped values.
66750         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
66751         the dropped values.
66752         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66753         Add dispose_fn argument.
66754         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
66755         Call dispose_fn on the dropped values.
66756         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
66757         Add dispose_fn argument.
66758         (gl_sublist_create): Initialize the 'dispose_fn' field.
66759         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
66760         * tests/test-array_list.c (main): Update.
66761         * tests/test-carray_list.c (main): Update.
66762         * tests/test-avltree_list.c (main): Update.
66763         * tests/test-rbtree_list.c (main): Update.
66764         * tests/test-avltreehash_list.c (main): Update.
66765         * tests/test-rbtreehash_list.c (main): Update.
66766         * tests/test-linked_list.c (main): Update.
66767         * tests/test-linkedhash_list.c (main): Update.
66768         * tests/test-array_oset.c (main): Update.
66769
66770 2007-03-15  Bruno Haible  <bruno@clisp.org>
66771
66772         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
66773         (gl_oset_create_empty): Add dispose_fn argument.
66774         (struct gl_oset_implementation): Add dispose_fn argument to
66775         'create_empty' method.
66776         (struct gl_oset_impl_base): Add dispose_fn field.
66777         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
66778         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
66779         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
66780         values.
66781         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
66782         (gl_tree_oset_free): Call dispose_fn on the dropped values.
66783         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66784         dropped value.
66785         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66786         dropped value.
66787         * tests/test-array_oset.c (main): Update.
66788         * tests/test-avltree_oset.c (main): Update.
66789         * tests/test-rbtree_oset.c (main): Update.
66790         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
66791
66792 2007-03-13  Bruno Haible  <bruno@clisp.org>
66793
66794         * tests/test-stdbool.c (i): Update after last patch.
66795
66796 2007-03-12  Bruno Haible  <bruno@clisp.org>
66797
66798         * lib/quotearg.c: Include <wctype.h> early, before the definition of
66799         the iswprint macro. Needed on Solaris 2.5.1.
66800
66801 2007-03-12  Bruno Haible  <bruno@clisp.org>
66802
66803         * tests/test-printf-frexp.c (main): Declare x as volatile.
66804
66805 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66806
66807         * doc/gnulib.texi (Build robot for gnulib): New section.
66808
66809 2007-03-12  Jim Meyering  <jim@meyering.net>
66810
66811         * build-aux/bootstrap: New file.
66812         * build-aux/bootstrap.conf: New file, from coreutils.
66813
66814 2007-03-11  Bruno Haible  <bruno@clisp.org>
66815
66816         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
66817
66818 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66819
66820         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
66821         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
66822         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
66823
66824 2007-03-11  Bruno Haible  <bruno@clisp.org>
66825
66826         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
66827         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
66828
66829 2007-03-11  Bruno Haible  <bruno@clisp.org>
66830
66831         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
66832         formula. Needed for SunPRO C 5.0.
66833
66834 2007-03-11  Bruno Haible  <bruno@clisp.org>
66835
66836         * modules/long-options (Depends-on): Add getopt.
66837
66838 2007-03-11  Bruno Haible  <bruno@clisp.org>
66839
66840         * modules/modechange (Depends-on): Add stdbool.
66841
66842 2007-03-11  Bruno Haible  <bruno@clisp.org>
66843
66844         * modules/i-ring (Depends-on): Add stdbool.
66845
66846 2007-03-11  Bruno Haible  <bruno@clisp.org>
66847
66848         * modules/gc-des (Depends-on): Add stdbool.
66849
66850 2007-03-11  Bruno Haible  <bruno@clisp.org>
66851
66852         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
66853
66854 2007-03-11  Bruno Haible  <bruno@clisp.org>
66855
66856         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
66857
66858 2007-03-11  Bruno Haible  <bruno@clisp.org>
66859
66860         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
66861
66862 2007-03-11  Bruno Haible  <bruno@clisp.org>
66863
66864         * lib/vasnprintf.c (sprintf): Undefine.
66865
66866 2007-03-11  Bruno Haible  <bruno@clisp.org>
66867
66868         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
66869         initializers in SunPRO C and Compaq C compilers.
66870
66871 2007-03-11  Bruno Haible  <bruno@clisp.org>
66872
66873         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
66874         decrementing code ANSI C compliant.
66875
66876 2007-03-11  Bruno Haible  <bruno@clisp.org>
66877
66878         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
66879         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
66880
66881 2007-03-11  Bruno Haible  <bruno@clisp.org>
66882
66883         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
66884         <stdbool.h> substitute doesn't pass.
66885
66886 2007-03-11  Bruno Haible  <bruno@clisp.org>
66887
66888         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
66889
66890 2007-03-11  Bruno Haible  <bruno@clisp.org>
66891
66892         * gnulib-tool (func_create_megatestdir): Create also an autobuild
66893         script, for submission to autobuild.josefsson.org.
66894
66895 2007-03-10  Bruno Haible  <bruno@clisp.org>
66896
66897         * modules/canonicalize-lgpl-tests: New file.
66898         * tests/test-canonicalize-lgpl.sh: New file.
66899         * tests/test-canonicalize-lgpl.c: New file.
66900
66901         * modules/c-strcase-tests: New file.
66902         * tests/test-c-strcase.sh: New file.
66903         * tests/test-c-strcasecmp.c: New file.
66904         * tests/test-c-strncasecmp.c: New file.
66905
66906         * modules/atexit-tests: New file.
66907         * tests/test-atexit.sh: New file.
66908         * tests/test-atexit.c: New file.
66909
66910 2007-03-10  Bruno Haible  <bruno@clisp.org>
66911
66912         * tests/test-binary-io.sh: Use temporary filenames that are not so
66913         likely to clash with those of other tests (in a parallel make).
66914         * tests/test-binary-io.c: Likewise.
66915
66916 2007-03-10  Bruno Haible  <bruno@clisp.org>
66917
66918         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
66919         fallback; use #error instead.
66920         Suggested by Simon Josefsson.
66921
66922 2007-03-10  Bruno Haible  <bruno@clisp.org>
66923
66924         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
66925         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
66926         first and the last.
66927
66928 2007-03-10  Bruno Haible  <bruno@clisp.org>
66929
66930         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
66931
66932 2007-03-10  Bruno Haible  <bruno@clisp.org>
66933
66934         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
66935         "make distcheck".
66936         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
66937         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
66938         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
66939
66940 2007-03-10  Bruno Haible  <bruno@clisp.org>
66941
66942         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
66943         variable.
66944         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
66945         variable.
66946
66947 2007-03-09  Eric Blake  <ebb9@byu.net>
66948         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
66949
66950         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
66951         types are not being provided by gnulib.
66952         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
66953         types are supported.
66954
66955 2007-03-10  Bruno Haible  <bruno@clisp.org>
66956
66957         * lib/stdio_.h (__attribute__): New macro.
66958         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
66959         vsprintf): Specify __attribute__ __format__ for GCC.
66960         Suggested by Eric Blake.
66961
66962 2007-03-09  Bruno Haible  <bruno@clisp.org>
66963
66964         * modules/printf-posix-tests: New file.
66965         * tests/test-printf-posix.sh: New file.
66966         * tests/test-printf-posix.c: New file.
66967
66968         * modules/printf-posix: New file.
66969         * lib/printf.c: New file.
66970         * m4/printf-posix-rpl.m4: New file.
66971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
66972         REPLACE_PRINTF.
66973         * lib/stdio_.h (printf): New declaration.
66974         (format, __format__, ____printf____, ____scanf____, ____strftime____,
66975         ____strfmon____): New macros.
66976         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
66977         REPLACE_PRINTF.
66978
66979 2007-03-09  Bruno Haible  <bruno@clisp.org>
66980
66981         * tests/test-vasnprintf-posix2.sh: New file.
66982         * tests/test-vasnprintf-posix2.c: New file.
66983         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
66984         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
66985         (Makefile.am): Activate test-vasnprintf-posix2.sh.
66986
66987         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
66988         a locale dependent decimal point, rather than always '.'.
66989
66990 2007-03-09  Eric Blake  <ebb9@byu.net>
66991
66992         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
66993         spite of platforms like Tandem/NSK that define it to -1.
66994
66995 2007-03-08  Bruno Haible  <bruno@clisp.org>
66996
66997         * modules/vprintf-posix-tests: New file.
66998         * tests/test-vprintf-posix.sh: New file.
66999         * tests/test-vprintf-posix.c: New file.
67000         * tests/test-printf-posix.h: New file.
67001
67002         * modules/vprintf-posix: New file.
67003         * lib/vprintf.c: New file.
67004         * m4/vprintf-posix.m4: New file.
67005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67006         REPLACE_VPRINTF.
67007         * lib/stdio_.h (vprintf): New declaration.
67008         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67009         REPLACE_VPRINTF.
67010
67011 2007-03-08  Bruno Haible  <bruno@clisp.org>
67012
67013         * modules/fprintf-posix-tests: New file.
67014         * tests/test-fprintf-posix.sh: New file.
67015         * tests/test-fprintf-posix.c: New file.
67016
67017         * modules/fprintf-posix: New file.
67018         * lib/fprintf.c: New file.
67019         * m4/fprintf-posix.m4: New file.
67020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67021         REPLACE_FPRINTF.
67022         * lib/stdio_.h (fprintf): New declaration.
67023         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67024         REPLACE_FPRINTF.
67025
67026 2007-03-08  Bruno Haible  <bruno@clisp.org>
67027
67028         * modules/vfprintf-posix-tests: New file.
67029         * tests/test-vfprintf-posix.sh: New file.
67030         * tests/test-vfprintf-posix.c: New file.
67031         * tests/test-fprintf-posix.h: New file.
67032         * tests/test-fprintf-posix.out: New file.
67033
67034         * modules/vfprintf-posix: New file.
67035         * lib/vfprintf.c: New file.
67036         * m4/vfprintf-posix.m4: New file.
67037         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67038         REPLACE_VFPRINTF.
67039         * lib/stdio_.h (vfprintf): New declaration.
67040         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67041         REPLACE_VFPRINTF.
67042
67043 2007-03-08  Bruno Haible  <bruno@clisp.org>
67044
67045         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67046
67047 2007-03-08  Bruno Haible  <bruno@clisp.org>
67048
67049         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67050         instead of 'expr' invocations.
67051         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67052         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67053         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67054         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67055         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67056         Suggested by Paul Eggert.
67057
67058 2007-03-08  Bruno Haible  <bruno@clisp.org>
67059
67060         * modules/fseterr-tests: New file.
67061         * tests/test-fseterr.c: New file.
67062
67063         * modules/fseterr: New file.
67064         * lib/fseterr.h: New file.
67065         * lib/fseterr.c: New file.
67066
67067 2007-03-08  Bruno Haible  <bruno@clisp.org>
67068
67069         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67070         * lib/getopt_.h: Likewise.
67071         * lib/mbswidth.h: Likewise.
67072         * lib/setenv.h: Likewise.
67073         * lib/vasnprintf.h: Likewise.
67074         * lib/vasprintf.h: Likewise.
67075         * lib/verror.h: Likewise.
67076         * lib/xsetenv.h: Likewise.
67077         * lib/xvasprintf.h: Likewise.
67078
67079 2007-03-08  Jim Meyering  <jim@meyering.net>
67080
67081         * users.txt: Add parted.
67082
67083         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67084
67085 2007-03-07  Bruno Haible  <bruno@clisp.org>
67086
67087         * m4/printf.m4: Make the shell script snippets copy&pastable.
67088
67089 2007-03-02  Bruno Haible  <bruno@clisp.org>
67090
67091         * lib/netinet_in_.h: New file.
67092         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67093         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67094         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67095         (Depends-on): Add absolute-header.
67096         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67097         into netinet/in.h.
67098
67099 2007-03-03  Bruno Haible  <bruno@clisp.org>
67100
67101         * lib/sys_select_.h: New file.
67102         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67103         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67104         * modules/sys_select (Files): Add lib/sys_select_.h.
67105         (Depends-on): Add absolute-header.
67106         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67107         into sys/select.h.
67108
67109 2007-03-02  Bruno Haible  <bruno@clisp.org>
67110
67111         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67112         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67113         values.
67114         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67115         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67116         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67117         * modules/sys_socket (Depends-on): Add absolute-header.
67118         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67119         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67120         (Include): Remove requirement of inclusion of <sys/types.h>.
67121
67122 2007-03-02  Bruno Haible  <bruno@clisp.org>
67123
67124         * lib/byteswap_.h (bswap_32): Fix formula.
67125
67126 2007-03-06  Bruno Haible  <bruno@clisp.org>
67127
67128         * modules/sprintf-posix-tests: New file.
67129         * tests/test-sprintf-posix.c: New file.
67130
67131         * modules/sprintf-posix: New file.
67132         * lib/sprintf.c: New file.
67133         * m4/sprintf-posix.m4: New file.
67134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67135         REPLACE_SPRINTF.
67136         * lib/stdio_.h (sprintf): New declaration.
67137         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67138         REPLACE_SPRINTF.
67139
67140 2007-03-06  Bruno Haible  <bruno@clisp.org>
67141
67142         * modules/vsprintf-posix-tests: New file.
67143         * tests/test-vsprintf-posix.c: New file.
67144         * tests/test-sprintf-posix.h: New file.
67145
67146         * modules/vsprintf-posix: New file.
67147         * lib/vsprintf.c: New file.
67148         * m4/vsprintf-posix.m4: New file.
67149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67150         REPLACE_VSPRINTF.
67151         * lib/stdio_.h (vsprintf): New declaration.
67152         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67153         REPLACE_VSPRINTF.
67154
67155 2007-03-06  Bruno Haible  <bruno@clisp.org>
67156
67157         * modules/vsnprintf (Depend-on): Remove minmax.
67158
67159 2007-03-06  Bruno Haible  <bruno@clisp.org>
67160
67161         * modules/snprintf-posix-tests: New file.
67162         * tests/test-snprintf-posix.c: New file.
67163
67164         * modules/snprintf-posix: New file.
67165         * m4/snprintf-posix.m4: New file.
67166         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67167         gl_FUNC_SNPRINTF.
67168         (gl_FUNC_SNPRINTF): Invoke it.
67169         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67170         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67171         is set.
67172         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67173
67174 2007-03-06  Bruno Haible  <bruno@clisp.org>
67175
67176         * modules/vsnprintf-posix-tests: New file.
67177         * tests/test-vsnprintf-posix.c: New file.
67178         * tests/test-snprintf-posix.h: New file.
67179
67180         * modules/vsnprintf-posix: New file.
67181         * m4/vsnprintf-posix.m4: New file.
67182         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67183         gl_FUNC_VSNPRINTF.
67184         (gl_FUNC_VSNPRINTF): Invoke it.
67185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67186         * lib/stdio_.h (vsnprintf): Define as a replacement if
67187         REPLACE_VSNPRINTF is set.
67188         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67189
67190 2007-03-06  Bruno Haible  <bruno@clisp.org>
67191
67192         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67193         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67194
67195 2007-03-06  Bruno Haible  <bruno@clisp.org>
67196
67197         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67198         (asinl): Declare also if HAVE_DECL_ASINL is set.
67199         (atanl): Declare also if HAVE_DECL_ATANL is set.
67200         (ceill): Declare also if HAVE_DECL_CEILL is set.
67201         (cosl): Declare also if HAVE_DECL_COSL is set.
67202         (expl): Declare also if HAVE_DECL_EXPL is set.
67203         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67204         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67205         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67206         (logl): Declare also if HAVE_DECL_LOGL is set.
67207         (sinl): Declare also if HAVE_DECL_SINL is set.
67208         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67209         (tanl): Declare also if HAVE_DECL_TANL is set.
67210         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67211         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67212         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67213         declaration of frexpl, ldexpl.
67214         * modules/printf-frexpl (Depends-on): Add math.
67215         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67216
67217 2007-03-05  Bruno Haible  <bruno@clisp.org>
67218
67219         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67220         frexpl and ldexpl are declared.
67221         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67222
67223 2007-03-05  Bruno Haible  <bruno@clisp.org>
67224
67225         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67226         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67227
67228 2007-03-05  Bruno Haible  <bruno@clisp.org>
67229
67230         * lib/stdio_.h: Include <stddef.h>.
67231
67232 2007-03-05  Bruno Haible  <bruno@clisp.org>
67233
67234         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67235
67236 2007-03-05  Bruno Haible  <bruno@clisp.org>
67237
67238         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67239         NetBSD 4, from Ralf Wildenhues.
67240
67241 2007-03-04  Bruno Haible  <bruno@clisp.org>
67242
67243         * lib/vasprintf.h: Update #if logic for the case when the functions
67244         exist but are overridden.
67245
67246 2007-03-04  Bruno Haible  <bruno@clisp.org>
67247
67248         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67249         implementations: glibc-2.4 and MacOS X 10.3.
67250         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67251         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67252         * tests/test-vasprintf-posix.c (test_function): Likewise.
67253
67254 2007-03-04  Bruno Haible  <bruno@clisp.org>
67255
67256         * modules/vasprintf-posix-tests: New file.
67257         * tests/test-vasprintf-posix.c: New file.
67258
67259         * modules/vasprintf-posix: New file.
67260         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67261         defined.
67262         * m4/vasprintf-posix.m4: New file.
67263         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67264         gl_FUNC_VASPRINTF.
67265         (gl_FUNC_VASPRINTF): Invoke it.
67266         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67267         here.
67268         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67269
67270 2007-03-04  Bruno Haible  <bruno@clisp.org>
67271
67272         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67273         REPLACE_GETTIMEOFDAY.
67274         * modules/sys_time (Makefile.am): Likewise.
67275         * m4/sys_time_h.m4: Likewise.
67276         * m4/gettimeofday.m4: Likewise.
67277
67278 2007-03-04  Bruno Haible  <bruno@clisp.org>
67279
67280         * modules/vasnprintf-posix-tests: New file.
67281         * tests/test-vasnprintf-posix.c: New file.
67282
67283         * modules/vasnprintf-posix: New file.
67284         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67285         printf-frexpl.h.
67286         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67287         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67288         REPLACE_VASNPRINTF is defined.
67289         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67290         gl_FUNC_VASNPRINTF.
67291         (gl_FUNC_VASNPRINTF): Invoke it.
67292         * m4/vasnprintf-posix.m4: New file.
67293         * m4/printf.m4: New file.
67294
67295 2007-03-04  Bruno Haible  <bruno@clisp.org>
67296
67297         Compile progreloc.c only if --enable-relocatable is specified.
67298         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67299         if --enable-relocatable was specified.
67300         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67301         lib_SOURCES.
67302
67303 2007-03-04  Jim Meyering  <jim@meyering.net>
67304
67305         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67306         Use it consistently, rather than enumerating errno constants.
67307
67308 2007-03-04  Bruno Haible  <bruno@clisp.org>
67309
67310         * modules/xvasprintf-tests: New file.
67311         * tests/test-xvasprintf.c: New file.
67312
67313         * modules/vasprintf-tests: New file.
67314         * tests/test-vasprintf.c: New file.
67315
67316         * modules/vasnprintf-tests: New file.
67317         * tests/test-vasnprintf.c: New file.
67318
67319         * modules/vsnprintf-tests: New file.
67320         * tests/test-vsnprintf.c: New file.
67321
67322         * modules/snprintf-tests: New file.
67323         * tests/test-snprintf.c: New file.
67324
67325 2007-03-04  Bruno Haible  <bruno@clisp.org>
67326
67327         Compile relocatable.c only if --enable-relocatable is specified.
67328         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
67329         gl_RELOCATABLE_LIBRARY.
67330         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
67331         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
67332         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
67333         gl_RELOCATABLE_LIBRARY.
67334         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
67335         (Makefile.am): Remove lib_SOURCES.
67336         * modules/relocatable-lib-lgpl (configure.ac): Invoke
67337         gl_RELOCATABLE_LIBRARY.
67338         (Makefile.am): Remove lib_SOURCES.
67339         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
67340         always.
67341         * modules/relocatable-prog-wrapper (configure.ac): Invoke
67342         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
67343
67344 2007-03-04  Bruno Haible  <bruno@clisp.org>
67345
67346         * modules/argmatch-tests: New file.
67347         * tests/test-argmatch.c: New file.
67348
67349         * tests/test-allocsa.c (main): Halve the number of loop runs.
67350
67351         * modules/alloca-opt-tests: New file.
67352         * tests/test-alloca-opt.c: New file.
67353
67354 2007-03-04  Jim Meyering  <jim@meyering.net>
67355
67356         Work around difference between Linux ACLs and Solaris 10 ZFS.
67357         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67358         for EINVAL.
67359
67360 2007-03-03  Bruno Haible  <bruno@clisp.org>
67361
67362         * modules/relocatable-prog (Depends-on): Add back progreloc's
67363         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67364
67365 2007-03-03  Bruno Haible  <bruno@clisp.org>
67366
67367         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67368         * modules/relocatable-lib: New file.
67369
67370 2007-03-03  Bruno Haible  <bruno@clisp.org>
67371
67372         * modules/relocatable-prog: Renamed from modules/relocatable.
67373         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67374
67375 2007-03-03  Bruno Haible  <bruno@clisp.org>
67376
67377         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67378         m4/relocatable-lib.m4.
67379         (Depends-on): Remove 'relocatable'.
67380         (configure.ac): Add gl_RELOCATABLE_NOP.
67381
67382 2007-03-03  Bruno Haible  <bruno@clisp.org>
67383
67384         * modules/relocatable-prog-wrapper: New file.
67385         * modules/relocatable (Depends-on): Add it. Remove all other
67386         dependencies except progname.
67387         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67388
67389         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67390         (gl_FUNC_STRERROR): Nop.
67391         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67392
67393         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67394         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
67395
67396         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
67397         (gl_FUNC_READLINK): Update.
67398
67399         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
67400
67401 2007-03-03  Bruno Haible  <bruno@clisp.org>
67402
67403         * lib/xreadlink.c: Include <unistd.h> unconditionally.
67404         * modules/xreadlink (Depends-on): Add unistd.
67405         * modules/xreadlink-with-size (Depends-on): Likewise.
67406
67407 2007-03-03  Bruno Haible  <bruno@clisp.org>
67408
67409         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
67410         extracted from gt_FUNC_SETENV.
67411         (gt_FUNC_SETENV): Remove macro.
67412         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
67413         remove gt_FUNC_SETENV.
67414
67415 2007-03-03  Bruno Haible  <bruno@clisp.org>
67416
67417         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
67418         ENABLE_RELOCATABLE here.
67419         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
67420
67421 2007-03-03  Bruno Haible  <bruno@clisp.org>
67422
67423         * modules/rbtreehash-list-tests (Depends-on): Add progname.
67424         * tests/test-rbtreehash_list.c: Include progname.h.
67425         (main): Call set_program_name.
67426
67427         * modules/rbtree-oset-tests (Depends-on): Add progname.
67428         * tests/test-rbtree_oset.c: Include progname.h.
67429         (main): Call set_program_name.
67430
67431         * modules/rbtree-list-tests (Depends-on): Add progname.
67432         * tests/test-rbtree_list.c: Include progname.h.
67433         (main): Call set_program_name.
67434
67435         * modules/linked-list-tests (Depends-on): Add progname.
67436         * tests/test-linked_list.c: Include progname.h.
67437         (main): Call set_program_name.
67438
67439 2007-03-03  Bruno Haible  <bruno@clisp.org>
67440
67441         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
67442         All uses of __restrict changed to _Restrict_.
67443         * lib/glob_.h (__restrict): Remove macro.
67444
67445 2007-03-02  Bruno Haible  <bruno@clisp.org>
67446
67447         * modules/gettext (configure.ac): Require gettext infrastructure
67448         from version 0.16.1.
67449
67450 2007-03-02  Bruno Haible  <bruno@clisp.org>
67451
67452         * modules/linkedhash-list-tests (Depends-on): Add progname.
67453         * tests/test-linkedhash_list.c: Include progname.h.
67454         (main): Call set_program_name.
67455
67456         * modules/carray-list-tests (Depends-on): Add progname.
67457         * tests/test-carray_list.c: Include progname.h.
67458         (main): Call set_program_name.
67459
67460         * modules/avltreehash-list-tests (Depends-on): Add progname.
67461         * tests/test-avltreehash_list.c: Include progname.h.
67462         (main): Call set_program_name.
67463
67464         * modules/avltree-oset-tests (Depends-on): Add progname.
67465         * tests/test-avltree_oset.c: Include progname.h.
67466         (main): Call set_program_name.
67467
67468         * modules/avltree-list-tests (Depends-on): Add progname.
67469         * tests/test-avltree_list.c: Include progname.h.
67470         (main): Call set_program_name.
67471
67472         * modules/array-oset-tests (Depends-on): Add progname.
67473         * tests/test-array_oset.c: Include progname.h.
67474         (main): Call set_program_name.
67475
67476         * modules/array-list-tests (Depends-on): Add progname.
67477         * tests/test-array_list.c: Include progname.h.
67478         (main): Call set_program_name.
67479
67480         * modules/argp-tests (Depends-on): Add progname.
67481         * tests/test-argp.c: Include argp.h first. Include progname.h.
67482         (main): Call set_program_name.
67483
67484 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
67485
67486         * doc/gnulib-tool.texi (Initial import): Reword description of
67487         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
67488         limited effect even if defined after the first system include.
67489
67490 2007-03-01  Bruno Haible  <bruno@clisp.org>
67491
67492         * build-aux/config.libpath: Update to libtool-1.5.22.
67493         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67494
67495 2007-03-01  Bruno Haible  <bruno@clisp.org>
67496
67497         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
67498         foo_CFLAGS.
67499         Reported by Ralf Wildenhues.
67500
67501 2007-03-01  Bruno Haible  <bruno@clisp.org>
67502
67503         * build-aux/install-reloc: Remove object files left over by some
67504         compilers.
67505         Reported by Ralf Wildenhues.
67506
67507 2007-03-01  Bruno Haible  <bruno@clisp.org>
67508
67509         * build-aux/install-reloc: Break long lines.
67510
67511 2007-03-01  Bruno Haible  <bruno@clisp.org>
67512
67513         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67514         Reported by Ralf Wildenhues.
67515
67516 2007-03-01  Bruno Haible  <bruno@clisp.org>
67517
67518         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67519         include ordering constraints.
67520
67521 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67522
67523         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67524         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67525         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67526         as another example.
67527         * lib/time_.h: Fix misspelling.
67528         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67529         Require gl_HEADER_TIME_H_DEFAULTS.
67530         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67531         * m4/time_r.m4 (gl_TIME_R): Likewise.
67532         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67533
67534 2007-03-01  Bruno Haible  <bruno@clisp.org>
67535
67536         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67537         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67538
67539 2007-03-01  Jim Meyering  <jim@meyering.net>
67540
67541         * modules/xreadlink (Maintainer): Add my name.
67542         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67543
67544 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67545             Bruno Haible  <bruno@clisp.org>
67546
67547         * build-aux/install-reloc: Compile also c-ctype.c.
67548         * build-aux/relocatable.sh.in: New file.
67549         * doc/relocatable.texi: New file.
67550         * doc/relocatable-maint.texi: New file.
67551         * doc/gnulib.texi: Include relocatable-maint.texi.
67552         * lib/progreloc.c: Include unistd.h unconditionally.
67553         * lib/relocwrapper.c: Include unistd.h unconditionally.
67554         Include c-ctype.h.
67555         (add_dotbin): Use c_tolower.
67556         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67557         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67558         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67559         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67560         to m4/relocatable-lib.m4.
67561         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67562         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67563         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67564         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67565         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67566         * modules/relocatable: New file.
67567         * modules/relocatable-lib: New file.
67568         * modules/relocatable-script: New file.
67569
67570 2007-02-28  Bruno Haible  <bruno@clisp.org>
67571
67572         Import --enable-relocatable infrastructure.
67573         * build-aux/config.libpath: New file, from GNU gettext.
67574         * build-aux/install-reloc: New file, from GNU gettext.
67575         * build-aux/reloc-ldflags: New file, from GNU gettext.
67576         * lib/relocatable.h: New file, from GNU gettext.
67577         * lib/relocatable.c: New file, from GNU gettext.
67578         * lib/relocwrapper.c: New file, from GNU gettext.
67579         * m4/relocatable.m4: New file, from GNU gettext.
67580
67581 2007-02-28  Bruno Haible  <bruno@clisp.org>
67582
67583         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67584
67585         * modules/xreadlink: New file, from GNU gettext with modifications.
67586         * lib/xreadlink.c: New file, from GNU gettext.
67587         * lib/xreadlink.h: Add comments.
67588         (xreadlink): New declaration.
67589
67590         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67591         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67592         lib/xreadlink-with-size.c.
67593         (configure.ac): Remove gl_XREADLINK invocation.
67594         (Makefile.am): Augment lib_SOURCES.
67595         * m4/xreadlink.m4: Remove file.
67596         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67597         (xreadlink_with_size): Renamed from xreadink.
67598         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67599         * modules/canonicalize (Depends-on): Replace xreadlink with
67600         xreadlink-with-size.
67601         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67602
67603 2007-02-25  Jim Meyering  <jim@meyering.net>
67604
67605         * build-aux/announce-gen: When complaining about excess arguments,
67606         list them.
67607
67608 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67609
67610         * README: Document signed integer overflow situation more
67611         accurately.
67612
67613 2007-02-25  Bruno Haible  <bruno@clisp.org>
67614
67615         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67616         'a' or 'A' conversion.
67617
67618 2007-02-25  Bruno Haible  <bruno@clisp.org>
67619
67620         * modules/filename: Renamed from modules/pathname.
67621         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67622         lib/concatpath.c with lib/concat-filename.c.
67623         (Makefile.am): Update.
67624         (Include): Replace pathname.h with filename.h.
67625         * lib/filename.h: Renamed from lib/pathname.h.
67626         (concatenated_filename): Renamed from concatenated_pathname.
67627         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67628         (concatenated_filename): Renamed from concatenated_pathname.
67629         * lib/findprog.c: Include filename.h instead of pathname.h.
67630         (find_in_path): Update.
67631         * lib/javacomp.c: Include filename.h instead of pathname.h.
67632         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67633         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67634         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67635         is_oldgcj_14_13_usable, is_javac_usable): Update.
67636         * lib/javaexec.c: Include filename.h instead of pathname.h.
67637         (execute_java_class): Update.
67638         * modules/findprog: Update.
67639         * modules/javacomp: Update.
67640         * modules/javaexec: Update.
67641         * MODULES.html.sh (File system functions): Add 'filename', remove
67642         'pathname'.
67643
67644 2007-02-25  Bruno Haible  <bruno@clisp.org>
67645
67646         * modules/printf-frexpl-tests: New file.
67647         * tests/test-printf-frexpl.c: New file.
67648
67649         * modules/printf-frexpl: New file.
67650         * lib/printf-frexpl.h: New file.
67651         * lib/printf-frexpl.c: New file.
67652         * m4/printf-frexpl.m4: New file.
67653
67654 2007-02-25  Bruno Haible  <bruno@clisp.org>
67655
67656         * modules/printf-frexp-tests: New file.
67657         * tests/test-printf-frexp.c: New file.
67658
67659         * modules/printf-frexp: New file.
67660         * lib/printf-frexp.h: New file.
67661         * lib/printf-frexp.c: New file.
67662         * m4/printf-frexp.m4: New file.
67663
67664 2007-02-25  Bruno Haible  <bruno@clisp.org>
67665
67666         Assume automake >= 1.10 for the tests.
67667         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
67668         * modules/arctwo-tests: Likewise.
67669         * modules/argp-tests: Likewise.
67670         * modules/avltree-list-tests: Likewise.
67671         * modules/avltree-oset-tests: Likewise.
67672         * modules/avltreehash-list-tests: Likewise.
67673         * modules/carray-list-tests: Likewise.
67674         * modules/crc-tests: Likewise.
67675         * modules/des-tests: Likewise.
67676         * modules/gc-arcfour-tests: Likewise.
67677         * modules/gc-arctwo-tests: Likewise.
67678         * modules/gc-des-tests: Likewise.
67679         * modules/gc-hmac-md5-tests: Likewise.
67680         * modules/gc-hmac-sha1-tests: Likewise.
67681         * modules/gc-md2-tests: Likewise.
67682         * modules/gc-md4-tests: Likewise.
67683         * modules/gc-md5-tests: Likewise.
67684         * modules/gc-pbkdf2-sha1-tests: Likewise.
67685         * modules/gc-rijndael-tests: Likewise.
67686         * modules/gc-sha1-tests: Likewise.
67687         * modules/gc-tests: Likewise.
67688         * modules/getaddrinfo-tests: Likewise.
67689         * modules/hmac-md5-tests: Likewise.
67690         * modules/hmac-sha1-tests: Likewise.
67691         * modules/linked-list-tests: Likewise.
67692         * modules/linkedhash-list-tests: Likewise.
67693         * modules/lock-tests: Likewise.
67694         * modules/md2-tests: Likewise.
67695         * modules/md4-tests: Likewise.
67696         * modules/md5-tests: Likewise.
67697         * modules/rbtree-list-tests: Likewise.
67698         * modules/rbtree-oset-tests: Likewise.
67699         * modules/rbtreehash-list-tests: Likewise.
67700         * modules/read-file-tests: Likewise.
67701         * modules/rijndael-tests: Likewise.
67702         * modules/stdint-tests: Likewise.
67703         * modules/tls-tests: Likewise.
67704
67705 2007-02-24  Bruno Haible  <bruno@clisp.org>
67706
67707         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
67708         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
67709         function; instead check whether isnan with a double argument links.
67710         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
67711         function; instead check whether isnan with a 'long double' argument
67712         links.
67713         Reported by Eric Blake <ebb9@byu.net>.
67714
67715 2007-02-24  Bruno Haible  <bruno@clisp.org>
67716
67717         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
67718         defined.
67719         * lib/isnanl.c: Remove all code. Just include isnan.c.
67720         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
67721
67722 2007-02-25  Jim Meyering  <jim@meyering.net>
67723
67724         Avoid conflicting types for 'unsetenv' on FreeBSD.
67725         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
67726         conflicting with FreeBSD's (5.0 and 6.1) function declaration
67727         in stdlib.h.
67728
67729 2007-02-24  Bruno Haible  <bruno@clisp.org>
67730
67731         * modules/isnanl-nolibm-tests: New file.
67732         * tests/test-isnanl.c: New file.
67733
67734         * modules/isnanl-nolibm: New file.
67735         * lib/isnanl.h: New file.
67736         * lib/isnanl.c: New file.
67737         * m4/isnanl.m4: New file.
67738
67739 2007-02-24  Bruno Haible  <bruno@clisp.org>
67740
67741         * modules/isnan-nolibm-tests: New file.
67742         * tests/test-isnan.c: New file.
67743
67744         * modules/isnan-nolibm: New file.
67745         * lib/isnan.h: New file.
67746         * lib/isnan.c: New file.
67747         * m4/isnan.m4: New file.
67748
67749 2007-02-24  Bruno Haible  <bruno@clisp.org>
67750
67751         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
67752         assume that an exponent fits in 20 bits.
67753
67754 2007-02-24  Jim Meyering  <jim@meyering.net>
67755
67756         * m4/regex.m4: Update the description of the configure-time option,
67757         --without-included-regex, to state accurately what the defaults are,
67758         and perhaps to give people an idea why using this option is risky.
67759
67760 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67761
67762         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
67763         loops on small arguments.  This attempts to avoid the problem
67764         Bruno Haible reported for AIX 4.3.2 in
67765         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
67766
67767 2007-02-23  Bruno Haible  <bruno@clisp.org>
67768
67769         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
67770         Needed for help2man.
67771
67772 2007-02-23  Karl Berry  <karl@gnu.org>
67773
67774         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
67775         exists, foo.h should be cvs-ignored, not committed.
67776
67777 2007-02-23  Eric Blake  <ebb9@byu.net>
67778
67779         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
67780         * lib/stat-time.h (includes): Likewise.
67781         * lib/utimecmp.c (includes): Likewise.
67782         * lib/utimens.h (includes): Likewise.
67783         * lib/getdate.y (includes): Also include "timespec.h" for use
67784         internal to the module.
67785         * modules/utimens (Depends-on): Revert yesterday's patch.
67786         * modules/nanosleep (Depends-on): Add missing dependency.
67787
67788 2007-02-22  Bruno Haible  <bruno@clisp.org>
67789
67790         * lib/glob.c: Don't include getlogin_r.h.
67791
67792 2007-02-22  Jim Meyering  <jim@meyering.net>
67793
67794         * modules/utimens (Depends-on): Add timespec, required for
67795         utimens.h's inclusion of timespec.h.
67796
67797 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
67798
67799         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
67800         long unreadable paths in GNU/Linux.  Problem reported by Andreas
67801         Schwab in
67802         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
67803         I'll try to think of a better way to fix the Solaris problem.
67804
67805         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
67806         like glibc; on Solaris 10, it fails with errno == EINVAL.
67807         POSIX says the behavior is unspecified if the first argument is NULL,
67808         so play it safe and never pass NULL to the system getcwd.
67809
67810 2007-02-21  Jim Meyering  <jim@meyering.net>
67811
67812         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
67813         of gettimeofday.  It would conflict with the one now always
67814         provided via sys_time_.h.  Reported by Matthew Woehlke, as
67815         an IRIX 6.5 build failure.
67816
67817 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67818
67819         Minor fixups to port to Solaris 10 with Sun C 5.8.
67820         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
67821         * modules/getcwd (Depends-on): Add dirfd.
67822         * lib/putenv.c (putenv): #undef it.
67823         (rpl_putenv): New decl.
67824         (malloc, free): Include <stdlib.h> rather than prototyping separately.
67825
67826 2007-02-20  Bruno Haible  <bruno@clisp.org>
67827
67828         * modules/stdio-tests: New file.
67829         * tests/test-stdio.c: New file.
67830
67831         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
67832         (Depends-on): Add stdio.
67833         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67834         (Include): Use <stdio.h> instead of vsnprintf.h.
67835         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67836         HAVE_DECL_VSNPRINTF.
67837         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
67838
67839         * modules/snprintf (Files): Remove lib/snprintf.h.
67840         (Depends-on): Add stdio.
67841         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67842         (Include): Use <stdio.h> instead of snprintf.h.
67843         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67844         HAVE_DECL_SNPRINTF.
67845         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
67846         * lib/getaddrinfo.c: Likewise.
67847
67848         * modules/stdio: New file.
67849         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
67850         * lib/snprintf.h: Remove file.
67851         * lib/vsnprintf.h: Remove file.
67852         * lib/.cppi-disable: Remove snprintf.h.
67853         * m4/stdio_h.m4: New file.
67854         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
67855
67856 2007-02-20  Jim Meyering  <jim@meyering.net>
67857
67858         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
67859         used by e.g., mingw.  From Bruno Haible.
67860
67861 2007-02-19  Bruno Haible  <bruno@clisp.org>
67862
67863         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
67864         warnings.
67865         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67866
67867 2007-02-19  Bruno Haible  <bruno@clisp.org>
67868
67869         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
67870         from mingw users.
67871
67872 2007-02-19  Bruno Haible  <bruno@clisp.org>
67873
67874         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
67875         warnings.
67876         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
67877
67878 2007-02-19  Jim Meyering  <jim@meyering.net>
67879
67880         Don't use FD after a successful "fdopendir (fd)".
67881         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
67882         Reset it by calling dirfd on the just-obtained DIR*.
67883
67884         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
67885         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
67886
67887 2007-02-18  Bruno Haible  <bruno@clisp.org>
67888
67889         * lib/readlink.c: Include <unistd.h>.
67890         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
67891         HAVE_READLINK.
67892         * modules/readlink (Depends-on): Add unistd.
67893         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67894         (Include): Add <unistd.h>.
67895
67896         * lib/getlogin_r.h: Remove file.
67897         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
67898         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
67899         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
67900         HAVE_DECL_GETLOGIN_R.
67901         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
67902         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67903         (Include): Use <unistd.h> instead of getlogin_r.h.
67904
67905         * lib/getcwd.h: Remove file.
67906         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
67907         * lib/xgetcwd.c: Likewise.
67908         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
67909         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
67910         * modules/getcwd (Files): Remove lib/getcwd.h.
67911         (Depends-on): Add unistd.
67912         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67913         (Include): Use <unistd.h> instad of getcwd.h.
67914
67915         * lib/ftruncate.c: Include <unistd.h> first.
67916         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
67917         Set HAVE_FTRUNCATE.
67918         * modules/ftruncate (Depends-on): Add unistd.
67919         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67920
67921         * lib/fchdir.c: Include <unistd.h> first.
67922         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
67923         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
67924         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
67925         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67926         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
67927
67928         * lib/dup2.c: Include <unistd.h> first.
67929         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
67930         HAVE_DUP2.
67931         * modules/dup2 (Depends-on): Add unistd.
67932         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67933
67934         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
67935         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
67936         REPLACE_CHOWN. Don't define chown as a macro here.
67937         * modules/chown (Depends-on): Add unistd.
67938         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67939
67940         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
67941         Add definition for GL_LINK_WARNING.
67942         (chown, dup2): New declarations.
67943         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
67944         link warning.
67945         (ftruncate): New declaration.
67946         (getcwd): New declaration, taken from old getcwd.h.
67947         (getlogin_r): New declaration, taken from old getlogin_r.h.
67948         (readlink): New declaration.
67949         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
67950         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
67951         (gl_PREREQ_UNISTD): Remove macro.
67952         (gl_UNISTD_MODULE_INDICATOR): New macro.
67953         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
67954         many new variables. Don't set UNISTD_H.
67955         * modules/unistd (Description): Change.
67956         (Depends-on): Add link-warning.
67957         (configure.ac): Update.
67958         (Makefile.am): Create unistd.h always. Substitute many new variables
67959         into it.
67960
67961 2007-02-18  Bruno Haible  <bruno@clisp.org>
67962
67963         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
67964         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
67965         HAVE_GETSUBOPT.
67966         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
67967         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
67968         * lib/getsubopt.h: Remove file.
67969         * modules/getsubopt (Files): Remove lib/getsubopt.h.
67970         (Depends-on): Add stdlib.
67971         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67972         (Includes): Use <stdlib.h> instead of getsubopt.h.
67973         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
67974         Set HAVE_GETSUBOPT.
67975         * lib/getsubopt.c: Don't include getsubopt.h.
67976
67977 2007-02-18  Bruno Haible  <bruno@clisp.org>
67978
67979         * modules/fchdir (Depends-on): Add dup2.
67980
67981 2007-02-18  Bruno Haible  <bruno@clisp.org>
67982
67983         * lib/stdlib_.h: Handle glibc's special invocation convention
67984         specially.
67985
67986 2007-02-18  Bruno Haible  <bruno@clisp.org>
67987
67988         * modules/stdlib-tests: New file.
67989         * tests/test-stdlib.c: New file.
67990
67991         * modules/mkstemp (Files): Remove lib/mkstemp.h.
67992         (Depends-on): Add stdlib.
67993         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67994         (Includes): Use <stdlib.h> instead of mkstemp.h.
67995         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67996         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
67997         * lib/mkstemp.c: Don't include mkstemp.h.
67998         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
67999         * lib/stdlib--.h: Don't include mkstemp.h.
68000
68001         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68002         (Depends-on): Add stdlib.
68003         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68004         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68005         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68006         HAVE_MKDTEMP.
68007         * lib/mkdtemp.c: Don't include mkdtemp.h.
68008         * lib/clean-temp.c: Don't include mkdtemp.h.
68009
68010         * modules/exit (Files): Remove lib/exit.h.
68011         (Depends-on): Add stdlib.
68012         (Makefile.am): Remove lib_SOURCES.
68013         (Include): Use <stdlib.h> instead of exit.h.
68014         * lib/argmatch.c: Don't include exit.h.
68015         * lib/execute.c: Likewise.
68016         * lib/pagealign_alloc.c: Likewise.
68017         * lib/pipe.c: Likewise.
68018         * lib/wait-process.c: Likewise.
68019         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68020         * lib/exitfail.c: Likewise.
68021         * lib/savewd.c: Likewise.
68022         * lib/xsetenv.c: Likewise.
68023
68024         * modules/stdlib: New file.
68025         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68026         and extra comments about mkstemp().
68027         * lib/exit.h: Remove file.
68028         * lib/mkdtemp.h: Remove file.
68029         * lib/mkstemp.h: Remove file.
68030         * m4/stdlib_h.m4: New file.
68031         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68032
68033 2007-02-18  Bruno Haible  <bruno@clisp.org>
68034
68035         * modules/math-tests: New file.
68036         * tests/test-math.c: New file.
68037
68038         * modules/math: New file.
68039         * modules/mathl (Files): Remove lib/mathl.h.
68040         (Depends-on): Add math.
68041         (Makefile.am): Don't mention mathl.h.
68042         (Include): Use <math.h> instead of mathl.h.
68043         * lib/math_.h: New file.
68044         * lib/mathl.h: Remove file.
68045         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68046         mathl.h.
68047         * lib/asinl.c: Likewise.
68048         * lib/atanl.c: Likewise.
68049         * lib/ceill.c: Likewise.
68050         * lib/cosl.c: Likewise.
68051         * lib/expl.c: Likewise.
68052         * lib/floorl.c: Likewise.
68053         * lib/frexpl.c: Likewise.
68054         * lib/ldexpl.c: Likewise.
68055         * lib/logl.c: Likewise.
68056         * lib/sincosl.c: Likewise.
68057         * lib/sinl.c: Likewise.
68058         * lib/sqrtl.c: Likewise.
68059         * lib/tanl.c: Likewise.
68060         * lib/trigl.c: Likewise.
68061         * m4/math_h.m4: New file.
68062         * MODULES.html.sh (Mathematics): Add math.
68063
68064 2007-02-17  Bruno Haible  <bruno@clisp.org>
68065
68066         * modules/wctype-tests: New file.
68067         * tests/test-wctype.c: New file.
68068
68069         * modules/wchar-tests: New file.
68070         * tests/test-wchar.c: New file.
68071
68072         * modules/unistd-tests: New file.
68073         * tests/test-unistd.c: New file.
68074
68075         * modules/time-tests: New file.
68076         * tests/test-time.c: New file.
68077
68078         * modules/sysexits-tests: New file.
68079         * tests/test-sysexits.c: New file.
68080
68081         * modules/sys_time-tests: New file.
68082         * tests/test-sys_time.c: New file.
68083
68084         * modules/sys_stat-tests: New file.
68085         * tests/test-sys_stat.c: New file.
68086
68087         * modules/sys_socket-tests: New file.
68088         * tests/test-sys_socket.c: New file.
68089
68090         * modules/sys_select-tests: New file.
68091         * tests/test-sys_select.c: New file.
68092
68093         * modules/string-tests: New file.
68094         * tests/test-string.c: New file.
68095
68096         * modules/stdbool-tests: New file.
68097         * tests/test-stdbool.c: New file.
68098
68099         * modules/netinet_in-tests: New file.
68100         * tests/test-netinet_in.c: New file.
68101
68102         * modules/inttypes-tests: New file.
68103         * tests/test-inttypes.c: New file.
68104
68105         * modules/fcntl-tests: New file.
68106         * tests/test-fcntl.c: New file.
68107
68108         * modules/byteswap-tests: New file.
68109         * tests/test-byteswap.c: New file.
68110
68111         * modules/arpa_inet-tests: New file.
68112         * tests/test-arpa_inet.c: New file.
68113
68114 2007-02-17  Bruno Haible  <bruno@clisp.org>
68115
68116         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68117         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68118         if the corresponding module is not enabled. Emit link warnings if
68119         the function is used nevertheless.
68120         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68121         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68122         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68123         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68124         * modules/inttypes (Depends-on): Add link-warning.
68125         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68126         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68127         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68128         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68129         * modules/imaxdiv (configure.ac): Likewise.
68130         * modules/strtoimax (configure.ac): Likewise.
68131         * modules/strtoumax (configure.ac): Likewise.
68132
68133 2007-02-17  Bruno Haible  <bruno@clisp.org>
68134
68135         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68136         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68137         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68138         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68139
68140 2007-02-17  Bruno Haible  <bruno@clisp.org>
68141
68142         * modules/link-warning: New file.
68143         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68144         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68145         * modules/string (Depends-on): Add link-warning.
68146         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68147         string.h.
68148         * MODULES.html.sh (Support for building libraries and executables): Add
68149         link-warning.
68150
68151 2007-02-17  Bruno Haible  <bruno@clisp.org>
68152
68153         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68154         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68155         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68156         long lines.
68157
68158 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68159             Bruno Haible  <bruno@clisp.org>
68160
68161         * modules/tmpfile: New file.
68162         * lib/tmpfile.c: New file.
68163         * m4/tmpfile.m4: New file.
68164         * MODULES.html.sh (func_all_modules): New section "Input/output".
68165
68166 2007-02-15  Bruno Haible  <bruno@clisp.org>
68167
68168         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68169         (supports_delete_on_close): New function.
68170         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68171
68172 2007-02-14  Bruno Haible  <bruno@clisp.org>
68173
68174         * modules/mbspcasecmp-tests: New file.
68175         * tests/test-mbspcasecmp.sh: New file.
68176         * tests/test-mbspcasecmp.c: New file.
68177
68178         New module mbspcasecmp.
68179         * modules/mbspcasecmp: New file.
68180         * lib/mbspcasecmp.c: New file.
68181         * lib/string_.h (strncasecmp): Change warning message.
68182         (mbspcasecmp): New declaration.
68183         * m4/mbspcasecmp.m4: New file.
68184         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68185         GNULIB_MBSPCASECMP.
68186         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68187         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68188
68189 2007-02-14  Bruno Haible  <bruno@clisp.org>
68190
68191         * modules/mbsncasecmp-tests: New file.
68192         * tests/test-mbsncasecmp.sh: New file.
68193         * tests/test-mbsncasecmp.c: New file.
68194
68195         New module mbsncasecmp.
68196         * modules/mbsncasecmp: New file.
68197         * lib/mbsncasecmp.c: New file.
68198         * lib/string_.h (mbsncasecmp): New declaration.
68199         * m4/mbsncasecmp.m4: New file.
68200         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68201         GNULIB_MBSNCASECMP.
68202         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68203         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68204
68205 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68206
68207         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68208         Verify that it doesn't overlap with our flags.
68209         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68210         do not have the desired effect in multibyte locales; instead, use
68211         mbscasecmp.
68212         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68213         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68214         we don't require GNU fnmatch ourselves (if our users require it, they
68215         should do so explicitly).
68216
68217         Fix regex code so it doesn't rely on strcasecmp.
68218         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68219         Otherwise, include gnulib's langinfo.h.
68220         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68221         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68222         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68223         * modules/regex (FILES): Remove m4/codeset.m4.
68224         (Depends-on): Add localcharset.  Remove strcase.
68225
68226 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68227
68228         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68229         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68230
68231 2007-02-13  Bruno Haible  <bruno@clisp.org>
68232
68233         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68234         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68235
68236 2007-02-12  Bruno Haible  <bruno@clisp.org>
68237
68238         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68239         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68240         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68241         time warning rather than a link error.
68242
68243 2007-02-12  Bruno Haible  <bruno@clisp.org>
68244
68245         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68246         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68247         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68248
68249 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68250
68251         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68252         args, not 2.
68253
68254 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68255
68256         New module 'time', so that apps can include <time.h> as per
68257         POSIX and GNU instead of separate include files like time_r.h
68258         and timegm.h.  This implementation tries out a simpler approach
68259         for replacing decls in standard include files (as compared to
68260         the string module), somewhat as an experiment.
68261
68262         * config/srclist.txt: Comment out mktime.c for now.
68263         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68264         since it doesn't apply any more.  Use generic wording instead.
68265         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68266         'time'.
68267         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68268         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68269         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68270         Don't include <sys/types.h>; no longer needed since we assume C89.
68271         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68272         * lib/strftime.c: Likewise.
68273         * lib/time_r.c: Likewise.
68274         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68275         * lib/nanosleep.c: Include <time.h> first, to check interface.
68276         * lib/strptime.c: Likewise.
68277         * lib/time_r.c: Likewise.
68278         * lib/timegm.c: Likewise.
68279         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68280         needed.
68281         * lib/timegm.c: Don't include timegm.h; no longer needed.
68282         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68283         time.h now handles any problems in that area.
68284         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68285         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68286         that time.h defines struct timespec.
68287         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68288         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68289         handles that.
68290         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68291         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68292         needed.  Set REPLACE_LOCALTIME.
68293         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68294         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68295         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68296         nanosleep; time_h.m4 now does that.  Don't require
68297         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68298         module handles this now.
68299         * modules/getdate (Depends-on): Remove timespec.  Add time.
68300         * modules/nanosleep (Depends-on): Likewise.
68301         * modules/stat-time (Depends-on): Likewise.
68302         * modules/nanosleep (Include): Include time.h, not timespec.h.
68303         * modules/strptime (Files): Remove lib/strptime.h.
68304         (Depends-on): Add extensions, time.
68305         (Include): Include time.h, not strptime.h.
68306         * modules/time_r (Files): Remove lib/time_r.h.
68307         (Depends-on): Add time.
68308         (Include): Include time.h, not time_r.h.
68309         * modules/timegm: Likewise.
68310         * modules/timespec (Description): Now does timespec-related decls
68311         of our own, instead of struct timespec itself.
68312         (Depends-on): Add time; remove extensions.
68313         (Maintainer): Add self.
68314         * modules/utimecmp (Depends-on): Add time; remove timespec.
68315         * modules/utimens (Depends-on): Likewise.
68316         * modules/xnanosleep (Depends-on): Likewise.
68317
68318 2007-02-11  Bruno Haible  <bruno@clisp.org>
68319
68320         * lib/c-strstr.c: Include allocsa.h.
68321         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68322         * lib/c-strcasestr.c: Include allocsa.h.
68323         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68324         * lib/strcasestr.c: Include allocsa.h.
68325         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68326         * lib/mbsstr.c: Include allocsa.h.
68327         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68328         allocsa/freesa instead of malloc/free.
68329         * lib/mbscasestr.c: Include allocsa.h.
68330         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68331         allocsa/freesa instead of malloc/free.
68332         * modules/c-strstr (Depends-on): Add allocsa.
68333         * modules/c-strcasestr (Depends-on): Likewise.
68334         * modules/strcasestr (Depends-on): Likewise.
68335         * modules/mbsstr (Depends-on): Likewise.
68336         * modules/mbscasestr (Depends-on): Likewise.
68337
68338 2007-02-11  Bruno Haible  <bruno@clisp.org>
68339
68340         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
68341
68342         * modules/mbsspn-tests: New file.
68343         * tests/test-mbsspn.sh: New file.
68344         * tests/test-mbsspn.c: New file.
68345
68346 2007-02-11  Bruno Haible  <bruno@clisp.org>
68347
68348         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
68349
68350         * modules/mbspbrk-tests: New file.
68351         * tests/test-mbspbrk.sh: New file.
68352         * tests/test-mbspbrk.c: New file.
68353
68354 2007-02-11  Bruno Haible  <bruno@clisp.org>
68355
68356         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
68357         unneeded cast.
68358
68359         * modules/mbscspn-tests: New file.
68360         * tests/test-mbscspn.sh: New file.
68361         * tests/test-mbscspn.c: New file.
68362
68363 2007-02-11  Bruno Haible  <bruno@clisp.org>
68364
68365         * modules/mbscasecmp-tests: New file.
68366         * tests/test-mbscasecmp.sh: New file.
68367         * tests/test-mbscasecmp.c: New file.
68368
68369 2007-02-11  Bruno Haible  <bruno@clisp.org>
68370
68371         Ensure O(n) worst-case complexity of mbscasestr.
68372         * lib/mbscasestr.c: Include stdbool.h.
68373         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68374         functions.
68375         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68376         the bookkeeping indicates that it's worth it.
68377         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68378
68379         * modules/mbscasestr-tests: New file.
68380         * tests/test-mbscasestr1.c: New file.
68381         * tests/test-mbscasestr2.sh: New file.
68382         * tests/test-mbscasestr2.c: New file.
68383         * tests/test-mbscasestr3.sh: New file.
68384         * tests/test-mbscasestr3.c: New file.
68385         * tests/test-mbscasestr4.sh: New file.
68386         * tests/test-mbscasestr4.c: New file.
68387         * m4/locale-tr.m4: New file.
68388
68389 2007-02-11  Bruno Haible  <bruno@clisp.org>
68390
68391         Ensure O(n) worst-case complexity of mbsstr.
68392         * lib/mbsstr.c: Include stdbool.h.
68393         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68394         functions.
68395         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
68396         bookkeeping indicates that it's worth it.
68397         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
68398
68399         * modules/mbsstr-tests: New file.
68400         * tests/test-mbsstr1.c: New file.
68401         * tests/test-mbsstr2.sh: New file.
68402         * tests/test-mbsstr2.c: New file.
68403         * tests/test-mbsstr3.sh: New file.
68404         * tests/test-mbsstr3.c: New file.
68405         * m4/locale-fr.m4: New file.
68406
68407 2007-02-11  Bruno Haible  <bruno@clisp.org>
68408
68409         * lib/mbsrchr.c (mbsrchr): Fix bug.
68410
68411         * modules/mbsrchr-tests: New file.
68412         * tests/test-mbsrchr.sh: New file.
68413         * tests/test-mbsrchr.c: New file.
68414
68415 2007-02-11  Bruno Haible  <bruno@clisp.org>
68416
68417         * lib/mbschr.c (mbschr): Fix bug.
68418
68419         * modules/mbschr-tests: New file.
68420         * tests/test-mbschr.sh: New file.
68421         * tests/test-mbschr.c: New file.
68422         * m4/locale-zh.m4: New file.
68423
68424 2007-02-11  Bruno Haible  <bruno@clisp.org>
68425
68426         Support for copying multibyte string iterators.
68427         * lib/mbiter.h: Include <string.h>.
68428         (mbiter_multi_copy): New function.
68429         (mbi_copy): New macro.
68430         * lib/mbuiter.h: Include <string.h>.
68431         (mbuiter_multi_copy): New function.
68432         (mbui_copy): New macro.
68433
68434 2007-02-11  Bruno Haible  <bruno@clisp.org>
68435
68436         New module mbslen.
68437         * modules/mbslen: New file.
68438         * lib/mbslen.c: New file.
68439         * lib/string_.h (mbslen): New declaration.
68440         * m4/mbslen.m4: New file.
68441         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68442         GNULIB_MBSLEN.
68443         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
68444         * MODULES.html.sh (Internationalization functions): Add mbslen.
68445
68446 2007-02-11  Bruno Haible  <bruno@clisp.org>
68447
68448         Ensure O(n) worst-case complexity of strcasestr substitute.
68449         * lib/strcasestr.c: Include stdbool.h.
68450         (knuth_morris_pratt): New function.
68451         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68452         bookkeeping indicates that it's worth it.
68453         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
68454
68455         * modules/strcasestr-tests: New file.
68456         * tests/test-strcasestr.c: New file.
68457
68458 2007-02-11  Bruno Haible  <bruno@clisp.org>
68459
68460         Ensure O(n) worst-case complexity of c_strcasestr.
68461         * lib/c-strcasestr.c: Include stdbool.h, string.h.
68462         (knuth_morris_pratt): New function.
68463         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
68464         the bookkeeping indicates that it's worth it.
68465         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
68466
68467         * modules/c-strcasestr-tests: New file.
68468         * tests/test-c-strcasestr.c: New file.
68469
68470 2007-02-11  Bruno Haible  <bruno@clisp.org>
68471
68472         Ensure O(n) worst-case complexity of c_strstr.
68473         * lib/c-strstr.c: Include stdbool.h, string.h.
68474         (knuth_morris_pratt): New function.
68475         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68476         bookkeeping indicates that it's worth it.
68477         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
68478
68479         * lib/c-strstr.c: Complete rewrite for maintainability.
68480
68481         * modules/c-strstr-tests: New file.
68482         * tests/test-c-strstr.c: New file.
68483
68484 2007-02-11  Bruno Haible  <bruno@clisp.org>
68485
68486         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
68487         5.2.1 and earlier, whereby \055 was treated just like the range
68488         delimiter '-'.
68489         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68490
68491 2007-02-08  Bruno Haible  <bruno@clisp.org>
68492
68493         * modules/regex (Depends-on): Add stdbool.
68494         Reported by Dalibor Topic <robilad@kaffe.org>.
68495
68496 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68497
68498         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
68499         Prefer returning from main to exiting from it.
68500         Remove unnecessary parens after sizeof.
68501
68502 2007-02-05  Bruno Haible  <bruno@clisp.org>
68503
68504         New module mbssep.
68505         * modules/mbssep: New file.
68506         * lib/mbssep.c: New file.
68507         * lib/string_.h (strsep): Add a conditional link warning.
68508         (mbssep): New declaration.
68509         * m4/mbssep.m4: New file.
68510         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68511         GNULIB_MBSSEP.
68512         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68513         * MODULES.html.sh (Internationalization functions): Add mbssep.
68514
68515 2007-02-05  Bruno Haible  <bruno@clisp.org>
68516
68517         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68518         Optimize search in case of 1 delimiter.
68519
68520 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68521
68522         * lib/acl.h: Include sys/types.h before sys/acl.h.
68523
68524 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68525
68526         Merge upstream fix for glibc bugzilla #3957:
68527
68528         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68529
68530         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68531         bit for RE_HAT_LISTS_NOT_NEWLINE.
68532         (build_charclass_op): Remove bogus comment.
68533
68534 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68535
68536         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68537
68538 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68539
68540         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68541         * lib/memmem.c [!defined _LIBC]: Include config.h.
68542
68543 2007-02-04  Bruno Haible  <bruno@clisp.org>
68544
68545         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68546         warning message.
68547
68548 2007-02-04  Bruno Haible  <bruno@clisp.org>
68549
68550         New module mbstok_r.
68551         * modules/mbstok_r: New file.
68552         * lib/mbstok_r.c: New file.
68553         * lib/string_.h (strtok_r): Change argument names to match the
68554         comments. Add a conditional link warning.
68555         (mbstok_r): New declaration.
68556         * m4/mbstok_r.m4: New file.
68557         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68558         GNULIB_MBSTOK_R.
68559         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68560         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68561
68562 2007-02-04  Bruno Haible  <bruno@clisp.org>
68563
68564         New module mbsspn.
68565         * modules/mbsspn: New file.
68566         * lib/mbsspn.c: New file.
68567         * lib/string_.h (strspn): Add a conditional link warning.
68568         (mbsspn): New declaration.
68569         * m4/mbsspn.m4: New file.
68570         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68571         GNULIB_MBSSPN.
68572         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68573         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68574
68575 2007-02-04  Bruno Haible  <bruno@clisp.org>
68576
68577         New module mbspbrk.
68578         * modules/mbspbrk: New file.
68579         * lib/mbspbrk.c: New file.
68580         * lib/string_.h (strpbrk): Add a conditional link warning.
68581         (mbspbrk): New declaration.
68582         * m4/mbspbrk.m4: New file.
68583         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68584         GNULIB_MBSPBRK.
68585         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68586         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68587
68588 2007-02-04  Bruno Haible  <bruno@clisp.org>
68589
68590         New module mbscspn.
68591         * modules/mbscspn: New file.
68592         * lib/mbscspn.c: New file.
68593         * lib/string_.h (strcspn): Add a conditional link warning.
68594         (mbscspn): New declaration.
68595         * m4/mbscspn.m4: New file.
68596         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68597         GNULIB_MBSCSPN.
68598         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68599         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68600
68601 2007-02-04  Bruno Haible  <bruno@clisp.org>
68602
68603         New module mbscasestr, reduced goal of strcasestr.
68604         * modules/mbscasestr: New file.
68605         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68606         (mbscasestr): Renamed from strcasestr.
68607         * lib/strcasestr.c: Don't include mbuiter.h.
68608         (strcasestr): Remove support for multibyte locales.
68609         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68610         Change the conditional link warning.
68611         (mbscasestr): New declaration.
68612         * m4/mbscasestr.m4: New file.
68613         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68614         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68615         REPLACE_STRCASESTR.
68616         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68617         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68618         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68619         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68620         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68621         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68622         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68623         (Depends-on): Remove mbuiter.
68624         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68625
68626 2007-02-04  Bruno Haible  <bruno@clisp.org>
68627
68628         Simplify handling of strncasecmp.
68629         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68630         the conditional link warning.
68631         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68632         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68633         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68634         * modules/strcase (configure.ac): Don't invoke
68635         gl_STRING_MODULE_INDICATOR.
68636         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68637
68638 2007-02-04  Bruno Haible  <bruno@clisp.org>
68639
68640         New module mbscasecmp, reduced goal of strcasecmp.
68641         * modules/mbscasecmp: New file.
68642         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68643         (mbscasecmp): Renamed from strcasecmp.
68644         * lib/strcasecmp.c: Don't include mbuiter.h.
68645         (strcasecmp): Remove support for multibyte locales.
68646         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68647         Change the conditional link warning.
68648         (mbscasecmp): New declaration.
68649         * m4/mbscasecmp.m4: New file.
68650         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68651         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68652         REPLACE_STRCASECMP.
68653         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68654         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68655         GNULIB_MBSCASECMP.
68656         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68657         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
68658         * modules/strcase (Files): Remove m4/mbrtowc.m4.
68659         (Depends-on): Remove mbuiter.
68660         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
68661
68662 2007-02-04  Bruno Haible  <bruno@clisp.org>
68663
68664         New module mbsstr. Remove module strstr.
68665         * modules/mbsstr: New file.
68666         * modules/strstr: Remove file.
68667         * lib/mbsstr.c: Renamed from lib/strstr.c.
68668         (mbsstr): Renamed from strstr.
68669         * lib/string_.h (strstr): Remove declaration. Change the conditional
68670         link warning.
68671         (mbsstr): New declaration.
68672         * m4/mbsstr.m4: New file.
68673         * m4/strstr.m4: Remove file.
68674         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68675         REPLACE_STRSTR.
68676         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
68677         Don't initialize GNULIB_STRSTR.
68678         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
68679         substitute GNULIB_STRSTR and REPLACE_STRSTR.
68680         * MODULES.html.sh (Internationalization functions): Add mbsstr.
68681         (Support for systems lacking ANSI C 89): Remove strstr.
68682
68683 2007-02-04  Bruno Haible  <bruno@clisp.org>
68684
68685         New module mbsrchr.
68686         * modules/mbsrchr: New file.
68687         * lib/mbsrchr.c: New file.
68688         * lib/string_.h (strrchr): Add a conditional link warning.
68689         (mbsrchr): New declaration.
68690         * m4/mbsrchr.m4: New file.
68691         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68692         GNULIB_MBSRCHR.
68693         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
68694         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
68695
68696 2007-02-04  Bruno Haible  <bruno@clisp.org>
68697
68698         New module mbschr.
68699         * modules/mbschr: New file.
68700         * lib/mbschr.c: New file.
68701         * lib/string_.h (strchr): Add a conditional link warning.
68702         (mbschr): New declaration.
68703         * m4/mbschr.m4: New file.
68704         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68705         GNULIB_MBSCHR.
68706         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
68707         * MODULES.html.sh (Internationalization functions): Add mbschr.
68708
68709 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68710
68711         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
68712
68713         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
68714
68715 2007-02-04  Bruno Haible  <bruno@clisp.org>
68716
68717         New module description section 'configure.ac-early'.
68718         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
68719         (func_get_autoconf_early_snippet): New function.
68720         (func_import, func_create_testdir): Use it. Remove special cases for
68721         modules 'extensions' and 'lock'.
68722         * modules/extensions (configure.ac-early): Require
68723         gl_USE_SYSTEM_EXTENSIONS.
68724         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
68725
68726 2007-02-04  Bruno Haible  <bruno@clisp.org>
68727
68728         Make use of gcj-4.3's -fsource and -ftarget option.
68729         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
68730         and if so try the options -fsource and -ftarget.
68731         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
68732         source_version, ftarget_option, target_version arguments.
68733         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
68734         (is_envjavac_oldgcj_14_14_usable): Renamed from
68735         is_envjavac_gcj_14_14_usable.
68736         (is_envjavac_oldgcj_14_13_usable): Renamed from
68737         is_envjavac_gcj_14_13_usable.
68738         (is_gcj_present): Update.
68739         (is_gcj_43, is_gcj43_usable): New functions.
68740         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
68741         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
68742         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
68743         try the options -fsource and -ftarget.
68744
68745 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68746
68747         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
68748         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
68749         larger value.
68750
68751 2007-02-03  Jim Meyering  <jim@meyering.net>
68752
68753         Give tools a better chance to allocate space for very large buffers.
68754         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
68755
68756         Make pwd and readlink work also when run with an unreadable parent dir
68757         on systems with openat support.
68758         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
68759         provided getcwd function, even when we have openat support.
68760         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
68761
68762 2007-02-02  Bruno Haible  <bruno@clisp.org>
68763
68764         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68765         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
68766         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
68767         portability problems if one of these functions is only used on specific
68768         platforms.
68769         Reported by Paul Eggert.
68770
68771 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
68772
68773         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
68774         is causing more trouble than it's curing.
68775         * lib/regex_internal.h (__mempcpy): Remove.
68776         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
68777         (and make the code a tad smaller to boot).
68778         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
68779
68780 2007-02-02  Jim Meyering  <jim@meyering.net>
68781
68782         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
68783         section, not in the Makefile.am: one.
68784
68785 2007-02-02  Eric Blake  <ebb9@byu.net>
68786
68787         * lib/strchrnul.c: Always include config.h first.
68788
68789         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
68790         gnulib strstr is not necessary here.
68791
68792 2007-02-02  Simon Josefsson  <simon@josefsson.org>
68793
68794         * m4/socklen.m4: Fix typo.
68795
68796 2007-02-02  Eric Blake  <ebb9@byu.net>
68797
68798         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
68799         * modules/netinet_in (Makefile.am): Likewise.
68800
68801 2007-02-01  Bruno Haible  <bruno@clisp.org>
68802
68803         * lib/string_.h (GL_LINK_WARNING): New macro.
68804         (strcasecmp, strstr, strcasestr): If provided by the system,
68805         conditionally define as a macro that leads to a warning instead of to
68806         an error.
68807         (strncasecmp): Conditionally define as a macro that leads to a warning.
68808
68809 2007-02-01  Karl Berry  <karl@gnu.org>
68810
68811         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
68812
68813 2007-02-01  Bruno Haible  <bruno@clisp.org>
68814
68815         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
68816         renamings.
68817
68818 2007-02-01  Eric Blake  <ebb9@byu.net>
68819
68820         * modules/regex (Depends-on): Revert dependence on mempcpy.
68821         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
68822         module's definition of mempcpy.
68823         Reported by Paul Eggert.
68824
68825 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68826
68827         * lib/string_.h: If the gnulib module XYZ is not present, undefine
68828         the symbol XYZ before redefining it.  This fixes a problem with
68829         programs that don't use XYZ, when compiled on systems that define
68830         XYZ to something else.
68831
68832 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
68833
68834         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
68835         occurs when "mkdir -m foo" creates a setgid directory that is (1)
68836         writeable to group or other and (2) is intended to have a special
68837         mode bit that is set or cleared.  In such a case, the directory
68838         should be neither group- nor other-writeable until the special
68839         mode bits are right.
68840
68841 2007-01-31  Eric Blake  <ebb9@byu.net>
68842
68843         * modules/mountlist (Depends-on): Add strstr.
68844
68845         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
68846         bug.
68847         * modules/string (Makefile.am): Remove redundant replacement.
68848         * modules/regex (Depends-on): Add mempcpy.
68849
68850 2007-01-31  Bruno Haible  <bruno@clisp.org>
68851
68852         New module description field 'Link'.
68853         * gnulib-tool (func_usage): Document --extract-link-directive.
68854         (sed_extract_prog): Recognize 'Link' directive.
68855         (func_get_link_directive): New function.
68856         (func_import): Show summary of link directives.
68857         Handle --extract-link-directive option.
68858         * modules/acl (Link): New section.
68859         * modules/clock-time (Link): New section.
68860         * modules/euidaccess (Link): New section.
68861         * modules/gettext (Link): New section.
68862         * modules/iconv (Link): New section.
68863         * modules/lock (Link): New section.
68864         * modules/nanosleep (Link): New section.
68865         * modules/readline (Link): New section.
68866
68867 2007-01-27  Bruno Haible  <bruno@clisp.org>
68868
68869         Enforce the use of gnulib modules for unportable <string.h> functions.
68870         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
68871         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
68872         (gl_HEADER_STRING_H_BODY): Require it.
68873         * lib/string_.h: If the gnulib module XYZ is not present, redefine
68874         the symbol XYZ to one that gives a link error.
68875         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
68876         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
68877         * modules/mempcpy (configure.ac): Likewise.
68878         * modules/memrchr (configure.ac): Likewise.
68879         * modules/stpcpy (configure.ac): Likewise.
68880         * modules/stpncpy (configure.ac): Likewise.
68881         * modules/strcase (configure.ac): Likewise.
68882         * modules/strcasestr (configure.ac): Likewise.
68883         * modules/strchrnul (configure.ac): Likewise.
68884         * modules/strdup (configure.ac): Likewise.
68885         * modules/strndup (configure.ac): Likewise.
68886         * modules/strnlen (configure.ac): Likewise.
68887         * modules/strpbrk (configure.ac): Likewise.
68888         * modules/strsep (configure.ac): Likewise.
68889         * modules/strstr (configure.ac): Likewise.
68890         * modules/strtok_r (configure.ac): Likewise.
68891
68892 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
68893
68894         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
68895
68896 2007-01-30  Jim Meyering  <jim@meyering.net>
68897
68898         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
68899
68900 2007-01-29  Bruno Haible  <bruno@clisp.org>
68901
68902         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
68903         * lib/execute.c: Likewise.
68904         * lib/pipe.c: Likewise.
68905         * lib/printf-args.h: Likewise.
68906         * lib/printf-args.c: Likewise.
68907         * lib/printf-parse.c: Likewise.
68908         * lib/vasnprintf.c: Likewise.
68909
68910 2007-01-29  Eric Blake  <ebb9@byu.net>
68911
68912         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
68913         declaration.
68914
68915 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
68916
68917         * lib/strptime.h (strptime): Use 'restrict' for args where
68918         POSIX requires this.
68919         * lib/strptime.c (strptime): Likewise.
68920         Change license notice from LGPL to GPL, since gnulib-tool will
68921         change this as needed.
68922         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
68923         defined.
68924         Include "strptime.h" first, to check interface.
68925         Do not #undef _LIBC and _NL_CURRENT.
68926         Do not include <stdlib.h>; no longer needed.
68927         Include "time_r.h" and declare ptime_locale_status
68928         only if _LIBC is not defined.
68929         (__P): Remove unused macro.
68930         (match_string): Bring back glibc version, but use it only if _LIBC
68931         is defined.
68932         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
68933         Remove unnecessary assertion and abort() call.
68934         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
68935         * m4/strptime.m4: Fix serial number comment.
68936         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
68937         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
68938         (Depends-on): Add time_r.
68939
68940 2007-01-29  Bruno Haible  <bruno@clisp.org>
68941
68942         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68943         strptime.
68944         * modules/strptime (Depends-on): Add stdbool.
68945         * lib/strptime.h: Include <time.h> always. Add comments.
68946
68947 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68948
68949         * modules/strptime: New file.
68950         * lib/strptime.h: New file.
68951         * lib/strptime.c: New file.
68952         * m4/strptime.m4: New file.
68953
68954 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68955
68956         * MODULES.html.sh: New module mpsort.
68957         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
68958
68959         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
68960         a circularity problem with HP-UX ia64 reported by Bob Proulx in
68961         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
68962         All uses changed.
68963         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
68964         All uses changed.
68965         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
68966         to _Restrict_.
68967         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
68968         the parameter matches the prototype.
68969
68970 2007-01-28  Jim Meyering  <jim@meyering.net>
68971
68972         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
68973         sys/time.h here, reverting that part of the previous patch:
68974         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
68975
68976 2007-01-28  Bruno Haible  <bruno@clisp.org>
68977
68978         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
68979         value of $(SYS_TIME_H).
68980         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
68981         remove it conditionally, too. [added by Jim Meyering]
68982         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
68983         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
68984         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
68985         GETTIMEOFDAY_REPLACEMENT to 1.
68986
68987 2007-01-28  Bruno Haible  <bruno@clisp.org>
68988
68989         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
68990         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
68991         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
68992         Set UNISTD_H instead of UNISTD_H2.
68993         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
68994
68995 2007-01-28  Bruno Haible  <bruno@clisp.org>
68996
68997         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
68998         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
68999
69000 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69001
69002         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69003         (func_create_testdir): Ensure C locale for `grep' and `tr'
69004         character ranges.
69005         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69006         ACLOCAL_AMFLAGS parsing state machine.
69007
69008 2007-01-27  Bruno Haible  <bruno@clisp.org>
69009
69010         * modules/unistr/base: Update.
69011
69012 2007-01-27  Bruno Haible  <bruno@clisp.org>
69013
69014         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69015         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69016         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69017         modules/unistr/u32-mbtouc.
69018         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69019         * lib/unistr.h: Update.
69020         * lib/linebreak.c: Update.
69021         * modules/unistr/u32-mbtouc: Renamed from
69022         modules/unistr/u32-mbtouc-safe.
69023         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69024         * lib/unistr.h: Update.
69025         * lib/unistr/u32-to-u8.c: Update.
69026         * lib/unistr/u32-to-u16.c: Update.
69027
69028 2007-01-27  Bruno Haible  <bruno@clisp.org>
69029
69030         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69031         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69032         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69033         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69034         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69035         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69036         modules/unistr/u16-mbtouc.
69037         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69038         * lib/unistr.h: Update.
69039         * lib/linebreak.c: Update.
69040         * modules/linebreak: Update.
69041         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69042         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69043         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69044         * modules/unistr/u16-mbtouc: Renamed from
69045         modules/unistr/u16-mbtouc-safe.
69046         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69047         * lib/unistr.h: Update.
69048         * lib/unistr/u16-to-u8.c: Update.
69049         * modules/unistr/u16-to-u8: Update.
69050         * lib/unistr/u16-to-u32.c: Update.
69051         * modules/unistr/u16-to-u32: Update.
69052
69053 2007-01-27  Bruno Haible  <bruno@clisp.org>
69054
69055         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69056         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69057         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69058         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69059         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69060         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69061         modules/unistr/u8-mbtouc.
69062         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69063         * lib/unistr.h: Update.
69064         * lib/striconveh.c: Update.
69065         * modules/striconveh: Update.
69066         * lib/linebreak.c: Update.
69067         * modules/linebreak: Update.
69068         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69069         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69070         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69071         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69072         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69073         * lib/unistr.h: Update.
69074         * lib/striconveh.c: Update.
69075         * modules/striconveh: Update.
69076         * lib/unistr/u8-to-u16.c: Update.
69077         * modules/unistr/u8-to-u16: Update.
69078         * lib/unistr/u8-to-u32.c: Update.
69079         * modules/unistr/u8-to-u32: Update.
69080
69081 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69082
69083         Sync from Libtool.
69084         * lib/argz.c: Do not include strings.h nor memory.h, include
69085         string.h unconditionally.  Patch by Simon Josefsson.
69086
69087 2007-01-27  Bruno Haible  <bruno@clisp.org>
69088
69089         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69090         from gl_HEADER_STRING_H_BODY.
69091         (gl_HEADER_STRING_H_BODY): Require it.
69092         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69093         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69094         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69095         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69096         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69097         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69098         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69099         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69100         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69101         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69102         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69103         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69104         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69105         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69106         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69107
69108 2007-01-27  Bruno Haible  <bruno@clisp.org>
69109
69110         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69111         check_PROGRAMS into noinst_PROGRAMS.
69112         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69113         check_PROGRAMS in this case.
69114         (func_import): Set for_test to false.
69115         (func_create_testdir): Set for_test to true.
69116
69117 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69118             Bruno Haible  <bruno@clisp.org>
69119
69120         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69121         (Depends-on): Add string.
69122         (Includes): Use <string.h> instead of strcasestr.h.
69123         * modules/string (Makefile.am): Also substitute the value of
69124         REPLACE_STRCASESTR.
69125         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69126         assume strcasestr is declared in <string.h> not <strings.h>. Also
69127         set REPLACE_STRCASESTR.
69128         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69129         REPLACE_STRCASESTR.
69130         * lib/strcasestr.h: Remove file.
69131         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69132         * lib/string_.h (strcasestr): New declaration.
69133
69134 2007-01-27  Bruno Haible  <bruno@clisp.org>
69135
69136         * lib/string_.h: Use 'extern'.
69137
69138 2007-01-27  Jim Meyering  <jim@meyering.net>
69139
69140         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69141         of set-but-not-used local, "q".
69142
69143         * lib/mempcpy.c: Include <config.h> before <string.h>.
69144         This fixes a compilation error on HP-UX, due to the system's
69145         "restrict"-using mempcpy prototype.
69146
69147 2007-01-26  Bruno Haible  <bruno@clisp.org>
69148
69149         Small optimization.
69150         * lib/javacomp.c: Include c-strstr.h.
69151          (is_envjavac_gcj): Use c_strstr instead of strstr.
69152         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69153
69154 2007-01-26  Bruno Haible  <bruno@clisp.org>
69155
69156         * MODULES.html.sh (Unicode string functions): Add the new modules.
69157
69158         * modules/uniconv/u32-strconv-to-locale: New file.
69159         * lib/uniconv/u32-strconv-to-locale.c: New file.
69160
69161         * modules/uniconv/u16-strconv-to-locale: New file.
69162         * lib/uniconv/u16-strconv-to-locale.c: New file.
69163
69164         * modules/uniconv/u8-strconv-to-locale: New file.
69165         * lib/uniconv/u8-strconv-to-locale.c: New file.
69166
69167         * modules/uniconv/u32-strconv-from-locale: New file.
69168         * lib/uniconv/u32-strconv-from-locale.c: New file.
69169
69170         * modules/uniconv/u16-strconv-from-locale: New file.
69171         * lib/uniconv/u16-strconv-from-locale.c: New file.
69172
69173         * modules/uniconv/u8-strconv-from-locale: New file.
69174         * lib/uniconv/u8-strconv-from-locale.c: New file.
69175
69176         * modules/uniconv/u32-strconv-to-enc: New file.
69177         * lib/uniconv/u32-strconv-to-enc.c: New file.
69178         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69179         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69180
69181         * modules/uniconv/u16-strconv-to-enc: New file.
69182         * lib/uniconv/u16-strconv-to-enc.c: New file.
69183         * lib/uniconv/u-strconv-to-enc.h: New file.
69184         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69185         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69186
69187         * modules/uniconv/u8-strconv-to-enc: New file.
69188         * lib/uniconv/u8-strconv-to-enc.c: New file.
69189         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69190         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69191
69192         * modules/uniconv/u32-strconv-from-enc: New file.
69193         * lib/uniconv/u32-strconv-from-enc.c: New file.
69194         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69195         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69196
69197         * modules/uniconv/u16-strconv-from-enc: New file.
69198         * lib/uniconv/u16-strconv-from-enc.c: New file.
69199         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69200         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69201
69202         * modules/uniconv/u8-strconv-from-enc: New file.
69203         * lib/uniconv/u8-strconv-from-enc.c: New file.
69204         * lib/uniconv/u-strconv-from-enc.h: New file.
69205         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69206         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69207
69208         * modules/uniconv/u32-conv-from-enc: New file.
69209         * lib/uniconv/u32-conv-from-enc.c: New file.
69210         * modules/uniconv/u32-conv-from-enc-tests: New file.
69211         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69212
69213         * modules/uniconv/u16-conv-from-enc: New file.
69214         * lib/uniconv/u16-conv-from-enc.c: New file.
69215         * lib/uniconv/u-conv-from-enc.h: New file.
69216         * modules/uniconv/u16-conv-from-enc-tests: New file.
69217         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69218
69219         * modules/uniconv/u8-conv-from-enc: New file.
69220         * lib/uniconv/u8-conv-from-enc.c: New file.
69221         * modules/uniconv/u8-conv-from-enc-tests: New file.
69222         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69223
69224         * modules/uniconv/base: New file.
69225         * lib/uniconv.h: New file.
69226
69227 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69228
69229         * doc/gnulib-tool.texi (Initial import): Update to match current
69230         behavior with strdup module.
69231         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69232         * lib/memmem.h: Remove; all uses removed.  This is now done
69233         by <string.h>.
69234         * lib/mempcpy.h: Likewise.
69235         * lib/memrchr.h: Likewise.
69236         * lib/stpcpy.h: Likewise.
69237         * lib/stpncpy.h: Likewise.
69238         * lib/strcase.h: Likewise.
69239         * lib/strchrnul.h: Likewise.
69240         * lib/strdup.h: Likewise.
69241         * lib/strndup.h: Likewise.
69242         * lib/strnlen.h: Likewise.
69243         * lib/strpbrk.h: Likewise.
69244         * lib/strsep.h: Likewise.
69245         * lib/strstr.h: Likewise.
69246         * lib/strtok_r.h: Likewise.
69247         * lib/string_.h: New file.
69248         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69249         Rely on <string.h> instead.
69250         * lib/canon-host.c: Likewise.
69251         * lib/chdir-long.c: Likewise.
69252         * lib/concatpath.c: Likewise.
69253         * lib/exclude.c: Likewise.
69254         * lib/fchdir.c: Likewise.
69255         * lib/getaddrinfo.c: Likewise.
69256         * lib/getcwd.c: Likewise.
69257         * lib/getsubopt.c: Likewise.
69258         * lib/glob.c: Likewise.
69259         * lib/hard-locale.c: Likewise.
69260         * lib/iconvme.c: Likewise.
69261         * lib/javacomp.c: Likewise.
69262         * lib/mempcpy.c: Likewise.
69263         * lib/memrchr.c: Likewise.
69264         * lib/regex_internal.h: Likewise.
69265         * lib/stpncpy.c: Likewise.
69266         * lib/strcasecmp.c: Likewise.
69267         * lib/strchrnul.c: Likewise.
69268         * lib/strdup.c: Likewise.
69269         * lib/striconv.c: Likewise.
69270         * lib/striconveh.c: Likewise.
69271         * lib/striconveha.c: Likewise.
69272         * lib/strncasecmp.c: Likewise.
69273         * lib/strndup.c: Likewise.
69274         * lib/strnlen.c: Likewise.
69275         * lib/strsep.c: Likewise.
69276         * lib/strstr.c: Likewise.
69277         * lib/strtok_r.c: Likewise.
69278         * lib/userspec.c: Likewise.
69279         * lib/w32spawn.h: Likewise.
69280         * lib/xstrndup.c: Likewise.
69281         * lib/mountlist.c (strstr): Remove decl.
69282         * m4/string_h.m4: New file.
69283         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69284         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69285         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69286         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69287         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69288         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69289         Set REPLACE_STRCASECMP if necessary.
69290         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69291         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69292         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69293         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69294         HAVE_DECL_STRDUP if necessary.
69295         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69296         since gl_FUNC_STRNDUP does that now.
69297         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69298         Check for decl here...
69299         (gl_PREREQ_STRNLEN): ... not here.
69300         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69301         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69302         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69303         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69304         necessary.
69305         * modules/string: New file.
69306         * modules/memmem (Files): Remove special-purpose include file.
69307         (Depends-on): Add string.
69308         (Include): Include <string.h>, not the removed file.
69309         * modules/mempcpy: Likewise.
69310         * modules/memrchr: Likewise.
69311         * modules/stpcpy: Likewise.
69312         * modules/stpncpy: Likewise.
69313         * modules/strcase: Likewise.
69314         * modules/strchrnul: Likewise.
69315         * modules/strdup: Likewise.
69316         * modules/strndup: Likewise.
69317         * modules/strnlen: Likewise.
69318         * modules/strpbrk: Likewise.
69319         * modules/strsep: Likewise.
69320         * modules/strstr: Likewise.
69321         * modules/strtok_r: Likewise.
69322         * tests/test-dirname.c: Don't include "strdup.h", since
69323         <string.h> now suffices.
69324         * tests/test-memmem.c: Don't include "memmem.h", since
69325         <string.h> now suffices.
69326
69327 2007-01-25  Bruno Haible  <bruno@clisp.org>
69328
69329         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
69330         *resultp is 0.
69331
69332         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
69333         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
69334         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
69335         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
69336
69337         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
69338         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
69339         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
69340         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
69341         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
69342         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
69343
69344 2007-01-24  Bruno Haible  <bruno@clisp.org>
69345
69346         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
69347         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
69348         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
69349         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
69350         gl_FUNC_FTS_CORE.
69351         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
69352         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
69353         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69354         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
69355         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
69356         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
69357         gl_FUNC_FCHOWNAT.
69358         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69359         gl_FUNC_STRFTIME.
69360         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69361         Reported by Ralf Wildenhues.
69362
69363 2007-01-24  Bruno Haible  <bruno@clisp.org>
69364
69365         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69366         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69367         gl_GETADDRINFO.
69368         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69369         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69370         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69371
69372 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69373
69374         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69375         Don't use 'exit'; just return from 'main'.
69376         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69377
69378         * lib/fnmatch_.h: Readjust white space and comments to match
69379         glibc, to avoid spurious diffs.
69380
69381 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69382
69383         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69384         2004-12-01 change by Jakub Jelinek, since this code won't compile
69385         if !LIBC.  Problem reported by Bob Proulx.
69386
69387 2007-01-23  Bruno Haible  <bruno@clisp.org>
69388
69389         * lib/striconveh.c: Include c-strcaseeq.h.
69390         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69391         * modules/striconveh (Depends-on): Add c-strcaseeq.
69392
69393 2007-01-23  Bruno Haible  <bruno@clisp.org>
69394
69395         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
69396
69397         * modules/c-strcaseeq: New file.
69398         * lib/c-strcaseeq.h: New file.
69399
69400         * modules/streq: New file.
69401         * lib/streq.h: New file.
69402
69403 2007-01-23  Bruno Haible  <bruno@clisp.org>
69404
69405         * modules/striconveha-tests: New file.
69406         * tests/test-striconveha.c: New file.
69407
69408         * lib/striconveha.h: Include <stdbool.h>.
69409         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
69410         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
69411         (mem_iconveha_notranslit): Renamed from mem_iconveha.
69412         (mem_iconveha): New function.
69413         (str_iconveha_notranslit): Renamed from str_iconveha.
69414         (str_iconveha): New function.
69415         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
69416         c-strcase.
69417
69418 2007-01-23  Bruno Haible  <bruno@clisp.org>
69419
69420         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
69421         encodings without forgiving before trying any encoding with handler.
69422         (str_iconveha): Try all encodings without forgiving before trying any
69423         encoding with handler.
69424
69425 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69426
69427         Import the following changes from libc.
69428
69429         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69430
69431         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
69432
69433         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69434
69435         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
69436         normal_bracket label.
69437
69438         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
69439
69440         [BZ #361]
69441         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
69442         to normal_bracket after fetching the next character.
69443
69444 2007-01-22  Bruno Haible  <bruno@clisp.org>
69445
69446         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
69447         argument.
69448         * lib/striconveh.c (iconv_carefully_1): New function.
69449         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
69450         argument.
69451         (str_cd_iconveh): Update.
69452         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
69453         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
69454         * tests/test-striconveh.c (MAGIC): New macro.
69455         (new_offsets): New function.
69456         (main): Test call with and without offsets.
69457
69458 2007-01-22  Bruno Haible  <bruno@clisp.org>
69459
69460         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
69461         * modules/sys_select (Makefile.am): Likewise.
69462         * modules/sys_socket (Makefile.am): Likewise.
69463         * modules/sys_time (Makefile.am): Likewise.
69464
69465 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69466
69467         * modules/gettimeofday (License): Change from GPL to LGPL, since
69468         gettimeofday is a library function.
69469
69470 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69471
69472         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
69473
69474 2007-01-21  Bruno Haible  <bruno@clisp.org>
69475
69476         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
69477
69478 2007-01-21  Bruno Haible  <bruno@clisp.org>
69479
69480         * modules/striconveha: New file.
69481         * lib/striconveha.h: New file.
69482         * lib/striconveha.c: New file.
69483         * MODULES.html.sh (Internationalization functions): Add striconveha.
69484         * lib/striconv.c (str_iconv): Optimize the case of an empty input
69485         string.
69486         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
69487
69488 2007-01-21  Bruno Haible  <bruno@clisp.org>
69489
69490         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
69491         * lib/striconveh.c (str_iconveh): Likewise.
69492
69493 2007-01-21  Bruno Haible  <bruno@clisp.org>
69494
69495         * lib/striconveh.h (mem_iconveh): New declaration.
69496         * lib/striconveh.c (mem_iconveh): New function.
69497         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
69498
69499 2007-01-21  Bruno Haible  <bruno@clisp.org>
69500
69501         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
69502
69503         * lib/striconveh.h (mem_cd_iconveh): Change specification.
69504         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69505         original result buffer.
69506         (str_cd_iconveh): Update.
69507         * tests/test-striconveh.c (main): Update.
69508
69509         * lib/striconv.h (mem_cd_iconv): Change specification.
69510         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69511         result buffer.
69512         (str_cd_iconv): Update.
69513         * tests/test-striconv.c (main): Update.
69514
69515 2007-01-21  Bruno Haible  <bruno@clisp.org>
69516
69517         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69518
69519 2007-01-20  Jim Meyering  <jim@meyering.net>
69520
69521         * lib/userspec.c (parse_with_separator): If a user or group string
69522         starts with "+", skip the corresponding name-to-ID look-up, since
69523         such a look-up must fail: user and group names may not include "+".
69524
69525 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69526
69527         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69528         since we now assume the sys_time module.
69529         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69530         check for sys/time.h; no longer needed.
69531         * modules/poll (Depends-on): Depend on sys_time.
69532
69533 2007-01-18  Bruno Haible  <bruno@clisp.org>
69534
69535         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69536         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69537
69538         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69539         gettimeofday.
69540
69541         * tests/test-gettimeofday.c: Include <time.h>.
69542         (dummy): Remove variable.
69543
69544         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69545         gl_HEADER_SYS_TIME_H.
69546         (gl_HEADER_SYS_TIME_H): New macro.
69547
69548         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69549         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69550         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69551         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69552         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69553         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69554         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69555         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69556         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69557         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69558         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69559
69560         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69561         last change; it caused a compilation error when cross-compiling to
69562         Cygwin.
69563
69564 2007-01-18  Jim Meyering  <jim@meyering.net>
69565
69566         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69567         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69568         than the race-prone "test -d sys || mkdir sys".
69569         (configure.ac): Use AC_PROG_MKDIR_P.
69570         * modules/sys_select: Likewise.
69571         * modules/sys_socket: Likewise.
69572         * modules/sys_time: Likewise.
69573
69574 2007-01-18  Eric Blake  <ebb9@byu.net>
69575
69576         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69577         replace gettimeofday.
69578         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69579         name, to avoid infinite recursion.
69580
69581 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69582
69583         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69584         module sys_time.
69585         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69586         assume timespec.h defines struct timeval.
69587         * lib/settime.c: Likewise.
69588         * lib/utimens.c: Likewise.
69589         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69590         since we now assume the gettimeofday module.
69591         * lib/tempname.c (__gen_tempname): Likewise.
69592         * lib/gettimeofday.h: Remove.
69593         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69594         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69595         Include <time.h>, for 'time()'.
69596         (localtime_buffer_addr): Also use this workaround if
69597         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69598         to simplify the uses.  All uses changed.
69599         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69600         that #undef is inside {}, and 'const' follows type name consistently.
69601         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69602         (gettimeofday): Do not use the maximum possible value for
69603         tv->tv_usec, since that might break usages other than ls.c.
69604         Instead, we'll leave ls.c alone.  This undoes today's patch
69605         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69606         we've never observed the problem but might as well keep the
69607         canary.
69608         * lib/nanosleep.c: Include timespec.h first, for interface check.
69609         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69610         now assume the sys_time module.
69611         * lib/tempname.c: Likewise.
69612         * lib/timespec.h: Likewise.
69613         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69614         needed.
69615         * lib/strftime.c: Likewise.
69616         * lib/timespec.h: Likewise.
69617         * lib/posixtm.c: Include posixtm.h first, for interface check.
69618         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69619         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69620         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69621         * lib/sys_time_.h: New file.
69622         * lib/timespec.h (struct timespec): Use long int, not long.
69623         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69624         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69625         Remove obsolescent call to AC_HEADER_TIME.
69626         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69627         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69628         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69629         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69630         Likewise.
69631         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69632         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69633         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69634         into the sys_time module.  Check for gettimeofday just once.
69635         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69636         for gettimeofday signature to just check the signature.  Merely
69637         compile it, since linking doesn't test signature.  Improve test for
69638         whether gettimeofday.o is actually needed.
69639         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69640         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69641         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69642         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69643         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69644         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69645         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69646         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69647         than worrying about sys/time.h.
69648         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69649         Don't bother worrying about TIME_WITH_SYS_TIME.
69650         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69651         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69652         * m4/sys_time_h.m4: New file.
69653         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69654         Don't include sys/time.h.  Return from main rather than exiting.
69655         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69656         all uses changed.
69657         * modules/gethrxtime (Depends-on): Add sys_time.
69658         * modules/gettime (Depends-on): Likewise.
69659         * modules/gettimeofday (Depends-on): Likewise.
69660         * modules/nanosleep (Depends-on): Likewise.
69661         * modules/settime (Depends-on): Likewise.
69662         * modules/tempname (Depends-on): Likewise.
69663         * modules/utimens (Depends-on): Likewise.
69664         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
69665         (Include): Change back to <sys/time.h>.
69666         (Maintainer): Add self.
69667         * modules/sys_time: New file.
69668         * modules/tempname (Depends-on): Add gettimeofday.
69669         * tests/test-gettimeofday.c: Include <sys/time.h>
69670         rather than gettimeofday.h.
69671
69672 2007-01-17  Bruno Haible  <bruno@clisp.org>
69673
69674         * gnulib-tool (func_get_license): Revert last patch. Instead, let
69675         the license default to GPL.
69676         (func_create_testdir): Don't complain if a module is LGPL and its
69677         tests module depends on GPLed modules.
69678
69679 2007-01-17  Bruno Haible  <bruno@clisp.org>
69680
69681         * lib/gettimeofday.c (gettimeofday): Add code for the case
69682         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
69683         maximum possible value for tv->tv_usec, rather than the minimum one.
69684
69685 2005-10-08  Martin Lambers  <marlam@marlam.de>
69686 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69687 2007-01-16  Bruno Haible  <bruno@clisp.org>
69688
69689         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
69690         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
69691         gl_FUNC_GETTIMEOFDAY.
69692         (Include): Add gettimeofday.h.
69693         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
69694         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
69695         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
69696         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
69697         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
69698         * lib/gettimeofday.h: New file.
69699         * lib/gettimeofday.c: Include <sys/timeb.h>.
69700         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
69701         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69702         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
69703         fall back on time().
69704
69705         * tests/test-gettimeofday.c: New file.
69706         * modules/gettimeofday-tests: New file.
69707
69708 2007-01-16  Eric Blake  <ebb9@byu.net>
69709
69710         * modules/fnmatch (Depends-on): Depend on wchar.
69711         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
69712         * m4/fnmatch.m4: Likewise.
69713         * modules/mbchar (Makefile.am): Assume <wchar.h>.
69714         * m4/mbchar.m4: Likewise.
69715         * modules/mbswidth (Depends-on): Depend on wchar.
69716         * lib/mbswidth.c: Assume <wchar.h>.
69717         * m4/mbswidth.m4: Likewise.
69718         * modules/quotearg (Depends-on): Depend on wchar.
69719         * lib/quotearg.c: Assume <wchar.h>.
69720         * m4/quotearg.m4: Likewise.
69721         * modules/regex (Depends-on): Depend on wchar.
69722         * lib/regex_internal.h: Assume <wchar.h>.
69723         * m4/regex.m4: Likewise.
69724         * modules/stdint (Depends-on): Depend on wchar.
69725         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
69726         * m4/stdint.m4: Likewise.
69727         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
69728         * modules/strftime (Depends-on): Depend on wchar.
69729         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
69730         * modules/strtol (Depends-on): Depend on wchar.
69731         * lib/strtol.c: Assume <wchar.h>.
69732         * modules/wcwidth (Depends-on): Depend on wchar.
69733         * lib/wcwidth.h: Assume <wchar.h>.
69734         * m4/wcwidth.m4: Likewise.
69735
69736 2007-01-16  Bruno Haible  <bruno@clisp.org>
69737
69738         * modules/csharpexec-script: New, created from...
69739         * modules/csharpexec: ... this.
69740
69741 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
69742
69743         * modules/javaexec-script: New, created from...
69744         * modules/javaexec: ... this.
69745
69746 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69747
69748         * modules/poll (Dependencies): Add sys_select.
69749
69750 2007-01-15  Jim Meyering  <jim@meyering.net>
69751
69752         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
69753         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
69754         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
69755         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
69756
69757 2007-01-15  Bruno Haible  <bruno@clisp.org>
69758
69759         * modules/striconveh: New file.
69760         * lib/striconveh.h: New file.
69761         * lib/striconveh.c: New file.
69762         * MODULES.html.sh (Internationalization functions): Add striconveh.
69763
69764         * modules/striconveh-tests: New file.
69765         * tests/test-striconveh.c: New file.
69766
69767 2007-01-15  Bruno Haible  <bruno@clisp.org>
69768
69769         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
69770         not from GNU libiconv or GNU libc.
69771
69772 2007-01-15  Bruno Haible  <bruno@clisp.org>
69773
69774         * doc/gnulib-intro.texi (Copyright): Explain the different license
69775         terms for module descriptions, autoconf macros, tests, documentation.
69776
69777 2007-01-14  Bruno Haible  <bruno@clisp.org>
69778
69779         * modules/striconv-tests: New file.
69780         * tests/test-striconv.c: New file.
69781
69782 2007-01-14  Bruno Haible  <bruno@clisp.org>
69783
69784         * modules/iconv-tests: New file.
69785         * tests/test-iconv.c: New file.
69786
69787 2007-01-14  Bruno Haible  <bruno@clisp.org>
69788
69789         * gnulib-tool (func_get_license): For test modules, use the license of
69790         the main module.
69791
69792 2007-01-14  Bruno Haible  <bruno@clisp.org>
69793
69794         * modules/iconv (Include): Clarify that <iconv.h> can only be included
69795         if iconv is found to exist.
69796
69797 2007-01-14  Bruno Haible  <bruno@clisp.org>
69798
69799         * modules/c-ctype-tests: New file.
69800         * tests/test-c-ctype.c: New file.
69801
69802 2007-01-14  Bruno Haible  <bruno@clisp.org>
69803
69804         * modules/binary-io-tests: New file.
69805         * tests/test-binary-io.sh: New file.
69806         * tests/test-binary-io.c: New file.
69807
69808 2007-01-14  Bruno Haible  <bruno@clisp.org>
69809
69810         * modules/array-oset-tests: New file.
69811         * tests/test-array_oset.c: New file.
69812
69813 2007-01-14  Bruno Haible  <bruno@clisp.org>
69814
69815         * modules/array-list-tests: New file.
69816         * tests/test-array_list.c: New file.
69817
69818 2007-01-14  Bruno Haible  <bruno@clisp.org>
69819
69820         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
69821         and make.
69822         Reported by Simon Josefsson in
69823         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
69824
69825 2007-01-14  Bruno Haible  <bruno@clisp.org>
69826
69827         * modules/allocsa-tests: New file.
69828         * tests/test-allocsa.c: New file.
69829
69830 2007-01-14  Bruno Haible  <bruno@clisp.org>
69831
69832         * modules/fchdir (Depends-on): Add absolute-header.
69833         * modules/unistd (Depends-on): Likewise.
69834
69835 2006-12-30  Bruno Haible  <bruno@clisp.org>
69836
69837         * modules/fchdir: New file.
69838         * modules/unistd (Files): Add lib/unistd_.h.
69839         (Makefile.am): Generate unistd.h from unistd_.h.
69840         * lib/fchdir.c: New file.
69841         * lib/dirent_.h: New file.
69842         * lib/unistd_.h: New file.
69843         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
69844         * m4/fchdir.m4: New file.
69845         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
69846         (gl_HEADER_UNISTD): Invoke it.
69847         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
69848         function.
69849         * lib/backupfile.c (opendir, closedir): Undefine.
69850         * lib/chown.c (open, close): Undefine.
69851         * lib/clean-temp.c (open, close): Undefine.
69852         * lib/copy-file.c (open, close): Undefine.
69853         * lib/execute.c (open, close): Undefine.
69854         * lib/fsusage.c (open, close): Undefine.
69855         * lib/gc-gnulib.c (open, close): Undefine.
69856         * lib/getcwd.c (opendir, closedir): Undefine.
69857         * lib/glob.c (opendir, closedir): Undefine.
69858         * lib/javacomp.c (open, close): Undefine.
69859         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
69860         * lib/openat-proc.c (open, close): Undefine.
69861         * lib/pagealign_alloc.c (open, close): Undefine.
69862         * lib/pipe.c (open, close): Undefine.
69863         * lib/progreloc.c (open, close): Undefine.
69864         * lib/savedir.c (opendir, closedir): Undefine.
69865         * lib/utime.c (open, close): Undefine.
69866         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
69867
69868 2007-01-10  Bruno Haible  <bruno@clisp.org>
69869
69870         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
69871
69872 2007-01-12  Eric Blake  <ebb9@byu.net>
69873
69874         Provide a robust <wchar.h>.  Further simplifications are now
69875         possible in other modules, but not included here.
69876         * modules/wchar: New module.
69877         * m4/wchar.m4: New file.
69878         * lib/wchar_.h: Likewise.
69879         * modules/mbchar (Depends-on): Depend on wchar, as the first use
69880         of the new module.
69881         * MODULES.html.sh (Extended multibyte and wide character utilities):
69882         New section.
69883
69884 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
69885
69886         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
69887         to a reasonable default for memory allocation.
69888         (xreadlink): Don't allocate a huge buffer, to work around a buggy
69889         file system that reports garbage st_size values for symlinks.
69890         Problem reported by Liyang Hu.
69891
69892 2007-01-11  Simon Josefsson  <simon@josefsson.org>
69893
69894         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
69895         Emacs .#* auto-save files).
69896
69897 2007-01-11  Bruno Haible  <bruno@clisp.org>
69898
69899         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
69900         directory.
69901
69902 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69903
69904         Use @...@ consistently in lib/wctype_.h.
69905         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
69906         on it being set to 1 or 0.
69907         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
69908         go back to AC_SUBSTing it.
69909         * modules/wctype (Makefile.am): Undo previous change.
69910
69911 2007-01-10  Eric Blake  <ebb9@byu.net>
69912
69913         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
69914         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
69915         * modules/wctype (Makefile.am): Likewise.
69916         Reported by Chris McGuire.
69917
69918 2007-01-10  Jim Meyering  <jim@meyering.net>
69919
69920         fts.c: a small readability/maintainability improvement
69921         * lib/fts.c (fts_read): Make this code slightly more readable and
69922         maintainable by hoisting the "sp->fts_cur = p" assignments to
69923         immediately follow the statements that set P.  Derived from
69924         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
69925
69926 2007-01-10  Eric Blake  <ebb9@byu.net>
69927
69928         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
69929         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
69930         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
69931         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
69932         Reported by Chris McGuire.
69933
69934 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69935
69936         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
69937         in sed script.
69938
69939 2007-01-09  Bruno Haible  <bruno@clisp.org>
69940
69941         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
69942         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
69943         variables.
69944         (func_module): Use them.
69945
69946 2007-01-09  Bruno Haible  <bruno@clisp.org>
69947
69948         * modules/unistr/base: New file.
69949         * lib/unistr.h: New file.
69950
69951         * modules/unistr/u8-to-u16: New file.
69952         * lib/unistr/u8-to-u16.c: New file.
69953
69954         * modules/unistr/u8-to-u32: New file.
69955         * lib/unistr/u8-to-u32.c: New file.
69956
69957         * modules/unistr/u16-to-u8: New file.
69958         * lib/unistr/u16-to-u8.c: New file.
69959
69960         * modules/unistr/u16-to-u32: New file.
69961         * lib/unistr/u16-to-u32.c: New file.
69962
69963         * modules/unistr/u32-to-u8: New file.
69964         * lib/unistr/u32-to-u8.c: New file.
69965
69966         * modules/unistr/u32-to-u16: New file.
69967         * lib/unistr/u32-to-u16.c: New file.
69968
69969         * modules/unistr/u8-check: New file.
69970         * modules/unistr/u16-check: New file.
69971         * modules/unistr/u32-check: New file.
69972         * lib/unistr/u8-check.c: New file.
69973         * lib/unistr/u16-check.c: New file.
69974         * lib/unistr/u32-check.c: New file.
69975
69976         * modules/unistr/u8-chr: New file.
69977         * modules/unistr/u16-chr: New file.
69978         * modules/unistr/u32-chr: New file.
69979         * lib/unistr/u8-chr.c: New file.
69980         * lib/unistr/u16-chr.c: New file.
69981         * lib/unistr/u32-chr.c: New file.
69982
69983         * modules/unistr/u8-cmp: New file.
69984         * modules/unistr/u16-cmp: New file.
69985         * modules/unistr/u32-cmp: New file.
69986         * lib/unistr/u8-cmp.c: New file.
69987         * lib/unistr/u16-cmp.c: New file.
69988         * lib/unistr/u32-cmp.c: New file.
69989
69990         * modules/unistr/u8-cpy: New file.
69991         * modules/unistr/u16-cpy: New file.
69992         * modules/unistr/u32-cpy: New file.
69993         * lib/unistr/u8-cpy.c: New file.
69994         * lib/unistr/u16-cpy.c: New file.
69995         * lib/unistr/u32-cpy.c: New file.
69996         * lib/unistr/u-cpy.h: New file.
69997
69998         * modules/unistr/u8-cpy-alloc: New file.
69999         * modules/unistr/u16-cpy-alloc: New file.
70000         * modules/unistr/u32-cpy-alloc: New file.
70001         * lib/unistr/u8-cpy-alloc.c: New file.
70002         * lib/unistr/u16-cpy-alloc.c: New file.
70003         * lib/unistr/u32-cpy-alloc.c: New file.
70004         * lib/unistr/u-cpy-alloc.h: New file.
70005
70006         * modules/unistr/u8-endswith: New file.
70007         * modules/unistr/u16-endswith: New file.
70008         * modules/unistr/u32-endswith: New file.
70009         * lib/unistr/u8-endswith.c: New file.
70010         * lib/unistr/u16-endswith.c: New file.
70011         * lib/unistr/u32-endswith.c: New file.
70012         * lib/unistr/u-endswith.h: New file.
70013
70014         * modules/unistr/u8-mblen: New file.
70015         * modules/unistr/u16-mblen: New file.
70016         * modules/unistr/u32-mblen: New file.
70017         * lib/unistr/u8-mblen.c: New file.
70018         * lib/unistr/u16-mblen.c: New file.
70019         * lib/unistr/u32-mblen.c: New file.
70020
70021         * modules/unistr/u8-mbtouc: New file.
70022         * modules/unistr/u16-mbtouc: New file.
70023         * modules/unistr/u32-mbtouc: New file.
70024         * lib/unistr/u8-mbtouc.c: New file.
70025         * lib/unistr/u16-mbtouc.c: New file.
70026         * lib/unistr/u32-mbtouc.c: New file.
70027
70028         * modules/unistr/u8-mbtouc-safe: New file.
70029         * modules/unistr/u16-mbtouc-safe: New file.
70030         * modules/unistr/u32-mbtouc-safe: New file.
70031         * lib/unistr/u8-mbtouc-safe.c: New file.
70032         * lib/unistr/u16-mbtouc-safe.c: New file.
70033         * lib/unistr/u32-mbtouc-safe.c: New file.
70034
70035         * modules/unistr/u8-move: New file.
70036         * modules/unistr/u16-move: New file.
70037         * modules/unistr/u32-move: New file.
70038         * lib/unistr/u8-move.c: New file.
70039         * lib/unistr/u16-move.c: New file.
70040         * lib/unistr/u32-move.c: New file.
70041         * lib/unistr/u-move.h: New file.
70042
70043         * modules/unistr/u8-next: New file.
70044         * modules/unistr/u16-next: New file.
70045         * modules/unistr/u32-next: New file.
70046         * lib/unistr/u8-next.c: New file.
70047         * lib/unistr/u16-next.c: New file.
70048         * lib/unistr/u32-next.c: New file.
70049
70050         * modules/unistr/u8-prev: New file.
70051         * modules/unistr/u16-prev: New file.
70052         * modules/unistr/u32-prev: New file.
70053         * lib/unistr/u8-prev.c: New file.
70054         * lib/unistr/u16-prev.c: New file.
70055         * lib/unistr/u32-prev.c: New file.
70056
70057         * modules/unistr/u8-set: New file.
70058         * modules/unistr/u16-set: New file.
70059         * modules/unistr/u32-set: New file.
70060         * lib/unistr/u8-set.c: New file.
70061         * lib/unistr/u16-set.c: New file.
70062         * lib/unistr/u32-set.c: New file.
70063         * lib/unistr/u-set.h: New file.
70064
70065         * modules/unistr/u8-startswith: New file.
70066         * modules/unistr/u16-startswith: New file.
70067         * modules/unistr/u32-startswith: New file.
70068         * lib/unistr/u8-startswith.c: New file.
70069         * lib/unistr/u16-startswith.c: New file.
70070         * lib/unistr/u32-startswith.c: New file.
70071         * lib/unistr/u-startswith.h: New file.
70072
70073         * modules/unistr/u8-stpcpy: New file.
70074         * modules/unistr/u16-stpcpy: New file.
70075         * modules/unistr/u32-stpcpy: New file.
70076         * lib/unistr/u8-stpcpy.c: New file.
70077         * lib/unistr/u16-stpcpy.c: New file.
70078         * lib/unistr/u32-stpcpy.c: New file.
70079         * lib/unistr/u-stpcpy.h: New file.
70080
70081         * modules/unistr/u8-stpncpy: New file.
70082         * modules/unistr/u16-stpncpy: New file.
70083         * modules/unistr/u32-stpncpy: New file.
70084         * lib/unistr/u8-stpncpy.c: New file.
70085         * lib/unistr/u16-stpncpy.c: New file.
70086         * lib/unistr/u32-stpncpy.c: New file.
70087         * lib/unistr/u-stpncpy.h: New file.
70088
70089         * modules/unistr/u8-strcat: New file.
70090         * modules/unistr/u16-strcat: New file.
70091         * modules/unistr/u32-strcat: New file.
70092         * lib/unistr/u8-strcat.c: New file.
70093         * lib/unistr/u16-strcat.c: New file.
70094         * lib/unistr/u32-strcat.c: New file.
70095         * lib/unistr/u-strcat.h: New file.
70096
70097         * modules/unistr/u8-strchr: New file.
70098         * modules/unistr/u16-strchr: New file.
70099         * modules/unistr/u32-strchr: New file.
70100         * lib/unistr/u8-strchr.c: New file.
70101         * lib/unistr/u16-strchr.c: New file.
70102         * lib/unistr/u32-strchr.c: New file.
70103
70104         * modules/unistr/u8-strcmp: New file.
70105         * modules/unistr/u16-strcmp: New file.
70106         * modules/unistr/u32-strcmp: New file.
70107         * lib/unistr/u8-strcmp.c: New file.
70108         * lib/unistr/u16-strcmp.c: New file.
70109         * lib/unistr/u32-strcmp.c: New file.
70110
70111         * modules/unistr/u8-strcpy: New file.
70112         * modules/unistr/u16-strcpy: New file.
70113         * modules/unistr/u32-strcpy: New file.
70114         * lib/unistr/u8-strcpy.c: New file.
70115         * lib/unistr/u16-strcpy.c: New file.
70116         * lib/unistr/u32-strcpy.c: New file.
70117         * lib/unistr/u-strcpy.h: New file.
70118
70119         * modules/unistr/u8-strcspn: New file.
70120         * modules/unistr/u16-strcspn: New file.
70121         * modules/unistr/u32-strcspn: New file.
70122         * lib/unistr/u8-strcspn.c: New file.
70123         * lib/unistr/u16-strcspn.c: New file.
70124         * lib/unistr/u32-strcspn.c: New file.
70125         * lib/unistr/u-strcspn.h: New file.
70126
70127         * modules/unistr/u8-strdup: New file.
70128         * modules/unistr/u16-strdup: New file.
70129         * modules/unistr/u32-strdup: New file.
70130         * lib/unistr/u8-strdup.c: New file.
70131         * lib/unistr/u16-strdup.c: New file.
70132         * lib/unistr/u32-strdup.c: New file.
70133         * lib/unistr/u-strdup.h: New file.
70134
70135         * modules/unistr/u8-strlen: New file.
70136         * modules/unistr/u16-strlen: New file.
70137         * modules/unistr/u32-strlen: New file.
70138         * lib/unistr/u8-strlen.c: New file.
70139         * lib/unistr/u16-strlen.c: New file.
70140         * lib/unistr/u32-strlen.c: New file.
70141         * lib/unistr/u-strlen.h: New file.
70142
70143         * modules/unistr/u8-strmblen: New file.
70144         * modules/unistr/u16-strmblen: New file.
70145         * modules/unistr/u32-strmblen: New file.
70146         * lib/unistr/u8-strmblen.c: New file.
70147         * lib/unistr/u16-strmblen.c: New file.
70148         * lib/unistr/u32-strmblen.c: New file.
70149
70150         * modules/unistr/u8-strmbtouc: New file.
70151         * modules/unistr/u16-strmbtouc: New file.
70152         * modules/unistr/u32-strmbtouc: New file.
70153         * lib/unistr/u8-strmbtouc.c: New file.
70154         * lib/unistr/u16-strmbtouc.c: New file.
70155         * lib/unistr/u32-strmbtouc.c: New file.
70156
70157         * modules/unistr/u8-strncat: New file.
70158         * modules/unistr/u16-strncat: New file.
70159         * modules/unistr/u32-strncat: New file.
70160         * lib/unistr/u8-strncat.c: New file.
70161         * lib/unistr/u16-strncat.c: New file.
70162         * lib/unistr/u32-strncat.c: New file.
70163         * lib/unistr/u-strncat.h: New file.
70164
70165         * modules/unistr/u8-strncmp: New file.
70166         * modules/unistr/u16-strncmp: New file.
70167         * modules/unistr/u32-strncmp: New file.
70168         * lib/unistr/u8-strncmp.c: New file.
70169         * lib/unistr/u16-strncmp.c: New file.
70170         * lib/unistr/u32-strncmp.c: New file.
70171
70172         * modules/unistr/u8-strncpy: New file.
70173         * modules/unistr/u16-strncpy: New file.
70174         * modules/unistr/u32-strncpy: New file.
70175         * lib/unistr/u8-strncpy.c: New file.
70176         * lib/unistr/u16-strncpy.c: New file.
70177         * lib/unistr/u32-strncpy.c: New file.
70178         * lib/unistr/u-strncpy.h: New file.
70179
70180         * modules/unistr/u8-strnlen: New file.
70181         * modules/unistr/u16-strnlen: New file.
70182         * modules/unistr/u32-strnlen: New file.
70183         * lib/unistr/u8-strnlen.c: New file.
70184         * lib/unistr/u16-strnlen.c: New file.
70185         * lib/unistr/u32-strnlen.c: New file.
70186         * lib/unistr/u-strnlen.h: New file.
70187
70188         * modules/unistr/u8-strpbrk: New file.
70189         * modules/unistr/u16-strpbrk: New file.
70190         * modules/unistr/u32-strpbrk: New file.
70191         * lib/unistr/u8-strpbrk.c: New file.
70192         * lib/unistr/u16-strpbrk.c: New file.
70193         * lib/unistr/u32-strpbrk.c: New file.
70194         * lib/unistr/u-strpbrk.h: New file.
70195
70196         * modules/unistr/u8-strrchr: New file.
70197         * modules/unistr/u16-strrchr: New file.
70198         * modules/unistr/u32-strrchr: New file.
70199         * lib/unistr/u8-strrchr.c: New file.
70200         * lib/unistr/u16-strrchr.c: New file.
70201         * lib/unistr/u32-strrchr.c: New file.
70202
70203         * modules/unistr/u8-strspn: New file.
70204         * modules/unistr/u16-strspn: New file.
70205         * modules/unistr/u32-strspn: New file.
70206         * lib/unistr/u8-strspn.c: New file.
70207         * lib/unistr/u16-strspn.c: New file.
70208         * lib/unistr/u32-strspn.c: New file.
70209         * lib/unistr/u-strspn.h: New file.
70210
70211         * modules/unistr/u8-strstr: New file.
70212         * modules/unistr/u16-strstr: New file.
70213         * modules/unistr/u32-strstr: New file.
70214         * lib/unistr/u8-strstr.c: New file.
70215         * lib/unistr/u16-strstr.c: New file.
70216         * lib/unistr/u32-strstr.c: New file.
70217         * lib/unistr/u-strstr.h: New file.
70218
70219         * modules/unistr/u8-strtok: New file.
70220         * modules/unistr/u16-strtok: New file.
70221         * modules/unistr/u32-strtok: New file.
70222         * lib/unistr/u8-strtok.c: New file.
70223         * lib/unistr/u16-strtok.c: New file.
70224         * lib/unistr/u32-strtok.c: New file.
70225         * lib/unistr/u-strtok.h: New file.
70226
70227         * modules/unistr/u8-uctomb: New file.
70228         * modules/unistr/u16-uctomb: New file.
70229         * modules/unistr/u32-uctomb: New file.
70230         * lib/unistr/u8-uctomb.c: New file.
70231         * lib/unistr/u16-uctomb.c: New file.
70232         * lib/unistr/u32-uctomb.c: New file.
70233
70234         * MODULES.html.sh (Unicode string functions): Add the new modules.
70235
70236 2007-01-08  Bruno Haible  <bruno@clisp.org>
70237
70238         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70239         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70240         subdirectories.
70241
70242 2007-01-08  Karl Berry  <karl@gnu.org>
70243
70244         * doc/error.texi: mention that main() fns must set program_name
70245         when progname is used.
70246
70247 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70248
70249         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70250         WCTYPE_H is empty, for the benefit of builds from non-distclean
70251         directories.  Problem reported by Eric Blake in
70252         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70253
70254 2007-01-08  Bruno Haible  <bruno@clisp.org>
70255
70256         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70257         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70258         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70259         PROVIDE_CANONICALIZE_FILENAME_MODE.
70260         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70261
70262 2007-01-08  Bruno Haible  <bruno@clisp.org>
70263
70264         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70265         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70266         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70267         * lib/fts.c: Likewise.
70268         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70269
70270 2006-12-25  Bruno Haible  <bruno@clisp.org>
70271
70272         * modules/utf8-ucs4-safe: New file.
70273         * lib/utf8-ucs4-safe.h: New file.
70274         * lib/unistr/utf8-ucs4-safe.c: New file.
70275
70276         * modules/utf16-ucs4-safe: New file.
70277         * lib/utf16-ucs4-safe.h: New file.
70278         * lib/unistr/utf16-ucs4-safe.c: New file.
70279
70280         * MODULES.html.sh (Unicode string functions): Add the new modules.
70281
70282 2007-01-08  Bruno Haible  <bruno@clisp.org>
70283
70284         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70285         (Depends-on): Add unitypes.
70286         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70287         (u8_mbtouc_aux): Move out to separate file.
70288         (u8_mbtouc): Use ucs4_t, uint8_t types.
70289         * lib/unistr/utf8-ucs4.c: New file.
70290
70291         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70292         (Depends-on): Add unitypes.
70293         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70294         (u16_mbtouc_aux): Move out to separate file.
70295         (u16_mbtouc): Use ucs4_t, uint16_t types.
70296         * lib/unistr/utf16-ucs4.c: New file.
70297
70298         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70299         (Depends-on): Add unitypes.
70300         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70301         (u8_uctomb_aux): Move out to separate file.
70302         (u8_uctomb): Use ucs4_t, uint8_t types.
70303         * lib/unistr/ucs4-utf8.c: New file.
70304
70305         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70306         (Depends-on): Add unitypes.
70307         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70308         (u16_uctomb_aux): Move out to separate file.
70309         (u16_uctomb): Use ucs4_t, uint16_t types.
70310         * lib/unistr/ucs4-utf16.c: New file.
70311
70312 2006-12-25  Bruno Haible  <bruno@clisp.org>
70313
70314         * modules/unitypes: New file.
70315         * lib/unitypes.h: New file.
70316         * MODULES.html.sh (func_all_modules): New section "Unicode string
70317         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70318         this section. Add unitypes.
70319
70320 2007-01-08  Bruno Haible  <bruno@clisp.org>
70321
70322         Avoid variable names that conflict with those from libtool.
70323         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
70324         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
70325         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
70326         library_names_spec to acl_library_names_spec, hardcode_* to
70327         acl_hardcode_*.
70328         Reported by Ralf Wildenhues.
70329
70330 2007-01-08  Bruno Haible  <bruno@clisp.org>
70331
70332         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
70333         definition.
70334         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
70335         definition.
70336         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
70337         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
70338         definition.
70339         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
70340         definition.
70341         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
70342         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
70343         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
70344         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
70345         definition.
70346         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
70347         definition.
70348         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70349         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
70350         GC_USE_<algorithm>.
70351         * lib/gc-libgcrypt.c: Likewise.
70352         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
70353         * modules/gc-arctwo (configure.ac): Likewise.
70354         * modules/gc-des (configure.ac): Likewise.
70355         * modules/gc-hmac-md5 (configure.ac): Likewise.
70356         * modules/gc-hmac-sha1 (configure.ac): Likewise.
70357         * modules/gc-md2 (configure.ac): Likewise.
70358         * modules/gc-md4 (configure.ac): Likewise.
70359         * modules/gc-md5 (configure.ac): Likewise.
70360         * modules/gc-random (configure.ac): Likewise.
70361         * modules/gc-rijndael (configure.ac): Likewise.
70362         * modules/gc-sha1 (configure.ac): Likewise.
70363
70364 2007-01-08  Bruno Haible  <bruno@clisp.org>
70365
70366         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70367         macro definition.
70368         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70369         definition.
70370         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70371         definition.
70372         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70373         * modules/fcntl-safer (configure.ac): Likewise.
70374         * modules/fopen-safer (configure.ac): Likewise.
70375         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70376         GNULIB_FWRITEERROR macro definition.
70377
70378 2007-01-08  Bruno Haible  <bruno@clisp.org>
70379
70380         * m4/gnulib-common.m4: New file.
70381         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70382         (func_get_filelist): Add m4/gnulib-common.m4.
70383
70384 2007-01-08  Bruno Haible  <bruno@clisp.org>
70385
70386         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70387         command.
70388
70389 2007-01-08  Jim Meyering  <jim@meyering.net>
70390
70391         Use a more robust test for a "can't happen" condition.
70392         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70393         narrowed the st_size value.  Presuming the "can't happen" condition
70394         is true, that narrowing could conceivably convert an invalid st_size
70395         value into a valid one.  Instead, use a change based on Matthew
70396         Woehlke's original patch.
70397
70398         Slight readability improvement: use an assert-like macro
70399         in place of literal "abort ()" uses.
70400         * lib/fts.c (fts_assert): Define.
70401         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
70402         Use this macro instead of a bare 'abort'.
70403
70404 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
70405
70406         Don't worry about using IRIX 5.3's wctype.h broken definitions;
70407         simply work around them.
70408         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
70409         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
70410         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
70411         declaring.
70412         Don't bother to define as macros, since the standard doesn't require it.
70413         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
70414         longer worry about IRIX 5.3.
70415         (HAVE_WCTYPE_CTMP_BUG): Remove.
70416
70417 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70418
70419         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
70420         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
70421         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70422         Problems reported by Georg Schwarz for IRIX 5.3.
70423
70424         * gnulib-tool (autoconf_minversion): Take the maximum version number
70425         found, not the minimum.  Problem reported by James Youngman.
70426
70427 2007-01-03  Karl Berry  <karl@gnu.org>
70428
70429         * doc/error.texi: new file, explaining interaction with progname.
70430         * doc/gnulib.texi: include it.  Update copyright.
70431
70432 2007-01-03  Simon Josefsson  <simon@josefsson.org>
70433
70434         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
70435         AC_CANONICAL_HOST, to improve autobuild outputs.
70436
70437 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
70438             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70439
70440         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
70441         sockets, server sockets, and other file descriptors.  Count errors
70442         to compute the return value.  Reorder the code a bit to be easier
70443         to follow.  Don't set event bits that were not requested (except
70444         POLLERR and POLLHUP).
70445
70446 2007-01-01  Bruno Haible  <bruno@clisp.org>
70447
70448         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
70449
70450 2007-01-03  Jim Meyering  <jim@meyering.net>
70451
70452         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
70453
70454 2007-01-02  Bruno Haible  <bruno@clisp.org>
70455
70456         * modules/settime (Include): Require timespec.h.
70457         * modules/nanosleep (Include): Likewise.
70458
70459 2007-01-01  Bruno Haible  <bruno@clisp.org>
70460
70461         * gnulib-tool (func_emit_copyright_notice): Bump year.
70462         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
70463
70464 2007-01-01  Bruno Haible  <bruno@clisp.org>
70465
70466         Improve support for OpenBSD.
70467         * build-aux/config.rpath (libname_spec): Export.
70468         (library_names_spec): New variable. Export.
70469         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
70470         library_names_spec from the config.rpath output. Locate shared library
70471         through the name pattern in library_names_spec.
70472
70473 2007-01-01  Eric Blake  <ebb9@byu.net>
70474
70475         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
70476
70477 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
70478
70479         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
70480         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
70481         assume the C locale, and avoid an "eval" that could cause trouble.
70482         Problem with SORT reported by Bob Proulx.
70483
70484         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
70485         Define.  Trivial patch from Henning Nielsen Lund, originally
70486         sent to bug-grep@gnu.org today.
70487
70488 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
70489
70490         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
70491         struct stat.  Problem reported by Henning Nielsen Lund.
70492         * lib/acl.c: Include acl.h first, to check interface.  Don't
70493         bother to include sys/types.h and sys/stat.h again.
70494
70495 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70496
70497         Import the following change from libc; problem reported by
70498         Sven Verdoolaege.
70499
70500         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
70501
70502         [BZ #1373]
70503         * lib/argp.h: Remove __NTH for __argp_usage inline function.
70504
70505 2006-12-28  Jim Meyering  <jim@meyering.net>
70506
70507         * build-aux/announce-gen: Do not assume that the package
70508         builds any of tar.gz, tar.bz2, and .xdelta files.
70509         Suggestion from Simon Josefsson.
70510
70511 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70512
70513         * modules/announce-gen: New file.
70514
70515 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70516
70517         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70518         handles its gotchas now.
70519         * lib/mbswidth.c: Likewise.
70520         * lib/wcwidth.h: Likewise.
70521         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70522         and iswcntrl; the wctype module does this stuff now.
70523         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70524         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70525         * modules/mbchar (Depends-on): Add wctype.
70526         * modules/mbswidth (Depends-on): Likewise.
70527         * modules/wcwidth (Depends-on): Likewise.
70528
70529 2006-12-27  Eric Blake  <ebb9@byu.net>
70530
70531         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70532         module uses more than what <wctype.h> is required to provide.
70533
70534 2006-12-26  Eric Blake  <ebb9@byu.net>
70535
70536         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70537
70538 2006-12-26  Eric Blake  <ebb9@byu.net>
70539
70540         * modules/absolute-header: New module.
70541         * modules/fcntl (Depends-on): Depend on it.
70542         * modules/inttypes (Depends-on): Likewise.
70543         * modules/stdint (Depends-on): Likewise.
70544         * modules/sys_stat (Depends-on): Likewise.
70545         * modules/wctype (Depends-on): Likewise.
70546         * MODULES.html.sh (Support for building libraries and
70547         executables): Document it.
70548
70549 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70550
70551         * gnulib-tool (SED): Remove, undoing previous change.
70552         The problem was that it broke coreutils on Solaris, because
70553         "sed --posix" leaked into a makefile.
70554         (sed): New alias, if 'alias' and GNU sed.
70555
70556 2006-12-24  Jim Meyering  <jim@meyering.net>
70557
70558         Work around an fchownat bug in glibc-2.4:
70559         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70560         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70561         in spite of the -P option.
70562         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70563         New macros.
70564         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70565         * modules/openat (Files): Add lib/fchownat.c.
70566         * lib/openat.c (fchownat): Don't define here.  Move to...
70567         * lib/fchownat.c: ...this new file.
70568
70569 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70570
70571         Fix bug reported by Bruno Haible in
70572         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70573         where quotearg.c didn't compile on Mac OS X 10.2 because it
70574         lacks <wchar.h> and wint_t.
70575         * lib/wctype_.h (__wctype_wint_t): New type.
70576         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70577         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70578         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70579         Arg is now of type __wctype_wint_t, not wint_t.
70580         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70581         substitute HAVE_WINT_T.
70582         * modules/wctype (Files): Add m4/wint_t.m4.
70583         (wctype.h): Substitute HAVE_WINT_T.
70584
70585 2006-12-23  Bruno Haible  <bruno@clisp.org>
70586
70587         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70588
70589 2006-12-23  Bruno Haible  <bruno@clisp.org>
70590
70591         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70592         S_ISLNK.
70593         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70594         mingw.
70595
70596 2006-12-22  Bruno Haible  <bruno@clisp.org>
70597
70598         * lib/copy-file.c: Include acl.h.
70599         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70600         Close the file descriptors only after being done with copy_acl.
70601         * modules/copy-file (Depends-on): Add acl.
70602
70603 2006-12-22  Bruno Haible  <bruno@clisp.org>
70604
70605         * gnulib-tool (SED): New variable.
70606         Use $SED instead of sed everywhere.
70607
70608 2006-12-22  Bruno Haible  <bruno@clisp.org>
70609
70610         * modules/no-c++: New file.
70611         * m4/no-c++.m4: New file.
70612         * MODULES.html.sh (Support for building libraries and executables):
70613         Add no-c++.
70614
70615 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70616
70617         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70618         Include <limits.h>, and use its INT_MAX to rewrite the
70619         j loop so that it does not overflow 'int'.  Problem reported by
70620         Ralf Wildenhues in
70621         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70622         Play it safe by shifting left by 1 rather than multiplying by 2,
70623         as GCC is less likely to optimize this away when the value
70624         is signed (when it assumes overflow leads to undefined behavior).
70625         Also, don't assume time_t uses two's complement.
70626
70627 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70628
70629         * MODULES.html.sh: New module wctype.
70630         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70631         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70632         <wctype.h>, since the new wctype module should fix this.
70633         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70634         the wctype module should arrange for it.
70635         * lib/regex_internal.h: Likewise.
70636         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70637         since the wctype module should handle this now.
70638         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70639         * modules/fnmatch (Depends-on): Add wctype.
70640         * modules/quotearg (Depends-on): Likewise.
70641         * modules/regex (Depends-on): Likewise.
70642
70643 2006-12-19  Bruno Haible  <bruno@clisp.org>
70644
70645         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70646         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70647
70648 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70649
70650         * modules/savewd (Depends-on): Fix dependency on fcntl.
70651
70652 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70653
70654         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70655         conforms to C99, rather than relying on the user's environment
70656         setting of STDINT_H.
70657
70658 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70659         and Eric Blake  <ebb9@byu.net>
70660
70661         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
70662         This is more consistent with the other defines here.
70663         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
70664         Port to z/OS.  Problem reported by Paul Gilmartin.
70665         Change local vars to use gl_ prefix rather than ac_.
70666         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
70667         with other defines.
70668         * modules/double-slash-root: New module.
70669         * modules/dirname (Files): Remove m4/double-slash-root.m4.
70670         (Depends-on): Add double-slash-root.
70671         * MODULES.html.sh (File system functions): Mention new module.
70672
70673 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
70674
70675         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
70676         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
70677         This is for the benefit of gzip, which doesn't do i18n.
70678
70679 2006-12-12  Jim Meyering  <jim@meyering.net>
70680
70681         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
70682         Reported by Andreas Schwab <schwab@suse.de>.
70683
70684 2006-12-12  Bruno Haible  <bruno@clisp.org>
70685
70686         Merge these changes.
70687         2006-09-05  Bruno Haible  <bruno@clisp.org>
70688         * lib/iconvme.c (iconv_string): No need to save and restore errno when
70689         iconv_alloc succeeded.
70690         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
70691         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
70692         test for " && dest " at the end - dest is always != NULL there. Call
70693         iconv with 4xNULL arguments initially, to reset the state. Call iconv
70694         with 2xNULL arguments, also to flush the state storage. Handle the
70695         IRIX iconv behaviour. Realloc the final result, to throw away unused
70696         memory.
70697
70698 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
70699
70700         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
70701         and fchmodat unconditionally, since glibc 2.4 has them.
70702         Problem reported by Arkadiusz Miskiewicz.
70703
70704 2006-12-10  Bruno Haible  <bruno@clisp.org>
70705
70706         * gnulib-tool (func_import): Show the include files only for those
70707         modules that are copied and specified.
70708         Reported by Karl Berry.
70709
70710 2006-12-08  Jim Meyering  <jim@meyering.net>
70711
70712         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
70713         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
70714
70715         * build-aux/announce-gen: Add two new options, both optional:
70716         --bootstrap-tools=TOOL_LIST
70717               a comma-separated list of tools, e.g.,
70718               autoconf,automake,bison,gnulib
70719         --gnulib-snapshot-date=DATE
70720               if gnulib is in the bootstrap tool list,
70721               then report this as the snapshot date.
70722               If not specified, use the current date/time.
70723               If you specify a date here, be sure it's UTC.
70724
70725 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70726
70727         * tests/test-argp-2.sh: Fix test to match actual output.
70728         (func_compare): Fix sed script to be portable.
70729
70730 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
70731
70732         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
70733         workaround for this case.  It is not autoconfigured now; offhand
70734         it's hard to see how to autoconfigure it.
70735
70736 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
70737
70738         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
70739         a directory that is about to be chowned.  Such a directory's
70740         initial file permissions should permit the owner only and this
70741         should not be changed until after the chown, since the group and
70742         other bits would be incorrect if they granted permission before
70743         the chown.
70744
70745         Fix porting problem for iswctype reported by Georg Schwarz in:
70746         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
70747         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
70748         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
70749         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
70750         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70751
70752 2006-12-03  Jim Meyering  <jim@meyering.net>
70753
70754         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
70755         p->fts_statp may not yet be defined.
70756         (fts_read): Instead, set it in the caller, once p->fts_statp is
70757         sure to be defined, and corresponds to a top-level directory.
70758         This bug made du -x fail.  Here's the coreutils test case:
70759         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
70760         Reported by Mike Frysinger.
70761
70762 2006-12-01  Jim Meyering  <jim@meyering.net>
70763
70764         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
70765         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
70766         Reported by Simon Josefsson.
70767
70768 2006-11-30  Jim Meyering  <jim@meyering.net>
70769
70770         * m4/warning.m4: Use the all-permissive copyright notice
70771         recommended by RMS (rather than LGPL).
70772         * m4/vararrays.m4: Likewise.
70773         * m4/flexmember.m4: Likewise.
70774
70775 2006-11-29  Bruno Haible  <bruno@clisp.org>
70776
70777         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70778         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
70779         using +=.
70780         Reported by Simon Josefsson <simon@josefsson.org>.
70781
70782 2006-11-28  James Youngman <jay@gnu.org>
70783
70784         * README: Advise users that they might find the bug-gnulib@gnu.org
70785         and autotools-announce@gnu.org mailing lists useful.
70786
70787 2006-11-28  Bruno Haible  <bruno@clisp.org>
70788
70789         * m4/ptrdiff_max.m4: Remove file.
70790
70791 2006-11-21  Bruno Haible  <bruno@clisp.org>
70792
70793         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
70794         _AC_COMPUTE_INT.
70795         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70796         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
70797         _AC_COMPUTE_INT.
70798         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70799         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
70800         _AC_COMPUTE_INT.
70801         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70802
70803 2006-11-28  Jim Meyering  <jim@meyering.net>
70804
70805         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
70806         warning from "gcc -Wshadow" about shadowing the builtin.
70807
70808 2006-11-27  Bruno Haible  <bruno@clisp.org>
70809
70810         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
70811         _AC_COMPUTE_INT.
70812         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70813
70814 2006-11-27  Bruno Haible  <bruno@clisp.org>
70815             Paul Eggert  <eggert@cs.ucla.edu>
70816
70817         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
70818
70819 2006-11-26  Bruno Haible  <bruno@clisp.org>
70820
70821         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70822         noinst_LTLIBRARIES.
70823
70824 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70825             Bruno Haible  <bruno@clisp.org>
70826
70827         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
70828         if compiling with "gcc -ansi".
70829
70830 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70831
70832         Fix some incompatibilities with gcc -ansi -pedantic.
70833         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
70834         if compiling pedantically with GCC, unless it's C99 or later.
70835         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
70836         it mishandles gcc -ansi -pedantic as well.
70837         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
70838         if gcc -pedantic.
70839         * lib/regexec.c (check_node_accept_bytes): Don't use auto
70840         initializers for struct if -pedantic, unless it's C99 or later.
70841
70842 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
70843
70844         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
70845         Don't close an fd more than once. Identical atimes indicate
70846         success, not failure.
70847
70848 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
70849
70850         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
70851
70852 2006-11-23  Jim Meyering  <jim@meyering.net>
70853
70854         * build-aux/announce-gen: New file.  From coreutils.
70855
70856 2006-11-22  Jim Meyering  <jim@meyering.net>
70857
70858         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
70859         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
70860         (fts_read): Use a temporary to narrow the overused st_size member
70861         before using it in a switch statement.  Reported by Matthew Woehlke.
70862
70863         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
70864         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70865
70866 2006-11-20  Bruno Haible  <bruno@clisp.org>
70867
70868         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
70869         changequote instead of pairs of brackets.
70870         Reported by Andreas Schwab <schwab@suse.de>.
70871
70872 2006-11-21  Jim Meyering  <jim@meyering.net>
70873
70874         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
70875         so as to remain compatible with older compilers.
70876         Patch from Michael Deutschmann.
70877
70878 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70879
70880         * MODULES.html.sh (File system functions): Add openat.
70881
70882         * lib/openat.h (rpl_fstatat): New macro, if
70883         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
70884         (fstatat): Define to rpl_fstatat under the same conditions,
70885         unless COMPILING_FSTATAT.
70886         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
70887         seems to have the bug.
70888         * lib/fstatat.c: New file.
70889         * modules/openat (Files): Add it.
70890
70891 2006-11-20  Bruno Haible  <bruno@clisp.org>
70892
70893         * Makefile: New file.
70894
70895 2006-11-20  Jim Meyering  <jim@meyering.net>
70896
70897         The beginnings of syntax-related checks for gnulib.
70898         * lib/Makefile: New file.
70899         * lib/t-idcache: New script.  Ensure that the two halves of
70900         idcache.c stay in sync.
70901
70902         * lib/idcache.c: Adjust comments in user- and group- portions to
70903         be more accurate, and to be consistent with one another.
70904
70905 2006-11-20  Jim Meyering  <jim@meyering.net>
70906
70907         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
70908         continue using the flexible array member (thus, this module performs
70909         half as many malloc calls), with the addition that...
70910         (getgroup, getuser): Consistently record a non-match via an empty
70911         "name" string, and map an empty string match to a NULL return value.
70912         * modules/idcache (Depends-on): Re-add flexmember.
70913
70914         * lib/idcache.c (getuser): Remove all uses of the register keyword.
70915         (getuidbyname, getgroup, getgidbyname): Likewise.
70916
70917         Use cleaner syntax: NULL rather than 0.
70918         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
70919
70920 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70921
70922         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
70923         It mishandled the case where the group was missing.
70924         Problem reported by Greg Schafer.
70925         * modules/idcache: Likewise.
70926
70927 2006-11-18  Jim Meyering  <jim@meyering.net>
70928
70929         * check-module (%exempt_header): Add exception for some
70930         conditionally-included headers.
70931
70932         * modules/i-ring (Depends-on): Add verify.
70933         (License): Change to LGPL.
70934
70935 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70936
70937         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
70938         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
70939         and inttostr.h.  Use snprintf rather than uinttostr, so that
70940         LGPLed code doesn't depend on GPLed.
70941
70942 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70943
70944         * modules/inline (License): Change from GPL to LGPL.
70945
70946 2006-11-17  Jim Meyering  <jim@meyering.net>
70947
70948         * modules/d-type (License): Switch to LGPL.
70949
70950 2006-11-15  Bruno Haible  <bruno@clisp.org>
70951
70952         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
70953
70954 2006-11-15  Eric Blake  <ebb9@byu.net>
70955
70956         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
70957         the module dependency.
70958
70959 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70960             Bruno Haible  <bruno@clisp.org>
70961
70962         * gnulib-tool (func_create_testdir): Add license consistency check.
70963
70964 2006-11-15  Eric Blake  <ebb9@byu.net>
70965
70966         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
70967         random "(cached)" in configure output.
70968
70969 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70970
70971         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
70972         test for conforming inttypes.h is both announced and cached.
70973
70974         * MODULES.html.sh (seen_modules, seen_files): New variables.
70975         (func_module): Rewrite to use a few less gnulib-tool and sed
70976         invocations.  Avoid a couple of quadratic algorithms for ...
70977         (missed_modules, missed_files): ... these, with ...
70978         (func_append, func_tmpdir): ... these new functions, from
70979         gnulib-tool.  Analogously, install traps for cleanup.
70980
70981         * tests/test-gc.c (main): Remove unused variables.
70982         * tests/test-read-file.c: Include stdlib.h, for 'free'.
70983
70984 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
70985
70986         * modules/inttostr (License): Change to LGPL.
70987
70988 2006-11-14  Eric Blake  <ebb9@byu.net>
70989
70990         * modules/tempname (License): Change to LGPL.
70991
70992 2006-11-14  Eric Blake  <ebb9@byu.net>
70993
70994         * doc/functions.texi (Function Portability): *printf functions on
70995         Cygwin now understand all POSIX size specifiers.
70996
70997 2006-11-14  Bruno Haible  <bruno@clisp.org>
70998
70999         * modules/c-ctype (License): Change to LGPL.
71000
71001 2006-11-12  Bruno Haible  <bruno@clisp.org>
71002
71003         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71004         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71005         for GNOME libraries, for which the include files are installed in
71006         subdirectories of $prefix/include.
71007
71008 2006-11-12  Bruno Haible  <bruno@clisp.org>
71009
71010         * m4/lib-link.m4: Require at least autoconf-2.54.
71011         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71012         name to underscores for the --with option.
71013
71014 2006-11-13  Bruno Haible  <bruno@clisp.org>
71015
71016         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71017         the tests directory.
71018         Reported by Ralf Wildenhues.
71019
71020 2006-11-13  Bruno Haible  <bruno@clisp.org>
71021
71022         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71023         (func_emit_initmacro_end): Undo the override here.
71024         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71025         Works around the famous automake error in coreutils.
71026
71027 2006-11-13  Eric Blake  <ebb9@byu.net>
71028
71029         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71030         element, not its node.
71031
71032 2006-11-12  Bruno Haible  <bruno@clisp.org>
71033
71034         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71035         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71036
71037 2006-11-12  Bruno Haible  <bruno@clisp.org>
71038
71039         * gnulib-tool: New option --local-symlink.
71040         (func_usage): Document it.
71041         (lsymbolic): New variable.
71042         (func_import, func_create_testdir): If --symlink was not specified,
71043         test whether --local-symlink was specified and the file comes from
71044         the local_gnulib_dir.
71045
71046 2006-11-12  Bruno Haible  <bruno@clisp.org>
71047
71048         * gnulib-tool (func_ln): New function.
71049         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71050
71051 2006-11-12  Bruno Haible  <bruno@clisp.org>
71052
71053         Finish support for source files in subdirectories.
71054         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71055         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71056         AUTOMAKE_OPTIONS.
71057         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71058
71059 2006-11-12  Bruno Haible  <bruno@clisp.org>
71060
71061         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71062         EXTRA_lib_SOURCES augmentation.
71063         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71064
71065 2006-11-12  Jim Meyering  <jim@meyering.net>
71066
71067         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71068         file descriptors.  This also averts a failure on systems with
71069         native openat support when a traversed directory lacks "x" access.
71070         * lib/fts_.h: Include "i-ring.h"
71071         (struct FTS) [fts_fd_ring]: New member.
71072         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71073         (FCHDIR): Add parentheses.
71074         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71075         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71076         When descending, rather than simply closing the previous
71077         fts_cwd_fd value, push that file descriptor onto the ring.
71078         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71079         (fts_open): Initialize the new fd_ring member.
71080         (fts_close): Clear the ring.
71081         (fts_safe_changedir): When possible, use our new fd_ring to skip
71082         the diropen and fstat and dev/ino comparison that would normally
71083         accompany a virtual `chdir ("..")'.
71084
71085         * modules/fts (Depends-on): Add i-ring.
71086         * modules/i-ring: New module.
71087         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71088         * m4/i-ring.m4: New file.
71089
71090 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71091
71092         * gnulib-tool (func_create_testdir): Fix replacement of
71093         `build-aux' in configure.ac.  Run autotools in gltests
71094         subdirectory.
71095         (func_create_testdir, func_create_megatestdir, test): There is
71096         no need for '--force' in most autotool invocations in a new
71097         tree.  Actually fail the whole test if any of the tools, or the
71098         configure or make stages fail.
71099
71100         Sync from Automake.
71101         * build-aux/gnupload: Revert last change.  Add pointer to upload
71102         instructions of the GNU Maintenance Instructions.
71103         Suggestion by Karl Berry.
71104
71105 2006-11-10  Jim Meyering  <jim@meyering.net>
71106
71107         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71108
71109 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71110
71111         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71112         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71113         (bind_textdomain_codeset) [! ENABLE_NLS]:
71114         Evaluate all the arguments.  That way, callers get compatible behavior
71115         if the arguments have side effects.  Also, it avoids some GCC
71116         diagnostics in some cases; Joel E. Denny reported problems when Bison
71117         was configured with --enable-gcc-warnigs.
71118
71119 2006-11-10  Jim Meyering  <jim@meyering.net>
71120
71121         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71122         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71123         account.
71124
71125 2006-11-10  Jim Meyering  <jim@meyering.net>
71126
71127         * modules/inline: New file/module.
71128         * modules/xalloc (Files): Remove m4/inline.m4.
71129         (Depends-on): Add inline, instead.
71130         * modules/oset: Likewise.
71131         * modules/list: Likewise.
71132
71133 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71134
71135         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71136         Problem reported by Matthew Woehlke.
71137
71138 2006-11-09  Bruno Haible  <bruno@clisp.org>
71139
71140         * lib/tempname.c (gen_tempname): Remove variant that invokes
71141         __gen_tempname.
71142         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71143         __gen_tempname.
71144
71145 2006-11-08  Bruno Haible  <bruno@clisp.org>
71146
71147         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71148         to 'yes' instead of 'cross-compiling'.
71149
71150 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71151
71152         * lib/quotearg.h (quotearg_free): New decl.
71153         * lib/quotearg.c (quotearg_free): New function.
71154         (slot0, nslots, slotvec0, slotvec):
71155         Now file-scope so that quotearg_free can get at them.
71156
71157 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71158
71159         Sync from Automake.
71160         * build-aux/gnupload: Add missing 'gnu' to example URL.
71161         Report by Karl Berry.
71162
71163 2006-11-08  Bruno Haible  <bruno@clisp.org>
71164
71165         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71166         Suggested by Paul Eggert.
71167
71168 2006-11-08  Jim Meyering  <jim@meyering.net>
71169
71170         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71171         It's already included if !_LIBC.
71172         (fts_safe_changedir): Add a comment.
71173
71174 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71175
71176         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71177         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71178         Matthew Woehlke.
71179
71180         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71181         definitions up, to avoid colliding with change below.
71182         (static_inline) [HAVE_INLINE]: New macro.
71183         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71184         Provide extern decls when !HAVE_INLINE.  Do not define unless
71185         static_inline is defined, either by us or by xmalloc.c.  Use
71186         static_inline rather than static inline.
71187         (XCALLOC): Optimize sizeof(T) = 1 case.
71188         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71189
71190 2006-11-07  Bruno Haible  <bruno@clisp.org>
71191
71192         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71193         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71194         AC_C_INLINE.
71195         * modules/xalloc (Files): Add m4/inline.m4.
71196
71197 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71198
71199         * README: Fix typo.
71200         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71201         (Miscellanous Notes): ...from this.
71202
71203 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71204
71205         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71206         Mention that offsetof should be used instead of sizeof.
71207         From Bruno Haible.
71208
71209 2006-11-07  Bruno Haible  <bruno@clisp.org>
71210
71211         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71212
71213 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71214
71215         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71216         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71217         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71218         (gl_tree_add_before, gl_tree_add_after):
71219         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71220         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71221         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71222         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71223         (gl_linked_add_after, gl_linked_add_at): Likewise.
71224         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71225         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71226         (gl_tree_add_before, gl_tree_add_after): Likewise.
71227         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71228         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71229         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71230
71231 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71232
71233         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71234
71235 2006-11-06  Bruno Haible  <bruno@clisp.org>
71236
71237         * m4/inline.m4: New file.
71238         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71239         * modules/list (Files): Add m4/inline.m4.
71240         * modules/oset (Files): Likewise.
71241
71242 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71243
71244         * lib/idcache.c: Include <stddef.h>, for offsetof.
71245         (struct userid.name): Change from char * to a flexible array member.
71246         All uses changed.
71247         * modules/idcache (Depends-on): Add flexmember.
71248
71249         * MODULES.html.sh (Core language properties): New module flexmember.
71250         * modules/flexmember, m4/flexmember.m4: New files.
71251
71252         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71253         inline functions that are identical with the old xnmalloc_inline,
71254         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71255         that we can avoid some unnecessary integer multiplications and
71256         divisions in the common case where the element size is known at
71257         compile time.
71258         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71259         needed.
71260         (xnboundedmalloc): Remove.
71261         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71262         arguments, for consistency with rest of this header.
71263         (xcharalloc): Rewrite using XNMALLOC.
71264         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71265         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71266         versions have been moved to lib/xalloc.h and renamed to be the
71267         non-*_inline versions.
71268         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71269         and xnrealloc functions, since those functions are now inline and
71270         now call us.
71271         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71272         renaming described above.
71273         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71274         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71275         captures the dependency in AC_C_INLINE.
71276
71277         New module canonicalize-lgpl, proposed by Charles Wilson in
71278         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71279         with a few small changes afterwards.
71280         * MODULES.html.sh (File system functions): New module
71281         canonicalize-lgpl.
71282         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71283         and canonicalize_file_name.
71284         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71285         * modules/canonicalize-lgpl: New files.
71286
71287 2006-11-05  Bruno Haible  <bruno@clisp.org>
71288
71289         * gnulib-tool (func_import, func_create_testdir): Create directories
71290         also for files in subdirectories of lib/.
71291
71292 2006-11-05  Bruno Haible  <bruno@clisp.org>
71293
71294         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71295         ANSI C compliant.
71296
71297 2006-11-03  Bruno Haible  <bruno@clisp.org>
71298
71299         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71300         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71301         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71302         (xnboundedmalloc): New inline function.
71303         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71304         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71305         xmalloc.
71306         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71307         xmalloc.
71308         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71309         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71310         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71311         xmalloc.
71312         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71313         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71314         xmalloc.
71315         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71316         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71317         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71318         xmalloc.
71319         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71320         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
71321         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71322         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
71323         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
71324         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
71325         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
71326
71327 2006-11-03  Bruno Haible  <bruno@clisp.org>
71328
71329         * lib/c-ctype.h [C++]: Define functions without name mangling.
71330         * lib/fwriteerror.h [C++]: Likewise.
71331         * lib/gcd.h [C++]: Likewise.
71332         * lib/linebreak.h [C++]: Likewise.
71333
71334 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71335
71336         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
71337         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
71338         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
71339         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71340         Check for functions and headers just once.
71341         Check for declaration of canonicalize_file_name.
71342         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
71343
71344 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71345
71346         * gnulib-tool (func_import): Fix typo in actioncmd.
71347
71348 2006-11-02  Bruno Haible  <bruno@clisp.org>
71349
71350         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
71351         newline sequence in the Makefile.am snippet as a space, like "make"
71352         does.
71353         Reported by Roger Persson <perrog@gmail.com>.
71354
71355 2006-11-01  Bruno Haible  <bruno@clisp.org>
71356
71357         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71358         already declared in <string.h>.
71359         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71360
71361 2006-11-01  Bruno Haible  <bruno@clisp.org>
71362
71363         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71364         * lib/strcase.h: Include <string.h>.
71365         (strcasecmp): Define to rpl_strcasecmp here.
71366
71367 2006-11-01  Bruno Haible  <bruno@clisp.org>
71368
71369         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71370
71371 2006-11-01  Eric Blake  <ebb9@byu.net>
71372
71373         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71374
71375         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71376
71377 2006-10-29  Bruno Haible  <bruno@clisp.org>
71378
71379         Make it compile in C++ mode.
71380         * lib/full-write.c (full_rw): Add a cast.
71381
71382 2006-11-01  Bruno Haible  <bruno@clisp.org>
71383
71384         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71385         be POSIX compliant.
71386         Reported by Roger Persson <perrog@gmail.com>.
71387
71388 2006-11-01  Eric Blake  <ebb9@byu.net>
71389
71390         * lib/getopt_.h: Fix comments.
71391
71392 2006-10-31  Eric Blake  <ebb9@byu.net>
71393
71394         * modules/tmpdir (Depends-on): Add sys_stat.
71395         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
71396         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
71397         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
71398         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
71399         tempname.
71400
71401 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71402
71403         Avoid some C++ diagnostics reported by Bruno Haible.
71404         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
71405         xmalloc.
71406         (quotearg_alloc): Use xcharalloc rather than xmalloc.
71407         (struct slotvec): Move to top level.
71408         (quotearg_n_options): Rewrite to avoid xmalloc.
71409         * lib/xalloc.h (xcharalloc): New function.
71410         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
71411         [defined __cplusplus]: Add function template that provides result
71412         type propagation.  This part of the change is from Bruno Haible.
71413
71414 2006-10-29  Bruno Haible  <bruno@clisp.org>
71415
71416         Make it compile in C++ mode.
71417         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
71418         * lib/strnlen1.c (strnlen1): Cast memchr result.
71419         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
71420         * lib/clean-temp.c (string_equals, string_hash): Add casts.
71421         (create_temp_dir): Rename local variable 'template'.
71422         (compile_csharp_using_sscli): Add cast.
71423         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
71424         * lib/findprog.c (find_in_path): Likewise.
71425         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
71426         * lib/wait-process.c (register_slave_subprocess): Likewise.
71427
71428 2006-10-22  Bruno Haible  <bruno@clisp.org>
71429
71430         * modules/tsearch: New file.
71431         * lib/tsearch.h: New file.
71432         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
71433         * m4/tsearch.m4: New file.
71434         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
71435
71436 2006-10-29  Eric Blake  <ebb9@byu.net>
71437
71438         * lib/arcfour.c: Assume config.h.
71439         * lib/arctwo.c: Likewise.
71440         * lib/base64.c: Likewise.
71441         * lib/check-version.c: Likewise.
71442         * lib/crc.c: Likewise.
71443         * lib/des.c: Likewise.
71444         * lib/gc-gnulib.c: Likewise.
71445         * lib/gc-libgcrypt.c: Likewise.
71446         * lib/gc-pbkdf2-sha1.c: Likewise.
71447         * lib/getaddrinfo.c: Likewise.
71448         * lib/getdelim.c: Likewise.
71449         * lib/getline.c: Likewise.
71450         * lib/hmac-md5.c: Likewise.
71451         * lib/hmac-sha1.c: Likewise.
71452         * lib/iconvme.c: Likewise.
71453         * lib/md2.c: Likewise.
71454         * lib/md4.c: Likewise.
71455         * lib/memxor.c: Likewise.
71456         * lib/read-file.c: Likewise.
71457         * lib/readline.c: Likewise.
71458         * lib/rijndael-alg-fst.c: Likewise.
71459         * lib/rijndael-api-fst.c: Likewise.
71460         * lib/xgetdomainname.c: Likewise.
71461
71462 2006-10-28  Eric Blake  <ebb9@byu.net>
71463
71464         * lib/xstrndup.c: Assume config.h.
71465
71466 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71467
71468         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
71469         stat-macros.h is now for our own macros, whereas stat_h is for
71470         macros in the <sys/stat.h> name space.
71471         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
71472         (STAT_MACROS_H): Remove.
71473         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
71474         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
71475         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
71476         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
71477         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
71478         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
71479         Move these macros to ...
71480         * lib/stat_.h: here.  Don't include stat-macros.h.
71481         * lib/canonicalize.c: Don't include stat-macros.h.
71482         * lib/chown.c: Likewise.
71483         * lib/euidaccess.c: Likewise.
71484         * lib/file-type.c: Likewise.
71485         * lib/filemode.c: Likewise.
71486         * lib/glob.c: Likewise.
71487         * lib/isapipe.c: Likewise.
71488         * lib/lchown.c: Likewise.
71489         * lib/lstat.c: Likewise.
71490         * lib/mkdir-p.c: Likewise.
71491         * lib/rmdir.c: Likewise.
71492         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
71493         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
71494         unless mkdir isn't declared, to speed up 'configure'.
71495         Always create sys/stat.h, since it's unlikely any real sys/stat.h
71496         would define all the S_* symbols.
71497         * modules/canonicalize (Depends-on):
71498         Depend on sys_stat, not stat-macros.
71499         * modules/chown: Likewise.
71500         * modules/euidaccess: Likewise.
71501         * modules/filemode: Likewise.
71502         * modules/file-type: Likewise.
71503         * modules/glob: Likewise.
71504         * modules/isapipe: Likewise.
71505         * modules/lchown: Likewise.
71506         * modules/lstat: Likewise.
71507         * modules/mkancesdirs: Likewise.
71508         * modules/rmdir: Likewise.
71509         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71510         * modules/modechange: Likewise.
71511         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71512         (configure.ac): Remove gl_STAT_MACROS.
71513         * modules/sys_stat (Depends-on): Remove stat-macros.
71514
71515 2006-10-27  Bruno Haible  <bruno@clisp.org>
71516
71517         * m4/signed.m4: Remove file.
71518         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71519         invocation.
71520         * modules/vasnprintf (Files): Remove m4/signed.m4.
71521
71522 2006-10-27  Bruno Haible  <bruno@clisp.org>
71523
71524         Update to GNU gettext 0.16.
71525         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71526         m4/inttypes-h.m4, m4/signed.m4.
71527         * m4/gettext.m4: Update to GNU gettext 0.16.
71528         * m4/intl.m4: New file, from GNU gettext.
71529         * m4/intldir.m4: New file, from GNU gettext.
71530         * config/srclist.txt: Update
71531
71532 2006-10-27  Eric Blake  <ebb9@byu.net>
71533
71534         * MODULES.html.sh: Document tempname.
71535         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71536         dependencies.
71537         (Files): Move lib/tempname.c...
71538         * modules/tempname: ...to this new module.
71539         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71540         (gl_PREREQ_TEMPNAME): Move...
71541         * m4/tempname.m4: ...to this new file.
71542         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71543         * modules/sys_stat (Depends-on): Add stat-macros.
71544         * lib/stat_.h (includes): Pick up stat macros.
71545         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71546         if stat macros are broken.
71547         * lib/tempname.c (includes): No need to include "stat-macros.h".
71548         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71549         (direxists, __path_search) [!_LIBC]: Don't compile these in
71550         gnulib; the tmpdir module covers that.
71551         * lib/tempname.h: New file.
71552
71553 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71554
71555         * COPYING: Explain how gnulib-tool converts licence headers.
71556         Almost all wording by Eric Blake.
71557
71558 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71559
71560         * lib/mbchar.h (is_basic_table): Make read-only.
71561         * lib/mbchar.c (is_basic_table): Likewise.
71562         Reported by John Darrington.
71563
71564 2006-10-25  Bruno Haible  <bruno@clisp.org>
71565
71566         * lib/progname.h (set_program_name): Undefine before defining.
71567
71568 2006-10-25  Bruno Haible  <bruno@clisp.org>
71569
71570         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71571         false for non-gcc C++ compilers.
71572         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71573
71574 2006-10-24  Bruno Haible  <bruno@clisp.org>
71575
71576         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71577         iconv implementations like Irix iconv.
71578
71579 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71580
71581         * modules/vararrays: New file.
71582         * m4/vararrays.m4: New file, taken from diffutils.
71583         * MODULES.html.sh: New module vararrays.
71584
71585 2006-10-24  Karl Berry  <karl@gnu.org>
71586
71587         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71588         Don't call GNU Unix.
71589
71590 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71591
71592         * users.txt: Add Libtool.
71593
71594         Sync from Libtool:
71595
71596         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71597
71598         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71599         to gnulib's policy of including config.h unconditionally.
71600
71601 2006-10-24  Bruno Haible  <bruno@clisp.org>
71602
71603         * modules/wcwidth (Files): Add m4/wint_t.m4.
71604         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71605         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71606
71607 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71608
71609         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71610         to pacify GCC with some -W flags enabled.  Problem reported by
71611         Bruno Haible.
71612
71613 2006-10-24  Jim Meyering  <jim@meyering.net>
71614
71615         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71616         Reported by Karl Berry.
71617
71618 2006-10-23  Bruno Haible  <bruno@clisp.org>
71619
71620         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71621
71622 2006-10-24  Bruno Haible  <bruno@clisp.org>
71623
71624         * lib/gl_list.h: Use C comment style, not C++ comment style.
71625
71626 2006-10-23  Eric Blake  <ebb9@byu.net>
71627
71628         * lib/getaddrinfo.c (includes): Add missing include.
71629
71630 2006-10-23  Bruno Haible  <bruno@clisp.org>
71631             Paul Eggert  <eggert@cs.ucla.edu>
71632
71633         Ability to rename obstack_free.
71634         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71635         obstack_free.
71636         (obstack_free): Invoke the __obstack_free macro.
71637         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71638
71639 2006-10-23  Bruno Haible  <bruno@clisp.org>
71640             Paul Eggert  <eggert@cs.ucla.edu>
71641
71642         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71643         __argc, __argv from the declaration. (They are defined as macros on
71644         mingw.)
71645
71646 2006-10-22  Bruno Haible  <bruno@clisp.org>
71647
71648         * doc/gnulib-intro.texi: New file.
71649         * doc/gnulib.texi: Include it.
71650
71651 2006-10-21  Bruno Haible  <bruno@clisp.org>
71652
71653         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71654         "Introduction", "Miscellanous Notes", "Particular Modules".
71655
71656 2006-10-21  Bruno Haible  <bruno@clisp.org>
71657
71658         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71659         Change mostlyclean-local rule to avoid sh syntax error from bash
71660         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
71661
71662 2006-10-23  Jim Meyering  <jim@meyering.net>
71663
71664         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
71665         in place of snprintf.
71666
71667         * modules/inttostr (Files): Add lib/uinttostr.c.
71668         * lib/uinttostr.c (inttostr): New file/function.
71669         * lib/inttostr.h (uinttostr): Declare.
71670         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
71671         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71672         Add uinttostr.
71673         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
71674
71675 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71676
71677         * lib/canonicalize.c (ELOOP): Define if not already defined.
71678         Problem reported by Bruno Haible in
71679         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
71680
71681 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71682
71683         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
71684         Problem reported by Perry Smith and Ville Laurikari.
71685
71686         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
71687         uses.
71688
71689 2006-10-19  Bruno Haible  <bruno@clisp.org>
71690
71691         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
71692         for mingw.
71693
71694 2006-10-19  Bruno Haible  <bruno@clisp.org>
71695
71696         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
71697         Needed for mingw.
71698
71699 2006-10-19  Bruno Haible  <bruno@clisp.org>
71700
71701         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
71702
71703 2006-10-19  Bruno Haible  <bruno@clisp.org>
71704
71705         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
71706         it.
71707
71708 2006-10-19  Bruno Haible  <bruno@clisp.org>
71709
71710         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
71711         invocation.
71712
71713 2006-10-19  Bruno Haible  <bruno@clisp.org>
71714
71715         * gnulib-tool (func_create_testdir): Don't include ftruncate and
71716         mountlist by default.
71717
71718 2006-10-16  Bruno Haible  <bruno@clisp.org>
71719
71720         * lib/c-strstr.c: Include c-strstr.h.
71721
71722 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71723
71724         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
71725         in a slash.
71726
71727 2006-10-18  Bruno Haible  <bruno@clisp.org>
71728
71729         * lib/lock.h [C++]: Wrap definitions in extern "C".
71730
71731 2006-10-18  Bruno Haible  <bruno@clisp.org>
71732
71733         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
71734         gl_LIBOBJS list.
71735
71736 2006-10-18  Bruno Haible  <bruno@clisp.org>
71737
71738         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
71739
71740 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
71741
71742         * lib/xstrtol.h: Include gettext.h.
71743         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
71744         Problem reported by Eric Blake.
71745         * modules/xstrtol (Depends-on): Add gettext-h.
71746
71747 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
71748
71749         * lib/strftime.c (advance): New macro.
71750         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
71751         incomplete type, so you can't add 0 to it.  Problem and patch
71752         reported by Eelco Dolstra for dietlibc.
71753
71754 2006-10-18  Jim Meyering  <jim@meyering.net>
71755
71756         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
71757         type for a local, and rename it: s/up/user_proc/.
71758
71759 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
71760
71761         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
71762         READ_UTMP_USER_PROCESS.
71763         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
71764
71765 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71766
71767         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
71768         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
71769
71770 2006-10-17  Eric Blake  <ebb9@byu.net>
71771
71772         * lib/sigprocmask.c (sigprocmask): Fix typo.
71773
71774         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
71775
71776         * modules/clean-temp (Makefile.am): Don't add to make output...
71777         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
71778         config.h.
71779
71780 2006-10-17  Bruno Haible  <bruno@clisp.org>
71781
71782         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
71783         differently if DEFAULT_TEXT_DOMAIN is set.
71784
71785 2006-10-16  Bruno Haible  <bruno@clisp.org>
71786
71787         * lib/clean-temp.c: Include fwriteerror.h.
71788
71789 2006-10-16  Bruno Haible  <bruno@clisp.org>
71790
71791         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
71792
71793 2006-10-16  Bruno Haible  <bruno@clisp.org>
71794
71795         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
71796         * lib/sigprocmask.h: Include <sys/types.h>.
71797         (sigset_t): Use the system's definition if present.
71798
71799 2006-10-17  Eric Blake  <ebb9@byu.net>
71800
71801         * lib/xvasprintf.c (includes): Assume config.h.
71802         * lib/xasprintf.c (includes): Likewise.
71803
71804 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71805
71806         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
71807         at least as wide as intmax_t.
71808
71809 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
71810
71811         (Imported from Automake.)
71812         * build-aux/gnupload: Update to version 1.1 of directive file.
71813
71814 2006-10-16  Eric Blake  <ebb9@byu.net>
71815
71816         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
71817         match Automake 1.10a.
71818
71819 2006-10-14  Bruno Haible  <bruno@clisp.org>
71820
71821         * modules/sigprocmask: New file.
71822         * lib/sigprocmask.h: New file.
71823         * lib/sigprocmask.c: New file.
71824         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
71825         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
71826         request sigprocmask.o.
71827         (gl_PREREQ_SIGPROCMASK): New macro.
71828         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
71829         (Depends-on): Add sigprocmask.
71830         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
71831         gt_SIGNALBLOCKING. Test for 'raise' only once.
71832         * lib/fatal-signal.c: Include sigprocmask.h.
71833         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
71834         unblock_fatal_signals): Define always.
71835         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71836         sigprocmask.
71837
71838 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71839
71840         Sync from Automake.
71841         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
71842         which incorrectly sets the mode of an existing destination
71843         directory.  In some cases the unpatched install-sh could do the
71844         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
71845         system.  We hope this is rare in practice, but it's clearly worth
71846         fixing.  Problem reported by Alex Unleashed in
71847         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
71848         Also, don't bother to check for -m bugs unless we're using -m;
71849         suggested by Stepan Kasal.
71850
71851 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71852
71853         Sync from Automake.
71854         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
71855         `-c' flag, so they appear at the same position as in %FASTDEP%
71856         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
71857         which ignores unknown options only after the first non-option.
71858         Bug report against M4 by Nelson H. F. Beebe.
71859
71860 2006-10-13  Jim Meyering  <jim@meyering.net>
71861
71862         Fix a bug in yesterday's change.
71863         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
71864         p->fts_statp->st_dev would be used uninitialized.
71865         Ensures that we always call fts_stat on the very first entry.
71866         Miklos Szeredi reported that find -xdev stopped working.
71867
71868 2006-10-12  Bruno Haible  <bruno@clisp.org>
71869
71870         * gnulib-tool (func_get_automake_snippet): Append an automatically
71871         computed EXTRA_DIST augmentation.
71872         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
71873         * modules/alloca-opt (Makefile.am): Likewise.
71874         * modules/allocsa (Makefile.am): Likewise.
71875         * modules/arcfour (Makefile.am): Likewise.
71876         * modules/arctwo (Makefile.am): Likewise.
71877         * modules/argmatch (Makefile.am): Likewise.
71878         * modules/argz (Makefile.am): Likewise.
71879         * modules/atexit (Makefile.am): Likewise.
71880         * modules/backupfile (Makefile.am): Likewise.
71881         * modules/byteswap (Makefile.am): Likewise.
71882         * modules/c-strtod (Makefile.am): Likewise.
71883         * modules/c-strtold (Makefile.am): Likewise.
71884         * modules/calloc (Makefile.am): Likewise.
71885         * modules/canon-host (Makefile.am): Likewise.
71886         * modules/canonicalize (Makefile.am): Likewise.
71887         * modules/chdir-long (Makefile.am): Likewise.
71888         * modules/chdir-safer (Makefile.am): Likewise.
71889         * modules/check-version (Makefile.am): Likewise.
71890         * modules/chown (Makefile.am): Likewise.
71891         * modules/cloexec (Makefile.am): Likewise.
71892         * modules/close-stream (Makefile.am): Likewise.
71893         * modules/closeout (Makefile.am): Likewise.
71894         * modules/crc (Makefile.am): Likewise.
71895         * modules/csharpexec (Makefile.am): Likewise.
71896         * modules/cycle-check (Makefile.am): Likewise.
71897         * modules/des (Makefile.am): Likewise.
71898         * modules/dev-ino (Makefile.am): Likewise.
71899         * modules/dirfd (Makefile.am): Likewise.
71900         * modules/dirname (Makefile.am): Likewise.
71901         * modules/dup2 (Makefile.am): Likewise.
71902         * modules/eealloc (Makefile.am): Likewise.
71903         * modules/error (Makefile.am): Likewise.
71904         * modules/euidaccess (Makefile.am): Likewise.
71905         * modules/exclude (Makefile.am): Likewise.
71906         * modules/exitfail (Makefile.am): Likewise.
71907         * modules/fcntl-safer (Makefile.am): Likewise.
71908         * modules/fcntl (Makefile.am): Likewise.
71909         * modules/file-type (Makefile.am): Likewise.
71910         * modules/fileblocks (Makefile.am): Likewise.
71911         * modules/filemode (Makefile.am): Likewise.
71912         * modules/filenamecat (Makefile.am): Likewise.
71913         * modules/fnmatch (Makefile.am): Likewise.
71914         * modules/fopen-safer (Makefile.am): Likewise.
71915         * modules/fpending (Makefile.am): Likewise.
71916         * modules/fprintftime (Makefile.am): Likewise.
71917         * modules/free (Makefile.am): Likewise.
71918         * modules/fsusage (Makefile.am): Likewise.
71919         * modules/ftruncate (Makefile.am): Likewise.
71920         * modules/fts (Makefile.am): Likewise.
71921         * modules/gc-arcfour (Makefile.am): Likewise.
71922         * modules/gc-des (Makefile.am): Likewise.
71923         * modules/gc-hmac-md5 (Makefile.am): Likewise.
71924         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
71925         * modules/gc-md4 (Makefile.am): Likewise.
71926         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71927         * modules/gc-sha1 (Makefile.am): Likewise.
71928         * modules/gc (Makefile.am): Likewise.
71929         * modules/getaddrinfo (Makefile.am): Likewise.
71930         * modules/getcwd (Makefile.am): Likewise.
71931         * modules/getdelim (Makefile.am): Likewise.
71932         * modules/getdomainname (Makefile.am): Likewise.
71933         * modules/getgroups (Makefile.am): Likewise.
71934         * modules/gethostname (Makefile.am): Likewise.
71935         * modules/gethrxtime (Makefile.am): Likewise.
71936         * modules/getline (Makefile.am): Likewise.
71937         * modules/getloadavg (Makefile.am): Likewise.
71938         * modules/getlogin_r (Makefile.am): Likewise.
71939         * modules/getndelim2 (Makefile.am): Likewise.
71940         * modules/getopt (Makefile.am): Likewise.
71941         * modules/getpagesize (Makefile.am): Likewise.
71942         * modules/getpass-gnu (Makefile.am): Likewise.
71943         * modules/getpass (Makefile.am): Likewise.
71944         * modules/getsubopt (Makefile.am): Likewise.
71945         * modules/gettime (Makefile.am): Likewise.
71946         * modules/gettimeofday (Makefile.am): Likewise.
71947         * modules/getugroups (Makefile.am): Likewise.
71948         * modules/getusershell (Makefile.am): Likewise.
71949         * modules/glob (Makefile.am): Likewise.
71950         * modules/group-member (Makefile.am): Likewise.
71951         * modules/hard-locale (Makefile.am): Likewise.
71952         * modules/hash (Makefile.am): Likewise.
71953         * modules/hmac-md5 (Makefile.am): Likewise.
71954         * modules/hmac-sha1 (Makefile.am): Likewise.
71955         * modules/human (Makefile.am): Likewise.
71956         * modules/idcache (Makefile.am): Likewise.
71957         * modules/imaxabs (Makefile.am): Likewise.
71958         * modules/imaxdiv (Makefile.am): Likewise.
71959         * modules/inet_ntop (Makefile.am): Likewise.
71960         * modules/inet_pton (Makefile.am): Likewise.
71961         * modules/intprops (Makefile.am): Likewise.
71962         * modules/inttostr (Makefile.am): Likewise.
71963         * modules/inttypes (Makefile.am): Likewise.
71964         * modules/isapipe (Makefile.am): Likewise.
71965         * modules/javaversion (Makefile.am): Likewise.
71966         * modules/lchmod (Makefile.am): Likewise.
71967         * modules/lchown (Makefile.am): Likewise.
71968         * modules/localcharset (Makefile.am): Likewise.
71969         * modules/long-options (Makefile.am): Likewise.
71970         * modules/lstat (Makefile.am): Likewise.
71971         * modules/malloc (Makefile.am): Likewise.
71972         * modules/mathl (Makefile.am): Likewise.
71973         * modules/mbchar (Makefile.am): Likewise.
71974         * modules/md2 (Makefile.am): Likewise.
71975         * modules/md4 (Makefile.am): Likewise.
71976         * modules/md5 (Makefile.am): Likewise.
71977         * modules/memcasecmp (Makefile.am): Likewise.
71978         * modules/memchr (Makefile.am): Likewise.
71979         * modules/memcmp (Makefile.am): Likewise.
71980         * modules/memcoll (Makefile.am): Likewise.
71981         * modules/memcpy (Makefile.am): Likewise.
71982         * modules/memmem (Makefile.am): Likewise.
71983         * modules/memmove (Makefile.am): Likewise.
71984         * modules/mempcpy (Makefile.am): Likewise.
71985         * modules/memrchr (Makefile.am): Likewise.
71986         * modules/memset (Makefile.am): Likewise.
71987         * modules/memxor (Makefile.am): Likewise.
71988         * modules/mkancesdirs (Makefile.am): Likewise.
71989         * modules/mkdir-p (Makefile.am): Likewise.
71990         * modules/mkdir (Makefile.am): Likewise.
71991         * modules/mkdtemp (Makefile.am): Likewise.
71992         * modules/mkstemp (Makefile.am): Likewise.
71993         * modules/mktime (Makefile.am): Likewise.
71994         * modules/modechange (Makefile.am): Likewise.
71995         * modules/mountlist (Makefile.am): Likewise.
71996         * modules/nanosleep (Makefile.am): Likewise.
71997         * modules/obstack (Makefile.am): Likewise.
71998         * modules/openat (Makefile.am): Likewise.
71999         * modules/pagealign_alloc (Makefile.am): Likewise.
72000         * modules/pathmax (Makefile.am): Likewise.
72001         * modules/physmem (Makefile.am): Likewise.
72002         * modules/poll (Makefile.am): Likewise.
72003         * modules/posixtm (Makefile.am): Likewise.
72004         * modules/posixver (Makefile.am): Likewise.
72005         * modules/putenv (Makefile.am): Likewise.
72006         * modules/quote (Makefile.am): Likewise.
72007         * modules/quotearg (Makefile.am): Likewise.
72008         * modules/raise (Makefile.am): Likewise.
72009         * modules/read-file (Makefile.am): Likewise.
72010         * modules/readline (Makefile.am): Likewise.
72011         * modules/readlink (Makefile.am): Likewise.
72012         * modules/readtokens (Makefile.am): Likewise.
72013         * modules/readutmp (Makefile.am): Likewise.
72014         * modules/realloc (Makefile.am): Likewise.
72015         * modules/regex (Makefile.am): Likewise.
72016         * modules/rename-dest-slash (Makefile.am): Likewise.
72017         * modules/rename (Makefile.am): Likewise.
72018         * modules/rijndael (Makefile.am): Likewise.
72019         * modules/rmdir (Makefile.am): Likewise.
72020         * modules/rpmatch (Makefile.am): Likewise.
72021         * modules/safe-read (Makefile.am): Likewise.
72022         * modules/safe-write (Makefile.am): Likewise.
72023         * modules/same-inode (Makefile.am): Likewise.
72024         * modules/same (Makefile.am): Likewise.
72025         * modules/save-cwd (Makefile.am): Likewise.
72026         * modules/savedir (Makefile.am): Likewise.
72027         * modules/setenv (Makefile.am): Likewise.
72028         * modules/settime (Makefile.am): Likewise.
72029         * modules/sha1 (Makefile.am): Likewise.
72030         * modules/sig2str (Makefile.am): Likewise.
72031         * modules/snprintf (Makefile.am): Likewise.
72032         * modules/stat-macros (Makefile.am): Likewise.
72033         * modules/stat-time (Makefile.am): Likewise.
72034         * modules/stdbool (Makefile.am): Likewise.
72035         * modules/stdint (Makefile.am): Likewise.
72036         * modules/stdlib-safer (Makefile.am): Likewise.
72037         * modules/stpcpy (Makefile.am): Likewise.
72038         * modules/stpncpy (Makefile.am): Likewise.
72039         * modules/strcase (Makefile.am): Likewise.
72040         * modules/strcasestr (Makefile.am): Likewise.
72041         * modules/strchrnul (Makefile.am): Likewise.
72042         * modules/strcspn (Makefile.am): Likewise.
72043         * modules/strdup (Makefile.am): Likewise.
72044         * modules/strerror (Makefile.am): Likewise.
72045         * modules/strftime (Makefile.am): Likewise.
72046         * modules/strndup (Makefile.am): Likewise.
72047         * modules/strnlen (Makefile.am): Likewise.
72048         * modules/strpbrk (Makefile.am): Likewise.
72049         * modules/strsep (Makefile.am): Likewise.
72050         * modules/strstr (Makefile.am): Likewise.
72051         * modules/strtod (Makefile.am): Likewise.
72052         * modules/strtoimax (Makefile.am): Likewise.
72053         * modules/strtok_r (Makefile.am): Likewise.
72054         * modules/strtol (Makefile.am): Likewise.
72055         * modules/strtoll (Makefile.am): Likewise.
72056         * modules/strtoul (Makefile.am): Likewise.
72057         * modules/strtoull (Makefile.am): Likewise.
72058         * modules/strtoumax (Makefile.am): Likewise.
72059         * modules/strverscmp (Makefile.am): Likewise.
72060         * modules/sys_socket (Makefile.am): Likewise.
72061         * modules/sys_stat (Makefile.am): Likewise.
72062         * modules/sysexits (Makefile.am): Likewise.
72063         * modules/time_r (Makefile.am): Likewise.
72064         * modules/timegm (Makefile.am): Likewise.
72065         * modules/timespec (Makefile.am): Likewise.
72066         * modules/tmpfile-safer (Makefile.am): Likewise.
72067         * modules/trim (Makefile.am): Likewise.
72068         * modules/unistd-safer (Makefile.am): Likewise.
72069         * modules/unlinkdir (Makefile.am): Likewise.
72070         * modules/unlocked-io (Makefile.am): Likewise.
72071         * modules/userspec (Makefile.am): Likewise.
72072         * modules/utime (Makefile.am): Likewise.
72073         * modules/utimecmp (Makefile.am): Likewise.
72074         * modules/utimens (Makefile.am): Likewise.
72075         * modules/vasnprintf (Makefile.am): Likewise.
72076         * modules/vasprintf (Makefile.am): Likewise.
72077         * modules/vsnprintf (Makefile.am): Likewise.
72078         * modules/xalloc (Makefile.am): Likewise.
72079         * modules/xgetcwd (Makefile.am): Likewise.
72080         * modules/xnanosleep (Makefile.am): Likewise.
72081         * modules/xreadlink (Makefile.am): Likewise.
72082         * modules/xstrtod (Makefile.am): Likewise.
72083         * modules/xstrtol (Makefile.am): Likewise.
72084         * modules/xstrtold (Makefile.am): Likewise.
72085         * modules/yesno (Makefile.am): Likewise.
72086         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72087
72088 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72089
72090         * modules/error (Makefile.am): Distribute files through
72091         EXTRA_DIST, not lib_SOURCES.
72092
72093 2006-10-12  Eric Blake  <ebb9@byu.net>
72094
72095         * modules/error (Makefile.am): Distribute files in /lib.
72096         * modules/obstack (Makefile.am): Likewise.
72097
72098 2006-10-12  Bruno Haible  <bruno@clisp.org>
72099
72100         * modules/acl (Makefile.am): Distribute all files in lib/ through
72101         EXTRA_DIST.
72102         * modules/arcfour (Makefile.am): Likewise.
72103         * modules/arctwo (Makefile.am): Likewise.
72104         * modules/argmatch (Makefile.am): Likewise.
72105         * modules/argz (Makefile.am): Likewise.
72106         * modules/atexit (Makefile.am): Likewise.
72107         * modules/backupfile (Makefile.am): Likewise.
72108         * modules/c-strtod (Makefile.am): Likewise.
72109         * modules/c-strtold (Makefile.am): Likewise.
72110         * modules/calloc (Makefile.am): Likewise.
72111         * modules/canon-host (Makefile.am): Likewise.
72112         * modules/canonicalize (Makefile.am): Likewise.
72113         * modules/chdir-long (Makefile.am): Likewise.
72114         * modules/chdir-safer (Makefile.am): Likewise.
72115         * modules/check-version (Makefile.am): Likewise.
72116         * modules/chown (Makefile.am): Likewise.
72117         * modules/cloexec (Makefile.am): Likewise.
72118         * modules/close-stream (Makefile.am): Likewise.
72119         * modules/closeout (Makefile.am): Likewise.
72120         * modules/crc (Makefile.am): Likewise.
72121         * modules/cycle-check (Makefile.am): Likewise.
72122         * modules/des (Makefile.am): Likewise.
72123         * modules/dirfd (Makefile.am): Likewise.
72124         * modules/dirname (Makefile.am): Likewise.
72125         * modules/dup2 (Makefile.am): Likewise.
72126         * modules/euidaccess (Makefile.am): Likewise.
72127         * modules/exclude (Makefile.am): Likewise.
72128         * modules/exitfail (Makefile.am): Likewise.
72129         * modules/fcntl-safer (Makefile.am): Likewise.
72130         * modules/file-type (Makefile.am): Likewise.
72131         * modules/fileblocks (Makefile.am): Likewise.
72132         * modules/filemode (Makefile.am): Likewise.
72133         * modules/filenamecat (Makefile.am): Likewise.
72134         * modules/fnmatch (Makefile.am): Likewise.
72135         * modules/fopen-safer (Makefile.am): Likewise.
72136         * modules/fpending (Makefile.am): Likewise.
72137         * modules/fprintftime (Makefile.am): Likewise.
72138         * modules/free (Makefile.am): Likewise.
72139         * modules/fsusage (Makefile.am): Likewise.
72140         * modules/ftruncate (Makefile.am): Likewise.
72141         * modules/fts (Makefile.am): Likewise.
72142         * modules/gc (Makefile.am): Likewise.
72143         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72144         * modules/getaddrinfo (Makefile.am): Likewise.
72145         * modules/getcwd (Makefile.am): Likewise.
72146         * modules/getdelim (Makefile.am): Likewise.
72147         * modules/getdomainname (Makefile.am): Likewise.
72148         * modules/getgroups (Makefile.am): Likewise.
72149         * modules/gethostname (Makefile.am): Likewise.
72150         * modules/gethrxtime (Makefile.am): Likewise.
72151         * modules/getline (Makefile.am): Likewise.
72152         * modules/getloadavg (Makefile.am): Likewise.
72153         * modules/getlogin_r (Makefile.am): Likewise.
72154         * modules/getopt (Makefile.am): Likewise.
72155         * modules/getpass (Makefile.am): Likewise.
72156         * modules/getpass-gnu (Makefile.am): Likewise.
72157         * modules/getsubopt (Makefile.am): Likewise.
72158         * modules/gettime (Makefile.am): Likewise.
72159         * modules/gettimeofday (Makefile.am): Likewise.
72160         * modules/getugroups (Makefile.am): Likewise.
72161         * modules/getusershell (Makefile.am): Likewise.
72162         * modules/glob (Makefile.am): Likewise.
72163         * modules/group-member (Makefile.am): Likewise.
72164         * modules/hard-locale (Makefile.am): Likewise.
72165         * modules/hash (Makefile.am): Likewise.
72166         * modules/hmac-md5 (Makefile.am): Likewise.
72167         * modules/hmac-sha1 (Makefile.am): Likewise.
72168         * modules/human (Makefile.am): Likewise.
72169         * modules/idcache (Makefile.am): Likewise.
72170         * modules/imaxabs (Makefile.am): Likewise.
72171         * modules/imaxdiv (Makefile.am): Likewise.
72172         * modules/inet_ntop (Makefile.am): Likewise.
72173         * modules/inet_pton (Makefile.am): Likewise.
72174         * modules/inttostr (Makefile.am): Likewise.
72175         * modules/isapipe (Makefile.am): Likewise.
72176         * modules/lchown (Makefile.am): Likewise.
72177         * modules/long-options (Makefile.am): Likewise.
72178         * modules/lstat (Makefile.am): Likewise.
72179         * modules/malloc (Makefile.am): Likewise.
72180         * modules/mathl (Makefile.am): Likewise.
72181         * modules/mbchar (Makefile.am): Likewise.
72182         * modules/md2 (Makefile.am): Likewise.
72183         * modules/md4 (Makefile.am): Likewise.
72184         * modules/md5 (Makefile.am): Likewise.
72185         * modules/memcasecmp (Makefile.am): Likewise.
72186         * modules/memchr (Makefile.am): Likewise.
72187         * modules/memcmp (Makefile.am): Likewise.
72188         * modules/memcoll (Makefile.am): Likewise.
72189         * modules/memcpy (Makefile.am): Likewise.
72190         * modules/memmem (Makefile.am): Likewise.
72191         * modules/memmove (Makefile.am): Likewise.
72192         * modules/mempcpy (Makefile.am): Likewise.
72193         * modules/memrchr (Makefile.am): Likewise.
72194         * modules/memset (Makefile.am): Likewise.
72195         * modules/memxor (Makefile.am): Likewise.
72196         * modules/mkancesdirs (Makefile.am): Likewise.
72197         * modules/mkdir (Makefile.am): Likewise.
72198         * modules/mkdir-p (Makefile.am): Likewise.
72199         * modules/mkdtemp (Makefile.am): Likewise.
72200         * modules/mkstemp (Makefile.am): Likewise.
72201         * modules/mktime (Makefile.am): Likewise.
72202         * modules/modechange (Makefile.am): Likewise.
72203         * modules/mountlist (Makefile.am): Likewise.
72204         * modules/nanosleep (Makefile.am): Likewise.
72205         * modules/openat (Makefile.am): Likewise.
72206         * modules/pagealign_alloc (Makefile.am): Likewise.
72207         * modules/physmem (Makefile.am): Likewise.
72208         * modules/poll (Makefile.am): Likewise.
72209         * modules/posixtm (Makefile.am): Likewise.
72210         * modules/posixver (Makefile.am): Likewise.
72211         * modules/putenv (Makefile.am): Likewise.
72212         * modules/quote (Makefile.am): Likewise.
72213         * modules/quotearg (Makefile.am): Likewise.
72214         * modules/raise (Makefile.am): Likewise.
72215         * modules/read-file (Makefile.am): Likewise.
72216         * modules/readline (Makefile.am): Likewise.
72217         * modules/readlink (Makefile.am): Likewise.
72218         * modules/readtokens (Makefile.am): Likewise.
72219         * modules/readutmp (Makefile.am): Likewise.
72220         * modules/realloc (Makefile.am): Likewise.
72221         * modules/regex (Makefile.am): Likewise.
72222         * modules/rename (Makefile.am): Likewise.
72223         * modules/rename-dest-slash (Makefile.am): Likewise.
72224         * modules/rijndael (Makefile.am): Likewise.
72225         * modules/rmdir (Makefile.am): Likewise.
72226         * modules/rpmatch (Makefile.am): Likewise.
72227         * modules/safe-read (Makefile.am): Likewise.
72228         * modules/safe-write (Makefile.am): Likewise.
72229         * modules/same (Makefile.am): Likewise.
72230         * modules/save-cwd (Makefile.am): Likewise.
72231         * modules/savedir (Makefile.am): Likewise.
72232         * modules/setenv (Makefile.am): Likewise.
72233         * modules/settime (Makefile.am): Likewise.
72234         * modules/sha1 (Makefile.am): Likewise.
72235         * modules/sig2str (Makefile.am): Likewise.
72236         * modules/snprintf (Makefile.am): Likewise.
72237         * modules/stdlib-safer (Makefile.am): Likewise.
72238         * modules/stpcpy (Makefile.am): Likewise.
72239         * modules/stpncpy (Makefile.am): Likewise.
72240         * modules/strcase (Makefile.am): Likewise.
72241         * modules/strcasestr (Makefile.am): Likewise.
72242         * modules/strchrnul (Makefile.am): Likewise.
72243         * modules/strcspn (Makefile.am): Likewise.
72244         * modules/strdup (Makefile.am): Likewise.
72245         * modules/strerror (Makefile.am): Likewise.
72246         * modules/strftime (Makefile.am): Likewise.
72247         * modules/strndup (Makefile.am): Likewise.
72248         * modules/strnlen (Makefile.am): Likewise.
72249         * modules/strpbrk (Makefile.am): Likewise.
72250         * modules/strsep (Makefile.am): Likewise.
72251         * modules/strstr (Makefile.am): Likewise.
72252         * modules/strtod (Makefile.am): Likewise.
72253         * modules/strtoimax (Makefile.am): Likewise.
72254         * modules/strtok_r (Makefile.am): Likewise.
72255         * modules/strtol (Makefile.am): Likewise.
72256         * modules/strtoll (Makefile.am): Likewise.
72257         * modules/strtoul (Makefile.am): Likewise.
72258         * modules/strtoull (Makefile.am): Likewise.
72259         * modules/strtoumax (Makefile.am): Likewise.
72260         * modules/strverscmp (Makefile.am): Likewise.
72261         * modules/time_r (Makefile.am): Likewise.
72262         * modules/timegm (Makefile.am): Likewise.
72263         * modules/tmpfile-safer (Makefile.am): Likewise.
72264         * modules/unistd-safer (Makefile.am): Likewise.
72265         * modules/unlinkdir (Makefile.am): Likewise.
72266         * modules/userspec (Makefile.am): Likewise.
72267         * modules/utime (Makefile.am): Likewise.
72268         * modules/utimecmp (Makefile.am): Likewise.
72269         * modules/utimens (Makefile.am): Likewise.
72270         * modules/vasnprintf (Makefile.am): Likewise.
72271         * modules/vasprintf (Makefile.am): Likewise.
72272         * modules/vsnprintf (Makefile.am): Likewise.
72273         * modules/xalloc (Makefile.am): Likewise.
72274         * modules/xgetcwd (Makefile.am): Likewise.
72275         * modules/xnanosleep (Makefile.am): Likewise.
72276         * modules/xreadlink (Makefile.am): Likewise.
72277         * modules/xstrtod (Makefile.am): Likewise.
72278         * modules/xstrtol (Makefile.am): Likewise.
72279         * modules/xstrtold (Makefile.am): Likewise.
72280         * modules/yesno (Makefile.am): Likewise.
72281
72282 2006-10-12  Jim Meyering  <jim@meyering.net>
72283
72284         * m4/getloadavg.m4: Revert the change below.
72285
72286         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72287         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72288         fail with a symlink, which is what coreutils' ./bootstrap now
72289         creates by default.
72290
72291 2006-10-12  Bruno Haible  <bruno@clisp.org>
72292
72293         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72294         mingw.
72295         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72296         MSVC and mingw explicitly.
72297
72298 2006-10-11  Simon Josefsson  <jas@extundo.com>
72299             Bruno Haible  <bruno@clisp.org>
72300
72301         Add support for multiple gnulib-tool invocations in the scope of a
72302         single configure.ac file.
72303         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72304         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72305         with the same contents as the _LIBADD variable.
72306         (func_emit_initmacro_start, func_emit_initmacro_end,
72307         func_emit_initmacro_done): New functions.
72308         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72309         gl_LIBOBJS and gl_LTLIBOBJS.
72310
72311 2006-10-11  Bruno Haible  <bruno@clisp.org>
72312
72313         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72314         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72315         autoreconf. Instead, invoke autopoint explicitly but move back the
72316         *.m4 files from gnulib.
72317
72318 2006-10-11  Bruno Haible  <bruno@clisp.org>
72319
72320         * gnulib-tool (func_usage): Make module names after --create-testdir
72321         optional.
72322         (func_create_testdir): If no module was specified, use nearly all
72323         modules.
72324
72325 2006-10-12  Jim Meyering  <jim@meyering.net>
72326
72327         Big performance improvement for fts-based tools that use FTS_NOSTAT.
72328         Avoid spurious inode-mismatch problems on non-POSIX file systems.
72329         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
72330         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
72331         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
72332         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
72333         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
72334         (fts_set_stat_required): New function.
72335         (fts_open): Defer the calls to fts_stat, if possible or requested.
72336         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
72337         into fts_stat itself.
72338         (fts_read): Perform any required (deferred) fts_stat call.
72339         (fts_build): Likewise, for the directory we're about to open and read.
72340         In the readdir loop, carefully decide whether each entry will require
72341         an eventual call to fts_stat, using dirent.d_type info if available.
72342         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
72343         a command line argument into this function.  Update all callers.
72344         Map a return value of FTS_DOT to FTS_D for a command line argument.
72345         * modules/fts (Depends-on): Add d-type.  Alphabetize.
72346         Thanks to Miklos Szeredi for his tenacity and for the initial
72347         bug report about "find" failing on a FUSE-based file system.
72348
72349         * lib/fts.c (fts_open): Use consistent indentation.
72350
72351 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72352
72353         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
72354         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
72355         reported by Jim Meyering.  All uses of cache variables renamed
72356         to match Autoconf's.
72357         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72358         the other one.
72359
72360         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72361         Fix misspelling in diagnostic.
72362
72363 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72364
72365         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72366         defined.  Problem reported by Matthew Woehlke.
72367
72368         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72369         Add support for Tandem NonStop R series.
72370         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72371         Use new macro.
72372
72373         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72374         (has_trailing_slash): Omit size arg; all callers changed.
72375         Omit 'inline', since it doesn't help performance and we'd
72376         need to configure it.
72377         Don't count //, ///, etc. as having a trailing slash.
72378         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72379         (rpl_rename_dest_slash): On failure, use rename's errno rather
72380         than (in some cases) an incorrect or junk errno.
72381         Simplify code by removing need to compute length; this does
72382         cause it to make two passes instead of one over the file name,
72383         but it's worth it.
72384
72385         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72386         change, since Autoconf's version may no longer be appropriate now
72387         that we are using CVS Autoconf's version.  Add support for Tandem.
72388
72389 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72390             Bruno Haible  <bruno@clisp.org>
72391
72392         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72393         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72394         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
72395         gl_AC_TYPE_LONG_LONG.
72396
72397         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
72398         instead of HAVE_LONG_LONG.
72399         * lib/printf-args.c (printf_fetchargs): Likewise.
72400         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
72401         * lib/vasnprintf.c (VASNPRINTF): Likewise.
72402         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
72403         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
72404         gl_AC_TYPE_LONG_LONG.
72405
72406 2006-10-11  Bruno Haible  <bruno@clisp.org>
72407
72408         * m4/longlong.m4: Add comments.
72409         * m4/ulonglong.m4: Likewise.
72410
72411 2006-10-10  Bruno Haible  <bruno@clisp.org>
72412
72413         Make it possible to #define stpcpy, strdup to aliases.
72414         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
72415         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
72416
72417 2006-10-10  Bruno Haible  <bruno@clisp.org>
72418
72419         Make it possible to #define gcd to an alias.
72420         * lib/gcd.c: Include config.h.
72421
72422 2006-10-10  Bruno Haible  <bruno@clisp.org>
72423
72424         Make it possible to #define c_isascii to an alias.
72425         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
72426         defined. Undefine the macros before defining them, to avoid gcc
72427         warnings.
72428         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
72429         define NO_C_CTYPE_MACROS early.
72430
72431 2006-10-10  Bruno Haible  <bruno@clisp.org>
72432
72433         Make it possible to #define set_program_name to an alias.
72434         * lib/progname.c: Don't undefine set_program_name; instead, undefine
72435         ENABLE_RELOCATABLE early.
72436
72437 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72438
72439         Port to Tandem NSK OSS, which has 64-bit signed int but at most
72440         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
72441         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
72442         More generally, don't assume that 64-bit signed int is available
72443         if unsigned int is, and vice versa.
72444         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
72445         unsigned symbols, not on their signed counterparts.
72446         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
72447         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
72448         (UINT64_C, UINTMAX_C):
72449         Likewise.
72450         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
72451         unsigned counterparts.
72452         (Have_long_long, Unsigned): New macros.
72453         (Int): Renamed from INT.
72454         (strtoimax): Use the new macros.
72455         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
72456         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
72457         * modules/inttypes (inttypes.h): Substitute
72458         HAVE_UNSIGNED_LONG_LONG_INT.
72459         * modules/stdint (stdint.h): Likewise.
72460         (Files): Add m4/ulonglong.m4.
72461
72462 2006-10-10  Bruno Haible  <bruno@clisp.org>
72463
72464         Fix a gcc -Wshadow warning.
72465         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
72466         to 'bucket'.
72467         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
72468         gl_linked_indexof_from_to): Likewise.
72469         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
72470         Likewise.
72471         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
72472         Likewise.
72473         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
72474         Reported by Eric Blake.
72475
72476 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
72477
72478         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
72479         for NetBSD.  Problem reported by Bruno Haible.
72480
72481 2006-10-09  Jim Meyering  <jim@meyering.net>
72482
72483         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
72484         Patch from Bruno Haible.
72485
72486 2006-10-09  Jim Meyering  <jim@meyering.net>
72487
72488         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
72489         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
72490         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
72491
72492 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72493
72494         Don't include <config.h> twice; this doesn't work in some cases,
72495         e.g., when config.h has "#define intmax_t long long int" and
72496         we include <config.h>, <inttypes.h>, <config.h> in that order.
72497         Problem reported by Matthew Woehlke in:
72498         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
72499         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
72500         * lib/fts-cycle.c: Don't include config.h.
72501         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
72502         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
72503         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
72504         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72505         inttypes.h.
72506         * lib/xstrtoumax.c: Likewise.
72507         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72508         __strtol and the like, so that this module is more like its siblings.
72509         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72510         Remove; no longer needed now that we assume gnulib inttypes.h.
72511
72512 2006-10-08  Bruno Haible  <bruno@clisp.org>
72513
72514         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72515         option.
72516
72517 2006-10-07  Jim Meyering  <jim@meyering.net>
72518
72519         * modules/inttypes (inttypes.h): Revert what seems to have been
72520         an inadvertent part of today's change: use "|", not "/" in the
72521         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72522
72523 2006-10-07  Bruno Haible  <bruno@clisp.org>
72524
72525         * modules/sublist: New file.
72526
72527 2006-10-07  Bruno Haible  <bruno@clisp.org>
72528
72529         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72530         * modules/argz (argz.h): Likewise.
72531         * modules/arpa_inet (arpa/inet.h): Likewise.
72532         * modules/byteswap (byteswap.h): Likewise.
72533         * modules/configmake (configmake.h): Likewise.
72534         * modules/fcntl (fcntl.h): Likewise.
72535         * modules/fnmatch (fnmatch.h): Likewise.
72536         * modules/getopt (getopt.h): Likewise.
72537         * modules/glob (glob.h): Likewise.
72538         * modules/inttypes (inttypes.h): Likewise.
72539         * modules/netinet_in (netinet/in.h): Likewise.
72540         * modules/poll (poll.h): Likewise.
72541         * modules/stdbool (stdbool.h): Likewise.
72542         * modules/stdint (stdint.h): Likewise.
72543         * modules/sys_select (sys/select.h): Likewise.
72544         * modules/sys_socket (sys/socket.h): Likewise.
72545         * modules/sys_stat (sys/stat.h): Likewise.
72546         * modules/sysexits (sysexits.h): Likewise.
72547         * modules/unistd (unistd.h): Likewise.
72548         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72549         Add a "DO NOT EDIT" comment to the generated file.
72550         (func_import): Likewise for gnulib-comp.m4.
72551
72552 2006-10-07  Bruno Haible  <bruno@clisp.org>
72553
72554         * lib/gl_sublist.h: New file.
72555         * lib/gl_sublist.c: New file.
72556
72557 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72558
72559         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72560         name (relative to the original working directory) and the file
72561         name component (relative to the temporary working directory).  All
72562         callers changed.
72563         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72564         * lib/mkdir-p.c (make_dir_parents): Likewise.
72565         * lib/mkdir-p.h (make_dir_parents): Likewise.
72566
72567 2006-10-06  Eric Blake  <ebb9@byu.net>
72568
72569         Define several macros for use by the clean-temp module.
72570         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72571         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72572         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72573
72574         * lib/clean-temp.h (close_stream_temp): New declaration.
72575         * lib/clean-temp.c (includes): Pull in headers according to what
72576         other modules are in use.
72577         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72578
72579 2006-10-06  Bruno Haible  <bruno@clisp.org>
72580
72581         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72582         instead of fopen, fwriteerror.
72583
72584 2006-10-06  Bruno Haible  <bruno@clisp.org>
72585
72586         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72587         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72588         int.
72589         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72590         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72591         Return an error indicator.
72592         Suggested by Eric Blake.
72593
72594 2006-10-06  Bruno Haible  <bruno@clisp.org>
72595
72596         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72597         Reported by Eric Blake.
72598
72599 2006-10-06  Bruno Haible  <bruno@clisp.org>
72600
72601         * modules/closeout (Description): Mention stderr too.
72602
72603 2006-10-06  Bruno Haible  <bruno@clisp.org>
72604         and Paul Eggert  <eggert@cs.ucla.edu>
72605
72606         * lib/closeout.c (close_stdout): Also close stderr.
72607         * lib/closeout.h: Update comment.
72608
72609 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72610
72611         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72612         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72613         * lib/dirchownmod.c: Include lchown.h.
72614         * lib/lchown.c: Don't include files that lchown.h now includes.
72615         Don't declare chown, since lchown.h now does that.
72616         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72617         (lchown): Define to rpl_chown if lchown is declared but
72618         does not exist.  Declare using a prototype if lchown is not
72619         declared.  Add a copyright notice.
72620         * lib/mkstemp.h: Include <unistd.h>.
72621         * lib/openat.c: Include lchown.h.
72622
72623         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72624         we now test for that separately.
72625         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72626         rather than O_NOFOLLOW, when testing whether it's possible to
72627         avoid a race condition reliably.
72628         * lib/savewd.c (savewd_chdir): Likewise.
72629
72630         Remove macros that are no longer needed now that stdint.h is
72631         reliable.
72632         * lib/fsusage.c (UINTMAX_MAX): Remove.
72633         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72634         * lib/utimecmp.c (SIZE_MAX): Remove.
72635
72636         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72637
72638         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72639         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72640         O_NOATIME works.
72641
72642 2006-10-05  Bruno Haible  <bruno@clisp.org>
72643
72644         * lib/gl_list.h (gl_sortedlist_search_from_to,
72645         gl_sortedlist_indexof_from_to): New declarations.
72646         (gl_list_implementation): New fields sortedlist_search_from_to,
72647         sortedlist_indexof_from_to.
72648         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72649         inline functions.
72650         * lib/gl_list.c (gl_sortedlist_search_from_to,
72651         gl_sortedlist_indexof_from_to): New functions.
72652         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72653         function.
72654         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72655         (gl_array_sortedlist_search_from_to): New function.
72656         (gl_array_list_implementation): Update.
72657         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
72658         function.
72659         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
72660         (gl_carray_sortedlist_search_from_to): New function.
72661         (gl_carray_list_implementation): Update.
72662         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
72663         gl_linked_sortedlist_indexof_from_to): New functions.
72664         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72665         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72666         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
72667         gl_tree_sortedlist_indexof_from_to): New functions.
72668         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72669         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72670         Update.
72671         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72672         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
72673         Update.
72674
72675 2006-10-05  Bruno Haible  <bruno@clisp.org>
72676
72677         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
72678         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
72679         (struct gl_list_implementation): Add fields search_from_to,
72680         indexof_from_to. Remove fields search, indexof.
72681         (gl_list_search): Use the search_from_to method.
72682         (gl_list_search_from, gl_list_search_from_to): New functions.
72683         (gl_list_indexof): Use the indexof_from_to method.
72684         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72685         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
72686         (gl_list_search_from, gl_list_search_from_to): New functions.
72687         (gl_list_indexof): Use the indexof_from_to method.
72688         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72689         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
72690         gl_array_indexof. Add start_index, end_index arguments.
72691         (gl_array_search_from_to): Renamed from gl_array_search. Add
72692         start_index, end_index arguments.
72693         (gl_array_remove, gl_array_list_implementation): Update.
72694         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
72695         gl_carray_indexof. Add start_index, end_index arguments.
72696         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
72697         start_index, end_index arguments.
72698         (gl_carray_remove, gl_carray_list_implementation): Update.
72699         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
72700         gl_linked_search. Add start_index, end_index arguments.
72701         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
72702         start_index, end_index arguments.
72703         (gl_linked_remove): Update.
72704         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72705         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72706         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
72707         field to 'size_t'.
72708         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
72709         gl_tree_search. Add start_index, end_index arguments.
72710         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72711         start_index, end_index arguments.
72712         (gl_tree_remove): Update.
72713         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72714         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72715         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
72716         function.
72717         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
72718         gl_tree_search. Add start_index, end_index arguments.
72719         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72720         start_index, end_index arguments.
72721         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72722         Update.
72723         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
72724
72725 2006-10-05  Bruno Haible  <bruno@clisp.org>
72726
72727         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
72728
72729         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
72730         fwriteerror_temp): New declarations.
72731         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
72732         (descriptors): New variable.
72733         (cleanup): First, close the descriptors.
72734         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
72735         fclose_temp, fwriteerror_temp): New functions.
72736
72737 2006-10-04  Jim Meyering  <jim@meyering.net>
72738
72739         * lib/fts.c (fts_open): Tiny comment change.
72740
72741 2006-10-04  Bruno Haible  <bruno@clisp.org>
72742
72743         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
72744         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
72745         gl_LOCK_BODY.
72746         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
72747         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
72748         gl_LOCK_EARLY_BODY.
72749         (gl_LOCK): Require gl_LOCK_BODY.
72750
72751 2006-10-04  Bruno Haible  <bruno@clisp.org>
72752
72753         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
72754         (gl_oset_search_atleast): New declaration.
72755         (struct gl_oset_implementation): Add field 'search_atleast'.
72756         (gl_oset_search_atleast): New inline function.
72757         * lib/gl_oset.c (gl_oset_search_atleast): New function.
72758         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
72759         (gl_array_oset_implementation): Update.
72760         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
72761         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
72762         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
72763
72764 2006-10-04  Bruno Haible  <bruno@clisp.org>
72765
72766         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
72767
72768 2006-10-03  Bruno Haible  <bruno@clisp.org>
72769
72770         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
72771         from gl_avltreehash_list_implementation.
72772
72773 2006-10-03  Bruno Haible  <bruno@clisp.org>
72774
72775         * lib/gl_oset.c (gl_oset_add): Fix return type.
72776
72777 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
72778
72779         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
72780
72781 2006-10-02  Eric Blake  <ebb9@byu.net>
72782
72783         * modules/strnlen (Depends-on): Add extensions.
72784
72785 2006-10-02  Eric Blake  <ebb9@byu.net>
72786
72787         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
72788         definition in 2.60+.
72789
72790 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
72791
72792         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
72793         checks.
72794
72795 2006-10-02  Bruno Haible  <bruno@clisp.org>
72796
72797         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
72798         to the AUTOMAKE_OPTIONS.
72799         Reported by Jim Meyering.
72800
72801 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72802
72803         Work around bug in Solaris 10 /proc file system:
72804         /proc/self/fd/NNN/.. isn't the parent directory of
72805         the directory whose file descriptor is NNN.  This needs to
72806         be worked around at run time, not compile time, since a
72807         program might be built on Solaris 8, where things work, and
72808         run on Solaris 10.
72809         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
72810         to use the following interface instead:
72811         (OPENAT_BUFFER_SIZE): New macro.
72812         (openat_proc_name): New function.
72813         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
72814         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
72815         Likewise.
72816         * lib/openat-proc.c: New file.
72817         * modules/openat (Files): Add lib/openat-proc.c.
72818         (Depends-on): Add same-inode, stdbool.
72819         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
72820
72821 2006-09-29  Bruno Haible  <bruno@clisp.org>
72822
72823         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
72824         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
72825         argument. Set stdout_closed before testing for ferror, not after.
72826         (fwriteerror, fwriteerror_no_ebadf): New functions.
72827
72828 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72829
72830         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
72831
72832 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
72833
72834         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
72835         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
72836
72837 2006-09-28  Jim Meyering  <jim@meyering.net>
72838
72839         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
72840         Include <unistd.h>.
72841
72842 2006-09-28  Bruno Haible  <bruno@clisp.org>
72843
72844         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
72845         * modules/linkedhash-list (Depends-on): Likewise.
72846         * modules/rbtreehash-list (Depends-on): Likewise.
72847
72848 2006-09-28  Bruno Haible  <bruno@clisp.org>
72849
72850         * lib/strndup.h: Simplify the redefinition of strndup.
72851         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
72852         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
72853
72854 2006-09-28  Bruno Haible  <bruno@clisp.org>
72855
72856         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
72857         * lib/gl_linkedhash_list.c: Likewise.
72858         * lib/gl_rbtreehash_list.c: Likewise.
72859
72860 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72861
72862         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
72863         getaddrinfo.
72864
72865         * lib/__fpending.h: Don't include <stdio_ext.h> unless
72866         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
72867         it causes <stdio_ext.h> to cause a compile-time error.
72868         Problem reported by Nelson H. F. Beebe.
72869         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
72870         of HAVE_DECL___PENDING.
72871
72872         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
72873         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
72874         declaration.
72875
72876 2006-09-27  Jim Meyering  <jim@meyering.net>
72877
72878         This file could end up with a definition for a function
72879         named __strndup, rather than rpl_strndup on a system with
72880         incomplete weak_alias support.
72881         * lib/strndup.c (strndup): Rename from __strndup.
72882         Remove #defines that used to map __strndup to strndup.
72883         Don't use K&R prototypes.
72884         Remove LIBC-related code, since this file is not sync'd with glibc.
72885         * lib/strndup.h: Revamp, accordingly.
72886         * m4/strndup.m4: Modernize.
72887
72888 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72889
72890         * modules/savewd (Depends-on): Add 'raise'.
72891         * lib/savewd.c: Include <signal.h>, for 'raise'.
72892
72893 2006-09-26  Jim Meyering  <jim@meyering.net>
72894
72895         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
72896         when we detect Darwin 8.7.0's acl_get_file bug.
72897         Rearrange to perform the new (below) run-test while $LIBS
72898         contains any acl-related library.  Set USE_ACL at the end.
72899         (gl_ACL_GET_FILE): New function.
72900
72901 2006-09-26  Eric Blake  <ebb9@byu.net>
72902
72903         * lib/verror.c: Include <config.h> unconditionally.
72904
72905 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
72906
72907         * modules/clock-time (Maintainer): Add self.
72908         * modules/getlogin_r (Depends-on): Add extensions.
72909
72910 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72911
72912         * modules/clock-time: New module.
72913         * modules/nanosleep (Depends-on): Add clock-time.
72914         * modules/gethrxtime (Depends-on): Likewise.
72915         * modules/gettime (Depends-on): Likewise.
72916         * modules/settime (Depends-on): Likewise.
72917
72918         * modules/fts-lgpl: Depend on openat.
72919         * modules/mkancesdirs: Depend on savewd.
72920         * modules/mkdir-p: Likewise.
72921
72922 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72923
72924         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
72925
72926         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
72927         `gl_have_arbitrary_file_name_length_limit' to
72928         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
72929         actually works between configure runs.
72930
72931 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72932             Bruno Haible  <bruno@clisp.org>
72933
72934         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
72935
72936 2006-09-25  Jim Meyering  <jim@meyering.net>
72937
72938         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
72939         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
72940
72941 2006-09-25  Eric Blake  <ebb9@byu.net>
72942
72943         * gnulib-tool (func_import, func_create_testdir): Fix typos in
72944         exec's in 2006-09-18 patch when shuffling fds.
72945
72946 2006-09-25  Bruno Haible  <bruno@clisp.org>
72947
72948         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
72949         Reported by Jim Meyering.
72950
72951 2006-09-24  Jim Meyering  <jim@meyering.net>
72952
72953         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
72954         compare a pointer against a literal "0".  That caused failures with
72955         at least HP-UX's hpcc.
72956
72957 2006-09-22  Simon Josefsson  <jas@extundo.com>
72958
72959         * modules/gc-sha1:
72960         * modules/gc-md4:
72961         * modules/gc-hmac-sha1:
72962         * modules/gc-hmac-md5:
72963         * modules/gc-des:
72964         * modules/gc-arcfour: Distribute more files.
72965
72966 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72967
72968         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
72969         (gl_linked_iterator_from_to): Initialize struct completely.
72970         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
72971         (gl_tree_iterator_from_to): Likewise
72972         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
72973         * lib/gl_array_list.c [lint] (gl_array_iterator)
72974         (gl_array_iterator_from_to): Likewise.
72975         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
72976         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
72977         (gl_carray_iterator_from_to): Likewise.
72978
72979         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
72980         * lib/md4.c (md4_process_block): Remove unused variable.
72981         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
72982         parentheses for clarity.
72983
72984 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72985
72986         * modules/bison-i18n (Depends-on): Add gettext.
72987
72988 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72989
72990         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
72991         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
72992         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
72993         also add missing comma that caused broken test.
72994         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
72995         stdlib.h, for `abort'.
72996         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
72997         variables.
72998         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
72999         include unistd.h if present, for `rmdir'.
73000         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73001         variables.
73002         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73003         in the process include standard headers for prototypes.
73004         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73005         gets declared on GNU/Linux.
73006         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73007         unistd.h, for `rmdir'.
73008         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73009
73010         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73011         always true.
73012         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73013
73014         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73015
73016 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73017
73018         * gnulib-tool (func_version): Create output all at once.  This
73019         may help avoid triggering unnecessary SIGPIPEs, and at any
73020         rate it doesn't hurt.
73021
73022 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73023             Bruno Haible  <bruno@clisp.org>
73024
73025         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73026         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73027         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73028
73029         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73030         (gl_FUNC_VASPRINTF): Invoke it.
73031
73032 2006-09-22  Bruno Haible  <bruno@clisp.org>
73033
73034         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73035         getloadavg.c as first argument.
73036
73037 2006-09-22  Bruno Haible  <bruno@clisp.org>
73038
73039         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73040         at the beginning of the gl_INIT macro.
73041         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73042         gl_GETLOADAVG.
73043
73044 2006-09-22  Bruno Haible  <bruno@clisp.org>
73045
73046         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73047         module.
73048         Suggested by Ralf Wildenhues.
73049
73050 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73051
73052         Import this patch from libc:
73053
73054         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73055
73056         * lib/regex_internal.c (re_string_reconstruct): Handle
73057         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73058         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73059         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73060         re_string_context_at.
73061
73062         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73063         now requires it.
73064         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73065         gl_REGEX now does it for us.
73066         (gl_REGEX): Add test taken from
73067         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73068
73069         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73070         Check that large offsets work.  Modernize Autoconf usages.
73071         Prefer "yes" to mean a good thing rather than a bad.
73072         Don't put "#define mkstemp" in config.h, as this might interfere
73073         with standard system headers that "#define mkstemp mkstemp64".
73074
73075         * modules/mkstemp (Depends-on): Add extensions, so that
73076         mkstemp is visible on some platforms.
73077         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73078         (Include): Change to "mkstemp.h" from <stdlib.h>.
73079         (Files): Add mkstemp.h.
73080
73081         * lib/mkstemp.h: New file, since some standard headers
73082         #define mkstemp.
73083         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73084         Include "mkstemp.h".
73085         Make the _LIBC code resemble glibc original more,
73086         e.g., use K&R style.
73087         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73088         (mkstemp): Remove, since mkstemp.h does this for us.
73089         * lib/stdlib--.h: Include mkstemp.h.
73090
73091         Import this patch from libc:
73092
73093         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73094
73095         * lib/tempname.c (__gen_tempname): Change attempts_min
73096         into a macro.  Use preprocessor to decide how to initialize
73097         attempts [Coverity CID 67].
73098
73099 2006-09-20  Bruno Haible  <bruno@clisp.org>
73100
73101         * lib/mkdtemp.c: Import from libc.
73102         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73103                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73104                 attempts_min into a macro.  Use preprocessor to decide how to
73105                 initialize attempts [Coverity CID 67].
73106         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73107                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73108                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73109
73110 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73111
73112         * gnulib-tool (func_exit): New function, to allow to pass the
73113         exit status portably through the trap.  Use everywhere.
73114         (--help, --version): Signal a write error.
73115         (trap): catch SIGPIPE, for write errors.
73116         Exit at the end of the trap, with the correct exit status.
73117
73118 2006-09-19  Karl Berry  <karl@gnu.org>
73119
73120         * doc/gnulib.texi: note about the license texinfo files.
73121
73122 2006-09-19  Eric Blake  <ebb9@byu.net>
73123
73124         * gnulib-tool: Avoid space-tab.
73125
73126 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73127
73128         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73129         that prevented coreutils 6.1 from building.  Problem reported
73130         by Petter Reinholdtsen.
73131
73132 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73133
73134         * gnulib-tool (avoidlist): Fix typo that broke options like
73135         --avoid=lock that are used by coreutils bootstrap.
73136
73137 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73138
73139         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73140         more systematically.
73141
73142 2006-09-18  Jim Meyering  <jim@meyering.net>
73143
73144         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73145
73146 2006-09-18  Bruno Haible  <bruno@clisp.org>
73147
73148         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73149
73150 2006-09-18  Bruno Haible  <bruno@clisp.org>
73151
73152         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73153         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73154         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73155         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73156         * m4/gettext.m4: Require autoconf >= 2.52.
73157         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73158         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73159         of gl_cv_header_inttypes_h.
73160
73161 2006-09-18  Bruno Haible  <bruno@clisp.org>
73162
73163         * lib/javaversion.c: Include configmake.h.
73164
73165 2006-09-18  Bruno Haible  <bruno@clisp.org>
73166
73167         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73168         avoid that the while loops be executed in a subshell.
73169
73170 2006-09-18  Bruno Haible  <bruno@clisp.org>
73171
73172         * MODULES.html.sh (func_module): Break long lines.
73173         Suggested by Bruce Korb <bkorb@gnu.org>.
73174
73175 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73176
73177         Speed up by a factor of 1.12.
73178         * gnulib-tool (nl): New variable.
73179         (func_import): Rewrite include directive extraction to only read each
73180         directive once.
73181
73182 2006-09-17  Bruno Haible  <bruno@clisp.org>
73183
73184         * modules/javaversion (Makefile.am): Remove DEFS setting.
73185         (Depends-on): Add configmake, for PKGDATADIR definition.
73186
73187 2006-09-17  Bruno Haible  <bruno@clisp.org>
73188
73189         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73190
73191 2006-09-17  Bruno Haible  <bruno@clisp.org>
73192
73193         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73194         (func_modules_transitive_closure, func_modules_add_dummy,
73195         func_modules_to_filelist, func_import, func_create_testdir,
73196         func_create_megatestdir, ...): Use it wherever possible.
73197         Suggested by Ralf Wildenhues.
73198
73199 2006-09-16  Karl Berry  <karl@gnu.org>
73200
73201         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73202         to avoid sectioning errors.
73203         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73204         [ifinfo]: blank line after @center-ed titles.
73205         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73206         Spell FSF address consistently with others.
73207         (These changes approved by rms.)
73208
73209 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73210
73211         Speed up by a factor of 1.61.
73212         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73213         already checked module names again.
73214
73215 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73216
73217         Speed up by a factor of 1.13.
73218         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73219         for new_files, and the input to func_add_or_update.
73220
73221 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73222
73223         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73224         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73225
73226 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73227
73228         * modules/mkancesdirs (Depends-on): Add fcntl.
73229         * modules/savewd: New file.
73230         * MODULES.html.sh (File system functions): Add savewd.
73231
73232         * modules/configmake (Makefile.am): Add support for the
73233         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73234
73235 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73236
73237         * m4/savewd.m4: New file.
73238
73239 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73240
73241         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73242         (dirchownmod): New arg FD.  All callers changed.
73243         Use FD rather than opening the directory ourself, as opening is
73244         now the caller's responsibility.
73245         * lib/dirchownmod.h: Likewise.
73246         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73247         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73248         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73249         (test_dir): Remove.
73250         (mkancesdirs): Return length of prefix of FILE that has already
73251         been made, or -2 if there is a child doing the work.  Redo
73252         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73253         ".", and treat ".." specially since it might stray back into
73254         already-created areas.  Use a subprocess if necessary.  New arg
73255         WD; all users changed.  MAKE_DIR function should now return 1
73256         if it creates a directory that is not readable.  Return -2 if
73257         a child process is spun off.
73258         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73259         Adjust signature to match code.
73260         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73261         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73262         all users changed.
73263         * lib/savewd.c, lib/savewd.h: New files.
73264
73265 2006-09-15  Jim Meyering  <jim@meyering.net>
73266
73267         * modules/rename-dest-slash: New module.
73268         * MODULES.html.sh (posix_compat): Add it here.
73269
73270         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73271
73272 2006-09-15  Jim Meyering  <jim@meyering.net>
73273
73274         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73275         file.
73276
73277         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73278
73279 2006-09-15  Jim Meyering  <jim@meyering.net>
73280
73281         * lib/rename-dest-slash.c (has_trailing_slash): Use
73282         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73283         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73284         test before testing whether SRC is a directory.
73285         Suggestions from Bruno Haible.
73286
73287         Avoid a warning about an unused variable.
73288         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73289         into the #ifdef block where it's used.
73290
73291         * lib/rename-dest-slash.c: New file.
73292
73293 2006-09-14  Bruno Haible  <bruno@clisp.org>
73294
73295         * lib/allocsa.c: Include <config.h> unconditionally.
73296         * lib/asnprintf.c: Likewise.
73297         * lib/asprintf.c: Likewise.
73298         * lib/c-strcasecmp.c: Likewise.
73299         * lib/c-strcasestr.c: Likewise.
73300         * lib/c-strncasecmp.c: Likewise.
73301         * lib/c-strstr.c: Likewise.
73302         * lib/classpath.c: Likewise.
73303         * lib/clean-temp.c: Likewise.
73304         * lib/concatpath.c: Likewise.
73305         * lib/copy-file.c: Likewise.
73306         * lib/csharpcomp.c: Likewise.
73307         * lib/csharpexec.c: Likewise.
73308         * lib/execute.c: Likewise.
73309         * lib/fatal-signal.c: Likewise.
73310         * lib/findprog.c: Likewise.
73311         * lib/fwriteerror.c: Likewise.
73312         * lib/gl_array_list.c: Likewise.
73313         * lib/gl_array_oset.c: Likewise.
73314         * lib/gl_avltree_list.c: Likewise.
73315         * lib/gl_avltree_oset.c: Likewise.
73316         * lib/gl_avltreehash_list.c: Likewise.
73317         * lib/gl_carray_list.c: Likewise.
73318         * lib/gl_linked_list.c: Likewise.
73319         * lib/gl_linkedhash_list.c: Likewise.
73320         * lib/gl_list.c: Likewise.
73321         * lib/gl_oset.c: Likewise.
73322         * lib/gl_rbtree_list.c: Likewise.
73323         * lib/gl_rbtree_oset.c: Likewise.
73324         * lib/gl_rbtreehash_list.c: Likewise.
73325         * lib/imaxabs.c: Likewise.
73326         * lib/imaxdiv.c: Likewise.
73327         * lib/javacomp.c: Likewise.
73328         * lib/javaexec.c: Likewise.
73329         * lib/javaversion.c: Likewise.
73330         * lib/linebreak.c: Likewise.
73331         * lib/localcharset.c: Likewise.
73332         * lib/lock.c: Likewise.
73333         * lib/mbchar.c: Likewise.
73334         * lib/mbswidth.c: Likewise.
73335         * lib/mkdtemp.c: Likewise.
73336         * lib/pipe.c: Likewise.
73337         * lib/printf-args.c: Likewise.
73338         * lib/printf-parse.c: Likewise.
73339         * lib/progname.c: Likewise.
73340         * lib/progreloc.c: Likewise.
73341         * lib/readlink.c: Likewise.
73342         * lib/sh-quote.c: Likewise.
73343         * lib/stpcpy.c: Likewise.
73344         * lib/stpncpy.c: Likewise.
73345         * lib/strcasecmp.c: Likewise.
73346         * lib/strcasestr.c: Likewise.
73347         * lib/strcspn.c: Likewise.
73348         * lib/striconv.c: Likewise.
73349         * lib/strncasecmp.c: Likewise.
73350         * lib/strnlen1.c: Likewise.
73351         * lib/strstr.c: Likewise.
73352         * lib/strtok_r.c: Likewise.
73353         * lib/tls.c: Likewise.
73354         * lib/tmpdir.c: Likewise.
73355         * lib/unicodeio.c: Likewise.
73356         * lib/unsetenv.c: Likewise.
73357         * lib/vasnprintf.c: Likewise.
73358         * lib/vasprintf.c: Likewise.
73359         * lib/wait-process.c: Likewise.
73360         * lib/xallocsa.c: Likewise.
73361         * lib/xsetenv.c: Likewise.
73362         * lib/xstriconv.c: Likewise.
73363
73364 2006-09-13  Simon Josefsson  <jas@extundo.com>
73365
73366         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73367         that internally, suggested by Ralf Wildenhues
73368         <Ralf.Wildenhues@gmx.de>.
73369
73370 2006-09-13  Simon Josefsson  <jas@extundo.com>
73371
73372         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73373         @LIBOBJS@.
73374         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73375
73376 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73377
73378         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73379         longer worry about uses that don't define HAVE_CONFIG_H.
73380         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73381         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73382         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73383         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73384         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73385         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73386         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73387         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73388         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73389         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73390         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73391         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73392         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73393         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73394         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
73395         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
73396         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
73397         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
73398         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
73399         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
73400         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
73401         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
73402         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
73403         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
73404         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
73405         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
73406         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
73407         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
73408         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
73409         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
73410         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
73411         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
73412         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
73413         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
73414         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
73415         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
73416         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
73417         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
73418         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
73419         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
73420         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
73421         Likewise.
73422
73423 2006-09-13  Eric Blake  <ebb9@byu.net>
73424
73425         * lib/getopt.c: Fix typo in last commit.
73426
73427 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73428
73429         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
73430         dgettext.
73431
73432 2006-09-12  Jim Meyering  <jim@meyering.net>
73433
73434         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
73435         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
73436         Reported by Nelson H. F. Beebe.
73437
73438 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73439
73440         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
73441         program_invocation_name and program_invocation_short_name are
73442         initialized.
73443         * lib/argp-namefrob.h: Move declarations of program_invocation_name
73444         and program_invocation_short_name to argp.h, so they are visible
73445         to user programs.
73446         * lib/argp.h: Likewise
73447
73448 2006-09-10  Bruno Haible  <bruno@clisp.org>
73449
73450         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73451         m4/inttypes_h.m4, m4/uintmax_t.m4.
73452
73453 2006-09-10  Bruno Haible  <bruno@clisp.org>
73454
73455         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
73456         gl_AC_TYPE_UINTMAX_T.
73457
73458 2006-09-10  Bruno Haible  <bruno@clisp.org>
73459
73460         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
73461
73462 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73463
73464         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
73465         convention.  Text proposed by Bruno Haible.
73466         (struct argp_option): Document the use of N_() wrappers.
73467
73468         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
73469         '\v', and translate the two parts separately, instead of feeding
73470         the whole string to gettext.  This allows to exclude
73471         '\v' from the strings visible to the translator by writing doc
73472         strings as N_("..") "\v" N_("..").
73473
73474 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
73475
73476         * config/srclist.txt: Undo latest change; the bug was fixed.
73477
73478 2006-09-09  Bruno Haible  <bruno@clisp.org>
73479
73480         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
73481         assignments if building a library without libtool.
73482         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
73483         in func_emit_lib_Makefile_am.
73484         (func_import): When building a static library libfoo.a, arrange to
73485         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
73486         (func_create_testdir): Likewise.
73487         * modules/gc (configure.ac, Makefile.am): If building statically,
73488         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
73489         * modules/iconvme (configure.ac, Makefile.am): Likewise.
73490         * modules/striconv (configure.ac, Makefile.am): Likewise.
73491         Based on a suggestion by Ralf Wildenhues.
73492
73493 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73494
73495         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73496         Check for unistd.h too, since Autoconf doesn't assume POSIX.
73497         Also:
73498
73499         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73500         Add year_2050_test to catch glibc bug 2821
73501         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73502
73503         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73504         Prefer #ifdef to #if.
73505
73506         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73507         Return from 'main' instead of calling 'exit'.
73508
73509 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73510
73511         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73512         returned the maximum time_t value rather than (time_t) -1.
73513         Problem originally reported by William Bardwell
73514         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73515
73516         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73517         Moved to here ...
73518         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73519         ... from here.
73520
73521 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73522
73523         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73524         2821 is fixed.
73525
73526 2006-09-08  Jim Meyering  <jim@meyering.net>
73527
73528         Don't make generated files read-only.  That would bother too many
73529         people.  However, do retain the ability to work when targets are
73530         read-only: remove the destination and temporary files before writing
73531         them (when generated via sed or echo), or by using the -f option for
73532         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73533         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73534         * modules/byteswap, modules/configmake, modules/fcntl:
73535         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73536         * modules/localcharset, modules/netinet_in, modules/poll:
73537         * modules/stdbool, modules/stdint, modules/sys_select:
73538         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73539
73540 2006-09-08  Jim Meyering  <jim@meyering.net>
73541
73542         Avoid new build failure on FreeBSD 6.0.
73543         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73544         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73545         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73546
73547 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73548
73549         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73550
73551 2006-09-07  Jim Meyering  <jim@meyering.net>
73552
73553         Fix global typo in last change: use chmod u-w, not chmod u-x.
73554         Spotted by Paul Eggert and Bruce Korb.
73555         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73556         * modules/byteswap, modules/configmake, modules/fcntl:
73557         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73558         * modules/localcharset, modules/netinet_in, modules/poll:
73559         * modules/stdbool, modules/stdint, modules/sys_select:
73560         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73561
73562 2006-09-06  Jim Meyering  <jim@meyering.net>
73563
73564         Make generated files be read-only.
73565         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73566         Ensure that each generated file is now read-only.
73567         * modules/argz: Likewise.
73568         * modules/arpa_inet: Likewise.
73569         * modules/byteswap: Likewise.
73570         * modules/configmake: Likewise.
73571         * modules/fcntl: Likewise.
73572         * modules/fnmatch: Likewise.
73573         * modules/getopt: Likewise.
73574         * modules/glob: Likewise.
73575         * modules/inttypes: Likewise.
73576         * modules/netinet_in: Likewise.
73577         * modules/poll: Likewise.
73578         * modules/stdbool: Likewise.
73579         * modules/stdint: Likewise.
73580         * modules/sys_select: Likewise.
73581         * modules/sys_socket: Likewise.
73582         * modules/sys_stat: Likewise.
73583         * modules/sysexits: Likewise.
73584         * modules/localcharset: Same as above, but continue using temporary
73585         file named "t-$@" (why different?) rather than the "$@-t" used
73586         everywhere else.
73587
73588         * modules/sysexits (Makefile.am): Replace literal occurrences
73589         of "sysexit.h" more readable, and more consistent, "$@".
73590
73591 2006-09-06  Bruno Haible  <bruno@clisp.org>
73592
73593         * modules/striconv: New file.
73594         * modules/xstriconv: New file.
73595         * MODULES.html.sh (Internationalization functions): Add striconv,
73596         xstriconv.
73597
73598 2006-09-06  Bruno Haible  <bruno@clisp.org>
73599
73600         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73601         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73602         not using libtool correctly.
73603
73604 2006-09-06  Bruno Haible  <bruno@clisp.org>
73605
73606         * lib/striconv.h: New file.
73607         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73608         iconvstring.c.
73609         * lib/xstriconv.h: New file.
73610         * lib/xstriconv.c: New file.
73611
73612 2006-09-06  Bruno Haible  <bruno@clisp.org>
73613
73614         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73615         lib_..._LDFLAGS.
73616
73617 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73618
73619         * lib/argz_.h: Sync from Libtool.
73620
73621         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73622                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73623
73624         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73625
73626 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73627
73628         * modules/trim: New file.
73629
73630 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73631
73632         * lib/trim.h: New file.
73633         * lib/trim.c: New file.
73634
73635 2006-09-05  Bruno Haible  <bruno@clisp.org>
73636
73637         * MODULES.html.sh (String handling): Add trim.
73638
73639 2006-09-04  Karl Berry  <karl@gnu.org>
73640
73641         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73642         until next release.
73643
73644 2006-09-03  Bruno Haible  <bruno@clisp.org>
73645
73646         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73647         correctly.
73648
73649 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73650
73651         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73652         not gl_GETLOADAVG.  Omit unneeded semicolons.
73653         Problems reported by Ralf Wildenhues in
73654         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73655         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73656         at the end, which is the usual gnulib style.
73657
73658         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
73659         of doing all the work ourselves.
73660         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
73661         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
73662
73663 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73664
73665         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
73666         Problem reported by Ralf Wildenhues in
73667         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73668
73669         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
73670         HAVE_STRUCT_STATFS_F_FSTYPENAME.
73671
73672 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73673
73674         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
73675         yesterday's patch by changing test -n to test -z.
73676
73677 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73678
73679         * modules/getloadavg (Files): Add m4/getloadavg.m4.
73680         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
73681         the former is now obsolescent.
73682
73683         * modules/chdir-long (Depends-on): Add fcntl.
73684
73685 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73686
73687         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
73688         obsolescent, and programs should use gnulib instead.
73689         * m4/getloadavg.m4: New file, with contents taken from Autoconf
73690         but with prefixes changed.
73691
73692 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73693
73694         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
73695         or stdbool.h, because they might not exist while configuring.
73696
73697         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
73698         Don't include unistd.h or limits.h; not needed, since chdir-long.h
73699         does that for us.
73700         (O_DIRECTORY): Remove.
73701
73702 2006-08-31  Eric Blake  <ebb9@byu.net>
73703
73704         * gnulib-tool: Don't let emacs change spaces to TAB.
73705
73706 2006-08-31  Bruno Haible  <bruno@clisp.org>
73707
73708         * gnulib-tool: When calling func_import more than once, do it in a
73709         subshell.
73710         Reported by Eric Blake <ebb9@byu.net>.
73711
73712 2006-08-31  Bruno Haible  <bruno@clisp.org>
73713
73714         * gnulib-tool (nl): Remove variable.
73715         (sed_transform_lib_file): Use more robust test for config-h module.
73716         (func_import): Fix typo in 2006-08-25 patch.
73717
73718 2006-08-31  Bruno Haible  <bruno@clisp.org>
73719
73720         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
73721         specified, augment Makefile.am variables instead of assigning them.
73722
73723 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73724
73725         Work around a bug in both the Linux and SunOS 64-bit kernels:
73726         nanosleep mishandles sleeps for longer than 2**31 seconds.
73727         Problem reported by Frank v Waveren in
73728         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73729         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
73730         Check for nanosleep bug.
73731         (LIB_NANOSLEEP): Append clock_gettime library if needed.
73732
73733 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73734
73735         Work around a bug in both the Linux and SunOS 64-bit kernels:
73736         nanosleep mishandles sleeps for longer than 2**31 seconds.
73737         Problem reported by Frank v Waveren in
73738         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73739         * lib/nanosleep.c (BILLION): New constant.
73740         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
73741         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
73742         implementation.
73743
73744 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73745
73746         * modules/nanosleep (Depends-on): Add gettime.
73747
73748 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73749         and Simon Josefsson  <jas@extundo.com>
73750         and Oskar Liljeblad  <oskar@osk.mine.nu>
73751
73752         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
73753         * gnulib-tool (func_import): New license type 'unmodifiable license
73754         text'.
73755         * modules/fdl: Use it.  Longer description.
73756         * module/gpl, module/lgpl: New files.
73757
73758 2006-08-30  Jim Meyering  <jim@meyering.net>
73759
73760         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
73761         shadowing the parameter.
73762
73763 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73764
73765         Sync from Libtool:
73766
73767         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73768
73769         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
73770         sharing with gnulib.  Report by Eric Blake.
73771
73772 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73773
73774         * modules/isapipe: New file.
73775         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
73776
73777 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73778
73779         * modules/configmake (Makefile.am): Add a comment, and omit
73780         the CONFIGMAKE_ prefix from generated macro names.  Suggested
73781         by Bruno Haible.
73782
73783 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73784
73785         * m4/isapipe.m4: New file.
73786
73787 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73788
73789         * lib/isapipe.c, lib/isapipe.h: New files.
73790
73791 2006-08-29  Jim Meyering  <jim@meyering.net>
73792
73793         * modules/configmake (Makefile.am): Make configmake.h depend on
73794         Makefile.  Otherwise, a stale configmake.h could hang around.
73795
73796 2006-08-29  Eric Blake  <ebb9@byu.net>
73797
73798         * lib/error.c (error_at_line, print_errno_message): Match libc, after
73799         resolution of upstream bug 3044.
73800
73801 2006-08-29  Bruno Haible  <bruno@clisp.org>
73802
73803         * modules/localcharset (Depends-on): Add configmake.
73804         (Makefile.am): Remove setting of LIBDIR through DEFS.
73805
73806 2006-08-29  Bruno Haible  <bruno@clisp.org>
73807
73808         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
73809         defined.
73810
73811 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73812
73813         * modules/fcntl: New file.
73814         * modules/chdir-safer (Depends-on): Add fcntl.
73815         * modules/fts: Likewise.
73816         * modules/mkdir-p: Likewise.
73817
73818         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
73819         This undoes the most recent change, since we're now addressing the
73820         problem in a different way.
73821
73822         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
73823         into output, since the output might be called Makefile.am even
73824         if $makefile_name is something different.
73825         (func_import): Use $makefile_am rather than
73826         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
73827         empty.
73828
73829         * modules/inttypes (Files): Add m4/inttypes-h.m4.
73830
73831 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73832
73833         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
73834         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
73835         recent change to stdint.m4, since we're now addressing the problem in a
73836         different way.
73837
73838 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73839
73840         * m4/fcntl_h.m4: New file.
73841
73842 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73843
73844         * lib/fcntl_.h: New file.
73845         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
73846         the fcntl module.
73847         * lib/dirchownmod.c: Likewise.
73848         * lib/fts.c: Likewise.
73849
73850         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
73851         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
73852         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
73853         just before including <inttypes.h>, to avoid circular inclusion.
73854
73855 2006-08-28  Jim Meyering  <jim@meyering.net>
73856
73857         * doc/visibility.texi: Actually read and correct the grammar of the
73858         sentence affected by yesterday's change.
73859
73860 2006-08-28  Eric Blake  <ebb9@byu.net>
73861
73862         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
73863         needs wrapper.
73864
73865 2006-08-28  Eric Blake  <ebb9@byu.net>
73866
73867         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
73868
73869 2006-08-28  Eric Blake  <ebb9@byu.net>
73870
73871         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
73872
73873 2006-08-28  Bruno Haible  <bruno@clisp.org>
73874
73875         * modules/c-strstr: New file, from GNU gettext.
73876         * MODULES.html.sh (String handling): Add c-strstr.
73877
73878 2006-08-28  Bruno Haible  <bruno@clisp.org>
73879
73880         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
73881         macros.
73882         Reported by Eric Blake.
73883
73884 2006-08-28  Bruno Haible  <bruno@clisp.org>
73885
73886         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
73887         (VASNPRINTF): Return a string of length > INT_MAX without failing.
73888         * lib/vasprintf.c: Include errno.h, limits.h.
73889         (EOVERFLOW): New fallback definition.
73890         (vasprintf): Test here whether the string length is > INT_MAX.
73891         * lib/vsnprintf.c: Include errno.h, limits.h.
73892         (EOVERFLOW): New fallback definition.
73893         (vsnprintf): Fix bug when generated string was too long for the buffer.
73894         Test here whether the string length is > INT_MAX.
73895
73896 2006-08-28  Bruno Haible  <bruno@clisp.org>
73897
73898         * lib/inttypes_.h (SCNX*): Remove definitions.
73899         Reported by Eric Blake.
73900
73901 2006-08-28  Bruno Haible  <bruno@clisp.org>
73902
73903         * lib/c-strstr.h: New file, from GNU gettext.
73904         * lib/c-strstr.c: New file, from GNU gettext.
73905
73906 2006-08-28  Bruno Haible  <bruno@clisp.org>
73907
73908         * gnulib-tool: Reorder some statements.
73909
73910 2006-08-28  Bruno Haible  <bruno@clisp.org>
73911
73912         * gnulib-tool: New option --makefile-name.
73913         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
73914         $makefile_name.
73915         (func_import): Write $makefile_name to the cache file, and read it from
73916         there unless explicitly specified. Use $makefile_name as file name
73917         instead of Makefile.am. Adjust the recommendations accordingly.
73918
73919 2006-08-28  Bruno Haible  <bruno@clisp.org>
73920
73921         * gnulib-tool (func_verify_module): Check against misapplying patch.
73922
73923 2006-08-28  Bruno Haible  <bruno@clisp.org>
73924
73925         * gnulib-tool (func_relativize, func_relconcat): New functions.
73926         Give an error if --local-dir is given with --update.
73927         Remove trailing slashes from $local_gnulib_dir.
73928         (func_import): Store the relativized $local_gnulib_dir in
73929         gnulib-cache.m4, and read it from there if not specified explicitly.
73930
73931 2006-08-28  Bruno Haible  <bruno@clisp.org>
73932
73933         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
73934         is the current directory. Respect also $local_gnulib_dir.
73935
73936 2006-08-28  Bruno Haible  <bruno@clisp.org>
73937             Simon Josefsson  <jas@extundo.com>
73938
73939         BeOS portability.
73940         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
73941
73942 2006-08-27  Jim Meyering  <jim@meyering.net>
73943
73944         * doc/visibility.texi: Remove duplicate word: "pointer".
73945
73946 2006-08-26  Bruno Haible  <bruno@clisp.org>
73947
73948         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
73949         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
73950         (Makefile.am): Create inttypes.h from inttypes_.h.
73951         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
73952
73953         * modules/imaxabs: New file.
73954
73955         * modules/imaxdiv: New file.
73956
73957 2006-08-26  Bruno Haible  <bruno@clisp.org>
73958
73959         * m4/inttypes.m4: New file.
73960         * m4/_inttypes_h.m4: Remove file.
73961         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
73962         PRI_MACROS_BROKEN.
73963         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
73964
73965         * m4/imaxabs.m4: New file.
73966
73967         * m4/imaxdiv.m4: New file.
73968
73969 2006-08-26  Bruno Haible  <bruno@clisp.org>
73970
73971         * lib/inttypes_.h: New file.
73972         * lib/inttypes.h: Remove file.
73973         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
73974
73975         * lib/imaxabs.c: New file.
73976
73977         * lib/imaxdiv.c: New file.
73978
73979 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73980
73981         New config-h module, so that "make" output needn't be cluttered
73982         by -DHAVE_CONFIG_H.
73983         * MODULES.html.sh (Support for building libraries and executables):
73984         Add config-h.
73985         * modules/config-h: New file.
73986         * gnulib-tool (nl, sed_transform_lib_file): New vars.
73987         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
73988         the config-h module is used.
73989
73990         New configmake module, so that "make" output needn't be cluttered
73991         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
73992         * MODULES.html.sh (Support for building libraries and executables):
73993         Add configmake.
73994         * modules/configmake: New file.
73995
73996 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73997
73998         * m4/config-h.m4: New file.
73999
74000 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74001
74002         * config/srclist.txt: Add elisp-comp.
74003
74004 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74005
74006         * MODULES.html.sh (Support for building libraries and executables):
74007         Add elisp-comp.
74008         * build-aux/elisp-comp: New file.
74009         * modules/elisp-comp: New file.
74010
74011 2006-08-24  Bruno Haible  <bruno@clisp.org>
74012
74013         * gnulib-tool (func_create_testdir): Use non-default values of
74014         sourcebase and m4base.
74015
74016 2006-08-24  Bruno Haible  <bruno@clisp.org>
74017
74018         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74019         HTML structure.
74020
74021 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74022
74023         * modules/openat (Depends-on): Add lchown.
74024
74025 2006-08-23  Bruno Haible  <bruno@clisp.org>
74026
74027         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74028         of gl_LOCK_EARLY instead of gl_LOCK.
74029
74030 2006-08-23  Bruno Haible  <bruno@clisp.org>
74031
74032         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74033         on OSF/1 to no.
74034         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74035
74036 2006-08-23  Bruno Haible  <bruno@clisp.org>
74037
74038         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74039         as unusable.
74040
74041         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74042         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74043         (gl_LOCK): New macro.
74044
74045 2006-08-22  Simon Josefsson  <jas@extundo.com>
74046
74047         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74048         to md5 module.
74049
74050 2006-08-22  Simon Josefsson  <jas@extundo.com>
74051
74052         * MODULES.html.sh: Add "Support for maintaining and release
74053         projects".
74054
74055         * build-aux/gnupload: New file, from coreutils.
74056
74057 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74058
74059         Avoid the need for AC_LIBSOURCES in m4 macros.
74060         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74061         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74062         * modules/check-version (EXTRA_DIST): Add check-version.h.
74063         * modules/crc (EXTRA_DIST): Add crc.h.
74064         * modules/des (EXTRA_DIST): Add des.h.
74065         * modules/gc (EXTRA_DIST): Add gc.h.
74066         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74067         * modules/getline (EXTRA_DIST): Add getline.h.
74068         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74069         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74070         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74071         * modules/md2 (EXTRA_DIST): Add md2.h.
74072         * modules/md4 (EXTRA_DIST): Add md4.h.
74073         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74074         * modules/read-file (EXTRA_DIST): Add read-file.h.
74075         * modules/readline (EXTRA_DIST): Add readline.h.
74076         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74077         rijndael-api-fst.h.
74078
74079 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74080
74081         * m4/rijndael.m4 (gl_ARCFOUR):
74082         * m4/arctwo.m4 (gl_ARCTWO):
74083         * m4/check-version.m4 (gl_CHECK_VERSION):
74084         * m4/crc.m4 (gl_CRC):
74085         * m4/des.m4 (gl_DES):
74086         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74087         * m4/gc.m4 (gl_GC):
74088         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74089         * m4/getline.m4 (gl_FUNC_GETLINE):
74090         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74091         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74092         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74093         * m4/md2.m4 (gl_MD2):
74094         * m4/md4.m4 (gl_MD4):
74095         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74096         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74097         * m4/readline.m4 (gl_FUNC_READLINE):
74098         * m4/rijndael.m4 (gl_RIJNDAEL):
74099         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74100         to get the necessary .h files and whatnot.
74101
74102 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74103
74104         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74105         gnulib rather than the other way around.
74106         * config/srclistvars.sh (COREUTILS): Remove.
74107
74108 2006-08-22  Jim Meyering  <jim@meyering.net>
74109
74110         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74111
74112         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74113
74114 2006-08-22  Eric Blake  <ebb9@byu.net>
74115
74116         * modules/regexprops-generic: New file.
74117         * MODULES.html.sh (Support for building documentation): List it.
74118
74119 2006-08-22  Eric Blake  <ebb9@byu.net>
74120
74121         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74122         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74123         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74124         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74125
74126 2006-08-22  Bruno Haible  <bruno@clisp.org>
74127
74128         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74129         and lib_LTLIBRARIES like the other lib_* variables.
74130
74131 2006-08-22  Bruno Haible  <bruno@clisp.org>
74132
74133         * build-aux/x-to-1.in: New file, from GNU gettext.
74134
74135 2006-08-22  Bruno Haible  <bruno@clisp.org>
74136
74137         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74138         <utmpx.h> exists.
74139
74140 2006-08-22  Bruno Haible  <bruno@clisp.org>
74141
74142         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74143         <utmpx.h> exists.
74144
74145 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74146
74147         BeOS portability.
74148         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74149         exist.
74150         Problem reported by Bruno Haible.
74151
74152 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74153
74154         Avoid the need for AC_LIBSOURCES in m4 macros.
74155         * modules/acl (EXTRA_DIST): Add acl.h.
74156         * modules/argmatch (Files): Add m4/argmatch.m4.
74157         (configure.ac): Add gl_ARGMATCH.
74158         (EXTRA_DIST): Renamed from lib_SOURCES, for
74159         consistency with the other modules.  Remove argmatch.c.
74160         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74161         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74162         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74163         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74164         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74165         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74166         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74167         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74168         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74169         * modules/closeout (EXTRA_DIST): Add closeout.h.
74170         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74171         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74172         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74173         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74174         dirname.h; remove basename.c and stripslash.c.
74175         * modules/exclude (EXTRA_DIST): Add exclude.h.
74176         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74177         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74178         * modules/file-type (EXTRA_DIST): Add file-type.h.
74179         * modules/filemode (EXTRA_DIST): Add filemode.h.
74180         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74181         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74182         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74183         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74184         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74185         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74186         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74187         * modules/getdate (EXTRA_DIST): Add getdate.c.
74188         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74189         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74190         * modules/getpass (EXTRA_DIST): Add getpass.h.
74191         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74192         * modules/group-member (EXTRA_DIST): Add group-member.h.
74193         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74194         * modules/hash (EXTRA_DIST): Add hash.h.
74195         * modules/human (EXTRA_DIST): Add human.h.
74196         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74197         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74198         * modules/lchown (EXTRA_DIST): Add lchown.h.
74199         * modules/long-options (EXTRA_DIST): Add long-options.h.
74200         * modules/lstat (EXTRA_DIST): Add lstat.h.
74201         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74202         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74203         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74204         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74205         * modules/memxor (EXTRA_DIST): Add memxor.h.
74206         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74207         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74208         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74209         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74210         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74211         * modules/physmem (EXTRA_DIST): Add physmem.h.
74212         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74213         * modules/posixver (EXTRA_DIST): Add posixver.h.
74214         * modules/quote (EXTRA_DIST): Add quote.h.
74215         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74216         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74217         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74218         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74219         regex_internal.h regexec.c.
74220         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74221         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74222         * modules/same (EXTRA_DIST): Add same.h.
74223         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74224         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74225         * modules/savedir (EXTRA_DIST): Add savedir.h.
74226         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74227         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74228         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74229         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74230         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74231         * modules/strdup (EXTRA_DIST): Add strdup.h.
74232         * modules/strftime (EXTRA_DIST): Add strftime.h.
74233         * modules/strndup (EXTRA_DIST): Add strndup.h.
74234         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74235         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74236         * modules/time_r (EXTRA_DIST): Add time_r.h.
74237         * modules/timespec (EXTRA_DIST): Add timespec.h.
74238         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74239         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74240         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74241         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74242         * modules/userspec (EXTRA_DIST): Add userspec.h.
74243         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74244         * modules/utimens (EXTRA_DIST): Add utimens.h.
74245         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74246         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74247         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74248         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74249         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74250         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74251         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74252         * modules/yesno (EXTRA_DIST): Add yesno.h.
74253
74254 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74255
74256         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74257
74258         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74259         * m4/dev-ino.m4, same-inode.m4: Remove.
74260
74261         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74262         * m4/acl.m4 (AC_FUNC_ACL):
74263         * m4/backupfile.m4 (gl_BACKUPFILE):
74264         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74265         * m4/canon-host.m4 (gl_CANON_HOST):
74266         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74267         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74268         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74269         * m4/cloexec.m4 (gl_CLOEXEC):
74270         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74271         * m4/closeout.m4 (gl_CLOSEOUT):
74272         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74273         * m4/dirname.m4 (gl_DIRNAME):
74274         * m4/exclude.m4 (gl_EXCLUDE):
74275         * m4/exitfail.m4 (gl_EXITFAIL):
74276         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74277         * m4/file-type.m4 (gl_FILE_TYPE):
74278         * m4/filemode.m4 (gl_FILEMODE):
74279         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74280         * m4/fpending.m4 (gl_FUNC_FPENDING):
74281         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74282         * m4/fts.m4 (gl_FUNC_FTS):
74283         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74284         * m4/getdate.m4 (gl_GETDATE):
74285         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74286         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74287         * m4/getpass.m4 (gl_FUNC_GETPASS):
74288         * m4/gettime.m4 (gl_GETTIME):
74289         * m4/getugroups.m4 (gl_GETUGROUPS):
74290         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74291         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74292         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74293         * m4/hash.m4 (gl_HASH):
74294         * m4/idcache.m4 (gl_IDCACHE):
74295         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74296         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74297         * m4/long-options.m4 (gl_LONG_OPTIONS):
74298         * m4/lstat.m4 (gl_FUNC_LSTAT):
74299         * m4/md5.m4 (gl_MD5):
74300         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74301         * m4/memcoll.m4 (gl_MEMCOLL):
74302         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74303         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74304         * m4/memxor.m4 (gl_MEMXOR):
74305         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74306         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74307         * m4/modechange.m4 (gl_MODECHANGE):
74308         * m4/mountlist.m4 (gl_MOUNTLIST):
74309         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74310         * m4/openat.m4 (gl_FUNC_OPENAT):
74311         * m4/pathmax.m4 (gl_PATHMAX):
74312         * m4/physmem.m4 (gl_PHYSMEM):
74313         * m4/posixtm.m4 (gl_POSIXTM):
74314         * m4/posixver.m4 (gl_POSIXVER):
74315         * m4/quote.m4 (gl_QUOTE):
74316         * m4/quotearg.m4 (gl_QUOTEARG):
74317         * m4/readtokens.m4 (gl_READTOKENS):
74318         * m4/readutmp.m4 (gl_READUTMP):
74319         * m4/regex.m4 (gl_REGEX):
74320         * m4/safe-read.m4 (gl_SAFE_READ):
74321         * m4/safe-write.m4 (gl_SAFE_WRITE):
74322         * m4/same.m4 (gl_SAME):
74323         * m4/save-cwd.m4 (gl_SAVE_CWD):
74324         * m4/savedir.m4 (gl_SAVEDIR):
74325         * m4/settime.m4 (gl_SETTIME):
74326         * m4/sha1.m4 (gl_SHA1):
74327         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
74328         * m4/stat-macros.m4 (gl_STAT_MACROS):
74329         * m4/stat-time.m4 (gl_STAT_TIME):
74330         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
74331         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
74332         * m4/strdup.m4 (gl_FUNC_STRDUP):
74333         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
74334         * m4/strndup.m4 (gl_FUNC_STRNDUP):
74335         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
74336         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
74337         * m4/time_r.m4 (gl_TIME_R):
74338         * m4/timespec.m4 (gl_TIMESPEC):
74339         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
74340         * m4/unlinkdir.m4 (gl_UNLINKDIR):
74341         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
74342         * m4/userspec.m4 (gl_USERSPEC):
74343         * m4/utimecmp.m4 (gl_UTIMECMP):
74344         * m4/utimens.m4 (gl_UTIMENS):
74345         * m4/xalloc.m4 (gl_XALLOC):
74346         * m4/xgetcwd.m4 (gl_XGETCWD):
74347         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
74348         * m4/xreadlink.m4 (gl_XREADLINK):
74349         * m4/xstrtod.m4 (gl_XSTRTOD):
74350         * m4/yesno.m4 (gl_YESNO):
74351         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74352         to get the necessary .h files and whatnot.
74353
74354 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
74355             Bruno Haible  <bruno@clisp.org>
74356
74357         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74358         /bin/sh understanding of '!' conditional negation.
74359
74360 2006-08-21  Jim Meyering  <jim@meyering.net>
74361
74362         * modules/openat (Depends-on): Really alphabetize.
74363
74364         * modules/acl (Depends-on): Add error and quote.
74365
74366         * check-module (find_included_lib_files): Add at-func.c to the
74367         ok-to-include-more-than-once white list.
74368
74369         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74370
74371 2006-08-21  Bruno Haible  <bruno@clisp.org>
74372
74373         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74374         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74375         Reported by Martin Lambers <marlam@marlam.de>.
74376
74377 2006-08-21  Bruno Haible  <bruno@clisp.org>
74378
74379         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74380         specify an installation location, don't emit a noinst_LIBRARIES or
74381         noinst_LTLIBRARIES assignment.
74382
74383 2006-08-21  Bruno Haible  <bruno@clisp.org>
74384
74385         BeOS portability.
74386         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74387         BeOS has mbrtowc() but no <wctype.h>.
74388
74389 2006-08-21  Bruno Haible  <bruno@clisp.org>
74390
74391         BeOS portability.
74392         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74393         exist.
74394
74395 2006-08-21  Bruno Haible  <bruno@clisp.org>
74396
74397         BeOS portability.
74398         * lib/mbchar.h: Include <wctype.h> only if it exists.
74399
74400 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74401
74402         Remove files that are no longer needed by their respective modules.
74403         * m4/obstack.m4: Remove.
74404         * m4/strerror_r.m4: Remove.
74405         * m4/uint32_t.m4: Remove.
74406         * m4/uintptr_t.m4: Remove.
74407         * m4/ullong_max.m4: Remove.
74408         * m4/xstrtoimax.m4: Remove.
74409         * m4/xstrtoumax.m4: Remove.
74410
74411         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
74412         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
74413         dependencies now capture this.
74414
74415         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
74416         Do not use AC_LIBSOURCES, since gnulib modules now do this.
74417         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
74418         * m4/human.m4 (gl_HUMAN): Likewise.
74419         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
74420         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
74421
74422         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
74423
74424         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
74425         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
74426         stdint.
74427         * m4/human.m4 (gl_HUMAN): Likewise.
74428         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
74429         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
74430         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74431         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74432         * m4/xstrtol (gl_XSTRTOL): Likewise.
74433
74434         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
74435         AC_TYPE_LONG_LONG_INT.
74436         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74437         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
74438         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
74439         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74440
74441         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
74442         on stdbool.
74443
74444         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
74445         (gl_PREREQ_XSTRTOUL): Remove.
74446
74447         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
74448
74449         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
74450         mode.
74451
74452 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74453
74454         Add and change modules to make it easier for coreutils to use
74455         gnulib-tool.
74456         * modules/backupfile (Files): Remove m4/d-ino.m4.
74457         (Depends-on): Add d-ino.
74458         * modules/cycle-check (Depends-on): Add stdint.
74459         (lib_SOURCES): Add cycle-check.h.
74460         * modules/d-ino: New module.
74461         * modules/d-type: New module.
74462         * modules/error (Files): Remove m4/strerror_r.m4.
74463         * modules/filemode (Files): Add m4/st_dm_mode.m4.
74464         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74465         m4/inttypes_h.m4, m4/uintmax_t.m4.
74466         (Depends-on): Add stdint.
74467         (lib_SOURCES): Add fsusage.h.
74468         * modules/getcwd (Files): Remove d-ino.m4.
74469         (Depends-on): Add d-ino.
74470         * modules/getndelim2 (Depends-on): Add stdint.
74471         * modules/glob (Files): Remove m4/d-type.m4.
74472         (Depends-on): Add d-type.
74473         * modules/host-os: New module.
74474         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
74475         m4/inttypes_h.m4, m4/uintmax_t.m4.
74476         * Depends-on: Add stdint.
74477         (lib_SOURCES): Add human.h.
74478         * modules/inttostr (Files): Remove m4/intmax_t.m4,
74479         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
74480         m4/uintmax_t.m4, m4/ulonglong.m4.
74481         (Depends-on): Add stdint.
74482         (EXTRA_DIST): Add inttostr.h.
74483         * modules/lchmod: New module.
74484         * modules/link-follow: New module.
74485         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
74486         (Depends-on): Add lchmod.
74487         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
74488         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
74489         (Depends-on): Add stdint.
74490         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
74491         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
74492         (Depends-on): Add stdint.
74493         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
74494         * modules/perl: New module.
74495         * modules/regex (Depends-on): Add stdint.
74496         * modules/rmdir-errno: New module.
74497         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74498         m4/intmax_t.m4.
74499         (Depends-on): Add stdint.
74500         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74501         m4/uintmax_t.m4.
74502         (Depends-on): Add stdint.
74503         * modules/unlink-busy: New module.
74504         * modules/utimecmp (Depends-on): Add stdint.
74505         * modules/uptime: New module.
74506         * modules/winsz-ioctl: New module.
74507         * modules/winsz-termios: New module.
74508         * modules/xnanosleep (Depends-on): Add nanosleep.
74509         * modules/ullong_max: Remove.
74510         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74511         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74512         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74513         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74514         (Depends-on): Add inttypes.
74515         (lib_SOURCES): Add xstrtol.h.
74516         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74517         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74518         * MODULES.html.sh: Move 'assert' into the assert section.
74519         Move 'dummy' into the linking section.
74520         Remove ullong_max.
74521         Add section for compatibility checks for POSIX:2001 functions,
74522         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74523         winsz-ioctl, and winsz-termios into it.
74524         Add lchmod.
74525         Add top-level Misc section and put host-os, perl, and uptime
74526         into it.
74527
74528 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74529
74530         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74531         now assume the stdint module.  Do not include inttypes.h.
74532         * lib/fsusage.h: Likewise.
74533         * lib/getndelim2.c: Likewise.
74534         * lib/human.h: Likewise.
74535         * lib/inttostr.h: Likewise.
74536         * lib/obstack.c: Likewise.
74537         * lib/regex_internal.h: Likewise.
74538         * lib/tempname.c: Likewise.
74539         * lib/utimecmp.c: Likewise.
74540         * lib/xstrtol.h: Likewise.
74541
74542         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74543
74544         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74545         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74546         * lib/xtime.h: Likewise.
74547
74548 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74549
74550         * modules/openat (Files): Add lib/fchmodat.c.
74551         Fixes problem reported by Jay Youngman.
74552
74553 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74554
74555         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74556         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74557
74558 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74559             Bruno Haible  <bruno@clisp.org>
74560
74561         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74562         and is a script that invokes bison. Tighten the code. Add comments.
74563
74564 2006-08-18  Jim Meyering  <jim@meyering.net>
74565
74566         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74567         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74568         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74569         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74570
74571 2006-08-18  Bruno Haible  <bruno@clisp.org>
74572
74573         * modules/bison-i18n: New file.
74574         * MODULES.html.sh (Internationalization functions): Add it.
74575
74576 2006-08-18  Bruno Haible  <bruno@clisp.org>
74577
74578         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74579         sys/statvfs.h. When getmntinfo was found, check its declaration and
74580         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74581
74582 2006-08-18  Bruno Haible  <bruno@clisp.org>
74583
74584         * m4/bison-i18n.m4: New file, from bison.
74585
74586 2006-08-18  Bruno Haible  <bruno@clisp.org>
74587
74588         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74589         (ME_DUMMY): Treat "kernfs" as a dummy.
74590         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74591
74592 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74593
74594         Update from coreutils.
74595
74596         2006-08-15  Jim Meyering  <jim@meyering.net>
74597
74598         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74599
74600         2006-01-17  Jim Meyering  <jim@meyering.net>
74601
74602         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74603
74604         2006-01-11  Jim Meyering  <jim@meyering.net>
74605
74606         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74607         Check for the lchmod function.
74608
74609 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74610
74611         Update from coreutils.
74612
74613         * lib/__fpending.h: Add copyright notice.
74614         * lib/fprintftime.h: Likewise.
74615         * lib/savedir.c: Use (C) in copyright notice.
74616         * lib/savedir.h: Likewise.
74617
74618         2006-08-15  Jim Meyering  <jim@meyering.net>
74619
74620         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74621         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74622         in support of the EXPECTED_ERRNO macro.
74623         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74624         definitions.  Instead, define the appropriate symbols and include
74625         "at-func.c".
74626         * lib/mkdirat.c (mkdirat): Likewise.
74627         * lib/fchmodat.c (fchmodat): Likewise.
74628         (ENOSYS): Remove definition.
74629         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74630         it.  Don't include "unistd--.h" -- it wasn't ever used.
74631
74632         2006-01-17  Jim Meyering  <jim@meyering.net>
74633
74634         Rewrite fts.c not to change the current working directory,
74635         by using openat, fstatat, fdopendir, etc..
74636
74637         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74638         (HAVE_OPENAT_SUPPORT): Define.
74639         [_LIBC] (fchdir): Don't undef or define; no longer used.
74640         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74641         Now, this `function' always succeeds, and consumes its file descriptor
74642         parameter -- so callers must not close such FDs.  Update callers.
74643         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74644         (diropen): Add parameter, SP.  Adjust all callers.
74645         Implement using diropen_fd, rather than open.
74646         (fts_open): Initialize new member, fts_cwd_fd.
74647         Remove fts_rft-setting code.
74648         (fts_close): Close fts_cwd_fd, if necessary.
74649         (__opendir2): Define in terms of opendir or opendirat,
74650         depending on whether the FST_NOCHDIR flag is set.
74651         (fts_build): Since fts_safe_changedir consumes its FD, and since
74652         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74653         and close the dup'd file descriptor upon failure.
74654         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74655         (fts_safe_changedir): Tweak semantics to reflect that this function
74656         now calls cwd_advance_fd and hence consumes its FD argument.
74657         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
74658         [struct FTS] (fts_rft): Remove now-unused member.
74659         [struct FTS] (fts_cycle.state): Improve comment.
74660
74661         * lib/openat.c (openat_needs_fchdir): New function.
74662         * lib/openat.h (openat_needs_fchdir): Declare it.
74663
74664 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74665
74666         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
74667         Problem and fix reported by Pádraig Brady in
74668         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
74669
74670 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74671
74672         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
74673
74674 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74675
74676         * lib/memcoll.c (memcoll): Optimize for the common case where the
74677         arguments are bytewise equal.
74678
74679 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74680
74681         * doc/regexprops-generic.texi: Add a copyright notice.
74682
74683 2006-08-15  Bruno Haible  <bruno@clisp.org>
74684
74685         * modules/tmpdir (License): Change to LGPL.
74686
74687 2006-08-15  Bruno Haible  <bruno@clisp.org>
74688
74689         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
74690         module.
74691
74692 2006-08-14  Simon Josefsson  <jas@extundo.com>
74693
74694         * config/srclist.txt: Add gnupload.
74695
74696 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74697
74698         Change copyright notice from LGPL 2 to GPL 2, since that's the
74699         standard form used in the gnulib repository.
74700         * tests/test-lock.c: Likewise.
74701         * tests/test-stdint.c: Likewise.
74702         * tests/test-tls.c: Likewise.
74703
74704         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
74705         prelude-manager.  User shorter URLs for GNU projects, without '?'.
74706         Add copyright notice.
74707
74708         * check-module: Add copyright notice.  Output a copyright
74709         notice if "--version" is specified.
74710         * modules/COPYING: New file.
74711         * tests/test-getaddrinfo.c: Add copyright notice.
74712         * tests/test-verify.c: Likewise.
74713
74714 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74715
74716         Change copyright notice from LGPL 2 to GPL 2, since that's the
74717         standard form used in the gnulib repository.
74718         * lib/lock.c: LGPL -> GPL.
74719         * lib/lock.h: Likewise.
74720         * lib/strnlen1.c: Likewise.
74721         * lib/strnlen1.h: Likewise.
74722         * lib/tls.c: Likewise.
74723         * lib/tls.h: Likewise.
74724         * lib/tmpdir.c: Likewise.
74725
74726         * lib/TODO: Remove; this belongs only in coreutils.
74727
74728 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74729
74730         Add copyright notices to long-enough files that lack them, since
74731         otherwise the files aren't clearly free.  Use the same notice that
74732         getdate.texi already uses.
74733         * doc/alloca-opt.texi: Add copyright notice.
74734         * doc/alloca.texi: Likewise.
74735         * doc/ctime.texi: Likewise.
74736         * doc/functions.texi: Likewise.
74737         * doc/gcd.texi: Likewise.
74738         * doc/gnulib-tool.texi: Likewise.
74739         * doc/inet_ntoa.texi: Likewise.
74740         * doc/visibility.texi: Likewise.
74741
74742         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
74743         * doc/quote.texi: Add copyright notice.
74744
74745         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
74746         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
74747         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
74748         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
74749         is now obsolete, and give a pointer to the Sun list.
74750         Add copyright notice.
74751
74752 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74753
74754         * config/srclistvars.sh: Add copyright notice.
74755
74756 2006-08-14  Eric Blake  <ebb9@byu.net>
74757
74758         Import the following change from libc:
74759
74760         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
74761
74762         Upstream bug 2997.
74763         * lib/misc/error.c: Add space between program name and message if file
74764         name is missing.
74765
74766 2006-08-12  Karl Berry  <karl@gnu.org>
74767
74768         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
74769         remove, these originate in gnulib now.
74770
74771 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74772
74773         * doc/Makefile (standards.info standards.html standards.dvi):
74774         Also depend on make-stds.texi.
74775
74776 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74777
74778         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
74779         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
74780
74781         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
74782         in wchar_t.  Problem reported by Eric Blake.
74783
74784         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
74785         LEN is smaller than SIZE.  Suggested by Bruno Haible.
74786         Also, help the compiler to keep LEN in a register.
74787
74788 2006-08-11  Eric Blake  <ebb9@byu.net>
74789
74790         * users.txt: Sort.  Add tar.
74791
74792 2006-08-11  Bruno Haible  <bruno@clisp.org>
74793
74794         * users.txt: New file.
74795
74796 2006-08-11  Bruno Haible  <bruno@clisp.org>
74797
74798         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
74799         before <wchar.h>. Needed for OSF/1 and BSD/OS.
74800
74801 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74802
74803         * modules/snprintf (Depends-on): Remove minmax.
74804         (Maintainer): Add self and Bruno.
74805
74806 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74807
74808         * lib/.cppi-disable: Add snprintf.h, socket_.h.
74809         * lib/snprintf.c: Include <errno.h> and <limits.h>.
74810         (EOVERFLOW): Define if the system does not.
74811         Do not include "minmax.h"; it wasn't used.
74812         (snprintf): Don't assume size_t promotes to an unsigned type.
74813         Fix bug when generated string was too long for the buffer: the
74814         buffer's contents are supposed to be the initial prefix of the
74815         output.  Don't assume vasnprintf returns EOVERFLOW if the size
74816         exceeds INT_MAX; do the check ourselves.
74817
74818         Import the following changes from libc:
74819
74820         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
74821
74822         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
74823         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
74824         set wc to the byte which couldn't be converted.
74825         (re_string_reconstruct): Don't clear valid_raw_len before calling
74826         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
74827         tip_context using re_string_context_at.
74828
74829         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
74830
74831         * lib/posix/regex.h: g++ still cannot handled [restrict].
74832
74833         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
74834
74835         * lib/posix/regex.h: Remove special handling for VMS.
74836
74837 2006-08-10  Jim Meyering  <jim@meyering.net>
74838
74839         * modules/same-inode: New module.
74840         * modules/dev-ino: New module.
74841         * modules/cycle-check: Depend on these modules, rather than simply
74842         including their .h files.
74843         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
74844         required via m4/cycle-check.m4.
74845         * modules/same: Depend on new same-inode module, rather than
74846         including same-inode.h.
74847         * modules/chdir-safer: New file.
74848
74849         * modules/chown (Depends-on): Add stat-macros.
74850
74851 2006-08-10  Jim Meyering  <jim@meyering.net>
74852
74853         * m4/cycle-check.m4: New file.
74854         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
74855         * m4/dev-ino.m4, m4/same-inode.m4: New files.
74856
74857 2006-08-10  Eric Blake  <ebb9@byu.net>
74858
74859         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
74860         in from original proposal.
74861
74862 2006-08-10  Eric Blake  <ebb9@byu.net>
74863         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74864
74865         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
74866         namespace.
74867
74868 2006-08-10  Bruno Haible  <bruno@clisp.org>
74869
74870         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
74871         as well.
74872
74873 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74874
74875         Sync from coreutils.
74876
74877         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
74878
74879         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
74880         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
74881
74882 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74883
74884         * modules/restrict: Remove; no longer needed now that we assume
74885         Autoconf 2.59 or later.
74886         * MODULES.html.sh: Remove 'restrict'.
74887         * modules/argp (Depends-on): Remove 'restrict'.
74888         * modules/base64 (Depends-on): Likewise.
74889         * modules/gc (Depends-on): Likewise.
74890         * modules/getaddrinfo (Depends-on): Likewise.
74891         * modules/glob (Depends-on): Likewise.
74892         * modules/inet_ntop (Depends-on): Likewise.
74893         * modules/inet_pton (Depends-on): Likewise.
74894         * modules/memxor (Depends-on): Likewise.
74895         * modules/regex (Depends-on): Likewise.
74896         * modules/strtok_r (Depends-on): Likewise.
74897         * modules/time_r (Depends-on): Likewise.
74898
74899 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74900
74901         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
74902         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
74903         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
74904         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
74905         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
74906         * m4/memxor.m4 (gl_MEMXOR): Likewise.
74907         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
74908         gl_C_RESTRICT replaced by AC_C_RESTRICT.
74909
74910         Merge from coreutils.
74911         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
74912         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
74913         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74914         * m4/time_r.m4 (gl_TIME_R): Likewise.
74915
74916 2006-08-09  Karl Berry  <karl@gnu.org>
74917
74918         * config/srclist.txt: no more gettext-tools, per Bruno.
74919
74920 2006-08-08  Eric Blake  <ebb9@byu.net>
74921
74922         * modules/verror: New module.
74923         * MODULES.html.sh: Document it.
74924
74925 2006-08-08  Eric Blake  <ebb9@byu.net>
74926
74927         * lib/verror.h, lib/verror.c: New files.
74928
74929 2006-08-08  Eric Blake  <ebb9@byu.net>
74930
74931         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
74932         verror_at_line output complies with GNU Coding Standards even when
74933         file is NULL.
74934
74935 2006-08-07  Bruno Haible  <bruno@clisp.org>
74936
74937         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
74938         versions of AIX.
74939         Reported by Ralf Wildenhues.
74940
74941 2006-08-07  Bruno Haible  <bruno@clisp.org>
74942
74943         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
74944         in an AC_DEFUN. Needed so that the autoconf snippets can use
74945         AC_REQUIRE.
74946
74947 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74948
74949         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74950         Initialize pkgdata_DATA.
74951         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
74952         overriding it.
74953
74954 2006-08-06  Eric Blake  <ebb9@byu.net>
74955
74956         * lib/error.h: Fold in some upstream changes from glibc.
74957         * lib/error.c: Likewise.
74958
74959 2006-08-04  Bruno Haible  <bruno@clisp.org>
74960
74961         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74962         Make the mostlyclean-local rule depend on mostlyclean-generic.
74963         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
74964
74965 2006-07-31  Bruno Haible  <bruno@clisp.org>
74966
74967         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
74968         <stdlib.h>, <string.h>.
74969
74970 2006-07-30  Bruno Haible  <bruno@clisp.org>
74971
74972         * modules/readlink (License): Change to LGPL.
74973
74974 2006-07-30  Bruno Haible  <bruno@clisp.org>
74975
74976         * modules/javaversion (Makefile.am): Distribute javaversion.java and
74977         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
74978         set PKGDATADIR to point to it.
74979
74980 2006-07-30  Bruno Haible  <bruno@clisp.org>
74981
74982         * modules/csharpexec (configure.ac): Comment out macro invocation.
74983         * modules/javaexec (configure.ac): Likewise.
74984         * modules/javacomp-script (configure.ac): Likewise.
74985
74986         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
74987
74988 2006-07-30  Bruno Haible  <bruno@clisp.org>
74989
74990         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
74991         linked-list.
74992
74993 2006-07-30  Bruno Haible  <bruno@clisp.org>
74994
74995         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
74996
74997 2006-07-30  Bruno Haible  <bruno@clisp.org>
74998
74999         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75000         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75001         get removed.
75002
75003 2006-07-29  Bruno Haible  <bruno@clisp.org>
75004
75005         Make it possible for gnulib-tool to work with locally modified or
75006         augmented gnulib repositories.
75007         * gnulib-tool (func_usage): Document --local-dir option.
75008         (local_gnulib_dir): New variable.
75009         Handle --local-dir option.
75010         (func_lookup_file): New function.
75011         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75012         (func_get_description, func_get_filelist, func_get_description,
75013         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75014         func_get_automake_snippet, func_get_include_directive,
75015         func_get_license, func_get_maintainer): Use func_lookup_file.
75016         (func_import, func_create_testdir): Use func_lookup_file.
75017
75018 2006-07-29  Bruno Haible  <bruno@clisp.org>
75019
75020         * modules/setenv (Depends-on): Add unistd.
75021
75022 2006-07-29  Bruno Haible  <bruno@clisp.org>
75023
75024         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75025
75026 2006-07-29  Bruno Haible  <bruno@clisp.org>
75027
75028         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75029
75030 2006-07-29  Bruno Haible  <bruno@clisp.org>
75031
75032         * gnulib-tool (import, update): If there is no Makefile.am, look at
75033         aclocal.m4, instead of bailing out.
75034
75035 2006-07-29  Bruno Haible  <bruno@clisp.org>
75036
75037         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75038         Categorize the options by when they are useful.
75039
75040 2006-07-29  Bruno Haible  <bruno@clisp.org>
75041
75042         * gnulib-tool (func_usage): Document option --no-libtool.
75043         Handle option --no-libtool.
75044         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75045         for changed semantics of $libtool variable.
75046         (func_import): Likewise. If libtool is not used, show this through
75047         an option --no-libtool.
75048         (func_create_testdir): Update.
75049
75050 2006-07-29  Bruno Haible  <bruno@clisp.org>
75051
75052         * gnulib-tool (func_import): Extend error message about missing
75053         --doc-base.
75054
75055 2006-07-29  Bruno Haible  <bruno@clisp.org>
75056
75057         * gnulib-tool (func_import): Don't create the $docbase directory if
75058         there is no file to store there.
75059
75060 2006-07-29  Bruno Haible  <bruno@clisp.org>
75061
75062         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75063         relevant, look for configure.ac there, not in the current directory.
75064         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75065
75066 2006-07-29  Bruno Haible  <bruno@clisp.org>
75067
75068         * gnulib-tool (SORT): New variable.
75069         (func_usage): Undocument --assume-autoconf option.
75070         Remove --assume-autoconf option handling.
75071         (autoconf_minversion): Determine from the contents of configure.ac.
75072         (func_import): Remove autoconf_minversion handling.
75073         Suggested by Eric Blake.
75074
75075 2006-07-29  Bruno Haible  <bruno@clisp.org>
75076
75077         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75078
75079 2006-07-29  Bruno Haible  <bruno@clisp.org>
75080
75081         * config/srclist.txt (*setenv.[ch]): Remove rules.
75082
75083 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75084
75085         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75086
75087 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75088
75089         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75090         arpa/inet.h.
75091
75092 2006-07-28  Simon Josefsson  <jas@extundo.com>
75093
75094         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75095         * modules/inet_pton (Depends-on): Likewise.
75096
75097 2006-07-28  Simon Josefsson  <jas@extundo.com>
75098
75099         * m4/netinet_in_h.m4: New file.
75100
75101 2006-07-28  Simon Josefsson  <jas@extundo.com>
75102
75103         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75104         #include's.
75105
75106 2006-07-28  Simon Josefsson  <jas@extundo.com>
75107
75108         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75109         #include's.
75110
75111 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75112
75113         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75114         setgid on directories only if they set these bits.
75115         * lib/modechange.h: Remove obsolete comment about masks.
75116
75117 2006-07-28  Eric Blake  <ebb9@byu.net>
75118
75119         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75120         macro expansion.
75121
75122 2006-07-28  Bruno Haible  <bruno@clisp.org>
75123
75124         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75125
75126 2006-07-28  Bruno Haible  <bruno@clisp.org>
75127
75128         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75129
75130 2006-07-28  Bruno Haible  <bruno@clisp.org>
75131
75132         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75133         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75134         Define fallbacks.
75135         Avoids link error on FreeBSD 4.x.
75136         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75137
75138         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75139         encoding.
75140         * lib/mbswidth.c (iswcntrl): Likewise.
75141
75142 2006-07-27  Bruno Haible  <bruno@clisp.org>
75143
75144         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75145         test.
75146
75147 2006-07-27  Bruno Haible  <bruno@clisp.org>
75148
75149         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75150         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75151         defined.
75152
75153 2006-07-26  Eric Blake  <ebb9@byu.net>
75154
75155         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75156
75157 2006-07-26  Eric Blake  <ebb9@byu.net>
75158
75159         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75160         like mingw that lack mkstemp.
75161         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75162         avoid compilation warning on mingw.
75163
75164 2006-07-26  Bruno Haible  <bruno@clisp.org>
75165
75166         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75167         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75168         INT_FAST*_MIN, INTPTR_MIN.
75169
75170 2006-07-25  Bruno Haible  <bruno@clisp.org>
75171
75172         * modules/version-etc (Depends-on): Add stdarg.
75173
75174 2006-07-25  Bruno Haible  <bruno@clisp.org>
75175
75176         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75177         complex commands.
75178
75179 2006-07-25  Bruno Haible  <bruno@clisp.org>
75180
75181         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75182         defined in <stdarg.h> or config.h.
75183
75184 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75185
75186         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75187         (gl_STDIO_SAFER): Remove.
75188
75189 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75190
75191         * MODULES.html.sh (File stream based Input/Output):
75192         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75193         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75194         * modules/fopen-safer, modules/tmpfile-safer: New files.
75195         * modules/stdio-safer: Remove.
75196
75197 2006-07-24  Bruno Haible  <bruno@clisp.org>
75198
75199         * modules/tmpdir: New file.
75200         * MODULES.html.sh (File system functions): Add it.
75201
75202 2006-07-24  Bruno Haible  <bruno@clisp.org>
75203
75204         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75205         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75206
75207 2006-07-24  Bruno Haible  <bruno@clisp.org>
75208
75209         * modules/clean-temp: New file.
75210
75211 2006-07-24  Bruno Haible  <bruno@clisp.org>
75212
75213         * m4/tmpdir.m4: New file, from GNU gettext.
75214
75215 2006-07-24  Bruno Haible  <bruno@clisp.org>
75216
75217         * lib/tmpdir.h: New file, from GNU gettext.
75218         * lib/tmpdir.c: New file, from GNU gettext.
75219
75220 2006-07-24  Bruno Haible  <bruno@clisp.org>
75221
75222         * lib/clean-temp.h: New file, from GNU gettext.
75223         * lib/clean-temp.c: New file, from GNU gettext.
75224
75225 2006-07-23  Eric Blake  <ebb9@byu.net>
75226
75227         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75228         (Depends-on): Add binary-io.
75229
75230 2006-07-23  Eric Blake  <ebb9@byu.net>
75231
75232         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75233
75234 2006-07-23  Eric Blake  <ebb9@byu.net>
75235
75236         * lib/tmpfile-safer.c: New file.
75237         * lib/stdio-safer.h (fopen_safer): Add prototype.
75238         * lib/stdio--.h (tmpfile): Make safer.
75239
75240 2006-07-23  Bruno Haible  <bruno@clisp.org>
75241
75242         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75243         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75244         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75245         gl_linked_remove_at): Use it.
75246
75247 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75248         and Simon Josefsson <jas@extundo.com>
75249
75250         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75251
75252         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75253
75254 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75255
75256         * modules/close-stream: New file.
75257         * modules/closeout (Description): Make it clear that it exits
75258         with a diagnostic on error.
75259         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75260         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75261
75262 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75263
75264         * m4/close-stream.m4: New file.
75265
75266 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75267
75268         * lib/close-stream.c, lib/close-stream.h: New files.
75269
75270 2006-07-22  Bruno Haible  <bruno@clisp.org>
75271
75272         Merge from GNU gettext 0.15.
75273
75274         2006-05-01  Bruno Haible  <bruno@clisp.org>
75275
75276                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75277
75278         2006-07-22  Bruno Haible  <bruno@clisp.org>
75279
75280                 * modules/javaversion: New file.
75281                 * MODULES.html.sh (Java): Add javaversion.
75282
75283         2006-03-12  Bruno Haible  <bruno@clisp.org>
75284
75285                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75286
75287         2005-12-04  Bruno Haible  <bruno@clisp.org>
75288
75289                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75290                 (untested).
75291
75292         2006-06-21  Bruno Haible  <bruno@clisp.org>
75293
75294                 Avoid warnings from recent versions of mcs.
75295                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75296                 -o, -L, -r any more. Use options documented since mcs-1.0
75297                 instead. Similarly for -g.
75298
75299         2005-12-04  Bruno Haible  <bruno@clisp.org>
75300
75301                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75302                 .resources, not .resource.
75303
75304         2005-07-09  Bruno Haible  <bruno@clisp.org>
75305
75306                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75307                 add a .dll suffix.
75308                 Reported by Mark Junker <mjscod@gmx.de>.
75309
75310         2006-07-22  Bruno Haible  <bruno@clisp.org>
75311
75312                 * modules/gettext: Upgrade to gettext-0.15.
75313                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75314                 m4/visibility.m4.
75315                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75316
75317 2006-07-22  Bruno Haible  <bruno@clisp.org>
75318
75319         Merge from GNU gettext 0.15.
75320
75321         2006-03-25  Bruno Haible  <bruno@clisp.org>
75322
75323                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
75324
75325         2006-07-21  Bruno Haible  <bruno@clisp.org>
75326
75327                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
75328                 "1.1".
75329
75330         2006-05-09  Bruno Haible  <bruno@clisp.org>
75331
75332                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
75333                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
75334                 for the conftestver execution.
75335
75336         2006-05-01  Bruno Haible  <bruno@clisp.org>
75337
75338                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
75339                 optional target-version argument. Verify that the compiler
75340                 groks source of the specified source-version, or add -source
75341                 option as necessary. Verify that the compiler produces
75342                 bytecode in the specified target-version, or add -target and
75343                 -source options as necessary. Make the result of the test
75344                 available as variable CONF_JAVAC. Also log error output in
75345                 config.log.
75346
75347         2006-03-11  Bruno Haible  <bruno@clisp.org>
75348
75349                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
75350
75351         2006-05-09  Bruno Haible  <bruno@clisp.org>
75352
75353                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75354                 CLASSPATH_SEPARATOR to a semicolon.
75355
75356         2006-03-12  Bruno Haible  <bruno@clisp.org>
75357
75358                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75359                 available as variable CONF_JAVA, for subsequent autoconf
75360                 tests. Also log error output in config.log.
75361
75362         2006-07-19  Bruno Haible  <bruno@clisp.org>
75363
75364                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75365                 that getline works on glibc2 systems. Needed to avoid trouble
75366                 in relocatable.c.
75367                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75368
75369         2005-12-04  Bruno Haible  <bruno@clisp.org>
75370
75371                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75372                 launcher (untested).
75373
75374         2005-12-04  Bruno Haible  <bruno@clisp.org>
75375
75376                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75377
75378         2006-07-22  Bruno Haible  <bruno@clisp.org>
75379
75380                 * gettext.m4: Update from GNU gettext-0.15.
75381                 * nls.m4: Likewise.
75382                 * po.m4: Likewise.
75383                 * inttypes-pri.m4: Likewise.
75384                 * inttypes-h.m4: Renamed from inttypes.m4.
75385                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75386
75387 2006-07-22  Bruno Haible  <bruno@clisp.org>
75388
75389         Merge from GNU gettext 0.15.
75390
75391         2005-07-05  Bruno Haible  <bruno@clisp.org>
75392
75393                 * printf-args.c (printf_fetchargs): Work around broken
75394                 definition of wint_t on mingw.
75395
75396         2005-02-12  Bruno Haible  <bruno@clisp.org>
75397
75398                 * xallocsa.h: Add extern "C" for C++.
75399
75400         2006-05-17  Bruno Haible  <bruno@clisp.org>
75401
75402                 Cygwin portability.
75403                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
75404
75405         2006-04-30  Bruno Haible  <bruno@clisp.org>
75406
75407                 * progreloc.c: Include <mach-o/dyld.h> if available.
75408                 (find_executable): Use _NSGetExecutablePath when possible.
75409
75410         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75411
75412                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
75413                 function.
75414
75415         2005-12-29  Bruno Haible  <bruno@clisp.org>
75416
75417                 * progreloc.c (set_program_name_and_installdir): Fix
75418                 compilation error.
75419
75420         2005-12-04  Bruno Haible  <bruno@clisp.org>
75421
75422                 Cygwin portability.
75423                 * progreloc.c: Include <windows.h> also on Cygwin.
75424                 (find_executable): Add support for Cygwin.
75425                 (set_program_name_and_installdir): Handle also platforms with
75426                 nonempty EXEEXT.
75427
75428         2006-07-11  Bruno Haible  <bruno@clisp.org>
75429
75430                 * javacomp.c: Fix a comment.
75431                 Reported by Jim Meyering.
75432
75433         2006-04-30  Bruno Haible  <bruno@clisp.org>
75434
75435                 * javacomp.h (compile_java_class): Add source_version,
75436                 target_version arguments.
75437                 * javacomp.c: Rewritten to choose only a compiler that
75438                 respects the specified source_version and target_version.
75439
75440         2006-06-27  Bruno Haible  <bruno@clisp.org>
75441
75442                 Assume correct S_ISDIR macro.
75443                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
75444
75445         2006-07-22  Bruno Haible  <bruno@clisp.org>
75446
75447                 * javaversion.h: New file, from GNU gettext.
75448                 * javaversion.c: New file, from GNU gettext.
75449                 * javaversion.java: New file, from GNU gettext.
75450                 * javaversion.class: New file, from GNU gettext.
75451
75452         2006-05-17  Bruno Haible  <bruno@clisp.org>
75453
75454                 Cygwin portability.
75455                 * javaexec.c (execute_java_class): Test for jview program
75456                 also on Cygwin.
75457
75458         2006-04-09  Bruno Haible  <bruno@clisp.org>
75459
75460                 * fatal-signal.c: Don't include string.h.
75461                 (at_fatal_signal): Use a copying loop instead of memcpy.
75462
75463         2005-12-04  Bruno Haible  <bruno@clisp.org>
75464
75465                 * csharpexec.c: Add support for 'clix' launcher (untested).
75466                 (execute_csharp_using_sscli): New function.
75467                 (execute_csharp_program): Call it.
75468
75469         2006-06-21  Bruno Haible  <bruno@clisp.org>
75470
75471                 Avoid warnings from recent versions of mcs.
75472                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
75473                 -o, -L, -r any more. Use options documented since mcs-1.0
75474                 instead. Similarly for -g.
75475
75476         2005-07-09  Bruno Haible  <bruno@clisp.org>
75477
75478                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
75479                 add a .dll suffix.
75480                 Reported by Mark Junker <mjscod@gmx.de>.
75481
75482         2006-06-17  Bruno Haible  <bruno@clisp.org>
75483
75484                 * config.charset: Update for NetBSD 3.0.
75485
75486         2006-05-17  Bruno Haible  <bruno@clisp.org>
75487
75488                 Cygwin portability.
75489                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
75490
75491         2006-05-16  Bruno Haible  <bruno@clisp.org>
75492
75493                 * localcharset.c [CYGWIN]: Include <windows.h>.
75494                 (get_charset_aliases): For Cygwin, return the same CPxxx
75495                 aliases list as under WIN32.
75496                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
75497                 the environment variables. Fall back to GetACP().
75498
75499         2006-04-05  Bruno Haible  <bruno@clisp.org>
75500
75501                 * config.charset: Update Juan Manuel Guerrero's address.
75502
75503         2005-02-12  Bruno Haible  <bruno@clisp.org>
75504
75505                 * allocsa.h: Add extern "C" for C++.
75506
75507         2005-02-10  Bruno Haible  <bruno@clisp.org>
75508
75509                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75510                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75511
75512         2006-07-22  Bruno Haible  <bruno@clisp.org>
75513
75514                 * gettext.h: Update to GNU gettext-0.15.
75515
75516 2006-07-22  Bruno Haible  <bruno@clisp.org>
75517
75518         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75519         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75520         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75521
75522 2006-07-21  Eric Blake  <ebb9@byu.net>
75523
75524         * modules/stdlib-safer: New file.
75525         * MODULES.html.sh (File stream based Input/Output): Add
75526         stdlib-safer.
75527
75528 2006-07-21  Eric Blake  <ebb9@byu.net>
75529
75530         * lib/stdlib-safer.h: New file from coreutils, required by
75531         stdlib--.h.
75532
75533 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75534
75535         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75536
75537 2006-07-20  Bruno Haible  <bruno@clisp.org>
75538
75539         * gnulib-tool: Recognize new option --assume-autoconf.
75540         (autoconf_minversion): New variable.
75541         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75542
75543 2006-07-20  Bruno Haible  <bruno@clisp.org>
75544
75545         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75546
75547 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75548
75549         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75550         Reindent and repaginate.
75551
75552 2006-07-19  Derek Price  <derek@ximbiot.com>
75553
75554         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75555         Correct grammar.
75556
75557 2006-07-17  Bruno Haible  <bruno@clisp.org>
75558
75559         * modules/list: New file.
75560         * modules/array-list: New file.
75561         * modules/carray-list, modules/carray-list-tests: New files.
75562         * modules/linked-list, modules/linked-list-tests: New files.
75563         * modules/avltree-list, modules/avltree-list-tests: New files.
75564         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75565         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75566         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75567         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75568         * modules/oset: New file.
75569         * modules/array-oset: New file.
75570         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75571         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75572         * tests/test-carray_list.c: New file.
75573         * tests/test-linked_list.c: New file.
75574         * tests/test-avltree_list.c: New file.
75575         * tests/test-rbtree_list.c: New file.
75576         * tests/test-linkedhash_list.c: New file.
75577         * tests/test-avltreehash_list.c: New file.
75578         * tests/test-rbtreehash_list.c: New file.
75579         * tests/test-avltree_oset.c: New file.
75580         * tests/test-rbtree_oset.c: New file.
75581         * MODULES.html.sh (Container data structures): New section.
75582
75583 2006-07-17  Bruno Haible  <bruno@clisp.org>
75584
75585         * m4/gl_list.m4: New file.
75586
75587 2006-07-17  Bruno Haible  <bruno@clisp.org>
75588
75589         * lib/gl_list.h: New file.
75590         * lib/gl_list.c: New file.
75591         * lib/gl_array_list.h: New file.
75592         * lib/gl_array_list.c: New file.
75593         * lib/gl_carray_list.h: New file.
75594         * lib/gl_carray_list.c: New file.
75595         * lib/gl_linked_list.h: New file.
75596         * lib/gl_linked_list.c: New file.
75597         * lib/gl_anylinked_list1.h: New file.
75598         * lib/gl_anylinked_list2.h: New file.
75599         * lib/gl_avltree_list.h: New file.
75600         * lib/gl_avltree_list.c: New file.
75601         * lib/gl_anyavltree_list1.h: New file.
75602         * lib/gl_anyavltree_list2.h: New file.
75603         * lib/gl_rbtree_list.h: New file.
75604         * lib/gl_rbtree_list.c: New file.
75605         * lib/gl_anyrbtree_list1.h: New file.
75606         * lib/gl_anyrbtree_list2.h: New file.
75607         * lib/gl_anytree_list1.h: New file.
75608         * lib/gl_anytree_list2.h: New file.
75609         * lib/gl_linkedhash_list.h: New file.
75610         * lib/gl_linkedhash_list.c: New file.
75611         * lib/gl_anyhash_list1.h: New file.
75612         * lib/gl_anyhash_list2.h: New file.
75613         * lib/gl_avltreehash_list.h: New file.
75614         * lib/gl_avltreehash_list.c: New file.
75615         * lib/gl_rbtreehash_list.h: New file.
75616         * lib/gl_rbtreehash_list.c: New file.
75617         * lib/gl_anytreehash_list1.h: New file.
75618         * lib/gl_anytreehash_list2.h: New file.
75619
75620         * lib/gl_oset.h: New file.
75621         * lib/gl_oset.c: New file.
75622         * lib/gl_array_oset.h: New file.
75623         * lib/gl_array_oset.c: New file.
75624         * lib/gl_avltree_oset.h: New file.
75625         * lib/gl_avltree_oset.c: New file.
75626         * lib/gl_rbtree_oset.h: New file.
75627         * lib/gl_rbtree_oset.c: New file.
75628         * lib/gl_anytree_oset.h: New file.
75629
75630 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75631
75632         * m4/mkancesdirs.m4: New file.
75633         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75634         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75635         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75636         it.
75637
75638 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75639
75640         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75641         * lib/mkancesdirs.h: New files.
75642         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75643         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75644         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75645         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75646         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75647         callers changed.  Revamp internals significantly, by not
75648         attempting to create directories that are temporarily more
75649         permissive than the final results.  Do not attempt to use
75650         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75651         This removes some race conditions, fixes some bugs, and simplifies
75652         things.  Use new dirchownmod function to do owner and mode changes.
75653         * lib/mkdir-p.h: Likewise.
75654         * lib/modechange.c (octal_to_mode): New function.
75655         (struct mode_change): New member mentioned.
75656         (make_node_op_equals): New arg mentioned.  All callers changed.
75657         (mode_compile): Keep track of which mode bits the user has explicitly
75658         mentioned.
75659         (mode_adjust): New arg DIR, so that we implement the X op correctly.
75660         New arg PMODE_BITS, to keep track of which mode bits the user
75661         mentioned; it treats S_ISUID and S_ISGID speciall.
75662         All callers changed.
75663         * lib/modechange.h: Likewise.
75664
75665 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75666
75667         * MODULES.html.sh: Add mkancestors.
75668         * modules/mkancesdirs: New module.
75669         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
75670         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
75671         The chdir-safer and afs files are now orphans; I'll remove them
75672         unless someone speaks up.
75673         Add lib/dirchownmod.c, lib/dirchownmod.h.
75674         (Depends-on): Remove alloca, chown, save-cwd, dirname.
75675         Add lchown, mkancesdirs.
75676         (Maintainer): Add self.
75677
75678 2006-07-15  Karl Berry  <karl@gnu.org>
75679
75680         * gnulib-tool: help message wording/arrangement.
75681
75682 2006-07-14  Simon Josefsson  <jas@extundo.com>
75683
75684         * doc/gnulib.texi (Libtool and Windows): New section.
75685
75686 2006-07-12  Simon Josefsson  <jas@extundo.com>
75687
75688         * modules/gendocs (License): Fix license, approved by Karl.
75689
75690 2006-07-12  Eric Blake  <ebb9@byu.net>
75691
75692         * MODULES.html.sh: Add gendocs.
75693
75694 2006-07-11  Eric Blake  <ebb9@byu.net>
75695
75696         * modules/fdl: New module, to install doc/fdl.texi.
75697         * MODULES.html.sh: Add new section for documentation modules.
75698         * gnulib-tool: Avoid space-tab.
75699         (--doc-base): New option, to manage files from doc.
75700
75701 2006-07-11  Eric Blake  <ebb9@byu.net>
75702
75703         * m4/absolute-header.m4: Fix comments to match recent change.
75704
75705 2006-07-11  Eric Blake  <ebb9@byu.net>
75706
75707         * gnulib-tool: List --doc-base before --tests-base.
75708
75709 2006-07-11  Derek R. Price  <derek@ximbiot.com>
75710
75711         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
75712
75713 2006-07-11  Bruno Haible  <bruno@clisp.org>
75714
75715         * README: Mention where to put documentation.
75716
75717 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75718
75719         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
75720
75721 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75722
75723         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
75724         to stdint.m4.
75725
75726 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75727
75728         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
75729         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
75730         "no/such/file/stdint.h" when there is no such file, so that
75731         the resulting C code can be parsed by dodgy compilers.
75732         Problems reported by Bob Proulx.
75733
75734 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75735
75736         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
75737         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75738         macros into the GNU _D_EXACT_NAMLEN.
75739         * lib/savedir.c:  Likewise.
75740         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
75741
75742 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75743         and Paul Eggert  <eggert@cs.ucla.edu>
75744
75745         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
75746         * m4/savedir.m4:
75747         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75748         macros into the GNU _D_EXACT_NAMLEN.
75749
75750 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75751
75752         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
75753         around the absolute name, to work around a problem with the HP-UX
75754         11.23 native C compiler, reported by Bob Proulx.
75755
75756 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75757
75758         * doc/maintain.texi, make-stds.texi: Sync from
75759         <http://savannah.gnu.org/projects/gnustandards>.
75760
75761 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75762
75763         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
75764
75765 2006-07-09  Jim Meyering  <jim@meyering.net>
75766
75767         * m4/glob.m4: Remove a doubled word in a comment.
75768
75769 2006-07-09  Jim Meyering  <jim@meyering.net>
75770
75771         * lib/argp-pv.c: Remove a doubled word in a comment.
75772         * lib/check-version.c (check_version): Likewise.
75773         * lib/javacomp.c (compile_java_class): Likewise.
75774
75775 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75776
75777         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
75778         for the benefit of people using Autoconf 2.60.  If you want to
75779         support older Autoconf versions you can copy m4/onceonly_2_57.m4
75780         (or m4/onceonly.m4, if pre-2.57) manually.
75781
75782 2006-07-08  Jim Meyering  <jim@meyering.net>
75783
75784         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
75785         comment.
75786         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
75787         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
75788         comment.
75789
75790 2006-07-08  Jim Meyering  <jim@meyering.net>
75791
75792         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
75793
75794 2006-07-07  Simon Josefsson  <jas@extundo.com>
75795
75796         * tests/test-crc.c: Change expected crc value, the test vector
75797         were probably computed using the old broken crc.c?
75798
75799 2006-07-06  Simon Josefsson  <jas@extundo.com>
75800
75801         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
75802         now the canonical place for the M4 file).
75803
75804         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
75805         from the sys_socket dependency now.
75806
75807         * modules/inet_pton (Files): Ditto.
75808
75809         * modules/inet_ntop (Files): Ditto.
75810
75811 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75812
75813         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
75814         not gl_PREREQ_GETUSERSHELL.
75815
75816 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75817
75818         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
75819         with only one argument, for Autoconf 2.60.
75820         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
75821         expand to nothing, so add a shell command to avoid syntax error.
75822         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75823
75824 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75825
75826         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
75827
75828 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75829
75830         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
75831         no longer needed.  Check for isblank decl.
75832         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
75833         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
75834         of existence.
75835
75836 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75837
75838         * lib/getloadavg.c: Use __VMS, not VMS.
75839         * lib/getopt.c: Likewise.
75840         * lib/getpagesize.h: Likewise.
75841         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
75842         and probably does not work.
75843
75844 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75845
75846         * lib/.cppi-disable: Add wcwidth.
75847         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
75848         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
75849         (ISGRAPH): Remove.  All uses changed to isgraph.
75850         (FOLD) [!defined _LIBC]: Remove special case.
75851         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
75852         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
75853         HAVE_ISBLANK.
75854         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
75855         case.
75856
75857 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75858
75859         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
75860         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
75861         brackets.  Other minor changes to suppress some compiler
75862         warnings.
75863
75864 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75865         and Paul Eggert  <eggert@cs.ucla.edu>
75866
75867         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
75868         of invoking obsolescent AC_HEADER_DIRENT macro.
75869         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
75870         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
75871         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
75872         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
75873         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
75874         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75875         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
75876         * m4/readdir.m4: Remove; no longer needed.
75877
75878 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75879         and Paul Eggert  <eggert@cs.ucla.edu>
75880
75881         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
75882         Don't worry about this obsolete case any more.
75883         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
75884         directories.
75885         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
75886         worry about this obsolete case any more.
75887         * lib/fts.c: Likewise.
75888         * lib/getcwd.c: Likewise.
75889         * lib/glob.h: Likewise.
75890         * lib/savedir.c: Likewise.
75891
75892 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75893
75894         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
75895         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
75896         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
75897         needed.
75898         All uses removed.
75899         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75900         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75901         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
75902         needed.
75903         * m4/getdate.m4 (gl_GETDATE): Likewise.
75904         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75905         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75906         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75907         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75908         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75909         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75910         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
75911         needed.
75912
75913 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75914
75915         * lib/memcasecmp.c: Include <limits.h>.
75916         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
75917         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
75918         Don't assume isdigit succeeds only on '0' through '9'.
75919
75920 2006-07-05  Eric Blake  <ebb9@byu.net>
75921
75922         * modules/getaddrinfo (Depends-on): Add snprintf.
75923
75924 2006-07-05  Eric Blake  <ebb9@byu.net>
75925
75926         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
75927         to avoid 'header present but could not be compiled' on cygwin.
75928
75929 2006-07-05  Eric Blake  <ebb9@byu.net>
75930
75931         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
75932         missing from netdb.h.
75933         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
75934
75935 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75936
75937         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
75938         no longer needed.
75939         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
75940         * m4/getdate.m4 (gl_GETDATE): Likewise.
75941         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75942         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75943         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75944         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75945         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75946
75947 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75948
75949         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
75950         All uses of is_space replaced by isspace.
75951         * lib/exit.h: Don't talk about STDC_HEADERS.
75952         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
75953         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
75954         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
75955         replaced by isprint etc.
75956         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
75957         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75958         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
75959         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
75960         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
75961         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75962
75963 2006-07-05  Bruno Haible  <bruno@clisp.org>
75964
75965         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
75966         the function exists, before testing against AIX.
75967         Reported by Martin Lambers <marlam@marlam.de>.
75968
75969 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75970
75971         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
75972         From Mark D. Baushke.
75973
75974 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75975
75976         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
75977         to the absolute name, not just one, to bypass Sun C 5.8's
75978         "warning: #include of /usr/include/... may be non-portable".
75979
75980 2006-07-04  Eric Blake  <ebb9@byu.net>
75981
75982         * modules/dirname-tests: New test module.
75983         * tests/test-dirname.c: New file, replacing dirname.c
75984         TEST_DIRNAME section that was recently deleted.
75985
75986 2006-07-04  Bruno Haible  <bruno@clisp.org>
75987
75988         Assume ANSI C header files and <ctype.h> functions.
75989         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
75990         (mbsnwidth): Use isprint, iscntrl instead.
75991
75992 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75993
75994         Merge from coreutils.
75995         * MODULES.html.sh: Add xstrtold.
75996         * modules/xstrtold: New file.
75997         * modules/cycle-check (Files): Add lib/same-inode.h.
75998         * modules/dirname (Files): Add m4/double-slash-root.m4.
75999         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76000         * modules/mkdir-p (Files): Add lib/same-inode.h.
76001         * modules/same (Files): Add lib/same-inode.h.
76002
76003 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76004
76005         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76006         This is to keep the terminology clean; POSIX talks about
76007         "absolute pathnames", not "full pathnames", but the GNU
76008         Coding Standards say to use "path" for something else;
76009         so use "absolute" to keep both sides happy.
76010         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76011         Set gl_absolute_header, not gl_full_header_path.
76012         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76013         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76014         All uses changed.
76015
76016         Merge from coreutils.
76017
76018         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76019
76020         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76021         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76022         want to require the building of c-strtod.o.
76023         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76024         needs -lm directly.
76025         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76026
76027         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76028
76029         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76030         --as-needed option if available.  Problem reported by Albert Chin in
76031         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76032         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76033         cc merely issues a bunch of annoying warnings for --as-needed
76034         (this problem was reported by Bob Proulx).  Also, try linking with
76035         -lm to detect a bug in binutils 2.16 (this problem was reported
76036         by Ralf Wildenhues).
76037
76038         2006-06-18  Jim Meyering  <jim@meyering.net>
76039
76040         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76041         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76042         macro.
76043         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76044         also check for glibc-2.4's abort-inducing bug.
76045
76046         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76047         Low-probability clean-up should be to use rmdir to get rid of
76048         the just-created directory, not unlink.
76049
76050         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76051         configure fail, and request a bug report to inform us about it.
76052         Add a comment that, barring reports to the contrary, in 2007 we'll
76053         assume ftruncate is universally available.
76054
76055         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76056
76057         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76058
76059         2006-03-12  Jim Meyering  <jim@meyering.net>
76060
76061         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76062         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76063         * m4/same.m4 (gl_SAME): Likewise.
76064         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76065
76066         2006-03-11  Eric Blake  <ebb9@byu.net>
76067
76068         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76069         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76070         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76071         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76072
76073 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76074
76075         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76076         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76077         reported by Mark D. Baushke, one in
76078         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76079
76080         Merge from coreutils.
76081
76082         * lib/.cppi-disable: Add stdint_.h.
76083         * lib/.cvsignore: Add stdint.h.
76084
76085         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76086
76087         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76088         both double and long double versions.
76089         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76090         * lib/xstrtold.c: New file.
76091         * lib/xstrtod.h (xstrtold): New decl.
76092
76093         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76094
76095         * lib/filemode.c (setst): Remove.
76096         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76097         (arguably) clearer, and the generated code is a bit smaller on my
76098         Debian GNU/Linux stable x86 host.
76099
76100         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76101
76102         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76103         Assume that filemode.h includes sys/types.h and sys/stat.h.
76104         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76105         (ftypelet): Reorder to put common cases first, for efficiency.
76106         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76107         to do 'M'.
76108         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76109         of 10, for compatibility with FreeBSD.  All callers changed.
76110         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76111         types that can't be deduced solely from st_mode.  First arg is now a
76112         const pointer.
76113         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76114         (strmode): Renamed from mode_string.
76115         (filemodestring): New decl.
76116         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76117         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76118         needed.
76119         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76120
76121         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76122
76123         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76124         fsusage.h now does that.  Include fsusage.h first, to test interface.
76125         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76126         at most one method (the old code could have generated decls that
76127         didn't conform to C89, not that this was ever exercised).
76128         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76129
76130         2006-03-19  Jim Meyering  <jim@meyering.net>
76131
76132         Work even in a chroot where d_ino values for entries in "/"
76133         don't match the stat.st_ino values for the same names.
76134         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76135         number, iterate through all entries again, using lstat instead.
76136         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76137         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76138
76139         * lib/getcwd.c (__getcwd): Clarify a comment.
76140         Use memcpy in place of a call to strcpy.
76141
76142         2006-03-12  Jim Meyering  <jim@meyering.net>
76143
76144         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76145         matches that of the current directory (which we're about to chdir ".."
76146         out of), then save the dev-ino of the parent, instead.
76147
76148         * lib/same-inode.h (SAME_INODE): New file/macro.
76149         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76150         Include "same-inode.h", instead.
76151         * lib/same.c: Likewise.
76152         * lib/cycle-check.h: Include "same-inode.h".
76153         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76154         * lib/cycle-check.c (SAME_INODE): Remove definition.
76155         * lib/root-dev-ino.h: Include "same-inode.h".
76156
76157         2006-03-11  Eric Blake  <ebb9@byu.net>
76158
76159         * lib/same.c (same_name): s/base_name/last_component/
76160         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76161         * lib/filenamecat.c (file_name_concat): Likewise.
76162
76163         2006-03-11  Eric Blake  <ebb9@byu.net>,
76164                     Paul Eggert  <eggert@cs.ucla.edu>
76165
76166         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76167         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76168         drive prefix.
76169         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76170         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76171         (last_component): New method.
76172         * lib/dirname.c (dir_len): Determine when drive letters need a
76173         subsequent slash.  Preserve // when it is special.
76174         (dir_name): Don't append dot when drive letter is absolute.
76175         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76176         * lib/basename.c (base_name): New semantics - malloc the result.
76177         Preserve // when it is special.  Preserve relative files that look
76178         like drive letters.
76179         (base_len): Preserve // when it is special.
76180         (last_component): New method, similar to old base_name semantics.
76181         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76182         base_name.  Strip redundant slashes from ///.
76183
76184 2006-07-03  Jim Meyering  <jim@meyering.net>
76185
76186         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76187         macro is used before the first cycle_check call.
76188
76189 2006-07-03  Eric Blake  <ebb9@byu.net>
76190
76191         * modules/dirname (Depends-on): Add xstrndup.
76192
76193 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76194
76195         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76196         test cases, so that config.log is a bit easier to follow.
76197
76198 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76199
76200         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76201         both are 64 bits, since this seems to be the tradition, and this
76202         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76203         we ever run into a host that prefers long long to long in this
76204         case, we'll need another configure-time test.  Problem reported by
76205         Jim Meyering.
76206
76207 2006-07-02  Eric Blake  <ebb9@byu.net>
76208
76209         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76210
76211 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76212
76213         * modules/inttypes (Depends-on): No longer depends on stdint.
76214         * modules/stdint (Description): Say more about assumptions.
76215         Say that the fast types might differ.  Say macros are used.
76216         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76217         (Makefile.am): Revise list of substituted symbols to match
76218         new stdint.m4.
76219         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76220         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76221         * tests/test-stdint.c (verify_same_types)
76222         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76223         the code conforms to C99/C89.
76224         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76225         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76226
76227 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76228
76229         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76230         but fix a bug, by requiring at least 64 bits.
76231         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76232         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76233         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76234         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76235
76236         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76237         changes.  Make 2.59 a prerequisite.  Check and substitute for
76238         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76239         inttypes.h.  Do not use special include files; just use the
76240         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76241         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76242         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76243         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76244         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76245         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76246         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76247         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76248         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76249         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76250         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76251         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76252         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76253         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76254         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76255         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76256         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76257         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76258         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76259         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76260         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76261         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76262         not check for things that C99 does not require, e.g., int8_t.  If
76263         a test isn't needed unless <stdint.h> isn't working, and is
76264         unlikely to be needed for any other reason, then don't do it
76265         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76266         size_t, since we assume C89 freestanding at least.  Do not check
76267         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76268         the right thing even if the types are not defined.  Instead use:
76269         (gl_STDINT_TYPE_PROPERTIES): New macro.
76270         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76271         testing whether <sys/types.h> clashes, as Autoconf does this for
76272         us now.  All uses removed.
76273         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76274         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76275         (gl_CHECK_TYPE_SAME):
76276         Remove; no longer needed.
76277         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76278         exists, since we'll return 0 anyway in that case.
76279         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76280
76281 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76282
76283         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76284         possible collision with system files.
76285         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76286         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76287         WCHAR_MIN and WCHAR_MAX in this case.
76288         (<stddef.h>): Do not include; no longer needed.
76289         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76290         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76291         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76292         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76293         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76294         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76295         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76296         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76297         !defined(__c99))]: Include in this case too, since it's harmless
76298         now.
76299         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76300         dangerous to do so.
76301         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76302         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76303         (_STDINT_MIN, _STDINT_MAX): New macros.
76304         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76305         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76306         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76307         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76308         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76309         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76310         macros, not typedefs; this simplifies things quite a bit.
76311         Use long int for all types narrower than int64_t.
76312         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76313         Define in terms of long long int or int64_t or long int,
76314         not int64_t or int32_t.  This saves some compile-time testing.
76315         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76316         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76317         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76318         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76319         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
76320         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
76321         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
76322         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
76323         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
76324         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
76325         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76326         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76327         undef any previous version and define our own version, for
76328         simplicity and consistency with the new macros for types.
76329         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76330         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76331         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
76332         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
76333         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
76334         @WINT_T_SUFFIX@ to keep things simple here.
76335         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
76336         Simplify by assuming typical 8/16/32/64 host, since we're
76337         already doing that elsewhere anyway.
76338         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
76339         and assume long long int is 64 bits if available.  This
76340         speeds up 'configure'.
76341
76342 2006-07-01  Eric Blake  <ebb9@byu.net>
76343
76344         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
76345         Reported by Andreas Buening.
76346
76347 2006-07-01  Eric Blake  <ebb9@byu.net>
76348
76349         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
76350
76351 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76352
76353         * lib/getaddrinfo.c: fixed typo
76354
76355 2006-06-29  Jim Meyering  <jim@meyering.net>
76356
76357         * modules/strftime (Maintainer): Add my name, since with the
76358         FPRINTFTIME changes strftime.c has forked from glibc.
76359
76360 2006-06-29  Eric Blake  <ebb9@byu.net>
76361
76362         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76363
76364 2006-06-29  Eric Blake  <ebb9@byu.net>
76365
76366         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76367
76368 2006-06-29  Eric Blake  <ebb9@byu.net>
76369
76370         * lib/stat_.h: New file.
76371
76372 2006-06-29  Eric Blake  <ebb9@byu.net>
76373
76374         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76375         unused static function.
76376
76377 2006-06-29  Eric Blake  <ebb9@byu.net>
76378
76379         * doc/functions.texi (Function Portability): Document missing lstat
76380         on mingw.
76381
76382 2006-06-29  Eric Blake  <ebb9@byu.net>
76383
76384         * MODULES.html.sh: Add sys_stat.
76385         * modules/sys_stat: New module.
76386         * modules/mkstemp (Depends-on): Add sys_stat.
76387
76388 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76389
76390         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76391
76392 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76393
76394         * m4/c-bs-a.m4: Removed.
76395
76396 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76397
76398         * lib/strftime.c: Assume strftime() exists.
76399
76400 2006-06-29  Derek Price  <derek@ximbiot.com>
76401
76402         * modules/c-bs-a: Removed - \a is C89.
76403         * MODULES.html.sh: Remove c-bs-a.
76404
76405 2006-06-29  Bruno Haible  <bruno@clisp.org>
76406
76407         * modules/wcwidth (License): Change to LGPL.
76408
76409 2006-06-28  Simon Josefsson  <jas@extundo.com>
76410
76411         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
76412         on _WIN32.
76413
76414         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
76415         getnameinfo.
76416
76417 2006-06-28  Simon Josefsson  <jas@extundo.com>
76418
76419         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
76420
76421 2006-06-28  Simon Josefsson  <jas@extundo.com>
76422
76423         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
76424         functions there.  It will succeed on Windows XP, but on Windows
76425         2000 and (presumably) earlier, it will fail, and use the internal
76426         re-implementation.
76427         (use_win32_p): New function.
76428         (getaddrinfo): Use strtoul on servname, to support numeric ports.
76429         Support AI_NUMERICSERV to disable getservbyname.
76430         (getnameinfo): New function, only supports
76431         NI_NUMERICHOST|NI_NUMERICSERV for now.
76432
76433         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
76434         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
76435         getnameinfo.
76436
76437 2006-06-28  Eric Blake  <ebb9@byu.net>
76438
76439         * modules/wcwidth: New file.
76440         * modules/mbchar (Depends-on): Add wcwidth.
76441         * modules/mbswidth (Depends-on): Add wcwidth.
76442         * MODULES.html.sh: Add wcwidth.
76443
76444 2006-06-28  Eric Blake  <ebb9@byu.net>
76445
76446         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
76447         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
76448
76449 2006-06-28  Eric Blake  <ebb9@byu.net>
76450
76451         * lib/xvasprintf.h: Fix comments.
76452
76453 2006-06-28  Eric Blake  <ebb9@byu.net>
76454
76455         * lib/mbchar.h (wcwidth): Include wcwidth.h.
76456         * lib/mbswidth.c (wcwidth): Move from here...
76457         * lib/wcwidth.h: ...to this new file.
76458
76459 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76460
76461         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
76462
76463         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
76464         it's obsolete.
76465         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
76466
76467 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76468
76469         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
76470         Autoconf 2.60 says this stuff was obsolete.
76471
76472 2006-06-28  Bruno Haible  <bruno@clisp.org>
76473
76474         * modules/wcwidth (Files): Add m4/wchar_t.m4.
76475
76476 2006-06-28  Bruno Haible  <bruno@clisp.org>
76477
76478         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
76479         gt_TYPE_WCHAR_T.
76480
76481 2006-06-28  Bruno Haible  <bruno@clisp.org>
76482
76483         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
76484         declaration for wcwidth.
76485         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
76486
76487 2006-06-28  Bruno Haible  <bruno@clisp.org>
76488
76489         * lib/mkdtemp.c [MINGW]: Include <io.h>.
76490         (mkdir): Define using _mkdir.
76491
76492 2006-06-28  Bruno Haible  <bruno@clisp.org>
76493
76494         * lib/getaddrinfo.h: Fix POSIX URL.
76495         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
76496         _WIN32.
76497         (use_win32_p): Make static.
76498         (getaddrinfo): Reject service name if it is empty or does not consist
76499         solely of decimal digits, or if its value is > 65535.
76500         (getnameinfo): Remove useless casts.
76501
76502 2006-06-27  Simon Josefsson  <jas@extundo.com>
76503
76504         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76505         Eggert and Martin Lambers.
76506
76507 2006-06-27  Simon Josefsson  <jas@extundo.com>
76508
76509         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76510         Eggert and Martin Lambers.
76511
76512 2006-06-27  Bruno Haible  <bruno@clisp.org>
76513
76514         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76515         result to 0, not to empty.
76516         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76517
76518 2006-06-27  Bruno Haible  <bruno@clisp.org>
76519
76520         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76521
76522 2006-06-26  Simon Josefsson  <jas@extundo.com>
76523
76524         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76525         present.
76526
76527 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76528
76529         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76530         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76531         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76532
76533 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76534
76535         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76536
76537 2006-06-26  Bruno Haible  <bruno@clisp.org>
76538
76539         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76540
76541 2006-06-26  Bruno Haible  <bruno@clisp.org>
76542
76543         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76544
76545 2006-06-26  Bruno Haible  <bruno@clisp.org>
76546
76547         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76548         SGI C compiler in pre-C99 mode.
76549         Suggested by Mark D. Baushke and Larry Jones.
76550
76551 2006-06-26  Bruno Haible  <bruno@clisp.org>
76552
76553         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76554         WCHAR_MAX.
76555         Reported by Mark D. Baushke and Larry Jones.
76556
76557 2006-06-26  Bruno Haible  <bruno@clisp.org>
76558
76559         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76560         in pre-C99 mode.
76561         Suggested by Mark D. Baushke and Larry Jones.
76562
76563 2006-06-23  Simon Josefsson  <jas@extundo.com>
76564             Bruno Haible  <bruno@clisp.org>
76565
76566         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76567         Emit mostlyclean-local rule.
76568         (func_emit_tests_Makefile_am): Likewise.
76569         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76570
76571 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76572
76573         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76574
76575 2006-06-23  Bruno Haible  <bruno@clisp.org>
76576
76577         * tests/test-stdint.c: Update to match ISO C 99 Technical
76578         Corrigendum 1.
76579
76580 2006-06-23  Bruno Haible  <bruno@clisp.org>
76581
76582         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76583
76584 2006-06-23  Bruno Haible  <bruno@clisp.org>
76585
76586         * lib/stdint_.h: Treat IRIX like OpenBSD.
76587
76588 2006-06-23  Bruno Haible  <bruno@clisp.org>
76589
76590         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76591         ISO C 99 Technical Corrigendum 1.
76592
76593 2006-06-22  Simon Josefsson  <jas@extundo.com>
76594
76595         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76596         MinGW.
76597
76598 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76599
76600         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76601         needed.  Some compiler complained about some of them.  Problem reported
76602         by Larry Jones in
76603         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76604
76605 2006-06-21  Simon Josefsson  <jas@extundo.com>
76606
76607         * tests/test-getaddrinfo.c: New file.
76608
76609         * modules/getaddrinfo-tests: New file.
76610
76611         * MODULES.html.sh: Add inet_pton.
76612
76613         * modules/inet_pton: New file.
76614
76615 2006-06-21  Simon Josefsson  <jas@extundo.com>
76616
76617         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76618         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76619         of using the (limited) gnulib implementation on Windows XP.
76620
76621         * m4/inet_pton.m4: New file.
76622
76623 2006-06-21  Simon Josefsson  <jas@extundo.com>
76624
76625         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76626         variable.
76627
76628         * lib/socket_.h: Don't define WINVER.
76629
76630         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76631         slightly modified to work in gnulib.
76632
76633 2006-06-21  Simon Josefsson  <jas@extundo.com>
76634
76635         * doc/gnulib.texi (Windows sockets): Add.
76636
76637 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76638
76639         * lib/read-file.c (fread_file): Start with buffer allocation of
76640         0 bytes rather than 1 byte; this simplifies the code.
76641         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76642         code to free buffer and save/restore errno.
76643         (internal_read_file): Remove unused local.
76644
76645 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76646
76647         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76648         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76649         Problem reported by Denis Excoffier in
76650         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76651
76652 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76653
76654         * modules/sys_socket, modules/socklen: Include sys/types since
76655         FreeBSD 4.x's sys/socket.h needs it.
76656
76657 2006-06-19  Simon Josefsson  <jas@extundo.com>
76658
76659         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
76660
76661 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76662
76663         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
76664
76665 2006-06-19  Bruno Haible  <bruno@clisp.org>
76666
76667         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
76668         and FULL_PATH_INTTYPES_H in angle brackets.
76669         Reported by Mark D. Baushke <mdb@gnu.org>.
76670
76671 2006-06-17  Eric Blake  <ebb9@byu.net>
76672
76673         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
76674         errno.
76675
76676 2006-06-17  Bruno Haible  <bruno@clisp.org>
76677
76678         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
76679         <sys/inttypes.h>.
76680
76681 2006-06-17  Bruno Haible  <bruno@clisp.org>
76682
76683         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
76684         whether errno is declared. Assume <errno.h> declares errno.
76685
76686 2006-06-17  Bruno Haible  <bruno@clisp.org>
76687
76688         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
76689
76690 2006-06-17  Bruno Haible  <bruno@clisp.org>
76691
76692         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
76693         problem on Solaris 2.5.1.
76694
76695 2006-06-16  Eric Blake  <ebb9@byu.net>
76696
76697         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
76698         * lib/unicodeio.c [!defined errno]: Likewise.
76699         * lib/strtol.c [!defined errno]: Likewise.
76700         * lib/strtod.c [!defined errno]: Likewise.
76701
76702 2006-06-15  Eric Blake  <ebb9@byu.net>
76703
76704         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
76705
76706 2006-06-15  Eric Blake  <ebb9@byu.net>
76707
76708         * config/srclist.txt (ssize_t.m4): Lose sync.
76709
76710 2006-06-15  Bruno Haible  <bruno@clisp.org>
76711
76712         * modules/stdint (Files): Include m4/full-header-path.m4,
76713         m4/size_max.m4, m4/wchar_t.m4.
76714         (Makefile.am): Many more substitutions.
76715         * modules/stdint-tests: New file.
76716         * tests/test-stdint.c: New file.
76717
76718 2006-06-15  Bruno Haible  <bruno@clisp.org>
76719
76720         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
76721         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
76722         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
76723         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
76724         gl_CHECK_TYPE_SAME): New macros.
76725
76726 2006-06-15  Bruno Haible  <bruno@clisp.org>
76727
76728         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
76729
76730 2006-06-15  Bruno Haible  <bruno@clisp.org>
76731
76732         * lib/stdint_.h: Rewritten to be fully auto-configured.
76733         Fixes bug on HP-UX/IA64.
76734
76735 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
76736
76737         * lib/getdate.y (__attribute__): Don't define if already defined.
76738         Problem reported by Larry Jones.
76739         * lib/utimens.c (__attribute__): Likewise.
76740
76741 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
76742
76743         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
76744         reported by Andreas Schwab.
76745
76746 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76747             Bruno Haible  <bruno@clisp.org>
76748
76749         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
76750         check for the declaration of strnlen and a run test that exposes the
76751         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
76752         rpl_strndup.
76753
76754 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76755             Bruno Haible  <bruno@clisp.org>
76756
76757         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
76758
76759 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76760
76761         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
76762         compile test, for Tru64 4.0D.
76763
76764 2006-05-28  Karl Berry  <karl@gnu.org>
76765
76766         * config/srclist.txt (printf-args.c): lose sync.
76767
76768 2006-05-26  Martin Lambers  <marlam@marlam.de>
76769
76770         * lib/getpass.c: Updates the test for the native W32 API, and adds
76771         missing includes, thus fixing compilation warnings.
76772
76773 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76774
76775         * lib/exclude.c (exclude_fnmatch): New function.
76776         (excluded_file_name): Call exclude_fnmatch.
76777         * lib/exclude.h (excluded_file_name): New prototype
76778
76779 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
76780
76781         * lib/tempname.c (small_open, large_open): New macros.
76782         (__open, __open64) [!_LIBC]: Remove.
76783         (__gen_tempname): Use small_open and large_open instead of __open
76784         and __open64.  This fixes a portability bug on HP-UX 11.11i
76785         reported by Simon Wing-Tang in
76786         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
76787
76788 2006-05-24  Bruno Haible  <bruno@clisp.org>
76789
76790         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
76791         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
76792         Reported by Thorsten Maerz <torte@netztorte.de> via
76793         Aaron Stone <aaron@serendipity.cx>.
76794
76795 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76796
76797         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
76798         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
76799         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
76800         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
76801         not really conditional on the cache.
76802         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
76803
76804 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76805
76806         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
76807         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
76808         (my_usleep): Don't mishandle maximum value.
76809
76810 2006-05-19  Jim Meyering  <jim@meyering.net>
76811
76812         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
76813
76814 2006-05-17  Bruno Haible  <bruno@clisp.org>
76815
76816         Cygwin portability.
76817         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
76818
76819 2006-05-17  Bruno Haible  <bruno@clisp.org>
76820
76821         * lib/stdint_.h: Fix recognition of Cygwin.
76822
76823 2006-05-15  Bruno Haible  <bruno@clisp.org>
76824
76825         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
76826         on libtool patch by Ralf Wildenhues.
76827
76828 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76829
76830         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
76831         test for C99 conformance; (bool) 0.5 is an integer constant
76832         expression, but (bool) -0.5 is not.  Problem reported by Fedor
76833         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
76834
76835 2006-05-11  Simon Josefsson  <jas@extundo.com>
76836
76837         * m4/xvasprintf.m4: Fix obvious typo.
76838
76839 2006-05-11  Jim Meyering  <jim@meyering.net>
76840
76841         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
76842         James Lemley.
76843
76844 2006-05-10  Simon Josefsson  <jas@extundo.com>
76845
76846         * lib/md4.c: Typo fix, update copyright years.
76847         (K1, K2): Don't use L because it turn computations into 64-bit on
76848         64-bit platforms.
76849
76850 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
76851
76852         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
76853         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
76854         unwanted sign propagation, e.g., on hosts with 64-bit int.
76855         There still are some problems with reeelly weird theoretical hosts
76856         (e.g., 33-bit int) but it's not worth worrying about now.
76857         * lib/sha1.c (rol): Likewise.
76858         (K1, K2, K3, K4): Remove unnecessary L suffix.
76859
76860 2006-05-10  Bruno Haible  <bruno@clisp.org>
76861
76862         * lib/des.c: Cast to avoid warnings.
76863
76864 2006-05-09  Bruno Haible  <bruno@clisp.org>
76865
76866         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
76867         (Depends-on): Depend also on xsize, stdarg.
76868         (configure.ac): Add gl_XVASPRINTF.
76869
76870 2006-05-09  Bruno Haible  <bruno@clisp.org>
76871
76872         * m4/xvasprintf.m4: New file.
76873
76874 2006-05-09  Bruno Haible  <bruno@clisp.org>
76875
76876         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
76877         (EOVERFLOW): Define fallback value.
76878         (xstrcat): New function.
76879         (xvasprintf): Recognize the special case of a string concatenation.
76880
76881 2006-05-08  Eric Blake  <ebb9@byu.net>
76882
76883         * gnulib-tool (func_version): Base copyright year on CVS date.
76884         (func_emit_copyright_notice): New function.
76885         (func_emit_lib_Makefile_am): Use it.
76886         (func_emit_tests_Makefile_am): Likewise.
76887         (func_import): Likewise.
76888
76889 2006-05-08  Bruno Haible  <bruno@clisp.org>
76890
76891         * modules/stdarg: New file.
76892         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
76893
76894 2006-05-08  Bruno Haible  <bruno@clisp.org>
76895
76896         * m4/stdarg.m4: New file, from GNU gettext.
76897
76898 2006-05-08  Bruno Haible  <bruno@clisp.org>
76899
76900         * config/srclist.txt (build-aux/config.rpath): different from latest
76901         release.
76902
76903 2006-05-08  Bruno Haible  <bruno@clisp.org>
76904
76905         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
76906
76907 2006-05-05  Jim Meyering  <jim@meyering.net>
76908
76909         * m4/warning.m4: New file, derived from bison's file by the same name.
76910
76911 2006-05-03  Bruno Haible  <bruno@clisp.org>
76912
76913         * lib/stdint_.h: Shorter URL.
76914         * lib/inttypes.h: Likewise.
76915
76916 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76917
76918         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
76919
76920 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76921
76922         * lib/verify.h: Document the internals better.  Most of this change
76923         was written by Bruno Haible.
76924
76925 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76926
76927         * doc/verify.texi: New file, partly based on a proposal by
76928         Bruno Haible.
76929
76930 2006-05-02  Bruno Haible  <bruno@clisp.org>
76931
76932         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
76933         test from here...
76934         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
76935
76936 2006-04-29  Bruno Haible  <bruno@clisp.org>
76937
76938         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
76939         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
76940
76941 2006-04-29  Bruno Haible  <bruno@clisp.org>
76942
76943         * gnulib-tool: Make --update option actually work.
76944
76945 2006-04-29  Bruno Haible  <bruno@clisp.org>
76946
76947         * doc/gcd.texi: New file.
76948         * doc/gnulib.texi: Include it.
76949
76950 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
76951
76952         * lib/getdate.y (get_date): When adding relative date, start with the
76953         initial time, not with the result of the first mktime call.
76954
76955 2006-04-25  Bruno Haible  <bruno@clisp.org>
76956
76957         * gnulib-tool (func_import): Output the include directives in three
76958         blocks, sorted separately.
76959         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76960
76961 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76962
76963         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
76964         to define main with arguments, for C++.  Reported by Eric Blake.
76965         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
76966         Prefer 'int main ()' to 'int main (void)', for C++.
76967         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
76968         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
76969         for 'main', for C99 and C++.
76970
76971 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76972
76973         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
76974         Don't assume that exit status -1 is valid.
76975         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76976         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
76977         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
76978         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
76979         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
76980         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
76981         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
76982         functions can be used without declaring them, or that you can
76983         exit with status -1.
76984         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
76985
76986 2006-04-24  Karl Berry  <karl@gnu.org>
76987
76988         * config/srclist.txt (longdouble.m4): sync lost.
76989
76990 2006-04-24  Eric Blake  <ebb9@byu.net>
76991
76992         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
76993
76994 2006-04-24  Bruno Haible  <bruno@clisp.org>
76995
76996         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
76997         poll() implementation in AIX.
76998         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76999
77000 2006-04-24  Bruno Haible  <bruno@clisp.org>
77001
77002         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77003         assigned exactly once.
77004
77005 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77006             Bruno Haible  <bruno@clisp.org>
77007
77008         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77009         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77010         for AM_CPPFLAGS.
77011
77012 2006-04-23  Bruno Haible  <bruno@clisp.org>
77013
77014         * modules/copy-file: Depend on unistd.
77015         * modules/execute: Likewise.
77016         * modules/fatal-signal: Likewise.
77017         * modules/findprog: Likewise.
77018         * modules/mkdtemp : Likewise.
77019         * modules/pipe: Likewise.
77020         * modules/wait-process: Likewise.
77021
77022 2006-04-23  Bruno Haible  <bruno@clisp.org>
77023
77024         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77025         condition was already detected.
77026         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77027
77028 2006-04-23  Bruno Haible  <bruno@clisp.org>
77029
77030         * lib/copy-file.c: Include <unistd.h> unconditionally.
77031         * lib/execute.c: Likewise.
77032         * lib/fatal-signal.c: Likewise.
77033         * lib/findprog.c: Likewise.
77034         * lib/mkdtemp.c: Likewise.
77035         * lib/pipe.h: Likewise.
77036         * lib/pipe.c: Likewise.
77037         * lib/wait-process.h: Likewise.
77038
77039 2006-04-23  Bruno Haible  <bruno@clisp.org>
77040
77041         * gnulib-tool (func_usage): Fix --import description. Document
77042         --update.
77043         (func_import): Create temporary file in a temporary directory, if
77044         --dry-run is specified. Silence errors from 'grep' when there are no
77045         m4 files in $m4dir.
77046         (func_create_testdir): Silence errors from 'grep' when there are no
77047         m4 files in $m4dir.
77048         Reported by Karl Berry <karl@freefriends.org>.
77049
77050 2006-04-20  Bruno Haible  <bruno@clisp.org>
77051
77052         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77053         one argument, so that the code will be portable to Autoconf 2.60.
77054         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77055         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77056         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77057
77058 2006-04-19  Derek Price  <derek@ximbiot.com>
77059             Eric Blake  <ebb9@byu.net>
77060
77061         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77062         rather than "/full/path.h".  Update comment to match.  Shorten &
77063         generalize m4_translit call via AS_TR_CPP.
77064
77065 2006-04-19  Derek Price  <derek@ximbiot.com>
77066             Eric Blake  <ebb9@byu.net>
77067
77068         * lib/inttypes.h: Correct grammar in comment.
77069
77070 2006-04-18  Derek Price  <derek@ximbiot.com>
77071             Paul Eggert  <eggert@cs.ucla.edu>
77072
77073         * modules/inttypes: New file.
77074         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77075
77076 2006-04-18  Derek Price  <derek@ximbiot.com>
77077             Paul Eggert  <eggert@cs.ucla.edu>
77078
77079         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77080         New files.
77081
77082 2006-04-18  Derek Price  <derek@ximbiot.com>
77083             Paul Eggert  <eggert@cs.ucla.edu>
77084
77085         * lib/inttypes.h: New file.
77086         * lib/strtoimax.c: Assume <inttypes.h>.
77087
77088 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77089
77090         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77091         isn't mounted.  Problem reported by Kir Kolyshkin.
77092
77093 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77094
77095         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77096         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77097         Derek R. Price.
77098         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77099         implementation.
77100
77101 2006-04-12  Eric Blake  <ebb9@byu.net>
77102
77103         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77104         is now done automatically by the corresponding Autoconf macro.
77105
77106 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77107
77108         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77109         time_r.h.
77110
77111 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77112
77113         Merge regex changes from libc, removing some of our
77114         POSIX-conformance changes that were rejected and redoing them in a
77115         less-intrusive way.
77116
77117         * lib/regcomp.c (re_compile_internal, init_dfa):
77118         Length arg is now size_t, not Idx.  All uses changed.
77119         (peek_token): Forward decl now says internal_function.
77120         (__re_error_msgid, __re_error_msgid_idx):
77121         Now static rather than extern with attribute_hidden.
77122         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77123         For some reason libc prefers K&R style defns for external functions.
77124         (regerror) [!defined _LIBC]: Likewise.
77125         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77126         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77127         (build_range_exp, build_collating_symbol):
77128         Use K&R-style defn.
77129         (re_compile_fastmap): Use '\0' to memset, not 0.
77130         (utf8_sb_map): Make the calculations more obvious.
77131         (init_dfa, parse_bracket_exp, build_charclass_op):
77132         Call calloc and cast result, as glibc does.
77133         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77134         (build_range_exp, build_collating_symbol):
77135         Now internal functions.
77136
77137         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77138
77139         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77140         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77141         Don't depend on VMS; depend on __VMS instead, for POSIX
77142         namespace cleanness.
77143         (regoff_t): Define to ssize_t, not long int.
77144
77145         Remove the REG_ macros named below.  Instead, make the old names
77146         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77147         __USE_GNU_REGEX.
77148         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77149         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77150         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77151         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77152         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77153         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77154         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77155         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77156         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77157         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77158         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77159         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77160         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77161         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77162         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77163         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77164         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77165         (REG_NREGS):
77166         Remove.  All uses replaced by the old RE_* names.
77167         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77168         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77169         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77170         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77171         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77172         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77173         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77174         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77175         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77176         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77177         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77178         Don't bother having these macros be independent of each others'
77179         values, since they no longer exist in the POSIX name space.
77180
77181         Rename the following member names back to their old names,
77182         unless !__USE_GNU_REGEX.  All uses changed back.
77183         (buffer): Renamed from re_buffer.
77184         (allocated): Renamed from re_allocated.
77185         (used): Renamed from re_used.
77186         (syntax): Renamed from re_syntax.
77187         (fastmap): Renamed from re_fastmap.
77188         (translate): Renamed from re_translate.
77189         (can_be_null): Renamed from re_can_be_null.
77190         (regs_allocated): Renamed from re_regs_allocated.
77191         (fastmap_accurate): Renamed from re_fastmap_accurate.
77192         (no_sub): Renamed from re_no_sub.
77193         (not_bol): Renamed from re_not_bol.
77194         (not_eol): Renamed from re_not_eol.
77195         (newline_anchor): Renamed from re_newline_anchor.
77196         (num_regs): Renamed from rm_num_regs.
77197         (start): Renamed from rm_start.
77198         (end): Renamed from rm_end.
77199
77200         (free_state): Move up a bit.
77201
77202         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77203         #define to be empty.
77204         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77205         when that is what is intended.
77206         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77207         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77208         (MAX): New macro.
77209         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77210         All uses changed back to re_malloc, etc.  It's now the caller's
77211         responsibility to check for overflow; all callers changed.
77212         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77213         (re_x2nrealloc): Remove.
77214         (free_state): Remove decl.
77215
77216         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77217         (re_set_registers, re_exec):
77218         Use K&R-style defn.
77219
77220         2006-01-31  Roland McGrath  <roland@redhat.com>
77221
77222         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77223         Reported by Mike Frysinger <vapier@gentoo.org>.
77224
77225         2006-01-15  Andreas Jaeger  <aj@suse.de>
77226
77227         [BZ #1950]
77228         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77229         build_wcs_upper_buffer change.
77230         (build_wcs_upper_buffer): Change return type.
77231
77232         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77233
77234         * lib/regex_internal.h: Include <stdint.h> if available.
77235
77236         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77237
77238         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77239
77240         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77241
77242         * lib/regcomp.c: Adjust for changed secondary hash function.
77243
77244         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77245
77246         * lib/regex.h: Pretty printing.
77247         Clean up namespace a bit.
77248
77249         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77250
77251         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77252         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77253
77254         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77255                     Ulrich Drepper  <drepper@redhat.com>
77256
77257         [BZ #1302]
77258         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77259         changed.
77260         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77261
77262         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77263
77264         [BZ #281]
77265         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77266         * lib/regcomp.c: Remove unnecessary uses of
77267         unsigned RE_TRANSLATE_TYPE.
77268         * lib/regex_internal.h: Likewise.
77269         * lib/regex_internal.c: Likewise.
77270         * lib/regexec.c: Likewise.
77271         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77272
77273         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77274
77275         * lib/regexec.c (find_recover_state): Remove unnecessary
77276         initialization.
77277         (transit_state_bkref): Make DFA a const pointer.
77278         (get_subexp): Likewise.
77279         (check_arrival): Likewise.
77280         (update_cur_sifted_state): Likewise.
77281         (re_search_internal): Likewise.
77282         (prune_impossible_nodes): Likewise.
77283         (acquire_init_state_context): Likewise.
77284         (proceed_next_node): Likewise.
77285         (set_regs): Likewise.
77286         (free_fail_stack_return): Likewise.
77287         (check_arrival_expand_ecl): Mark DFA parameter as const.
77288         (check_arrival_expand_ecl_sub): Likewise.
77289         (check_subexp_limits): Likewise.
77290         (sub_epsilon_src_nodes):  Likewise.
77291         (add_epsilon_src_nodes):  Likewise.
77292         (merge_state_array): Likewise.
77293         (update_regs): Likewise.
77294         (build_trtable): Likewise.
77295         (sift_states_backward): Mark MCTX parameter as const.
77296         (build_sifted_states): Likewise.
77297         (update_cur_sifted_state): Likewise.
77298         (sift_states_mkref): Likewise.
77299         (check_arrival_expand_ecl): Mark eclosure as const.
77300         (check_dst_limits_calc_pos_1): Likewise.
77301         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77302         pointer.
77303
77304         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77305
77306         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77307         (transit_state_sb): Likewise.
77308         (transit_state_mb): Likewise.
77309         (sift_states_iter_mb): Likewise.
77310         (check_arrival_add_next_nodes): Likewise.
77311         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77312         [_LIBC] (re_search_2_stub): Use mempcpy.
77313
77314         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77315         mbrtowc for very simple UTF-8 case.
77316
77317         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77318         a pointer-to-const.
77319         (re_acquire_state_context): Likewise.
77320         * lib/regex_internal.h: Adjust prototypes.
77321
77322         * lib/regex.c: Prevent using C++ compilers.
77323
77324         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
77325         (re_acquire_state_context): Likewise.
77326
77327 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77328
77329         * modules/regex (Depends-on): Add ssize_t.
77330
77331 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77332
77333         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
77334         translation table.
77335
77336 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77337
77338         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
77339
77340 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
77341             Bruno Haible  <bruno@clisp.org>
77342
77343         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
77344         <sys/types.h> and <inttypes.h>.
77345
77346 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77347
77348         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
77349         `__error_t_defined', so argp.h will not typedef the former.
77350
77351 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
77352
77353         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
77354         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
77355         glibc names.  Even if glibc is changed to conform to POSIX, the
77356         traditional names will be available anyway, since regex depends on
77357         the extensions module.  Also, fix a longstanding typo in the
77358         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77359         reported by Emanuele Giaquinta.  Also, change sense of cached
77360         variable, so that the message makes sense.
77361
77362 2006-03-24  Simon Josefsson  <jas@extundo.com>
77363
77364         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77365         including some doc fixes.
77366         (base64_encode_alloc): Fix +1 bug on allocation failures.
77367
77368 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77369
77370         * lib/base64.c (base64_encode): Do not read past end of array with
77371         unsanitized input on systems with CHAR_BIT > 8.
77372
77373 2006-03-24  Eric Blake  <ebb9@byu.net>
77374
77375         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77376
77377 2006-03-22  Karl Berry  <karl@gnu.org>
77378
77379         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77380         * config/srclistvars.sh (COREUTILS): new var.
77381
77382 2006-03-17  Jim Meyering  <jim@meyering.net>
77383
77384         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77385         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77386
77387 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77388
77389         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77390         no longer needs it.  Instead, check that regoff_t is as least
77391         as wide as ptrdiff_t.
77392
77393         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77394         so that our regex.h stays compatible with the installed regex.
77395         This is helpful for installers who configure --without-included-regex.
77396         Problem reported by Emanuele Giaquinta.
77397
77398 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77399
77400         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
77401         Typedef to long int, not to off_, as POSIX will likely change
77402         in that direction.
77403
77404 2006-03-15  Eric Blake  <ebb9@byu.net>
77405
77406         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
77407
77408 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77409
77410         * lib/argp-help.c (validate_uparams): Fix typo
77411         * lib/argp-parse.c (argp_default_options): Consistently begin help
77412         messages with a lowercase letter.
77413
77414 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
77415
77416         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
77417         overrun buffers and shouldn't be used (much as gets shouldn't be
77418         used).
77419         * lib/time_r.c (asctime_r, ctime_r): Likewise.
77420
77421 2006-03-08  Simon Josefsson  <jas@extundo.com>
77422
77423         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
77424         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77425
77426 2006-03-08  Simon Josefsson  <jas@extundo.com>
77427
77428         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
77429         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77430
77431 2006-03-08  Simon Josefsson  <jas@extundo.com>
77432
77433         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
77434         signal that configure disabled the device.
77435
77436 2006-03-08  Simon Josefsson  <jas@extundo.com>
77437
77438         * build-aux/maint.mk: Fix refresh-po, to handle no translated
77439         languages.
77440
77441 2006-03-07  Simon Josefsson  <jas@extundo.com>
77442
77443         * modules/getopt (Depends-on): Add unistd.
77444
77445         * modules/unistd: New file.
77446
77447 2006-03-07  Simon Josefsson  <jas@extundo.com>
77448
77449         * modules/gc-random: New file.
77450
77451 2006-03-07  Simon Josefsson  <jas@extundo.com>
77452
77453         * m4/unistd_h.m4: New file.
77454
77455 2006-03-07  Simon Josefsson  <jas@extundo.com>
77456
77457         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
77458         test to be side-effect free by storing the result in the cache
77459         variable gl_cv_lib_readline, and moving the assignment of
77460         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
77461         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77462
77463 2006-03-07  Simon Josefsson  <jas@extundo.com>
77464
77465         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
77466         error on missing devices (the functions will return an error).
77467
77468         * m4/gc.m4: Move random stuff to gc-random.m4
77469
77470 2006-03-07  Simon Josefsson  <jas@extundo.com>
77471
77472         * lib/unistd_.h: New file.
77473
77474 2006-03-07  Simon Josefsson  <jas@extundo.com>
77475
77476         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
77477
77478 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77479
77480         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
77481         Problem reported by Juan Manuel Guerrero.
77482
77483 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77484
77485         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
77486         the unistd module.
77487         * lib/getlogin_r.c: Likewise.
77488         * lib/getlogin_r.h: Likewise.
77489         * lib/glob.c: Likewise.
77490         * lib/pagealign_alloc.c: Likewise.
77491         * lib/unistd_.h: Remove; no longer needed.
77492
77493 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77494
77495         * MODULES.html.sh (Support for systems lacking POSIX:2001):
77496         Add unistd.
77497         * modules/c-stack (Depends-on): Add unistd.
77498         * modules/getlogin_r: Likewise.
77499         * modules/glob: Likewise.
77500         * modules/pagealign_alloc: Likewise.
77501         * modules/unistd (Files): Remove lib/unistd_.h.
77502         (EXTRA_DIST): Remove.
77503         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
77504         need unistd_.h.
77505         (MOSTLYCLEANFILES): Remove unistd.h-t.
77506
77507 2006-03-03  Simon Josefsson  <jas@extundo.com>
77508
77509         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77510
77511 2006-03-03  Simon Josefsson  <jas@extundo.com>
77512
77513         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77514         libidn and bison.
77515
77516 2006-03-03  Simon Josefsson  <jas@extundo.com>
77517
77518         * build-aux/maint.mk: Add indent target.
77519
77520 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77521
77522         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77523         our replacement poll.h in any case, to avoid a differing
77524         declaration from a system header.  Seen on AIX.
77525
77526 2006-03-01  Simon Josefsson  <jas@extundo.com>
77527
77528         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77529         <kasal@ucw.cz>.
77530
77531 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77532
77533         * modules/gettime (Depends-on): Add extensions module.
77534         * modules/nanosleep (Depends-on): Likewise.
77535         * modules/settime (Depends-on): Likewise.
77536
77537 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77538
77539         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77540         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77541         pedantically.
77542         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77543         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77544
77545         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77546         not "==".  Reported by Ralf Wildenhues.
77547
77548 2006-03-01  Karl Berry  <karl@gnu.org>
77549
77550         * doc/Copyright/request-*: new files, synced from gnuorg.
77551
77552 2006-03-01  Karl Berry  <karl@gnu.org>
77553
77554         * config/srclist.txt (Copyright/*): new entries.
77555
77556 2006-02-28  Simon Josefsson  <jas@extundo.com>
77557
77558         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77559
77560 2006-02-27  Simon Josefsson  <jas@extundo.com>
77561
77562         * lib/base64.h: Indent #define's.  From Jim Meyering
77563         <jim@meyering.net>.
77564
77565 2006-02-27  Jim Meyering  <jim@meyering.net>
77566
77567         Revert the change of 2006-02-24, so these files can continue
77568         to be sync'd from gettext.
77569         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77570         of `config.h'.
77571
77572 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77573
77574         * modules/intprops: New file.
77575         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77576         Add intprops.
77577         * modules/getloadavg (Files): Remove lib/intprops.h.
77578         (Depends-on): Add intprops.
77579         * modules/human: Likewise.
77580         * modules/inttostr: Likewise.
77581         * modules/openat: Likewise.
77582         * modules/sig2str: Likewise.
77583         * modules/userspec: Likewise.
77584         * modules/utimecmp: Likewise.
77585         * modules/xnanosleep: Likewise.
77586         * modules/xstrtol: Likewise.
77587
77588 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77589
77590         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77591         * modules/lock-tests (TESTS): Use $(EXEEXT).
77592         * modules/tls-tests: Likewise.
77593         * modules/argp-tests: Likewise.
77594         (check_PROGRAMS): New var, replacing...
77595         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77596
77597 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77598
77599         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77600         `config.h'.
77601
77602 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77603
77604         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77605
77606 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77607
77608         Sync from coreutils.
77609         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77610         gl_CHDIR_SAFER.
77611
77612 2006-02-22  Jim Meyering  <jim@meyering.net>
77613
77614         Sync from coreutils.
77615         * m4/chdir-safer.m4: New file.
77616
77617 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77618
77619         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77620         AT_FDCWD exceeds INT_MAX.
77621         * lib/openat.h (AT_FDCWD): Likewise.
77622
77623 2006-02-17  Eric Blake  <address@hidden>
77624
77625         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77626
77627 2006-02-16  Simon Josefsson  <jas@extundo.com>
77628
77629         * modules/getaddrinfo (Depends-on): Add sys_socket.
77630
77631 2006-02-15  Simon Josefsson  <jas@extundo.com>
77632
77633         * build-aux/maint.mk: Add dsyntax-check rule.
77634
77635 2006-02-15  Eric Blake  <ebb9@byu.net>
77636
77637         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77638         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77639         'present but cannot compile' warnings on cygwin.
77640         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77641         use ws2tcpip.h if sys/socket.h works.
77642         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77643         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77644
77645 2006-02-14  Simon Josefsson  <jas@extundo.com>
77646
77647         * modules/maintainer-makefile (Files): Rename.
77648
77649         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77650         and (the local) Makefile.cfg to maint-cfg.mk.
77651
77652         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77653         to the latter.
77654
77655         * modules/maintainer-makefile: New module.
77656
77657         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
77658         severaly stripped to make it possible to build it up from scratch
77659         with reliable tests.
77660
77661         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
77662         fixes to permit overriding the default actions when configure and
77663         makefile are not available.
77664
77665 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
77666
77667         Sync from coreutils.
77668         * modules/lstat (Depends-on): Don't depend on xalloc.
77669         (License): Change from GPL to LGPL, since this is now simply a
77670         replacement for a libc function.
77671
77672 2006-02-14  Jim Meyering  <jim@meyering.net>
77673
77674         Sync from coreutils.
77675
77676         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
77677         failure on deficient systems, and simplify gnulib lgpl dependencies.
77678         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
77679         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
77680
77681         * lib/xalloc-die.c: Remove unused definition of N_.
77682
77683 2006-02-14  Jim Meyering  <jim@meyering.net>
77684
77685         Sync from coreutils.
77686         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
77687         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
77688         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
77689         double-quote uses of that variable, to accommodate the rare case in
77690         which getmntent is available in none of the libraries checked.  This
77691         happens at least on FreeBSD 5.0.
77692
77693 2006-02-13  Simon Josefsson  <jas@extundo.com>
77694
77695         * gnulib-tool (Usage): Fix --import, from
77696         karl@freefriends.org (Karl Berry).
77697
77698 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77699
77700         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
77701
77702 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
77703
77704         * lib/argp-namefrob.h: Restore changes accidentally lost during the
77705         "autoupdate" on 2005-12-12.
77706
77707 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77708
77709         * modules/closeout (Depends-on): Remove atexit.
77710
77711 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77712
77713         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
77714         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
77715
77716 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
77717
77718         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
77719         __EXTENSIONS__ if this causes compilation to fail.  Problem
77720         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
77721         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
77722
77723 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
77724
77725         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
77726         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
77727         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
77728         All uses changed.
77729
77730 2006-01-26  Simon Josefsson  <jas@extundo.com>
77731
77732         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
77733         prototype is visible on mingw32.
77734
77735         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
77736         for mingw32.
77737
77738         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
77739         mingw32).
77740
77741 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
77742
77743         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
77744         attempt to open for write; this always fails, at least on POSIX
77745         hosts.  This reinstates the 2006-01-09 change, which was
77746         inadvertently removed.
77747
77748 2006-01-26  Bruno Haible  <bruno@clisp.org>
77749
77750         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
77751         Reported by Paul Eggert.
77752
77753 2006-01-26  Bruno Haible  <bruno@clisp.org>
77754             Paul Eggert  <eggert@cs.ucla.edu>
77755
77756         * lib/stdbool_.h (_Bool)
77757         [(! (defined __cplusplus || defined __BEOS__)
77758           && !defined __GNUC__
77759           && !(defined __HP_cc || defined __xlc__
77760                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
77761                || defined __sgi))]:
77762         #define to signed char in these cases too; this simplifies
77763         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
77764         etc., separately) and makes it more conservative.
77765
77766 2006-01-25  Simon Josefsson  <jas@extundo.com>
77767
77768         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
77769         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
77770         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
77771
77772 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77773
77774         * lib/argp-namefrob.h: Bugfix. Remove stray #
77775
77776 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77777
77778         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
77779         so that we test the test.
77780         Check for yet another HP-UX cc bug involving *bool |= bool.
77781
77782 2006-01-25  Karl Berry  <karl@gnu.org>
77783
77784         * config/srclist.txt (vasnprintf.c): sync lost.
77785
77786 2006-01-25  Jim Meyering  <jim@meyering.net>
77787
77788         Sync from the stable (b5) branch of coreutils:
77789
77790         * lib/fts.c (fts_children): Don't let close() clobber errno from
77791         failed fchdir().
77792
77793         * lib/fts.c (fts_stat): When following a symlink-to-directory,
77794         don't necessarily interpret stat-fails+lstat-succeeds as indicating
77795         a dangling symlink.  That can also happen at least for ELOOP.
77796         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
77797         FYI, this bug predates the inclusion of fts.c in coreutils.
77798
77799         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
77800         in their own block, so pre-c99 compilers don't object.
77801
77802         Avoid the double-free (first in fts_read, second in fts_close) that
77803         would occur when an `active' directory is made inaccessible (e.g.,
77804         via chmod a-x) during a traversal.
77805         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77806         before returning.  Reproduce this failure by
77807         mkdir -p a/b; cd a; chmod a-x . b
77808         Reported by Stavros Passas.
77809
77810 2006-01-25  Jim Meyering  <jim@meyering.net>
77811
77812         * lib/fileblocks.c: Remove more useless parentheses.
77813         * lib/readutmp.h: Likewise.
77814
77815 2006-01-25  Bruno Haible  <bruno@clisp.org>
77816
77817         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
77818         warnings.
77819         Reported by Paul Eggert.
77820
77821 2006-01-25  Bruno Haible  <bruno@clisp.org>
77822
77823         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
77824         rid of a trap command. For Solaris sh.
77825         Reported by Mark D. Baushke <mdb@gnu.org>.
77826
77827 2006-01-24  Simon Josefsson  <jas@extundo.com>
77828
77829         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
77830         Bruno.
77831
77832 2006-01-24  Karl Berry  <karl@gnu.org>
77833
77834         * config/srclist.txt (argp-namefrob.h): sync lost.
77835
77836 2006-01-24  Jim Meyering  <jim@meyering.net>
77837
77838         * modules/openat (Files): Add lib/intprops.h.
77839         From Mark D. Baushke.
77840
77841 2006-01-24  Jim Meyering  <jim@meyering.net>
77842
77843         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
77844         Reported by Mark D. Baushke.
77845
77846 2006-01-24  Jim Meyering  <jim@meyering.net>
77847
77848         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
77849
77850 2006-01-24  Bruno Haible  <bruno@clisp.org>
77851
77852         * modules/strnlen (Maintainer): Change from glibc to all.
77853
77854 2006-01-24  Bruno Haible  <bruno@clisp.org>
77855
77856         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
77857         Patch by Paul Eggert.
77858
77859 2006-01-24  Bruno Haible  <bruno@clisp.org>
77860
77861         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
77862         already has it.
77863         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
77864         2005-11-26.
77865
77866         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
77867         'signed char' to avoid problems with the built-in _Bool type.
77868         Reported by Paul Eggert on 2005-11-26.
77869
77870 2006-01-24  Bruno Haible  <bruno@clisp.org>
77871
77872         * gnulib-tool (func_import): Avoid constructing complicated sed
77873         expressions inside backquote.
77874         Report and solution by Mark D. Baushke <mdb@gnu.org>.
77875
77876 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
77877
77878         These changes imported from libc.
77879         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
77880         test and two separate function calls.
77881         * lib/strndup.c (__strndup): Add libc_hidden_def.
77882
77883 2006-01-23  Simon Josefsson  <jas@extundo.com>
77884
77885         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
77886         Remove the test_*_SOURCES variable: automake infers it by default.
77887         * modules/tls-tests: Likewise.
77888
77889 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77890
77891         Work around porting bugs reported by Dieter in
77892         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
77893         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
77894         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
77895         Include "getopt.h" first, to check interface.
77896         (getenv): Declare only if defined HAVE_DECL_GETENV &&
77897         !HAVE_DECL_GETENV.
77898         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
77899         (__strndup): Revert to K&R-style function dfns, the glibc style.
77900         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
77901         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
77902         Include strnlen.h first, to get prototype properly.
77903         (strnlen): Renamed from __strnlen.
77904         Remove weak alias.
77905
77906 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77907
77908         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
77909
77910 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77911
77912         * config/srclist.txt: Adjust to reflect glibc reorganization.
77913         This affects only comments.
77914
77915 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77916
77917          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
77918          Reported by Bruce Korb <bkorb@gnu.org>.
77919
77920 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
77921
77922         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
77923         to pacify gcc -Wswitch-default.
77924
77925 2006-01-22  Bruno Haible  <bruno@clisp.org>
77926
77927         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
77928         temporary buffer for sprintf, take into account the precision also
77929         for 'd', 'i', 'u', 'o', 'x', 'X'.
77930
77931 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77932
77933         * modules/argp-tests: New module
77934         * tests/test-argp.c: New file
77935         * tests/test-argp-2.sh: New file
77936
77937 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77938
77939         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
77940         (__argp_base_name): Removed
77941         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
77942         typo.
77943         (__argp_base_name): Provide macro definition or extern declaration
77944         depending on the configuration
77945
77946 2006-01-20  Simon Josefsson  <jas@extundo.com>
77947
77948         * modules/inet_ntop (Depends-on): Depend on sys_socket.
77949
77950 2006-01-20  Simon Josefsson  <jas@extundo.com>
77951
77952         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
77953
77954 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77955
77956         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
77957         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
77958         Suggested by Bruno Haible.
77959
77960 2006-01-20  Karl Berry  <karl@gnu.org>
77961
77962         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
77963         until changes propagate, I guess.
77964
77965 2006-01-19  Simon Josefsson  <jas@extundo.com>
77966
77967         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
77968
77969 2006-01-19  Simon Josefsson  <jas@extundo.com>
77970
77971         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
77972
77973 2006-01-19  Simon Josefsson  <jas@extundo.com>
77974
77975         * gnulib-tool: Set check_PROGRAMS.
77976
77977         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77978         modules/des-tests, modules/gc-arcfour-tests,
77979         modules/gc-arctwo-tests, modules/gc-des-tests,
77980         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77981         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77982         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77983         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77984         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77985         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
77986         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
77987         test_*_SOURCES.
77988
77989 2006-01-18  Simon Josefsson  <jas@extundo.com>
77990
77991         * modules/socklen (Depends-on): Depend on sys_socket.
77992
77993 2006-01-18  Simon Josefsson  <jas@extundo.com>
77994
77995         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77996         modules/des-tests, modules/gc-arcfour-tests,
77997         modules/gc-arctwo-tests, modules/gc-des-tests,
77998         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77999         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78000         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78001         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78002         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78003         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78004         $(EXEEXT) to automake TESTS variable, for mingw32.
78005
78006 2006-01-17  Simon Josefsson  <jas@extundo.com>
78007
78008         * modules/socklen (Include): Need sys/socket.h.
78009
78010 2006-01-17  Bruno Haible  <bruno@clisp.org>
78011
78012         * modules/ssize_t (Include): Add <sys/types.h>.
78013
78014 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78015
78016         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78017         it's not portable and it doesn't work with cross-compiles.
78018         Problem reported by Bruno Haible.  Fix missing-$ typo in
78019         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78020         -zignore from being used with Sun's C compiler.
78021
78022 2006-01-12  Simon Josefsson  <jas@extundo.com>
78023
78024         * lib/base64.c: Fix warning, reported by Bruno Haible
78025         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78026
78027 2006-01-12  Bruno Haible  <bruno@clisp.org>
78028
78029         * modules/ldd: New file.
78030         * build-aux/ldd.sh.in: New file.
78031         * MODULES.html.sh (Support for building libraries and executables): Add
78032         ldd.
78033
78034 2006-01-12  Bruno Haible  <bruno@clisp.org>
78035
78036         * m4/ldd.m4: New file.
78037
78038 2006-01-12  Bruno Haible  <bruno@clisp.org>
78039
78040         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78041         endless loop while replacing $auxdir with build-aux.
78042
78043 2006-01-11  Simon Josefsson  <jas@extundo.com>
78044
78045         * lib/stdint_.h (SIZE_MAX): Add missing (.
78046
78047 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78048
78049         Sync from coreutils.
78050         * lib/md5.c: Fix commentary typos.
78051         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78052         * lib/md5.h (__attribute__): Remove; unused.
78053         * lib/sha1.c: Fix commentary to match md5 better.
78054         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78055         so that we don't need to worry about alignment.  All uses changed.
78056         This merges the 2005-10-28 md5 change into sha1.
78057
78058 2006-01-11  Jim Meyering  <jim@meyering.net>
78059
78060         Sync from coreutils.
78061         * lib/md5.c (OP): Fix spacing.
78062
78063 2006-01-11  Bruno Haible  <bruno@clisp.org>
78064
78065         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78066         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78067         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78068
78069 2006-01-11  Bruno Haible  <bruno@clisp.org>
78070
78071         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78072         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78073         the "early" section as well.
78074
78075 2006-01-11  Bruno Haible  <bruno@clisp.org>
78076
78077         Avoid "ar: no archive members specified" error on MacOS X.
78078         * gnulib-tool (func_modules_add_dummy): New function.
78079         (func_import, func_create_testdir): Invoke it.
78080
78081 2006-01-11  Bruno Haible  <bruno@clisp.org>
78082
78083         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78084         with $auxdir in AC_CONFIG_FILES statements.
78085
78086 2006-01-11  Bruno Haible  <bruno@clisp.org>
78087
78088         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78089         Initialize also noinst_HEADERS to empty.
78090
78091 2006-01-11  Bruno Haible  <bruno@clisp.org>
78092
78093         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78094         variables.
78095         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78096         autoreconf.
78097
78098 2006-01-11  Bruno Haible  <bruno@clisp.org>
78099
78100         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78101         overridable by the user.
78102         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78103
78104 2006-01-10  Simon Josefsson  <jas@extundo.com>
78105
78106         * modules/sys_socket: New file.
78107
78108 2006-01-10  Simon Josefsson  <jas@extundo.com>
78109
78110         * m4/sys_socket_h.m4: New file.
78111
78112 2006-01-10  Simon Josefsson  <jas@extundo.com>
78113
78114         * lib/socket_.h: New file.
78115
78116 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78117
78118         * modules/readutmp (Maintainer): Add myself.
78119
78120 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78121
78122         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78123         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78124         People who are still concerned with buggy memcmp implementations
78125         can invoke gl_FUNC_MEMCMP themselves.
78126
78127 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78128
78129         * lib/regex_internal.h (BITSET_WORD_BITS):
78130         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78131         preprocessor mishandles large unsigned values as if they were signed.
78132         Problem reported by Claudio Fontana in
78133         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78134
78135 2006-01-10  Jim Meyering  <jim@meyering.net>
78136
78137         Avoid the double-free (first in fts_read, second in fts_close) that
78138         would occur when an `active' directory is made inaccessible (e.g.,
78139         via chmod a-x) during a traversal.
78140         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78141         before returning.  Reproduce this failure by
78142         mkdir -p a/b; cd a; chmod a-x . b
78143         Reported by Stavros Passas.
78144
78145         Sync from coreutils.
78146         * lib/sha1.c: Tweak grammar in a comment.
78147
78148 2006-01-10  Jim Meyering  <jim@meyering.net>
78149
78150         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78151         Patch by Joerg Sonnenberger.
78152
78153 2006-01-10  Bruno Haible  <bruno@clisp.org>
78154
78155         * modules/readutmp: Depend on module free.
78156         * modules/strtok_r: Depend on module restrict.
78157
78158 2006-01-10  Bruno Haible  <bruno@clisp.org>
78159
78160         * modules/gettext (configure.ac): Add an invocation of
78161         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78162
78163 2006-01-10  Bruno Haible  <bruno@clisp.org>
78164
78165         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78166         Reported by Werner Lemberg <wl@gnu.org>.
78167
78168 2006-01-10  Bruno Haible  <bruno@clisp.org>
78169
78170         * lib/localcharset.c: Update from GNU gettext.
78171
78172 2006-01-10  Bruno Haible  <bruno@clisp.org>
78173
78174         * lib/argp.h (__const): Remove macro. Use const instead.
78175         * lib/argp-fmtstream.h (__const): Likewise.
78176         * lib/glob_.h (__const): Remove macro.
78177         * lib/glob-libc.h: Use const instead of __const.
78178
78179 2006-01-10  Bruno Haible  <bruno@clisp.org>
78180
78181         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78182         variable.
78183         Needed to avoid an automake error regarding the 'gettext' module.
78184
78185 2006-01-09  Simon Josefsson  <jas@extundo.com>
78186
78187         * modules/inet_ntop (Depends-on): Add restrict.
78188
78189 2006-01-09  Simon Josefsson  <jas@extundo.com>
78190
78191         * modules/gc-rijndael-tests (License): Put under LGPL.
78192
78193         * modules/gc-des-tests (License): Likewise.
78194
78195         * modules/gc-arcfour-tests (License): Likewise.
78196
78197         * modules/gc-arctwo-tests (License): Likewise.
78198
78199         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78200
78201         * modules/gc-hmac-sha1-tests (Files): Likewise.
78202
78203         * modules/gc-hmac-md5-tests (License): Likewise.
78204
78205         * modules/gc-sha1-tests (License): Likewise.
78206
78207         * modules/gc-md5-tests (License): Likewise.
78208
78209         * modules/gc-md4-tests (License): Likewise.
78210
78211         * modules/gc-md2-tests (License): Likewise.
78212
78213         * modules/gc-tests (License): Likewise.
78214
78215         * modules/des-tests (License): Likewise.
78216
78217         * modules/md4-tests (License): Likewise.
78218
78219         * modules/md2-tests (License): Likewise.
78220
78221 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78222
78223         Sync from coreutils:
78224
78225         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78226         * modules/lib-ignore: New file.
78227         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78228         chdir-safer.m4, lchmod.m4.
78229         * modules/openat: Add mkdirat.c, openat-priv.h.
78230
78231 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78232
78233         Sync from coreutils.
78234         * m4/lib-ignore.m4: New file.
78235         * m4/lchmod.m4: New file.
78236
78237 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78238
78239         Sync from coreutils.
78240         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78241         for write access: POSIX says that must fail.
78242         * lib/fts.c (diropen): Likewise.
78243         * lib/save-cwd.c (save_cwd): Likewise.
78244         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78245         well, for minor improvements on hosts that lack O_DIRECTORY.
78246         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78247         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78248         Fall back on chown if open failed with EACCES.
78249
78250         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78251         Report an error at compile-time if only a 1-second nominal clock
78252         resolution is found.
78253
78254         * lib/lchmod.h: New file.
78255         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78256         (make_dir_parents): Use lchown rather than chown, and
78257         lchmod rather than chmod.
78258
78259         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78260         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78261         "proc" reported by n0dalus.
78262
78263         * lib/mountlist.c: Include <limits.h>.
78264         (dev_from_mount_options)
78265         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78266         New function.  It no longer assumes "dev=" has the System V meaning
78267         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78268         (read_file_system_list)
78269         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78270         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78271         dev= in that case.
78272
78273         * lib/posixtm.h (PDS_PRE_2000): New macro.
78274         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78275         allow_century.  All usages changed.  Reject dates outside the range
78276         1969-1999 if PDS_PRE_2000 is used.
78277
78278 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78279
78280         Sync from coreutils.
78281         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78282         (Time of day items): Mention the possibility of leap seconds.
78283         Problem reported by Dr. David Alan Gilbert.
78284
78285 2006-01-09  Jim Meyering  <jim@meyering.net>
78286
78287         Sync from coreutils.
78288
78289         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78290
78291         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78292
78293         * lib/modechange.c (mode_compile): Reject an invalid mode string
78294         that starts with an octal digit.  From Andreas Gruenbacher.
78295
78296         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78297         and dup to open_safer and dup_safer, respectively.
78298         (openat_permissive): Fix typo in comment.
78299
78300         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78301         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78302         (_): Remove; no longer needed.
78303         (openat): Renamed from rpl_openat; no need for rpl_openat
78304         since openat.h renames openat for us.
78305         Replace most of the body with a call to openat_permissive,
78306         to avoid duplicate code.
78307         Port to (probably hypothetical) environments were mode_t is
78308         wider than int.
78309         (openat_permissive): Require mode arg, so that we can check
78310         types better.  Put it just after flags.  Change cwd failure
78311         indicator from pointer-to-bool to pointer-to-errno-value.
78312         All callers changed.
78313         Invoke openat_save_fail and/or openat_restore_fail if
78314         cwd_errno is null, so that openat can call us.
78315         (openat_permissive, fdopendir, fstatat, unlinkat):
78316         Simplify errno handling to avoid some duplicate code,
78317         as it's OK to set errno on success.
78318         * lib/openat.h: Revamp code so that function macros depend on
78319         __OPENAT_PREFIX only, not also on AT_FDCWD.
78320         (openat_ro): Remove.  Caller changed to use openat_permissive.
78321         (openat_permissive): Now a macro, if not a function.
78322         (openat_restore_fail, openat_save_fail): Now always functions,
78323         since mkdirat needs them even if __OPENAT_PREFIX is defined.
78324
78325         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
78326         and openat.c.
78327         * lib/mkdirat.c: Include openat-priv.h.
78328         Remove definitions of macros defined therein.
78329         * lib/openat.c: Likewise.
78330
78331         * lib/mkdirat.c (mkdirat): New file and function.
78332         * lib/openat.h (mkdirat): Declare.
78333
78334         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
78335
78336         * lib/openat.h (openat_permissive): Declare.
78337         (openat_ro): Define.
78338
78339         * lib/openat.c (EXPECTED_ERRNO): New macro.
78340         (openat_permissive): New function -- used in remove.c rewrite.
78341         (all functions): Set errno just before returning, only if there
78342         was an actual failure.
78343         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
78344
78345         Emulate openat-family functions using Linux's procfs, if possible.
78346         Idea and some code based on Ulrich Drepper's glibc changes.
78347
78348         * lib/openat.c: (BUILD_PROC_NAME): New macro.
78349         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
78350         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
78351         before falling back on save_cwd and restore_cwd.
78352         (fdopendir, fstatat, unlinkat): Likewise.
78353
78354         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
78355         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
78356
78357         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78358         as second argument to va_arg.  Otherwise, some versions of gcc
78359         warn that `if this code is reached, the program will abort'.
78360
78361 2006-01-09  Jim Meyering  <jim@meyering.net>
78362
78363         Sync from coreutils.
78364         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78365         Require openat-priv.h.
78366
78367 2006-01-09  Bruno Haible  <bruno@clisp.org>
78368
78369         * modules/strnlen (Include): Use strnlen.h.
78370
78371 2006-01-09  Bruno Haible  <bruno@clisp.org>
78372
78373         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78374
78375 2006-01-09  Bruno Haible  <bruno@clisp.org>
78376
78377         * lib/sysexit_.h (EX_OK): New macro.
78378         Suggested by Martin Lambers <marlam@marlam.de>.
78379
78380 2006-01-09  Bruno Haible  <bruno@clisp.org>
78381
78382         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78383         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78384
78385 2006-01-09  Bruno Haible  <bruno@clisp.org>
78386
78387         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78388         numbers.
78389
78390 2006-01-09  Bruno Haible  <bruno@clisp.org>
78391
78392         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78393         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78394         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
78395         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
78396
78397 2006-01-09  Bruno Haible  <bruno@clisp.org>
78398
78399         * build-aux/javacomp.sh.in: New file, moved from lib/.
78400         * modules/javacomp-script (Files): Update.
78401         (configure.ac): Add AC_CONFIG_FILES invocation.
78402         (EXTRA_DIST): Remove variable.
78403
78404         * build-aux/javaexec.sh.in: New file, moved from lib/.
78405         * modules/javaexec (Files): Update.
78406         (configure.ac): Add AC_CONFIG_FILES invocation.
78407         (EXTRA_DIST): Remove javaexec.sh.in.
78408
78409         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
78410         * modules/csharpcomp-script (Files): Update.
78411         (configure.ac): Add AC_CONFIG_FILES invocation.
78412         (EXTRA_DIST): Remove variable.
78413
78414         * build-aux/csharpexec.sh.in: New file, moved from lib/.
78415         * modules/csharpexec (Files): Update.
78416         (configure.ac): Add AC_CONFIG_FILES invocation.
78417         (EXTRA_DIST): Remove csharpexec.sh.in.
78418
78419 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78420
78421         Sync from coreutils.
78422
78423         Add POSIX ACL support
78424         * lib/acl.h (copy_acl, set_acl): Add declarations.
78425         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
78426         systems other than Linux.
78427         (chmod_or_fchmod): New function: use fchmod when possible,
78428         and chmod otherwise.
78429         (file_has_acl): Add a POSIX ACL implementation, with a
78430         Linux-specific subcase.
78431         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
78432         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
78433         acls are unsupported.
78434         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
78435         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
78436         are unsupported.
78437
78438 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78439
78440         Sync from coreutils.
78441         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
78442
78443 2006-01-07  Bruno Haible  <bruno@clisp.org>
78444
78445         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
78446         gl_EARLY.
78447
78448 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78449
78450         * lib/strftime.c (tzname): Don't declare if it is already #defined.
78451         Problem reported for Mingw by Mark Junker.
78452
78453 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78454
78455         * README: Gnulib normally doesn't generate a tarball.
78456
78457 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
78458
78459         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
78460         long int, not int, for nanosecond counts, so that people who are
78461         used to POSIX struct timespec won't be surprised.  Reported by Jim
78462         Meyering.
78463
78464 2005-12-28  Bruno Haible  <bruno@clisp.org>
78465
78466         * build-aux/config.rpath: Update from GNU gettext.
78467
78468 2005-12-16  Jim Meyering  <jim@meyering.net>
78469
78470         * modules/fprintftime: New module.
78471         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
78472
78473 2005-12-16  Jim Meyering  <jim@meyering.net>
78474
78475         * m4/fprintftime.m4: New file.
78476
78477 2005-12-16  Jim Meyering  <jim@meyering.net>
78478
78479         * lib/fprintftime.c, lib/fprintftime.h: New files.
78480
78481 2005-12-15  Simon Josefsson  <jas@extundo.com>
78482
78483         * modules/socklen (configure.ac): Fix M4 macro name, to align with
78484         new m4/socklen.m4.
78485
78486 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78487
78488         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
78489         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
78490
78491 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78492
78493         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
78494         * lib/argp-help.c (fill_in_uparams): Check if the constructed
78495         struct uparams is valid. Fall back to the default values if it is
78496         not.
78497
78498 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78499
78500         * modules/argp (Files): Add argp-pin.c
78501         (Depends-on): dirname
78502         (lib_SOURCES): Add argp-pin.c
78503
78504 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78505
78506         * m4/argp.m4:  Check if program_invocation_name and
78507         program_invocation_short_name are declared and define appropriate
78508         macros if they are not.
78509
78510 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78511
78512         * lib/argp-help.c (__argp_base_name): New function
78513         (__argp_short_program_name): Rewrite using __argp_base_name
78514         * lib/argp-namefrob.h: Define program_invocation_name and
78515         program_invocation_short_name if requested
78516         (__argp_base_name): Add prototype
78517         * lib/argp-parse.c (argp_def): Use gettext wrappers
78518         (argp_default_parser): Use __argp_base_name
78519         * lib/argp-pin.c: New file. Defines program_invocation_name and
78520         program_invocation_short_name on systems that lack them.
78521
78522 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78523
78524         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78525         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78526         porting problem reported by Georg Schwarz in
78527         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78528
78529 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78530
78531         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78532         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78533         porting problem reported by Georg Schwarz in
78534         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78535
78536 2005-12-05  Bruno Haible  <bruno@clisp.org>
78537
78538         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78539         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78540         Reported by Mark Junker <mjscod@gmx.de>.
78541
78542 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78543
78544         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78545         Use implementation from Albert Chin, with some
78546         comments/corrections by Stepan Kasal and myself.
78547
78548 2005-12-02  Bruno Haible  <bruno@clisp.org>
78549
78550         * gnulib-tool (func_import): Accept GPLed build tool modules when
78551         --lgpl is given.
78552         * modules/csharpcomp-script: New file.
78553         * modules/csharpcomp: Depend on it.
78554         * modules/javacomp-script: New file.
78555         * modules/javacomp: Depend on it.
78556         Suggested by Simon Josefsson.
78557
78558 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78559
78560         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78561         statement, to work around an HP-UX 10.20 compiler bug reported by
78562         Peter O'Gorman.
78563
78564 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78565
78566         * modules/savedir (Depends-on): Add openat.
78567
78568 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78569
78570         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78571         (uintmax_t) [defined uintmax_t]: Do not declare.
78572         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78573         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78574         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78575         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78576         sake of portability to weird hosts that C allows (though we don't
78577         know of any practical examples).
78578
78579         * lib/savedir.h (fdsavedir): New decl.
78580         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78581         contains most of the former guts of savedir.
78582         (savedir): Use savedirstream.
78583         Include "openat.h".
78584
78585 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78586
78587         * modules/obstack (Files): Add m4/ulonglong.m4.
78588         Problem reported by Davide Angelocola.
78589
78590 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78591
78592         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78593         coreutils no longer futzes with rounding modes.
78594
78595 2005-11-14  Jim Meyering  <jim@meyering.net>
78596
78597         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78598         replacement of mkstemp.
78599
78600 2005-11-10  Simon Josefsson  <jas@extundo.com>
78601
78602         * lib/readline.c: Remove EOL.
78603
78604 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78605
78606         * modules/gethrxtime (Depends-on): Add gettime.
78607
78608 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78609
78610         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78611         or gettimeofday; no longer needed.
78612
78613 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78614
78615         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78616         time business.
78617         (gethrxtime) [! (HAVE_NANOUPTIME
78618         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78619         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78620         our own approximation.
78621
78622 2005-11-08  Eric Blake  <ebb9@byu.net>
78623
78624         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78625
78626 2005-11-08  Eric Blake  <ebb9@byu.net>
78627
78628         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78629
78630 2005-11-04  Bruno Haible  <bruno@clisp.org>
78631
78632         * gnulib-tool: Implement --update mode.
78633
78634 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78635
78636         Fix porting problem reported by Theodoros V. Kalamatianos.
78637         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78638         Don't assume that futimes failing means we must fail.
78639
78640 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78641
78642         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78643         variables to suggest the intended function of the PATH_MAX check.
78644
78645 2005-10-30  Kean Johnston  <jkj@sco.com>
78646
78647         Trivial changes to support SCO systems.
78648         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78649         as PATH_MAX.
78650         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78651         where __ptr is null when no I/O is pending.
78652
78653 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78654
78655         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78656         leave errno alone.  Problem reported by Dmitry V. Levin.
78657
78658 2005-10-28  Simon Josefsson  <jas@extundo.com>
78659
78660         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
78661         Test more.
78662
78663         * tests/test-gc-md2.c, tests/test-md2.c: New files.
78664
78665         * modules/md2, modules/md2-tests: New files.
78666
78667 2005-10-28  Simon Josefsson  <jas@extundo.com>
78668
78669         * m4/inet_ntop.m4: More tests.
78670
78671         * m4/gc-md2.m4, md2.m4: New file.
78672
78673 2005-10-28  Simon Josefsson  <jas@extundo.com>
78674
78675         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
78676         "restrict" keywords, as per POSIX.  Protect the function
78677         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
78678         Don't use K&R prototypes.  Check the sprintf return values.
78679         Re-define EAFNOSUPPORT if not present.  Indent.
78680
78681         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
78682         suggested by Bruno Haible <bruno@clisp.org>.
78683
78684         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
78685
78686         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
78687
78688         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
78689         libgcrypt).
78690
78691         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
78692
78693         * lib/md2.h, lib/md2.c: New files.
78694
78695 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
78696
78697         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
78698         errno alone.  Problem reported by Frederic Jolliton.
78699
78700 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
78701
78702         * modules/verify (License): Change from GPL to LGPL.  This is a
78703         tiny module and there are apparently near-equivalents that are
78704         under the BSD license.
78705
78706 2005-10-24  Simon Josefsson  <jas@extundo.com>
78707
78708         * modules/sha1: Relicense to LGPL.
78709
78710 2005-10-24  Simon Josefsson  <jas@extundo.com>
78711
78712         * lib/md4.h: Shrink buffer size, now that we changed the type.
78713
78714 2005-10-23  Simon Josefsson  <jas@extundo.com>
78715
78716         * gnulib-tool (func_import): Fix --tests-base.
78717
78718 2005-10-22  Simon Josefsson  <jas@extundo.com>
78719
78720         * modules/arcfour (Depends-on): Need stdint.
78721
78722 2005-10-22  Simon Josefsson  <jas@extundo.com>
78723
78724         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
78725         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
78726
78727 2005-10-22  Simon Josefsson  <jas@extundo.com>
78728
78729         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
78730         suggested by Bruno Haible <bruno@clisp.org>.
78731
78732 2005-10-22  Simon Josefsson  <jas@extundo.com>
78733
78734         * lib/crc.h: Include stddef.h, for size_t.
78735
78736 2005-10-22  Simon Josefsson  <jas@extundo.com>
78737
78738         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
78739         arcfour_context struct (simplify test vector testing in GNU
78740         Shishi).
78741
78742 2005-10-21  Simon Josefsson  <jas@extundo.com>
78743
78744         * modules/des, modules/des-tests: New files.
78745
78746         * modules/gc-des, modules/gc-des-tests: New files.
78747
78748         * tests/test-des.c, tests/test-gc-des.c: New file.
78749
78750 2005-10-21  Simon Josefsson  <jas@extundo.com>
78751
78752         * modules/arctwo, modules/arctwo-tests: New files.
78753
78754         * tests/test-arctwo.c: New file.
78755
78756         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
78757
78758         * tests/test-gc-arctwo.c: New file.
78759
78760 2005-10-21  Simon Josefsson  <jas@extundo.com>
78761
78762         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
78763         Bruno Haible <bruno@clisp.org>.
78764
78765         * m4/gc-des.m4: New file.
78766
78767 2005-10-21  Simon Josefsson  <jas@extundo.com>
78768
78769         * m4/arctwo.m4: New file.
78770
78771         * m4/gc-arctwo.m4: New file.
78772
78773 2005-10-21  Simon Josefsson  <jas@extundo.com>
78774
78775         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
78776         block.
78777
78778 2005-10-21  Simon Josefsson  <jas@extundo.com>
78779
78780         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
78781         <bruno@clisp.org>.
78782
78783         * lib/hmac-sha1.c (hmac_sha1): Likewise.
78784
78785         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
78786         Bruno Haible <bruno@clisp.org>.
78787
78788         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
78789         <bruno@clisp.org>.
78790
78791 2005-10-21  Simon Josefsson  <jas@extundo.com>
78792
78793         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
78794
78795 2005-10-21  Simon Josefsson  <jas@extundo.com>
78796
78797         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
78798
78799 2005-10-21  Simon Josefsson  <jas@extundo.com>
78800
78801         * lib/des.h, lib/des.c: New files.
78802
78803         * lib/gc-gnulib.c: Support DES.c
78804
78805 2005-10-21  Simon Josefsson  <jas@extundo.com>
78806
78807         * lib/arctwo.h, lib/arctwo.c: New files.
78808
78809         * lib/gc-gnulib.c: Support ARCTWO.
78810
78811 2005-10-21  Simon Josefsson  <jas@extundo.com>
78812
78813         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
78814         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78815
78816 2005-10-21  Simon Josefsson  <jas@extundo.com>
78817
78818         * gnulib-tool (func_import, func_create_testdir): Define automake
78819         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
78820         Makefile.am snippet),
78821         suggested by Bruno Haible <bruno@clisp.org>.
78822
78823         * modules/gc (Makefile.am): Use it.
78824
78825 2005-10-21  Bruno Haible  <bruno@clisp.org>
78826
78827         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
78828         patch.
78829
78830 2005-10-19  Simon Josefsson  <jas@extundo.com>
78831
78832         * tests/test-gc-rijndael.c: New file.
78833
78834         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
78835
78836 2005-10-19  Simon Josefsson  <jas@extundo.com>
78837
78838         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
78839         interface too.
78840
78841 2005-10-19  Simon Josefsson  <jas@extundo.com>
78842
78843         * tests/test-gc-arcfour.c: New file.
78844
78845         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
78846
78847 2005-10-19  Simon Josefsson  <jas@extundo.com>
78848
78849         * modules/gc-md4, modules/gc-md4-tests: New file.
78850
78851         * tests/test-gc-md4.c: New file.
78852
78853 2005-10-19  Simon Josefsson  <jas@extundo.com>
78854
78855         * m4/gc-md4.m4: New file.
78856
78857 2005-10-19  Simon Josefsson  <jas@extundo.com>
78858
78859         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
78860         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
78861         <kasal@ucw.cz>.
78862
78863 2005-10-19  Simon Josefsson  <jas@extundo.com>
78864
78865         * m4/gc-arcfour.m4: New file.
78866
78867         * m4/gc-rijndael.m4: New file.
78868
78869 2005-10-19  Simon Josefsson  <jas@extundo.com>
78870
78871         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
78872
78873 2005-10-19  Simon Josefsson  <jas@extundo.com>
78874
78875         * lib/gc-gnulib.c: Support ARCFOUR.
78876
78877 2005-10-19  Simon Josefsson  <jas@extundo.com>
78878
78879         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
78880         support.
78881
78882         * lib/gc.h: Add ECB enum type.
78883
78884         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
78885
78886 2005-10-18  Simon Josefsson  <jas@extundo.com>
78887
78888         * tests/test-md5.c: New file.
78889
78890         * modules/md5-tests: New file.
78891
78892 2005-10-18  Simon Josefsson  <jas@extundo.com>
78893
78894         * tests/test-md4.c: New file.
78895
78896         * modules/md4, modules/md4-tests: New files.
78897
78898 2005-10-18  Simon Josefsson  <jas@extundo.com>
78899
78900         * m4/md4.m4: New file.
78901
78902 2005-10-18  Simon Josefsson  <jas@extundo.com>
78903
78904         * lib/md4.h, lib/md4.c: New files, based on md5.?.
78905
78906 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
78907
78908         * gnulib-tool (func_create_testdir): Omit the second check whether
78909         BUILT_SOURCES in nonempty.
78910
78911 2005-10-17  Simon Josefsson  <jas@extundo.com>
78912
78913         * tests/test-rijndael.c: New file.
78914
78915 2005-10-17  Simon Josefsson  <jas@extundo.com>
78916
78917         * modules/sha1: Depend on stdint instead of md5.
78918
78919         * modules/md5: Depend on stdint, remove uint32_t.
78920
78921 2005-10-17  Simon Josefsson  <jas@extundo.com>
78922
78923         * modules/gc-sha1-tests: New file.
78924
78925         * tests/test-gc-sha1.c: New file.
78926
78927 2005-10-17  Simon Josefsson  <jas@extundo.com>
78928
78929         * m4/md5.m4: Remove call to uint32_t.m4.
78930
78931 2005-10-17  Simon Josefsson  <jas@extundo.com>
78932
78933         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
78934
78935         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
78936         md5.h.
78937
78938         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
78939
78940         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
78941
78942 2005-10-17  Simon Josefsson  <jas@extundo.com>
78943
78944         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
78945
78946 2005-10-17  Simon Josefsson  <jas@extundo.com>
78947
78948         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
78949
78950 2005-10-17  Simon Josefsson  <jas@extundo.com>
78951
78952         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
78953
78954         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
78955
78956 2005-10-17  Bruno Haible  <bruno@clisp.org>
78957
78958         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
78959         that it can also be used in a test.
78960
78961 2005-10-16  Bruno Haible  <bruno@clisp.org>
78962
78963         * gnulib-tool (func_emit_tests_Makefile_am): Also define
78964         TESTS_ENVIRONMENT, so that individual tests can augment it.
78965
78966         * gnulib-tool (func_create_testdir): Use an intermediate target for
78967         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
78968         macros, like $(ALLOCA_H), which cannot be passed through the command
78969         line.
78970
78971 2005-10-15  Simon Josefsson  <jas@extundo.com>
78972
78973         * modules/rijndael-tests: New file.
78974
78975         * modules/rijndael: New file.
78976
78977 2005-10-15  Simon Josefsson  <jas@extundo.com>
78978
78979         * m4/rijndael.m4: New file.
78980
78981 2005-10-15  Simon Josefsson  <jas@extundo.com>
78982
78983         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
78984
78985         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
78986
78987 2005-10-14  Simon Josefsson  <jas@extundo.com>
78988
78989         * tests/test-arcfour.c: New file.
78990
78991         * modules/arcfour, modules/arcfour-tests: New files.
78992
78993 2005-10-14  Simon Josefsson  <jas@extundo.com>
78994
78995         * m4/arcfour.m4: New file.
78996
78997 2005-10-14  Simon Josefsson  <jas@extundo.com>
78998
78999         * lib/arcfour.h, lib/arcfour.c: New files.
79000
79001 2005-10-14  Roland McGrath  <roland@redhat.com>
79002
79003         Import from libc.  [BZ #1331]
79004         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79005         macro argument.
79006         Reported by Matej Vela <vela@debian.org>.
79007
79008 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79009
79010         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79011         include <wchar.h>; no longer needed.
79012
79013 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79014
79015         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79016
79017 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79018         and  Ulrich Drepper  <drepper@redhat.com>
79019
79020         Import from libc.
79021         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79022         instead of inline stream orientation test and two separate
79023         function calls.  Pay no attention to USE_IN_LIBIO.
79024
79025 2005-10-13  Simon Josefsson  <jas@extundo.com>
79026
79027         * modules/gc-hmac-md5-tests: New file.
79028
79029         * tests/test-gc-hmac-sha1.c: New file.
79030
79031         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79032
79033         * modules/gc-hmac-md5-tests: New file.
79034
79035         * tests/test-gc-md5.c: New file.
79036
79037         * modules/gc-md5-tests: New file.
79038
79039 2005-10-13  Simon Josefsson  <jas@extundo.com>
79040
79041         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79042         Move memory allocation outside of loop.
79043
79044 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79045
79046         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79047         intermediate directory is in a read-only file system.  Problem
79048         reported by Eric Blake.
79049
79050 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79051
79052         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79053
79054 2005-10-12  Simon Josefsson  <jas@extundo.com>
79055
79056         * tests/test-hmac-sha1.c: New file.
79057
79058         * modules/hmac-sha1-tests: New file.
79059
79060         * modules/hmac-sha1: New file.
79061
79062 2005-10-12  Simon Josefsson  <jas@extundo.com>
79063
79064         * modules/gc-sha1: New file.
79065
79066 2005-10-12  Simon Josefsson  <jas@extundo.com>
79067
79068         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79069
79070         * tests/test-gc-pbkdf2-sha1.c: New file.
79071
79072 2005-10-12  Simon Josefsson  <jas@extundo.com>
79073
79074         * modules/gc-md5, modules/gc-hmac-md5: New files.
79075
79076         * modules/gc (Files): Remove md5, memxor and hmac files.
79077
79078 2005-10-12  Simon Josefsson  <jas@extundo.com>
79079
79080         * m4/gc-pbkdf2-sha1.m4: New file.
79081
79082         * m4/gc-hmac-sha1.m4: New file.
79083
79084         * m4/gc-sha1: New file.
79085
79086         * m4/hmac-sha1.m4: New file.
79087
79088 2005-10-12  Simon Josefsson  <jas@extundo.com>
79089
79090         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79091
79092         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79093
79094 2005-10-12  Simon Josefsson  <jas@extundo.com>
79095
79096         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79097         suggested by Bruno Haible <bruno@clisp.org>.
79098
79099 2005-10-12  Simon Josefsson  <jas@extundo.com>
79100
79101         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79102
79103 2005-10-12  Simon Josefsson  <jas@extundo.com>
79104
79105         * lib/gc-pbkdf2-sha1.c: New file.
79106
79107         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79108
79109 2005-10-12  Simon Josefsson  <jas@extundo.com>
79110
79111         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79112
79113         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79114
79115 2005-10-12  Simon Josefsson  <jas@extundo.com>
79116
79117         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79118         GC_USE_HMAC_MD5, respectively.
79119
79120         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79121         (gc_md5): Fix typo.
79122
79123         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79124
79125         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79126
79127         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79128
79129 2005-10-12  Bruno Haible  <bruno@clisp.org>
79130
79131         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79132         Reported by Stepan Kasal <kasal@ucw.cz>.
79133
79134 2005-10-11  Simon Josefsson  <jas@extundo.com>
79135
79136         * tests/test-crc.c: New file.
79137
79138         * modules/crc, modules/crc-tests: New files.
79139
79140 2005-10-11  Simon Josefsson  <jas@extundo.com>
79141
79142         * m4/crc.m4: New file.
79143
79144 2005-10-11  Simon Josefsson  <jas@extundo.com>
79145
79146         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79147
79148         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79149
79150         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79151
79152 2005-10-11  Simon Josefsson  <jas@extundo.com>
79153
79154         * lib/crc.h, lib/crc.c: New files.
79155
79156         * lib/gc.h (gc_hash_buffer): Add doc.
79157
79158 2005-10-11  Bruno Haible  <bruno@clisp.org>
79159
79160         * modules/c-strcasestr: New file.
79161         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79162
79163 2005-10-11  Bruno Haible  <bruno@clisp.org>
79164
79165         * modules/c-strcase: New file.
79166         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79167
79168 2005-10-11  Bruno Haible  <bruno@clisp.org>
79169
79170         * lib/strcasecmp.c: Include limits.h.
79171         (strcasecmp): Avoid integer overflow on exotic platforms.
79172         * lib/strncasecmp.c: Include limits.h.
79173         (strncasecmp): Avoid integer overflow on exotic platforms.
79174         Reported by Paul Eggert.
79175
79176 2005-10-11  Bruno Haible  <bruno@clisp.org>
79177
79178         * lib/c-strcasestr.h: New file, from GNU gettext.
79179         * lib/c-strcasestr.c: New file, from GNU gettext.
79180
79181 2005-10-11  Bruno Haible  <bruno@clisp.org>
79182
79183         * lib/c-strcase.h: New file, from GNU gettext.
79184         * lib/c-strcasecmp.c: New file, from GNU gettext.
79185         * lib/c-strncasecmp.c: New file, from GNU gettext.
79186
79187 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79188
79189         * modules/mempcpy (License): GPL -> LGPL.
79190         * modules/strchrnul (License): Likewise.
79191         * modules/sysexits (License): Likewise.
79192
79193 2005-10-08  Simon Josefsson  <jas@extundo.com>
79194
79195         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79196
79197 2005-10-07  Simon Josefsson  <jas@extundo.com>
79198
79199         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79200
79201 2005-10-06  Simon Josefsson  <jas@extundo.com>
79202
79203         * tests/test-hmac-md5.c: New file.
79204
79205         * modules/hmac-md5-tests: New file.
79206
79207         * modules/hmac-md5: New file.
79208
79209 2005-10-06  Simon Josefsson  <jas@extundo.com>
79210
79211         * m4/hmac-md5.m4: New file.
79212
79213         * m4/memxor.m4: Require gl_C_RESTRICT.
79214
79215 2005-10-06  Simon Josefsson  <jas@extundo.com>
79216
79217         * lib/memxor.c (memxor): Avoid casts and warnings.
79218
79219 2005-10-06  Simon Josefsson  <jas@extundo.com>
79220
79221         * lib/hmac-md5.c: New file.
79222
79223         * lib/hmac.h: New file.
79224
79225 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79226
79227         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79228         promotes to int, not unsigned int, to catch the AIX 5.3
79229         compiler bug.
79230
79231 2005-10-05  Simon Josefsson  <jas@extundo.com>
79232
79233         * modules/memxor: New file.
79234
79235         * modules/iconv (Files): Move config.rpath to havelib, it is used
79236         there.
79237
79238         * modules/havelib (Files): Add config.rpath.
79239
79240 2005-10-05  Simon Josefsson  <jas@extundo.com>
79241
79242         * m4/memxor.m4: New file.
79243
79244 2005-10-05  Simon Josefsson  <jas@extundo.com>
79245
79246         * lib/memxor.c (memxor): Fix compiler error.
79247
79248         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79249         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79250
79251         * lib/memxor.h, lib/memxor.c: New files.
79252
79253         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79254         we assume all systems have it, suggested by Jim Meyering
79255         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79256         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79257         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79258         same reasons.
79259
79260 2005-10-05  Simon Josefsson  <jas@extundo.com>
79261
79262         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79263
79264 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79265
79266         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79267         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79268         needed, since the source code now assumes these .h files.
79269
79270 2005-10-05  Derek Price  <derek@ximbiot.com>
79271
79272         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79273
79274 2005-10-05  Bruno Haible  <bruno@clisp.org>
79275
79276         * modules/stdint (License): Change to LGPL.
79277
79278 2005-10-04  Simon Josefsson  <jas@extundo.com>
79279
79280         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79281         D. Baushke" <mdb@gnu.org>.
79282
79283 2005-10-04  Bruno Haible  <bruno@clisp.org>
79284
79285         * lib/verify.h (verify_true): Provide alternative definition for C++.
79286
79287 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79288
79289         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79290         (SSIZE_MAX): New macro, if not already defined.
79291         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79292         than 2 GiB.
79293
79294 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79295
79296         Sync from coreutils.
79297         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79298         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79299         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79300         ULLONG_MAX doesn't work with 2.7.2.1.
79301
79302 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79303
79304         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79305         From Ben Pfaff.
79306
79307         * modules/exclude (Depends-on): Depend on verify.
79308         * modules/strtoimax (Depends-on): Likewise.
79309         * modules/utimecmp (Depends-on): Likewise.
79310
79311 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79312
79313         * lib/exclude.c: Include verify.h.
79314         (verify): Remove.  All callers changed to use verify.h's version.
79315         * lib/strtoimax.c: Likewise.
79316         * lib/utimecmp.c: Likewis.e
79317
79318         Sync from coreutils.
79319         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
79320         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
79321         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
79322         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
79323         bother returning ENOSYS if settimeofday or stime fails; just let
79324         them return whatever errno they want to return.
79325         * lib/utimens.c: Include unistd.h, for dup2.
79326         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
79327         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
79328
79329 2005-10-02  Jim Meyering  <jim@meyering.net>
79330
79331         Sync from coreutils.
79332         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
79333         from glibc-2.2.5 that fails for read-only files.
79334
79335 2005-10-02  Jim Meyering  <jim@meyering.net>
79336
79337         Sync from coreutils.
79338         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
79339         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
79340         `#if HAVE_CONFIG_H'.
79341         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
79342         Remove AT_FDCWD test.
79343         Do not consume the fd unless successful.
79344         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
79345         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
79346         block, so that we don't even try to compile it if settimeofday is
79347         available.  This works around a compilation failure on OSF1 V5.1,
79348         due to stime requiring a `long int*' while tv_sec is `int'.
79349
79350 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
79351
79352         Sync from coreutils.
79353         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
79354         against `yes', rather than just testing for nonempty.
79355
79356 2005-10-01  Simon Josefsson  <jas@extundo.com>
79357
79358         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79359         and Darwin.
79360
79361         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79362         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79363         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79364         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79365         Check if struct addrinfo is declared.
79366
79367 2005-10-01  Simon Josefsson  <jas@extundo.com>
79368
79369         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79370         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79371         AI_* and EAI_* definitions.  Protect function declarations.
79372
79373 2005-10-01  Jim Meyering  <jim@meyering.net>
79374
79375         Sync from coreutils.
79376
79377         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79378         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79379         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79380         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79381         in the inet and nsl libraries.  Required on Solaris 5.7.
79382
79383 2005-10-01  Jim Meyering  <jim@meyering.net>
79384
79385         Sync from coreutils.
79386         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79387         in the inet and nsl libraries.  Required on Solaris 5.7.
79388
79389 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79390
79391         * lib/getdelim.c (getdelim): Remove unused variables.
79392
79393 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79394
79395         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
79396         so that the code works even with ancient cpp.  Portability problem
79397         with GCC 2.7.2.1 reported by Thomas M.Ott.
79398
79399 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79400
79401         * modules/regex (Depends-on): Add strcase.
79402
79403         * modules/gethostname (Licence): Change from GPL to LGPL, since
79404         gethostname.c is a trivial implementation of a standard library
79405         function.
79406         * modules/poll (License): Change from GPL to LGPL, since it's
79407         derived from LGPL code.
79408
79409 2005-09-27  Jim Meyering  <jim@meyering.net>
79410
79411         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
79412         HAVE_CONFIG_H.
79413
79414         * lib/intprops.h (signed_type_or_expr__): Define.
79415         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
79416         for unsigned types.
79417
79418 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79419
79420         * lib/verify.h (verify_expr): Remove, replacing with:
79421         (verify_true): New macro that returns true instead of void.
79422         (verify_type__): Remove.
79423         (verify): Use verify_true rather than verify_type__.
79424
79425 2005-09-26  Bruno Haible  <bruno@clisp.org>
79426
79427         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
79428         is necessary.
79429         (lib_SOURCES): Remove mbchar.c.
79430         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
79431         (Files): Add m4/mbrtowc.m4.
79432         * modules/mbiter: Likewise.
79433         * modules/mbuiter: Likewise.
79434
79435 2005-09-26  Bruno Haible  <bruno@clisp.org>
79436
79437         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
79438         compile mbchar.c if they are not both present.
79439         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
79440         * m4/mbiter.m4 (gl_MBITER): Likewise.
79441         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
79442         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
79443         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
79444
79445 2005-09-25  Jim Meyering  <jim@meyering.net>
79446
79447         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
79448         also uses socklen_t.
79449
79450 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
79451
79452         * lib/utimens.c (ENOSYS): Define if not already defined.
79453         (futimens): Support having a null PATH if the file descriptor
79454         is nonnegative.
79455
79456         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
79457         Remove.
79458         (__attribute): Define to empty unless GCC 3.1 or later.
79459         This works around a core dump on OpenBSD 3.4, which has GCC
79460         2.95.3, which dumps core when given __attribute__(()).  It also
79461         simplifies other tests, since we really don't want to bother with
79462         worrying about which ancient version of GCC supported what.
79463         Original problem reported by Yoann Vandoorselaere, with part of
79464         the fix suggested by Derek Price.
79465
79466 2005-09-24  Jim Meyering  <jim@meyering.net>
79467
79468         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
79469         so we can once again use a positive bitfield width of 1 -- now we
79470         don't have to explain why we were using a bitfield width of 2.
79471
79472 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79473
79474         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
79475         and similarly for the other external symbols.  Problem reported
79476         by James Gallager.
79477
79478         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
79479         bug reported by Jim Meyering.
79480
79481         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
79482         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
79483         not needed, since socklen is a prerequisite module.
79484
79485 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79486
79487         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
79488         Problem reported by Eric Blake.
79489         (getaddrinfo): Initialize se so that it's not garbage.
79490         Redo internal storage allocation so that it doesn't make unportable
79491         assumptions about alignment.
79492         Fix a memory leak.
79493
79494         * lib/utimens.c (futimens): Use futimesat if available.
79495         Prefer it to futimes since it doesn't have the futimes bug.
79496
79497         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
79498         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
79499         Instead, declare a function that returns a pointer to an array,
79500         and use verify_type__ to declare the size of the array.
79501         Problem and germ of a solution reported by Bruno Haible.
79502         (verify_type__): Use 2, not 1, for bitfield size, to avoid
79503         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
79504
79505 2005-09-23  Jim Meyering  <jim@meyering.net>
79506
79507         Sync from coreutils.
79508         Correct build failure (socklen_t not defined) on at least
79509         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79510         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79511
79512 2005-09-23  Jim Meyering  <jim@meyering.net>
79513
79514         * modules/getaddrinfo (Depends-on): Add socklen.
79515
79516 2005-09-23  Bruno Haible  <bruno@clisp.org>
79517
79518         * tests/test-verify.c: New file.
79519
79520 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79521
79522         Sync from coreutils.
79523
79524         * modules/argmatch (Depends-on): Add verify.
79525         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79526         unistd-safer.
79527         * modules/save-cwd (Depends-on): Likewise.
79528
79529         * modules/openat (Files): Add lib/openat-die.c.
79530         (Depends-on): Remove error, exitfail.
79531         Add dirname.
79532
79533         * modules/verify: New file.
79534         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79535         with "verify" module.
79536
79537 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79538
79539         Sync from coreutils.
79540
79541         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79542         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79543         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79544         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79545         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79546         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79547         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79548         Don't bother checking for string.h, stdlib.h, unistd.h.
79549         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79550         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79551         module's job.
79552         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79553         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79554
79555         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79556         (gl_GETDATE): Use it.
79557
79558         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79559
79560 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79561
79562         Sync from coreutils.
79563
79564         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79565         stat-time.h.
79566         * lib/argmatch.h: Include verify.h
79567         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79568         (ARGMATCH_ASSERT): Remove; unused.
79569         * lib/canonicalize.c: Assume STDC_HEADERS.
79570         * lib/exclude.c: Include "strcase.h".
79571         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79572         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79573         and stdio-safer.h.
79574         (getusershell): Call fopen, not fopen_safer.
79575         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79576         Do not include unistd-safer.h.
79577         (save_cwd): Don't call fd_safer; no longer needed
79578         now that we include fcntl--.h.
79579
79580         * lib/getdate.y (relative_time): New type.
79581         (RELATIVE_TIME_0): New constant.
79582         (parser_control): Use relative_time instead of doing it ourselves.
79583         (%union): Add new relative_time rel member.
79584         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79585         Now typeless.
79586         (relunit, relunit_snumber): Now of type rel.
79587         (zone, rel, relunit, get_date): Adjust to above changes.
79588
79589         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79590         Do not include unistd-safer.h.
79591         (getloadavg): Don't call fd_safer; no longer needed
79592         now that we include fcntl--.h.
79593
79594         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79595         (make_dir_parents): Treat ENOSYS like EEXIST.
79596
79597         Improve quality of diagnostics on restore_cwd failure.
79598         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79599         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79600         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79601         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79602         each time through the loop.  Do not diagnose restore_cwd failure;
79603         that is the caller's job (and perhaps the caller does not care).
79604
79605         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79606         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79607         If the file already exists but is not a directory, don't bother
79608         to try to make its parents.
79609         Close potential file descriptor leak if we can't chdir("/") (!).
79610         Don't always return true if chdir($PWD) fails; return true only
79611         if the requested action was done successfully (except for the
79612         chdir($PWD)).
79613         Don't log final directory unless we actually made it.
79614         Refactor to avoid duplicate code to fix up permissions.
79615         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79616
79617         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79618         to make it a bit faster and (I hope) clearer.
79619         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79620         Fix bug in formats like %2N.
79621
79622         * lib/verify.h: New file.
79623
79624 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79625
79626         Sync from coreutils.
79627         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79628
79629 2005-09-22  Jim Meyering  <jim@meyering.net>
79630
79631         Sync from coreutils.
79632
79633         * m4/lstat.m4 (gl_FUNC_LSTAT):
79634         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79635         Remove obsolete comment.
79636         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79637         * m4/xstrtod.m4: Likewise.
79638
79639         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79640
79641 2005-09-22  Jim Meyering  <jim@meyering.net>
79642
79643         Sync from coreutils.
79644
79645         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79646
79647         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79648         the .tm_year member, since otherwise gcc-4.0 would now warn about
79649         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79650
79651         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79652         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79653
79654         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79655         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79656         when run in a time zone for which daylight savings time is in effect
79657         for the starting date.
79658
79659         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
79660         stop us from restricting permissions of just-created absolute-named
79661         directories.
79662         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
79663         to restore initial working directory.
79664         * lib/mkdir-p.c (make_dir_parents): New parameter:
79665         different_working_dir, to tell caller if/when we change the working
79666         directory and are unable to return to the initial one.
79667         * lib/mkdir-p.h (make_dir_parents): Update prototype.
79668         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
79669         `return false'.  This fixes a bug introduced on 2004-07-30.
79670
79671         * lib/openat.c (fdopendir): Be sure to close the supplied
79672         file descriptor before returning.  This makes our replacement
79673         implementation a little closer to Solaris's, where fdopendir
79674         ties the file descriptor to the returned DIR* pointer.
79675         * lib/openat.c (unlinkat): New function.
79676         * lib/openat.h (unlinkat): Add prototype.
79677         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
79678         (openat_restore_fail): Rename from openat_restore_die.
79679         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
79680
79681         Provide an alternative to exiting immediately upon save_cwd or
79682         restore_cwd failure.  Now, an application can arrange e.g.,
79683         to perform a longjump in that case.
79684         * lib/openat.c: Include dirname.h.
79685         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
79686         (rpl_openat, fdopendir, fstatat): Call openat_save_die
79687         and openat_restore_die rather than calling error directly.
79688         Don't include "error.h" or "exitfail.h"; they're no longer needed.
79689
79690         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
79691         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
79692         define.
79693
79694         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
79695         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
79696                             int utc, int nanoseconds);
79697         Background:
79698         date should not have to allocate a megabyte of virtual memory to
79699         handle a format argument like +%1048575T.  When implemented with
79700         strftime, it must allocate such a buffer, use strftime to fill it
79701         in, print it, then free it.
79702         With fprintftime, it simply prints everything and exits.
79703         With no need for memory allocation, that's one fewer way to fail.
79704         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
79705         optional field width, not before, so we accept %9:z, not %:9z.
79706         (my_strftime): Be sure to use L_('x') for literals.
79707
79708         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
79709         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
79710         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
79711         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
79712         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
79713         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
79714         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
79715         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
79716         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
79717         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
79718         * lib/xgethostname.c, lib/xreadlink.c:
79719         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
79720
79721         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
79722         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
79723         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
79724         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79725         and don't include <sys/file.h>).
79726
79727 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
79728
79729         Sync from coreutils.
79730
79731         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
79732         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
79733         [!LDAV_DONE]: Avoid unused variable warning.
79734
79735 2005-09-21  Bruno Haible  <bruno@clisp.org>
79736
79737         * lib/unicodeio.h (unicode_to_mb): New declaration.
79738
79739 2005-09-20  Derek Price  <derek@ximbiot.com>
79740
79741         * lib/getaddrinfo.c: Don't include <netdb.h> included from
79742         getaddrinfo.h.
79743
79744 2005-09-20  Bruno Haible  <bruno@clisp.org>
79745
79746         * gnulib-tool: Remove trailing slashes from the values specified for
79747         --source-base, --m4-base, --tests-base, --aux-dir.
79748         Suggested by Simon Josefsson <jas@extundo.com>.
79749
79750 2005-09-20  Bruno Haible  <bruno@clisp.org>
79751
79752         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
79753         func_modules_to_filelist, func_import, func_create_testdir): Make all
79754         sorting results locale-independent, so that gnulib-cache.m4 doesn't
79755         change when gnulib-tool is invoked in a different locale.
79756
79757 2005-09-19  Simon Josefsson  <jas@extundo.com>
79758
79759         * m4/socklen.m4: Fix typo.
79760
79761 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79762
79763         Use a consistent style for including <config.h>.
79764         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
79765         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
79766         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
79767         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
79768         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
79769         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
79770         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
79771         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
79772         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
79773         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
79774         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
79775         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
79776         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
79777         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
79778         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
79779         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
79780         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
79781         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
79782         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
79783         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
79784         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
79785         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
79786         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
79787         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
79788         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
79789         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
79790         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
79791         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
79792         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
79793         lib/xstrtoumax.c, lib/yesno.c:
79794         Standardize inclusion of config.h.
79795         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
79796         lib/inttostr.h:  Removed inclusion of config.h from header files.
79797         * lib/inttostr.c:  Adjusted in-tree users.
79798         * lib/timespec.h: Remove superfluous warning to include config.h.
79799         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
79800         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
79801         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
79802         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
79803         config.h with HAVE_CONFIG_H.
79804
79805 2005-09-19  Jim Meyering  <jim@meyering.net>
79806
79807         * modules/pathmax (License): Change to LGPL.
79808
79809 2005-09-19  Derek Price  <derek@ximbiot.com>
79810
79811         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
79812
79813 2005-09-19  Bruno Haible  <bruno@clisp.org>
79814
79815         * gnulib-tool (import): Provide default for --tests-base.
79816
79817 2005-09-19  Bruno Haible  <bruno@clisp.org>
79818
79819         * doc/quote.texi: New file, extracted from gnulib.texi.
79820         * doc/ctime.texi: New file, extracted from gnulib.texi.
79821         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
79822         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
79823         * doc/gnulib.texi: Include them.
79824
79825 2005-09-18  Bruno Haible  <bruno@clisp.org>
79826
79827         Portability fix.
79828         * gnulib-tool (func_readlink): New function.
79829         (func_ln_if_changed): Use it.
79830
79831 2005-09-18  Bruno Haible  <bruno@clisp.org>
79832
79833         * gnulib-tool: Support --with-tests also with --import.
79834         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
79835         (func_import): Use variables $testsbase and $inctests. Emit a
79836         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
79837         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
79838         SUBDIRS += $testsdir.
79839         (func_create_testdir): Update.
79840
79841 2005-09-18  Bruno Haible  <bruno@clisp.org>
79842
79843         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
79844         instead of $dry_run.
79845         (func_cp_if_changed, func_mv_if_changed): Remove functions.
79846         (func_ln_if_changed): Don't handle dry-run here.
79847         (func_import): In dry-run mode, detect more precisely which actions
79848         would be performed, and don't use "...ing" verbs.
79849
79850 2005-09-18  Bruno Haible  <bruno@clisp.org>
79851
79852         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
79853         (func_import): Use join on two temporary files instead of three nested
79854         loops, in order to determine which files are new or old.
79855
79856 2005-09-18  Bruno Haible  <bruno@clisp.org>
79857
79858         * gnulib-tool (func_import): Comment out code that spits out the
79859         new files with --dry-run.
79860
79861 2005-09-18  Bruno Haible  <bruno@clisp.org>
79862
79863         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
79864
79865 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79866
79867         * lib/stat-time.h: New file.
79868         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
79869         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
79870         in a different way.
79871         (timespec_cmp): New function.
79872         * lib/utimecmp.c: Include stat-time.h.
79873         (SYSCALL_RESOLUTION): Depend on whether various struct stat
79874         members exist, not on the obsolescent ST_MTIM_NSEC.
79875         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
79876
79877 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79878
79879         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
79880
79881 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79882
79883         * MODULES.html.sh (File system functions): Add stat-time.
79884         * modules/stat-time: New file.
79885         * modules/timespec (Files): Remove m4/st_mtim.m4; this
79886         is now done in a different way, by the stat-time module.
79887         * modules/utimecmp (Depends-on): Add stat-time.
79888
79889 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79890
79891         * m4/st_mtim.m4: Remove.  Superseded by...
79892         * m4/stat-time.m4: New file.
79893         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
79894         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
79895
79896 2005-09-15  Derek Price  <derek@ximbiot.com>
79897
79898         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
79899
79900 2005-09-15  Derek Price  <derek@ximbiot.com>
79901
79902         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
79903         * lib/regex_internal.c: Ditto, using this...
79904         (__GNUC_PREREQ): ...new macro.
79905         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
79906         using...
79907         (__GNUC_PREREQ): ...this new macro.
79908
79909         * lib/strstr.h: Include string.h. Define strstr as a macro here.
79910
79911 2005-09-15  Derek Price  <derek@ximbiot.com>
79912             Paul Eggert  <eggert@cs.ucla.edu>
79913
79914         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
79915         changes, consolidating in...
79916         * lib/regex_internal.h: ...this file.
79917
79918 2005-09-13  Jim Meyering  <jim@meyering.net>
79919
79920         * lib/canon-host.c: Filter through gnu indent and reword comments
79921         slightly.
79922         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
79923
79924 2005-09-13  Derek Price  <derek@ximbiot.com>
79925
79926         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
79927         failure.
79928         Reported by Jim Meyering  <jim@meyering.net>.
79929
79930 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79931
79932         * lib/base64.c: Typo.
79933         (base64_encode): Put b64str in initialized data section.
79934
79935 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
79936
79937         Merge glibc and coreutils changes into gnulib, plus a few
79938         extra fixes.
79939         * lib/md5.c: Use #error rather than a string.
79940         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
79941         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
79942         (__attribute__): Define to empty for non recent-GCC.
79943         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
79944         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
79945         Renamed from their non-__ counterparts, with new macros replacing
79946         them if not _LIBC.  Add __THROW attribute.
79947         (rol): Remove.
79948         (struct md5_ctx): Align buffer if using GCC.
79949         * lib/sha1.h (struct sha1_ctx): Likewise.
79950         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
79951         The old name was backwards.
79952         (NOTSWAP): Remove; not used.
79953         (rol): New macro, moved here from md5.h.
79954         (sha1_process_block): Remove a FIXME that doesn't make sense.
79955
79956 2005-09-12  Derek Price  <derek@ximbiot.com>
79957
79958         Return usable errors from canon-host.
79959         * lib/canon-host.h: New file.
79960         * lib/canon-host.c (canon_host): Wrap...
79961         (canon_host_r): ...this new function, which now relies exclusively on
79962         getaddrinfo.
79963         (ch_strerror): New function.
79964         (last_cherror): New global.
79965         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
79966         interface.
79967         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
79968         void *.
79969         (freeaddrinfo): Free ai->ai_canonname when set.
79970
79971 2005-09-12  Derek Price  <derek@ximbiot.com>
79972
79973         Make canon-host require getaddrinfo.
79974         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
79975         AC_LIBSOURCE canon-host.h.  Call...
79976         (gl_PREREQ_CANON_HOST): ...this new function, which requires
79977         gl_GETADDRINFO.
79978         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
79979
79980 2005-09-12  Derek Price  <derek@ximbiot.com>
79981
79982         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
79983         LGPL.
79984         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
79985
79986 2005-09-12  Derek Price  <derek@ximbiot.com>
79987
79988         * lib/gai_strerror.c: Include config.h when available.  Include
79989         getaddrinfo.h before other headers to test interface.
79990         Reported by Larry Jones <lawrence.jones@ugs.com>.
79991
79992 2005-09-12  Derek Price  <derek@ximbiot.com>
79993             Paul Eggert  <eggert@cs.ucla.edu>
79994
79995         * modules/glob (Files): Add glob-libc.h.
79996
79997 2005-09-12  Derek Price  <derek@ximbiot.com>
79998             Paul Eggert  <eggert@cs.ucla.edu>
79999
80000         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80001         glob_.h, glob-libc.h.
80002         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80003
80004 2005-09-12  Derek Price  <derek@ximbiot.com>
80005             Paul Eggert  <eggert@cs.ucla.edu>
80006
80007         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80008         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80009         protecting things that should be done only in gnulib contexts.
80010         * lib/glob_.h: New file, containing only the glob things needed for
80011         gnulib.
80012         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80013         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80014         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80015         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80016         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80017         and to respect the namespace rules better.
80018
80019 2005-09-08  Simon Josefsson  <jas@extundo.com>
80020
80021         * modules/socklen: New file.
80022
80023 2005-09-08  Simon Josefsson  <jas@extundo.com>
80024
80025         * m4/socklen.m4: New file.
80026
80027 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80028
80029         * modules/utimens (Files): Add m4/utimbuf.m4, since
80030         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80031         Reported by Sergey Poznyakoff.
80032
80033 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80034
80035         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80036         definitions, since that's the preferred style in glibc.
80037         Fix a minor spacing issue, and update copyright notice to match
80038         glibc's.
80039
80040 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80041
80042         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80043
80044 2005-09-06  Simon Josefsson  <jas@extundo.com>
80045
80046         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80047         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80048
80049 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80050
80051         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80052         warning.
80053
80054 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80055
80056         * config/srclist.txt: Add glibc bug 1302.
80057
80058 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80059
80060         Change bitset word type from unsigned int to unsigned long int,
80061         as this has better performance on typical 64-bit hosts.
80062         Port bitset code to hosts with unusual word sizes.
80063         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80064         (build_collating_symbol):
80065         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80066         argument is a bitset.  This is merely a style issue, but it makes
80067         it clearer that an entire array is expected.
80068         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80069         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80070         Port to the case where bitset_word is not the same as unsigned int.
80071         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80072         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80073         Likewise.
80074         * lib/regexec.c (check_dst_limits_calc_pos_1,
80075         check_subexp_matching_top):
80076         (build_trtable, group_nodes_into_DFAstates):
80077         Likewise.
80078         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80079         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80080         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80081         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80082         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80083         * lib/regcomp.c (optimize_subexps, lower_subexp):
80084         Work even if bitset_word has holes in its bitwise representation.
80085         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80086         * lib/regexec.c (check_dst_limits_calc_pos_1,
80087         check_subexp_matching_top):
80088         Likewise.
80089         * lib/regex_internal.c (re_string_reconstruct):
80090         Don't assume UCHAR_MAX == 255.
80091         * lib/regex_internal.h (bitset_set_all): Likewise.
80092         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80093         All uses changed.
80094         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80095         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80096         All uses changed.
80097         (BITSET_WORD_MAX): New macro.
80098         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80099         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80100         (bitset_empty, bitset_copy):
80101         Prefer sizeof (bitset) to multiplying it out ourselves.
80102         (bitset_not_merge): Remove; unused.
80103         (bitset_contain): Return bool, not unsigned int with one bit on.
80104         All callers changed.
80105         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80106         alignment than re_node_set; do this by defining a new internal
80107         type struct dests_alloc and using it to allocate memory.
80108
80109 2005-09-05  Bruno Haible  <bruno@clisp.org>
80110
80111         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80112         links.
80113
80114 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80115
80116         * modules/size_max (Makefile.am): Add size_max.h
80117
80118 2005-09-04  Derek Price  <derek@ximbiot.com>
80119
80120         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80121
80122 2005-09-03  Simon Josefsson  <jas@extundo.com>
80123
80124         * gnulib-tool: Fix typo.
80125
80126 2005-09-03  Simon Josefsson  <jas@extundo.com>
80127
80128         * config/srclist.txt: Add glibc bug 1293.
80129
80130 2005-09-03  Derek Price  <derek@ximbiot.com>
80131
80132         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80133         From Larry Jones <lawrence.jones@ugs.com>.
80134
80135 2005-09-02  Simon Josefsson  <jas@extundo.com>
80136
80137         * modules/socklen: New file.
80138
80139 2005-09-02  Simon Josefsson  <jas@extundo.com>
80140
80141         * modules/havelib: New module.
80142
80143         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80144         Use havelib.
80145
80146 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80147
80148         Check for arithmetic overflow when calculating sizes, to prevent
80149         some buffer-overflow issues.  These patches are conservative, in the
80150         sense that when I couldn't determine whether an overflow was possible,
80151         I inserted a run-time check.
80152         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80153         macros.
80154         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80155         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80156         (re_xnrealloc, re_x2nrealloc): New inline functions.
80157         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80158         parse_bracket_exp):
80159         (build_equiv_class, build_charclass): Check for arithmetic overflow
80160         in size expression calculations.
80161         * lib/regex_internal.c (re_string_realloc_buffers):
80162         (build_wcs_upper_buffer, re_node_set_add_intersect):
80163         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80164         (re_dfa_add_node, register_state): Likewise.
80165         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80166         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80167         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80168         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80169
80170 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80171
80172         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80173         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80174
80175 2005-09-02  Bruno Haible  <bruno@clisp.org>
80176
80177         Support for lib vs. lib64 distinction on biarch platforms.
80178         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80179         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80180         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80181
80182 2005-09-02  Bruno Haible  <bruno@clisp.org>
80183
80184         * gnulib-tool (import): In the other first-use case, provide defaults
80185         as well.
80186
80187 2005-09-02  Bruno Haible  <bruno@clisp.org>
80188
80189         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80190         patches not yet found in the latest gettext release.
80191
80192 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80193
80194         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80195         to avoid a collision with bits/local_lim.h in glibc.
80196         All uses changed.  Problem reported by Dmitry V. Levin in
80197         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80198
80199         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80200         bugs in int versus size_t comparisons.
80201         (re_string_context_at): Fix bug where the code assumed that
80202         Idx is signed.
80203
80204         Use bool where appropriate.
80205         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80206         All callers changed.
80207         (calc_eclosure_iter): Likewise, for ROOT arg.
80208         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80209         (build_charclass_op): Likewise, for NON_MATCH arg.
80210         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80211         (re_string_construct_common): Likewise, for ICASE arg.
80212         * lib/regexec.c (re_search_2_stub, re_search_stub):
80213         Likewise, for RET_LEN arg.
80214         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80215         (set_regs): Likewise, for FL_BACKTRACK arg.
80216         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80217         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80218         (calc_eclosure_iter, parse_bracket_exp):
80219         Use bool for internal variables that are booleans.
80220         * lib/regexec.c (re_search_internal, check_matching,
80221         proceed_next_node):
80222         (set_regs, build_sifted_states, sift_states_bkref):
80223         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80224         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80225         (find_collation_sequence_value):
80226         Likewise.
80227         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80228         (re_node_set_compare):
80229         Return bool, not int. All callers changed.
80230         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80231         (build_trtable, check_node_accept): Likewise.
80232         * lib/regex_internal.h: Include stdbool.h.
80233
80234         Fix bugs uncovered when converting to bool.
80235         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80236         failure instead of charging ahead blindly.
80237         * lib/regex_internal.c (register_state): Likewise.
80238         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80239         for freeing internal storage.
80240         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80241         bitset pieces used as boolean, to avoid undefined behavior
80242         on hosts that do int overflow checking.
80243
80244 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80245
80246         * config/srclist.txt: Add glibc bugs 1285-1287.
80247
80248 2005-09-01  Jim Meyering  <jim@meyering.net>
80249
80250         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80251         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80252         Require gl_STAT_MACROS, too.
80253
80254 2005-09-01  Bruno Haible  <bruno@clisp.org>
80255
80256         * gnulib-tool (import): In the first-use case, provide defaults.
80257
80258 2005-09-01  Bruno Haible  <bruno@clisp.org>
80259
80260         * gnulib-tool (func_import): Remove the .tmp files.
80261
80262 2005-09-01  Bruno Haible  <bruno@clisp.org>
80263
80264         * gnulib-tool (func_import): Fix handling of symbolic links.
80265
80266 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80267
80268         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80269         old glibc regex code mishandles strings longer than 2**31 bytes.
80270         This patch fixes this when the regex code is used in gnulib
80271         (i.e., outside glibc).
80272
80273         This patch should not affect the use of the regex code inside
80274         glibc.  No doubt this problem also needs to be handled for glibc
80275         as well, but the result will be an incompatible change to the
80276         glibc ABI, and the old ABI will have to be supported too.  That
80277         can be the the subject for another patch.
80278
80279         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80280         governing whether the rest of this patch is active.  By default,
80281         the macro is disabled and the patch has no effect.
80282         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80283         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80284         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80285         (re_match_2, re_set_registers): Use the new types.
80286         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80287         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80288         New macros.
80289         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80290         (re_string_context_at, bin_tree_t, re_dfastate_t):
80291         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80292         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80293         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80294         (re_string_char_size_at, re_string_wchar_at):
80295         (re_string_elem_size_at):
80296         Use the new types and macros to port to 64-bit hosts.
80297         Use unsigned types for internal values, so that the code
80298         mostly works even for arrays larger than SSIZE_MAX.
80299         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80300         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80301         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80302         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80303         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80304         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80305         (calc_inveclosure, parse_dup_op, build_range_exp):
80306         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80307         (fetch_number, create_token_tree, mark_opt_subexp):
80308         Likewise.
80309         * lib/regex_internal.c (re_string_construct_common,
80310         create_ci_newstate):
80311         (create_cd_newstate, re_string_allocate, re_string_construct):
80312         (re_string_realloc_buffers, build_wcs_upper_buffer):
80313         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80314         (re_string_reconstruct, re_string_peek_byte_case):
80315         (re_string_fetch_byte_case, re_string_context_at):
80316         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80317         (re_node_set_init_copy, re_node_set_add_intersect):
80318         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80319         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80320         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80321         (re_acquire_state, re_acquire_state_context, register_state):
80322         Likewise.
80323         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
80324         search_cur_bkref_entry):
80325         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
80326         (re_search_internal, re_search_2_stub, re_search_stub)
80327         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
80328         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
80329         (update_cur_sifted_state, check_dst_limits):
80330         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80331         (check_subexp_limits, sift_states_bkref, merge_state_array):
80332         (check_subexp_matching_top, get_subexp, get_subexp_sub):
80333         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
80334         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80335         (expand_bkref_cache, check_node_accept_bytes):
80336         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
80337         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
80338         (acquire_init_state_context, check_halt_node_context):
80339         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
80340         (sift_states_backward, clean_state_log_if_needed):
80341         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
80342         (find_recover_state, transit_state_sb, transit_state_mb):
80343         (transit_state_bkref, build_trtable, match_ctx_clean):
80344         Likewise.
80345         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
80346         to work around an assumption that REG_MISSING is negative.
80347
80348         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
80349         (seek_collating_symbol_entry) [defined _LIBC]:
80350         (lookup_collation_sequence_value) [defined _LIBC]:
80351         (build_range_exp, build_collating_symbol) [defined _LIBC]:
80352         Use prototypes rather than old-style function definitions.
80353         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
80354         (transit_state_sb) [0]:
80355         (find_collation_sequence_value) [defined _LIBC]: Likewise.
80356
80357         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80358         rm_eo.
80359
80360         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80361         (optimize_subexps, lower_subexp):
80362         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80363         since the signed shift might overflow.  Use 1u<<31 instead.
80364         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80365         Likewise.
80366         * lib/regexec.c (check_dst_limits_calc_pos_1,
80367         check_subexp_matching_top): Likewise.
80368
80369         * lib/regcomp.c (optimize_subexps, lower_subexp):
80370         Use CHAR_BIT rather than 8, for clarity.
80371         * lib/regexec.c (check_dst_limits_calc_pos_1):
80372         (check_subexp_matching_top): Likewise.
80373         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80374         have to worry about portability issues when shifting it left.
80375         Remove no-longer-needed test for table_size > 0.
80376         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80377         in a word, as the resulting behavior is undefined.
80378         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80379         in one case, a <= should have been an <, and in another case the
80380         whole test was missing.
80381         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80382         the standard name CHAR_BIT.
80383         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80384         this is not true on one's complement and signed-magnitude hosts.
80385
80386         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80387         next_last_offset.
80388         (struct re_dfa_t): Remove unused member states_alloc.
80389         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80390
80391 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80392
80393         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80394         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
80395         and large-file glibc and in 32-bit large-file Solaris.
80396
80397 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80398
80399         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
80400         lengths fit in regoff_t; this isn't true if regoff_t is the same
80401         width as size_t.
80402         * lib/regex.c (re_search_internal): 5th arg is LAST_START
80403         (= START + RANGE) instead of RANGE.  This avoids overflow
80404         problems when regoff_t is the same width as size_t.
80405         All callers changed.
80406         (re_search_2_stub): Check for overflow when adding the
80407         sizes of the two strings.
80408         (re_search_stub): Check for overflow when adding START
80409         to RANGE; if it occurs, substitute the extreme value.
80410
80411 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80412
80413         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
80414
80415 2005-08-31  Jim Meyering  <jim@meyering.net>
80416
80417         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
80418         a pointer-to-const.
80419         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
80420         (register_state): Likewise.
80421         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
80422         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80423         (group_nodes_into_DFAstates): Likewise.
80424
80425 2005-08-31  Jim Meyering  <jim@meyering.net>
80426
80427         * check-module: Add a FIXME comment.
80428
80429 2005-08-31  Eric Blake  <ebb9@byu.net>
80430
80431         * modules/unistd-safer (Files): Add unistd--.h.
80432         * modules/stdio-safer (Files): Add stdio--.h.
80433
80434 2005-08-31  Derek Price  <derek@ximbiot.com>
80435
80436         * lib/getdelim.c (getdelim): Return EOF on EOF.
80437         Reported by Larry Jones <lawrence.jones@ugs.com>.
80438
80439 2005-08-31  Bruno Haible  <bruno@clisp.org>
80440
80441         Avoid unnecessary diffs in the generated lib/Makefile.am.
80442         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
80443         the generated files.
80444         (func_import): Don't set cmd.
80445
80446 2005-08-31  Bruno Haible  <bruno@clisp.org>
80447
80448         * lib/strstr.c: Include <stddef.h>, for NULL.
80449         * lib/strcasestr.c: Likewise.
80450         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80451
80452 2005-08-31  Bruno Haible  <bruno@clisp.org>
80453
80454         * gnulib-tool: New option --macro-prefix.
80455         (func_import): Use macro_prefix.
80456         (import): Handle option --macro-prefix.
80457
80458 2005-08-31  Bruno Haible  <bruno@clisp.org>
80459
80460         * gnulib-tool (import): Rename most ac_* variables to cached_*.
80461         Also use new variables cached_lgpl, cached_libtool.
80462
80463 2005-08-31  Bruno Haible  <bruno@clisp.org>
80464
80465         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
80466         always instantiating them.
80467
80468 2005-08-31  Bruno Haible  <bruno@clisp.org>
80469
80470         * gnulib-tool (func_import): Read the previous cached settings
80471         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
80472         earlier added by gnulib but are now dropped. Warn when a gnulib file
80473         overwrites a non-gnulib file.
80474
80475 2005-08-31  Bruno Haible  <bruno@clisp.org>
80476
80477         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
80478         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
80479         projects that don't keep autogenerated files in CVS. Put into
80480         actioncmd only the specified modules, not the transitive closure.
80481
80482 2005-08-31  Bruno Haible  <bruno@clisp.org>
80483
80484         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
80485         Create directories that shall be filled.
80486         (import): Don't look for gl_* macros in configure.ac. Recurse across
80487         all directories containing a gnulib-cache.m4 files, if meaningful.
80488
80489 2005-08-31  Bruno Haible  <bruno@clisp.org>
80490
80491         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
80492         (import): Set seen_libtool when we see gl_LIBTOOL.
80493
80494 2005-08-31  Bruno Haible  <bruno@clisp.org>
80495
80496         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
80497         declaration macro definitions from generated gnulib.m4.
80498
80499 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
80500
80501         * lib/iconvme.h: Add prototype for iconv_alloc.
80502
80503 2005-08-29  Simon Josefsson  <jas@extundo.com>
80504
80505         * lib/iconvme.c: Fix errno.
80506
80507 2005-08-29  Bruno Haible  <bruno@clisp.org>
80508
80509         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80510         that it works when the directory contains spaces.
80511
80512 2005-08-29  Bruno Haible  <bruno@clisp.org>
80513
80514         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80515
80516 2005-08-29  Bruno Haible  <bruno@clisp.org>
80517
80518         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80519         Emit more advice.
80520
80521 2005-08-29  Bruno Haible  <bruno@clisp.org>
80522         and Stepan Kasal  <kasal@ucw.cz>
80523
80524         * check-module: If more parameters are given, check each of them
80525         separately; add more exceptions, as noted by Jim Meyering.
80526         (check_module): New procedure.
80527         (%exempt_header): Now contains all exceptions.
80528
80529 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80530
80531         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80532
80533 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80534
80535         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80536
80537 2005-08-28  Bruno Haible  <bruno@clisp.org>
80538
80539         * m4/gnulib-tool.m4: New file.
80540
80541 2005-08-27  Jim Meyering  <jim@meyering.net>
80542
80543         * modules/unistd-safer (Files): Add pipe-safer.c.
80544         * modules/fcntl-safer (Files): Add creat-safer.c.
80545
80546 2005-08-27  Jim Meyering  <jim@meyering.net>
80547
80548         * m4/stdlib-safer.m4: New file.  From coreutils.
80549         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80550         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80551         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80552         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80553         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80554
80555 2005-08-27  Jim Meyering  <jim@meyering.net>
80556
80557         * lib/fopen-safer.c: Merge minor changes from coreutils.
80558         * lib/dup-safer.c: Likewise.
80559         * lib/fd-safer.c: Likewise.
80560
80561         Merge from coreutils.
80562         * lib/stdio--.h: New file.
80563         * lib/stdlib--.h: New file.
80564         * lib/mkstemp-safer.c: New file.
80565
80566         GNU tar needs these.
80567         * lib/pipe-safer.c: New file.
80568         * lib/creat-safer.c: New file.
80569         * lib/fcntl--.h (creat): Define to creat_safer.
80570         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80571         * lib/unistd--.h (pipe): Define to pipe_safer.
80572         * lib/unistd-safer.h: Declare pipe_safer.
80573
80574 2005-08-26  Simon Josefsson  <jas@extundo.com>
80575
80576         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80577         Haible <bruno@clisp.org>.
80578
80579 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80580
80581         * lib/regex_internal.h: Remove all references to
80582         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80583         or better.
80584         (bitset_not, bitset_merge, bitset_not_merge):
80585         (bitset_mask, re_string_allocate, re_string_construct):
80586         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80587         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80588         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80589         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80590         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80591         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80592         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80593         (re_acquire_state_context):
80594         Remove unnecessary forward decls.
80595         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80596         Put __attribute at function definition,
80597         now that the function decl has been removed.
80598         * lib/regex_internal.c (re_string_peek_byte_case):
80599         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80600         Likewise.
80601
80602 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80603
80604         * m4/regex.m4: Add AC_PREREQ(2.50).
80605         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80606
80607 2005-08-25  Simon Josefsson  <jas@extundo.com>
80608
80609         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80610         __fsetlocking.
80611
80612 2005-08-25  Simon Josefsson  <jas@extundo.com>
80613
80614         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80615         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80616         GLIBC specific code.
80617
80618 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80619
80620         Make regex safe for g++.  This fixes one real bug (an "err"
80621         that should have been "*err").  g++ problem reported by
80622         Sam Steingold.
80623         * lib/regex_internal.h (re_calloc): New macro, consistent with
80624         re_malloc etc.  All callers of calloc changed to use re_calloc.
80625         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80626         not int.  All callers changed.
80627         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80628         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80629         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80630         (find_recover_state): Change "err" to "*err"; this fixes what
80631         appears to be a real bug.
80632         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80633         versus int.
80634
80635 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80636
80637         * modules/regex (Depends-on): Add malloc, since the code
80638         assumes that !malloc(0) means failure.
80639
80640 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80641
80642         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80643
80644         alloca modernization/simplification for regex.
80645         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80646         needs to be at the start of the file, and can be moved into
80647         regex_internal.h and simplified.
80648         * lib/regex_internal.h: Include <alloca.h>.
80649         (__libc_use_alloca) [!defined _LIBC]: New macro.
80650         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80651         now works outside glibc.
80652
80653 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80654
80655         * config/srclist.txt: Add glibc bugs 1241, 1245.
80656
80657 2005-08-25  Jim Meyering  <jim@meyering.net>
80658
80659         * lib/open-safer.c: Include <config.h>.
80660         Otherwise, we'd lose LARGEFILE support in any file using
80661         e.g. "fcntl--.h"
80662
80663 2005-08-25  Bruno Haible  <bruno@clisp.org>
80664
80665         * m4/minmax.m4: Require autoconf 2.52.
80666         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
80667         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
80668         alternatives of translit over the alphabet.
80669         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
80670
80671 2005-08-24  Simon Josefsson  <jas@extundo.com>
80672
80673         * tests/test-getpass.c: New file.
80674
80675 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80676
80677         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
80678         for GNU regex features.
80679
80680 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80681
80682         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
80683         * lib/regex.h (regerror): Likewise.
80684
80685         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
80686         requires this.  (The code never needed it.)
80687
80688         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
80689         All uses of recently-renamed identifiers changed to use the new,
80690         POSIX-compliant names.  The code will build and run just fine
80691         without these changes, but it's better to eat our own dog food
80692         and use the standard-conforming names.
80693
80694         * lib/regex.h: Fix a multitude of POSIX name space violations.
80695         These changes have an effect only for programs that define
80696         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
80697         do not change anything for programs compiled in the normal way.
80698         Also, there is no effect on the ABI.
80699
80700         (_REGEX_SOURCE): New macro.
80701         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
80702         defined and _GNU_SOURCE is not; this fixes a name space violation.
80703
80704         Rename the following macros to obey POSIX requirements.
80705         The old names are still visible as macros if _REGEX_SOURCE is defined.
80706         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
80707         RE_BACKSLASH_ESCAPE_IN_LISTS.
80708         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
80709         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
80710         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
80711         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
80712         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
80713         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
80714         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
80715         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
80716         (REG_INTERVALS): renamed from RE_INTERVALS.
80717         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
80718         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
80719         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
80720         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
80721         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
80722         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
80723         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
80724         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
80725         RE_UNMATCHED_RIGHT_PAREN_ORD.
80726         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
80727         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
80728         (REG_DEBUG): renamed from RE_DEBUG.
80729         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
80730         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
80731         unusual, since we can't clash with the POSIX REG_ICASE.
80732         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
80733         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
80734         (REG_NO_SUB): renamed from RE_NO_SUB.
80735         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
80736         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
80737         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
80738         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
80739         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
80740         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
80741         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
80742         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
80743         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
80744         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
80745         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
80746         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
80747         RE_SYNTAX_POSIX_MINIMAL_BASIC.
80748         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
80749         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
80750         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
80751         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
80752         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
80753         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
80754         (REG_FIXED): Renamed from REGS_FIXED.
80755         (REG_NREGS): Renamed from RE_NREGS.
80756
80757         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
80758         of other REG_* macros, since POSIX says the user is allowed to
80759         #undef these macros selectively.
80760
80761         (reg_errcode_t): Update comment stating what other tables need
80762         to be consistent.
80763
80764         Rename the following enum values to obey POSIX requirements.
80765         The old names are still visible as macros.
80766         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
80767         is not defined, since GNU is supposed to be a superset of POSIX as
80768         much as possible, and since we want reg_errcode_t to be a signed
80769         type for implementation consistency.
80770         (_REG_NOERROR): Renamed from REG_NOERROR.
80771         (_REG_NOMATCH): Renamed from REG_NOMATCH.
80772         (_REG_BADPAT): Renamed from REG_BADPAT.
80773         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
80774         (_REG_ECTYPE): Renamed from REG_ECTYPE.
80775         (_REG_EESCAPE): Renamed from REG_EESCAPE.
80776         (_REG_ESUBREG): Renamed from REG_ESUBREG.
80777         (_REG_EBRACK): Renamed from REG_EBRACK.
80778         (_REG_EPAREN): Renamed from REG_EPAREN.
80779         (_REG_EBRACE): Renamed from REG_EBRACE.
80780         (_REG_BADBR): Renamed from REG_BADBR.
80781         (_REG_ERANGE): Renamed from REG_ERANGE.
80782         (_REG_ESPACE): Renamed from REG_ESPACE.
80783         (_REG_BADRPT): Renamed from REG_BADRPT.
80784         (_REG_EEND): Renamed from REG_EEND.
80785         (_REG_ESIZE): Renamed from REG_ESIZE.
80786         (_REG_ERPAREN): Renamed from REG_ERPAREN.
80787         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
80788         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
80789         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
80790         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
80791
80792         (_REG_RE_NAME, _REG_RM_NAME): New macros.
80793         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
80794         changed.  But support the old name if the new one is not defined
80795         and if _REGEX_SOURCE.
80796
80797         Change the following member names in struct re_pattern_buffer.
80798         The old names are still supported if !_REGEX_SOURCE.
80799         The new names are always supported, regardless of _REGEX_SOURCE.
80800         (re_buffer): Renamed from buffer.
80801         (re_allocated): Renamed from allocated.
80802         (re_used): Renamed from used.
80803         (re_syntax): Renamed from syntax.
80804         (re_fastmap): Renamed from fastmap.
80805         (re_translate): Renamed from translate.
80806         (re_can_be_null): Renamed from can_be_null.
80807         (re_regs_allocated): Renamed from regs_allocated.
80808         (re_fastmap_accurate): Renamed from fastmap_accurate.
80809         (re_no_sub): Renamed from no_sub.
80810         (re_not_bol): Renamed from not_bol.
80811         (re_not_eol): Renamed from not_eol.
80812         (re_newline_anchor): Renamed from newline_anchor.
80813
80814         Change the following member names in struct re_registers.
80815         The old names are still supported if !_REGEX_SOURCE.
80816         The new names are always supported, regardless of _REGEX_SOURCE.
80817         (rm_num_regs): Renamed from num_regs.
80818         (rm_start): Renamed from start.
80819         (rm_end): Renamed from end.
80820
80821         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
80822         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
80823         Prepend __ to parameter names.
80824
80825         Undo yesterday's changes.
80826
80827 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80828
80829         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
80830         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
80831         lib/regex.c.
80832
80833 2005-08-24  Jim Meyering  <jim@meyering.net>
80834
80835         Sync from coreutils.
80836         * m4/fcntl-safer.m4: New file.
80837
80838         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
80839         and object files for this module.
80840
80841 2005-08-24  Jim Meyering  <jim@meyering.net>
80842
80843         Sync from coreutils.
80844         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
80845
80846 2005-08-24  Jim Meyering  <jim@meyering.net>
80847
80848         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
80849         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
80850
80851 2005-08-24  Jim Meyering  <jim@meyering.net>
80852
80853         * modules/fcntl-safer: New module.
80854         * modules/fts (Depends-on): Add fcntl-safer.
80855         * MODULES.html.sh (File descriptor based Input/Output):
80856         Add fcntl-safer.
80857
80858 2005-08-24  Bruno Haible  <bruno@clisp.org>
80859
80860         Support for unit test modules.
80861         * modules/README: Mention tests modules.
80862         * modules/TEMPLATE-TESTS: New file.
80863         * gnulib-tool: New options --extract-tests-module, --with-tests and
80864         --tests-base (unused for the moment).
80865         (testsbase, inctests): New variables.
80866         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
80867         (func_verify_module): Exclude TEMPLATE-TESTS.
80868         (func_verify_nontests_module, func_verify_tests_module): New functions.
80869         (func_get_dependencies): Add implicit dependency for tests modules.
80870         (func_get_tests_module): New function.
80871         (func_modules_transitive_closure): When --with-tests was specified,
80872         include the unit tests as well, unless explicitly avoided.
80873         (func_emit_lib_Makefile_am): Ignore the tests modules here.
80874         (func_emit_tests_Makefile_am): New function.
80875         (func_create_testdir): When --with-tests was specified, emit a
80876         tests/ directory.
80877         * MODULES.html.sh (Future developments): Update.
80878
80879 2005-08-24  Bruno Haible  <bruno@clisp.org>
80880
80881         * modules/tls-tests: New file.
80882         * tests/test-tls.c: New file, from GNU gettext.
80883
80884 2005-08-24  Bruno Haible  <bruno@clisp.org>
80885
80886         * modules/lock-tests: New file.
80887         * tests/test-lock.c: New file, from GNU gettext.
80888
80889 2005-08-24  Bruno Haible  <bruno@clisp.org>
80890
80891         * lib/lock.h: Add multiple inclusion guard.
80892         * lib/tls.h: Add multiple inclusion guard.
80893
80894 2005-08-24  Bruno Haible  <bruno@clisp.org>
80895
80896         * gnulib-tool: Add support for the --aux-dir option to
80897         --create-testdir, --create-megatestdir, --test, --megatest.
80898         (func_create_testdir, func_create_megatestdir): Optionally emit a
80899         AC_CONFIG_AUX_DIR directive.
80900         (create-testdir, create-megatestdir, test, megatest): Provide a
80901         default value for $auxdir.
80902
80903 2005-08-24  Bruno Haible  <bruno@clisp.org>
80904
80905         * gnulib-tool (import): Use compound statement instead of subshell
80906         where possible.
80907
80908 2005-08-24  Bruno Haible  <bruno@clisp.org>
80909
80910         * gnulib-tool (import): Change --aux-dir default to "build-aux".
80911
80912 2005-08-24  Bruno Haible  <bruno@clisp.org>
80913
80914         * gnulib-tool (func_version): Update.
80915
80916 2005-08-24  Bruno Haible  <bruno@clisp.org>
80917
80918         * gnulib-tool (func_import, func_create_testdir,
80919         func_create_megatestdir): Quote all autoconf macro arguments.
80920
80921 2005-08-24  Bruno Haible  <bruno@clisp.org>
80922
80923         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
80924         option --force, because --force causes the aclocal.m4 of each
80925         subdirectory to be newer than the corresponding config.h.in.
80926
80927 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80928
80929         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
80930         All contents moved to gl_REGEX.
80931         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
80932         assume that it does.
80933
80934 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80935
80936         * lib/regex.h (REG_NOSYS)
80937         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
80938         Define, since POSIX requires it as of 2001.
80939         (_REG_ENOSYS)
80940         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
80941         New private symbol, used to keep the enum signed in all cases.
80942         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
80943         Youngman in
80944         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
80945
80946         * lib/regex_internal.c (re_string_skip_chars, register_state):
80947         (calc_state_hash):
80948         Remove forward decls; no longer needed now that we use prototypes.
80949         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
80950         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
80951         (clean_state_log_if_needed): Likewise.
80952
80953 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80954
80955         * config/srclist.txt: Add glibc bugs 1231-1233.
80956
80957 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80958
80959         Fix problems reported by Sam Steingold in
80960         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
80961         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
80962         assumed that reg_errcode_t is a signed type, which is not
80963         necessarily true if _XOPEN_SOURCE is not defined.
80964         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
80965         since some compilers warn about it otherwise.
80966
80967 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80968
80969         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
80970         (init_word_char, create_initial_state, duplicate_node_closure):
80971         (fetch_token, peek_token_bracket, build_range_exp):
80972         (build_collating_symbol): Remove forward decls; no longer needed
80973         now that we use prototypes.
80974
80975         * lib/regcomp.c:
80976         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
80977         (re_compile_fastmap_iter, regcomp, regerror, regfree):
80978         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
80979         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
80980         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
80981         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
80982         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
80983         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
80984         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
80985         (build_range_exp, build_collating_symbol, parse_bracket_exp):
80986         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
80987         (build_charclass, build_charclass_op, fetch_number, create_tree):
80988         (create_token_tree, mark_opt_subexp, duplicate_tree):
80989         Use prototypes rather than old-style definitions.
80990
80991         * lib/regex_internal.c:
80992         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
80993         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
80994         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80995         (re_string_reconstruct, re_string_peek_byte_case):
80996         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
80997         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80998         (re_node_set_init_copy, re_node_set_add_intersect):
80999         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81000         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81001         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81002         (re_acquire_state, re_acquire_state_context, register_state):
81003         (create_ci_newstate, create_cd_newstate, free_state):
81004         Likewise.
81005         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81006         re_search_2):
81007         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81008         (re_search_internal, prune_impossible_nodes):
81009         (acquire_init_state_context, check_matching, static):
81010         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81011         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81012         (update_regs, sift_states_backward, build_sifted_states):
81013         (clean_state_log_if_needed, merge_state_array):
81014         (update_cur_sifted_state, add_epsilon_src_nodes):
81015         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81016         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81017         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81018         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81019         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81020         (check_arrival, check_arrival_add_next_nodes):
81021         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81022         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81023         (check_node_accept_bytes, check_node_accept, extend_buffers):
81024         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81025         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81026         (sift_ctx_init):
81027         Likewise.
81028
81029         * lib/regex_internal.h:
81030         (re_string_allocate, re_string_construct, re_string_reconstruct):
81031         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81032         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81033         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81034         (re_string_context_at, re_string_peek_byte_case):
81035         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81036         is defined, since we now use prototypes always.
81037
81038         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81039         C89 or better.  All uses removed.
81040
81041 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81042
81043         * config/srclist.txt: Add glibc bugs 1220-1227.
81044
81045 2005-08-20  Jim Meyering  <jim@meyering.net>
81046
81047         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81048         of unused local, dfa.
81049
81050 2005-08-20  Bruno Haible  <bruno@clisp.org>
81051
81052         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81053
81054 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81055
81056         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81057         (re_node_set_insert_last, re_dfa_add_node):
81058         Rename local variables to avoid GCC shadowing warnings.
81059
81060 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81061
81062         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81063         [defined lint]: Suppress bogus uninitialized-variable warnings.
81064
81065         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81066         and let the caller return REG_ESPACE if out of space.  This
81067         removes an uninitialied-variable warning with GCC 4.0.1, and also
81068         avoids taking the address of a local variable.  All callers
81069         changed.
81070
81071 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81072
81073         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81074         $LIBCSRC/posix/regexec.c.
81075         Add glibc bug 1217 for regcomp.c.
81076
81077 2005-08-19  Jim Meyering  <jim@meyering.net>
81078
81079         * lib/regexec.c (proceed_next_node): Redo local variables to
81080         avoid GCC shadowing warnings.
81081
81082 2005-08-18  Bruno Haible  <bruno@clisp.org>
81083
81084         * lib/strstr.c (strstr): Fix return value in multibyte case.
81085         * lib/strcasestr.c (strcasestr): Likewise.
81086
81087 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81088
81089         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81090
81091 2005-08-17  Jim Meyering  <jim@meyering.net>
81092
81093         Make the %s format (seconds since the epoch) work for a negative
81094         number and when used with a zero-padded field width, e.g. %015s.
81095
81096         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81097         label so that it precedes the code to set `digits'.  Otherwise,
81098         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81099         print `00-22'.  Now, it prints `-0022', as it should.
81100
81101 2005-08-17  Bruno Haible  <bruno@clisp.org>
81102
81103         * modules/strstr (Files): Add m4/mbrtowc.m4.
81104         (Depends-on): Add mbuiter.
81105
81106 2005-08-17  Bruno Haible  <bruno@clisp.org>
81107
81108         * modules/strcasestr: New file.
81109         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81110         strcasestr.
81111
81112 2005-08-17  Bruno Haible  <bruno@clisp.org>
81113
81114         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81115
81116 2005-08-17  Bruno Haible  <bruno@clisp.org>
81117
81118         * modules/mbuiter: New file.
81119         * MODULES.html.sh (Extended multibyte and wide character utilities):
81120         Add mbuiter.
81121
81122 2005-08-17  Bruno Haible  <bruno@clisp.org>
81123
81124         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81125         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81126
81127 2005-08-17  Bruno Haible  <bruno@clisp.org>
81128
81129         * m4/strcasestr.m4: New file.
81130
81131 2005-08-17  Bruno Haible  <bruno@clisp.org>
81132
81133         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81134         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81135
81136 2005-08-17  Bruno Haible  <bruno@clisp.org>
81137
81138         * lib/strcasestr.h: New file.
81139         * lib/strcasestr.c: New file.
81140
81141 2005-08-17  Bruno Haible  <bruno@clisp.org>
81142
81143         * lib/strcasecmp.c: Use mbuiter.h.
81144
81145 2005-08-17  Bruno Haible  <bruno@clisp.org>
81146
81147         * lib/mbuiter.h: New file.
81148
81149 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81150
81151         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81152         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81153         and gl_GETOPT are both invoked via different paths (as happens
81154         with GNU tar CVS because it uses both argp and getopt), the former
81155         wins.
81156
81157 2005-08-16  Bruno Haible  <bruno@clisp.org>
81158
81159         * modules/tls: New file.
81160         * MODULES.html.sh (Multithreading): Add tls.
81161
81162 2005-08-16  Bruno Haible  <bruno@clisp.org>
81163
81164         * modules/strnlen1: New file.
81165         * MODULES.html.sh (String handling): Add strnlen1.
81166
81167 2005-08-16  Bruno Haible  <bruno@clisp.org>
81168
81169         * modules/strcase (Files): Add m4/mbrtowc.m4.
81170         (Depends-on): Add strnlen1, mbchar.
81171
81172 2005-08-16  Bruno Haible  <bruno@clisp.org>
81173
81174         * modules/mbiter: New file.
81175         * MODULES.html.sh (Extended multibyte and wide character utilities):
81176         Add mbiter.
81177
81178 2005-08-16  Bruno Haible  <bruno@clisp.org>
81179
81180         * modules/mbfile: New file.
81181         * MODULES.html.sh (Extended multibyte and wide character utilities):
81182         Add mbfile.
81183
81184 2005-08-16  Bruno Haible  <bruno@clisp.org>
81185
81186         * modules/mbchar: New file.
81187         * MODULES.html.sh (Extended multibyte and wide character utilities):
81188         New section.
81189
81190 2005-08-16  Bruno Haible  <bruno@clisp.org>
81191
81192         * m4/tls.m4: New file, from GNU gettext.
81193
81194 2005-08-16  Bruno Haible  <bruno@clisp.org>
81195
81196         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81197         always.
81198         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81199
81200 2005-08-16  Bruno Haible  <bruno@clisp.org>
81201
81202         * m4/mbiter.m4: New file.
81203
81204 2005-08-16  Bruno Haible  <bruno@clisp.org>
81205
81206         * m4/mbfile.m4: New file.
81207
81208 2005-08-16  Bruno Haible  <bruno@clisp.org>
81209
81210         * m4/mbchar.m4: New file.
81211
81212 2005-08-16  Bruno Haible  <bruno@clisp.org>
81213
81214         * lib/tls.h: New file, from GNU gettext.
81215         * lib/tls.c: New file, from GNU gettext.
81216
81217 2005-08-16  Bruno Haible  <bruno@clisp.org>
81218
81219         * lib/strnlen1.h: New file.
81220         * lib/strnlen1.c: New file.
81221
81222 2005-08-16  Bruno Haible  <bruno@clisp.org>
81223
81224         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81225         (mbi_init): Update.
81226         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81227         NUL byte, not after it.
81228
81229 2005-08-16  Bruno Haible  <bruno@clisp.org>
81230
81231         * lib/strcase.h (strcasecmp): Add note in comments.
81232         * lib/strncasecmp.c: Use code from strcasecmp.c.
81233         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81234         (strcasecmp): Work correctly in multibyte locales.
81235
81236 2005-08-16  Bruno Haible  <bruno@clisp.org>
81237
81238         * lib/mbiter.h: New file.
81239
81240 2005-08-16  Bruno Haible  <bruno@clisp.org>
81241
81242         * lib/mbfile.h: New file.
81243
81244 2005-08-16  Bruno Haible  <bruno@clisp.org>
81245
81246         * lib/mbchar.h: New file.
81247         * lib/mbchar.c: New file.
81248
81249 2005-08-16  Bruno Haible  <bruno@clisp.org>
81250
81251         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81252         the valid ones. Makes the comparison operations transitive:
81253         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81254         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81255
81256 2005-08-15  Simon Josefsson  <jas@extundo.com>
81257
81258         * modules/ssize_t (License): Change to 'unlimited'.
81259
81260         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81261
81262 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81263
81264         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81265         Add comments for each pending glibc patch.
81266
81267 2005-08-15  Bruno Haible  <bruno@clisp.org>
81268
81269         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81270         __cplusplus is defined.
81271
81272 2005-08-14  Jim Meyering  <jim@meyering.net>
81273
81274         Sync from coreutils.
81275
81276         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81277         Use the hash-table-based cycle-detection code not just when
81278         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81279         Reported by James Youngman in
81280         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81281         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81282         FTS_TIGHT_CYCLE_CHECK.
81283         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81284         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81285         once again.
81286         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81287         * lib/fts.c (fd_safer): Remove decl.
81288         Include fcntl--.h rather than unistd-safer.h
81289         (fts_safe_changedir): Don't call fd_safer; no longer needed
81290         now that we include fcntl--.h.
81291
81292 2005-08-12  Simon Josefsson  <jas@extundo.com>
81293
81294         * modules/getndelim2: Use ssize_t module.
81295         * modules/getnline: Likewise.
81296         * modules/safe-read: Likewise.
81297         * modules/xreadlink: Likewise.
81298
81299         * modules/ssize_t: New file.
81300
81301 2005-08-12  Simon Josefsson  <jas@extundo.com>
81302
81303         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81304
81305 2005-08-12  Simon Josefsson  <jas@extundo.com>
81306
81307         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81308         ssize_t.
81309
81310 2005-08-12  Simon Josefsson  <jas@extundo.com>
81311
81312         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81313         readline, getdelim and check_version.
81314         (Support for systems lacking ISO C 99: Sizes of integer types):
81315         Add size_max.
81316
81317 2005-08-12  Bruno Haible  <bruno@clisp.org>
81318
81319         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
81320
81321 2005-08-11  Simon Josefsson  <jas@extundo.com>
81322
81323         * modules/readline: New file.
81324
81325         * modules/strnlen (Files): Add strnlen.h.
81326
81327 2005-08-11  Simon Josefsson  <jas@extundo.com>
81328
81329         * m4/readline.m4: New file.
81330
81331 2005-08-11  Simon Josefsson  <jas@extundo.com>
81332
81333         * lib/readline.h, readline.c: New file.
81334
81335 2005-08-11  Simon Josefsson  <jas@extundo.com>
81336
81337         * doc/gnulib.texi (Initial import, Finishing touches): Mention
81338         gl_AVOID.
81339
81340 2005-08-11  Bruno Haible  <bruno@clisp.org>
81341
81342         * lib/strnlen.h (strnlen): Change parameter name to match comment.
81343
81344 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
81345
81346         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
81347
81348 2005-08-10  Simon Josefsson  <jas@extundo.com>
81349
81350         * tests/test-iconvme.c: New file.
81351
81352 2005-08-10  Simon Josefsson  <jas@extundo.com>
81353
81354         * m4/strnlen.m4: New file.
81355
81356         * m4/strndup.m4: Don't check for strnlen declaration, done in
81357         strnlen.m4.
81358
81359 2005-08-10  Simon Josefsson  <jas@extundo.com>
81360
81361         * lib/strndup.c: Use strnlen.h.
81362
81363         * lib/strnlen.h: New file.
81364
81365 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81366
81367         * README: Typos.
81368
81369 2005-08-02  Simon Josefsson  <jas@extundo.com>
81370
81371         * modules/readline: New file.
81372
81373 2005-08-02  Simon Josefsson  <jas@extundo.com>
81374
81375         * modules/getdelim: New file.
81376
81377         * modules/getline: Rewrite, don't use getndelim2.
81378
81379 2005-08-02  Simon Josefsson  <jas@extundo.com>
81380
81381         * m4/getline.m4: Separate out getdelim stuff into separate module.
81382
81383         * m4/getdelim.m4: New file.
81384
81385 2005-08-02  Simon Josefsson  <jas@extundo.com>
81386
81387         * lib/getline.h, getline.c: Rewrite.
81388
81389         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81390
81391 2005-07-31  Bruno Haible  <bruno@clisp.org>
81392
81393         * lib/lock.h (gl_lock_initializer): New macro.
81394         (gl_lock_define_initialized): Use it.
81395         (gl_rwlock_initializer): New macro.
81396         (gl_rwlock_define_initialized): Use it.
81397         (gl_recursive_lock_initializer): New macro.
81398         (gl_recursive_lock_define_initialized): Use it.
81399
81400 2005-07-30  Karl Berry  <karl@gnu.org>
81401
81402         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
81403         Report from Ben Pfaff, regarding getopt.
81404
81405 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
81406
81407         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
81408         normal way.
81409         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
81410         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
81411         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
81412         (gl_GETOPT): Use the new macros.  Most of the implementation
81413         is moved to the new macros.  This is for programs like Emacs
81414         that don't want all the functionality of gl_GETOPT.
81415
81416 2005-07-26  Bruno Haible  <bruno@clisp.org>
81417
81418         * m4/lock.m4: Update from GNU gettext.
81419
81420 2005-07-26  Bruno Haible  <bruno@clisp.org>
81421
81422         * lib/lock.h: Update from GNU gettext.
81423         * lib/lock.c: Update from GNU gettext.
81424
81425 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
81426
81427         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
81428         obsolescent AC_TRY_RUN.  Include the default includes files, for
81429         'exit'.
81430
81431 2005-07-24  Bruno Haible  <bruno@clisp.org>
81432
81433         * modules/visibility: New file.
81434         * MODULES.html.sh (Misc): Add visibility.
81435
81436 2005-07-24  Bruno Haible  <bruno@clisp.org>
81437
81438         * m4/visibility.m4: New file.
81439
81440 2005-07-24  Bruno Haible  <bruno@clisp.org>
81441
81442         * doc/visibility.texi: New file.
81443
81444 2005-07-22  Bruno Haible  <bruno@clisp.org>
81445
81446         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
81447         $(ALLOCA_H), redundant through BUILT_SOURCES.
81448         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
81449         redundant through BUILT_SOURCES.
81450         * modules/byteswap (Makefile.am): Remove explicit dependency on
81451         $(BYTESWAP_H), redundant through BUILT_SOURCES.
81452         * modules/fnmatch (Makefile.am): Remove explicit dependency on
81453         $(FNMATCH_H), redundant through BUILT_SOURCES.
81454         * modules/getopt (Makefile.am): Remove explicit dependency on
81455         $(GETOPT_H), redundant through BUILT_SOURCES.
81456         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
81457         redundant through BUILT_SOURCES.
81458         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
81459         redundant through BUILT_SOURCES.
81460         * modules/stdbool (Makefile.am): Remove explicit dependency on
81461         $(STDBOOL_H), redundant through BUILT_SOURCES.
81462         * modules/stdint (Makefile.am): Remove explicit dependency on
81463         $(STDINT_H), redundant through BUILT_SOURCES.
81464         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
81465         Remove explicit dependency on $(SYSEXITS_H).
81466         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
81467
81468 2005-07-18  Simon Josefsson  <jas@extundo.com>
81469
81470         * lib/check-version.c (check_version): Accept identical versions too.
81471
81472 2005-07-18  Bruno Haible  <bruno@clisp.org>
81473
81474         * modules/lock: New file.
81475         * MODULES.html.sh (Multithreading): New section.
81476
81477 2005-07-18  Bruno Haible  <bruno@clisp.org>
81478
81479         * m4/lock.m4: New file, from GNU gettext.
81480
81481 2005-07-18  Bruno Haible  <bruno@clisp.org>
81482
81483         * lib/lock.h: New file, from GNU gettext.
81484         * lib/lock.c: New file, from GNU gettext.
81485
81486 2005-07-18  Bruno Haible  <bruno@clisp.org>
81487
81488         * lib/lock.h (gl_once_t): New type.
81489         (gl_once_define, gl_once): New macros.
81490         * lib/lock.c (fresh_once): New variable.
81491         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
81492         functions.
81493
81494 2005-07-16  Simon Josefsson  <jas@extundo.com>
81495
81496         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
81497         workaround, suggested by Bruno.
81498
81499 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81500
81501         * modules/xalloc (Depends-on): Add xalloc-die.
81502         * modules/xvasprintf (Depends-on): Add xalloc-die.
81503
81504 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81505
81506         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81507         with a minor change.
81508
81509 2005-07-15  Bruno Haible  <bruno@clisp.org>
81510
81511         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81512         When using lib/poll.c, define poll as rpl_poll.
81513
81514 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81515
81516         * modules/argp (Depends-on): Remove unlocked-io.
81517
81518 2005-07-14  Derek Price  <derek@ximbiot.com>
81519
81520         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81521         for glob symlink bug.
81522
81523 2005-07-14  Bruno Haible  <bruno@clisp.org>
81524
81525         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81526         Instead, test for *_unlocked function declarations directly.
81527
81528 2005-07-11  Simon Josefsson  <jas@extundo.com>
81529
81530         * modules/size_max: New file.
81531
81532         * modules/xsize: Depend on size_max module for size_max.m4.
81533
81534 2005-07-11  Simon Josefsson  <jas@extundo.com>
81535
81536         * lib/size_max.h: New file.
81537
81538 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81539
81540         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81541         copyright symbol and the year.
81542         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81543         (version_etc_va): Use parameterized copyright notice.
81544         Reword to conform to the current GNU coding standards.
81545
81546 2005-07-11  Karl Berry  <karl@gnu.org>
81547
81548         * doc/gnulib.texi (Quoting): new node.
81549         (Initial import): more info, from Patrice.
81550
81551 2005-07-11  Bruno Haible  <bruno@clisp.org>
81552
81553         * gnulib-tool (func_usage): Document option --avoid.
81554         (Command line options): Handle --avoid.
81555         (func_acceptable): New function.
81556         (func_modules_transitive_closure): Use it.
81557
81558 2005-07-11  Bruno Haible  <bruno@clisp.org>
81559
81560         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81561         Reported by Jim Meyering.
81562
81563 2005-07-10  Bruno Haible  <bruno@clisp.org>
81564
81565         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81566         Needed when size_t is smaller than 'unsigned int'.
81567         Reported by Paul Eggert.
81568
81569 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81570
81571         * modules/argp (Depends-on): Add unlocked-io
81572
81573 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81574
81575         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81576         block of defines.
81577
81578 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81579
81580         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81581         fix now.
81582
81583 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81584         and Paul Eggert  <eggert@cs.ucla.edu>
81585
81586         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81587         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81588
81589 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81590
81591         * modules/regex (Files): Add lib/regex_internal.c,
81592         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81593         (Depends-on): Add extensions.
81594         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81595
81596 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81597
81598         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81599         pathconf.
81600         * m4/same.m4 (gl_SAME): Likewise.
81601         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81602
81603         * m4/regex.m4: Adjust to new libc regex implementation.
81604         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81605         all the .c and .h parts of (the new) regex.
81606         Quote the m4 stuff better.
81607         Check for RE_ICASE bug of old gnulib.
81608         Check for REG_STARTEND of recent libc.
81609         Rename local variables from jm_* to gl_*.
81610         Quote operand of "test -f".
81611         Say "recent enough" version of libc, not "version 2".
81612         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81613         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81614         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81615         Remove check for btowc, isascii.
81616         Require AM_LANGINFO_CODESET.
81617
81618 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81619
81620         * lib/regex.c, regex.h: Sync from libc.
81621         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81622         * lib/regexec.c:
81623         New files, synced from libc, except that regex_internal.h
81624         currently has a small porting fix.
81625
81626 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81627
81628         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81629         regex_internal.c, regexec.c.
81630         Add regex_internal.h too, but as a comment, since the libc version
81631         is currently broken in gnulib mode.
81632
81633 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81634
81635         Support programs like Emacs that use gnulib but not gettext.
81636         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81637         * modules/gettext-h: New file.
81638         * modules/gettext (Files): Remove lib/gettext.h.
81639         (Depends-on): Add gettext-h.
81640         (Makefile.am): Remove lib_SOURCES.
81641         * modules/argmatch, modules/c-stack, modules/closeout:
81642         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81643         * modules/execute, modules/file-type, modules/getaddrinfo:
81644         * modules/getopt, modules/human, modules/javacomp:
81645         * modules/javaexec, modules/mkdir-p, modules/obstack:
81646         * modules/openat, modules/pagealign_alloc, modules/pipe:
81647         * modules/quotearg, modules/regex, modules/rpmatch:
81648         * modules/unicodeio, modules/userspec, modules/version-etc:
81649         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81650         * modules/xsetenv:
81651         Depend on gettext-h, not gettext.
81652
81653 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81654
81655         * gnulib-tool (func_import): Add support for 'public domain' license.
81656         * modules/alloca, modules/atexit, modules/memmove:
81657         Now public domain, not GPL.
81658         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
81659         * modules/realloc, modules/strerror, modules/strtod:
81660         Now LGPL, not GPL.
81661
81662 2005-07-05  Bruno Haible  <bruno@clisp.org>
81663
81664         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
81665         autoconf CVS. Needed for mingw.
81666
81667 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81668
81669         Remove the dependency of the strftime module on the tzset module.
81670         * modules/strftime (Depends-on): Remove dependency on tzset.
81671
81672 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81673
81674         Remove the dependency of the strftime module on the tzset module.
81675         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
81676         gl_FUNC_TZSET_CLOBBER.
81677
81678 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81679
81680         Remove the dependency of the strftime module on the tzset module.
81681         * lib/strftime.c (my_strftime)
81682         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
81683         Copy the input structure, to work around some of the bug with
81684         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
81685         Solaris releases, you should also use the tzset module, but we won't
81686         require it as a dependency any more since we don't want LGPLed code
81687         to depend on GPLed code.
81688
81689 2005-07-02  Jim Meyering  <jim@meyering.net>
81690
81691         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
81692         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
81693         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
81694         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
81695
81696 2005-07-02  Jim Meyering  <jim@meyering.net>
81697
81698         * lib/backupfile.c (backup_args): Change a `0' to NULL.
81699
81700 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81701
81702         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
81703         declares only 'struct timespec;' (!).
81704
81705 2005-07-01  Jim Meyering  <jim@meyering.net>
81706
81707         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
81708         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
81709         * lib/save-cwd.c, tempname.c:
81710         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81711         and don't include <sys/file.h>).
81712
81713 2005-06-29  Jim Meyering  <jim@meyering.net>
81714
81715         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
81716         type name.  Use the variable name instead.
81717         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
81718         Likewise.
81719
81720 2005-06-28  Simon Josefsson  <jas@extundo.com>
81721
81722         * modules/check-version (Files): Add check-version.m4.
81723
81724 2005-06-28  Simon Josefsson  <jas@extundo.com>
81725
81726         * m4/check-version.m4: New file, suggested by Jim Meyering
81727         <jim@meyering.net>.
81728
81729 2005-06-28  Simon Josefsson  <jas@extundo.com>
81730
81731         * lib/check-version.h, lib/check-version.c: New files.
81732
81733 2005-06-28  Simon Josefsson  <jas@extundo.com>
81734
81735         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
81736         collision with global variable.  Better indentation.  Don't
81737         increment buffer pointer beyond buffer end.  Based on comments
81738         from Paul Eggert <eggert@cs.ucla.edu>.
81739
81740         * lib/base64.h: Indent.
81741
81742 2005-06-28  Simon Josefsson  <jas@extundo.com>
81743
81744         * doc/gnulib.texi (Library version handling): New section.
81745
81746 2005-06-28  Jim Meyering  <jim@meyering.net>
81747
81748         * check-module (find_included_lib_files): Hard-code another
81749         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
81750         but modules/fts-lgpl (correctly) does not list those files.
81751
81752         * modules/canonicalize (Files): Add lib/pathmax.h.
81753
81754 2005-06-25  Simon Josefsson  <jas@extundo.com>
81755
81756         * modules/check-version: New file.
81757
81758 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
81759
81760         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
81761         initializer of struct addrinfo, as an indication that we don't
81762         care how many members the structure has.
81763
81764 2005-06-24  Derek Price  <derek@ximbiot.com>
81765         and Bruno Haible  <bruno@clisp.org>
81766
81767         Remove stat module & update lstat.
81768         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
81769         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81770         * m4/stat.m4: Remove this file.
81771
81772 2005-06-24  Derek Price  <derek@ximbiot.com>
81773         and Bruno Haible  <bruno@clisp.org>
81774
81775         Remove stat module & update lstat.
81776         * lib/stat.c: Remove this file...
81777         (slash_aware_lstat): ...moving this content and its support...
81778         * lib/lstat.c (rpl_lstat): ...into here.
81779         * lib/lstat.h: New file.
81780
81781 2005-06-24  Derek Price  <derek@ximbiot.com>
81782         and Bruno Haible  <bruno@clisp.org>
81783
81784         Remove stat module & update lstat.
81785         * config/srclist.txt (libc sources): Remove stat.
81786
81787 2005-06-24  Derek Price  <derek@ximbiot.com>
81788         and Bruno Haible  <bruno@clisp.org>
81789
81790         Remove stat module & update lstat.
81791         * MODULES.html.sh (stat): Remove.
81792         * MODULES.html: Regenerated.
81793         * modules/lstat (Description): Correct function name.
81794         (Files): Add "lstat.h".
81795         (Depends-on): Remove stat, add xalloc, stat-macros.
81796         * modules/stat: Remove this file.
81797         (Include): Add "lstat.h", remove <sys/stat.h>.
81798
81799 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81800
81801         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
81802         (ranged_convert): Don't save conversion in a temporary struct.
81803         This causes a warning with GCC 4.0.0, and anyway in the typical
81804         case it's not worth the extra 100 bytes or so of code.
81805         (ranged_convert, __mktime_internal): When calling a function via a
81806         pointer P, use P () rather than (*P) (), as we now assume C89 or
81807         better.
81808
81809 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81810
81811         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
81812         "who -r" failed to give output.  Problem reported by Tim Waugh.
81813
81814         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
81815         (xcalloc): Use it to avoid needless tests.
81816         Problem reported by Jim Meyering.
81817
81818 2005-06-20  Derek Price  <derek@ximbiot.com>
81819
81820         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
81821         unnecessary for Autoconfs > 2.59c.
81822
81823 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81824
81825         * lib/argp.h (__option_is_short): Check upper limit of
81826         __key. Isprint() requires its argument to have the value
81827         of an unsigned char or EOF.
81828
81829 2005-06-16  Jim Meyering  <jim@meyering.net>
81830
81831         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
81832         when either N or S is zero.
81833
81834 2005-06-16  Derek Price  <derek@ximbiot.com>
81835
81836         * m4/bison.m4: Declare YACC & YFLAGS precious.
81837
81838 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
81839
81840         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
81841         multibyte string or pattern, fall back on unibyte matching.
81842         Problem reported by James Youngman.
81843
81844 2005-06-08  Bruno Haible  <bruno@clisp.org>
81845
81846         * modules/csharpcomp: New file.
81847         * MODULES.html.sh (C#): Add csharpcomp.
81848
81849 2005-06-08  Bruno Haible  <bruno@clisp.org>
81850
81851         * m4/csharpcomp.m4: New file, from GNU gettext.
81852
81853 2005-06-08  Bruno Haible  <bruno@clisp.org>
81854
81855         * lib/csharpcomp.h: New file, from GNU gettext.
81856         * lib/csharpcomp.c: New file, from GNU gettext.
81857         * lib/csharpcomp.sh.in: New file, from GNU gettext.
81858
81859 2005-06-08  Bruno Haible  <bruno@clisp.org>
81860
81861         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
81862         warning on mingw.
81863
81864 2005-06-07  Derek Price  <derek@ximbiot.com>
81865
81866         Sync from CVS.
81867         * lib/glob_.h: Indent nested #ifdef.
81868
81869 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81870
81871         Sync from coreutils.
81872         Use "file name" when talking about file names, instead of "filename"
81873         or "path", as per the GNU coding standards.
81874         * lib/mkdir-p.c: Renamed from makepath.c.
81875         (make_dir_parents): Renamed from make_path.  All callers changed.
81876         * lib/mkdir-p.h: Likewise.  All includers changed.
81877         * lib/filenamecat.c: Renamed from path-concat.c.
81878         (file_name_concat): Renamed from path_concat.  All callers changed.
81879         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
81880         * lib/filenamecat.h: Likewise.  All includers changed.
81881         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
81882         in comments or local variable names.
81883         * lib/basename.c: Likewise.
81884         * lib/canonicalize.c, canonicalize.h: Likewise.
81885         * lib/dirname.c, dirname.h: Likewise.
81886         * lib/euidaccess.c: Likewise.
81887         * lib/exclude.c: Likewise
81888         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
81889         * lib/fsusage.c, fsuage.h: Likewise.
81890         * lib/fts.c, fts_.h: Likewise.
81891         * lib/getcwd.c: Likewise.
81892         * lib/getloadavg.c: Likewise.
81893         * lib/mkstemp.c: Likewise.
81894         * lib/mountlist.c, mountlist.h: Likewise.
81895         * lib/openat.c, openat.h: Likewise.
81896         * lib/readlink-stub.c: Likewise.
81897         * lib/readutmp.c, readutmp.h: Likewise.
81898         * lib/rename.c: Likewise.
81899         * lib/rmdir.c: Likewise.
81900         * lib/same.c: Likewise.
81901         * lib/savedir.c: Likewise.
81902         * lib/stripslash.c: Likewise.
81903         * lib/tempname.c: Likewise.
81904         * lib/xreadlink.c: Likewise.
81905         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
81906         All uses changed.
81907         * lib/exclude.h: Likewise.
81908
81909         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
81910         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81911         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
81912         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81913         * lib/pathmax.h: Include <limits.h> unconditionally, since other
81914         files have been getting away with it for years (MORE/BSD 4.3
81915         is extinct now).
81916         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
81917         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81918
81919         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
81920         Define to 256, not 255, as per modern POSIX.
81921
81922 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81923
81924         Sync from coreutils.
81925         Use "file name" when talking about file names, instead of "filename"
81926         or "path", as per the GNU coding standards.
81927         * MODULES.html.sh: mkdir-p renamed from makepath.
81928         filenamecat renamed from path-concat.
81929         * modules/filenamecat: Renamed from modules/path-concat.
81930         (Files): filenamecat.h and filenamecat.c renamed from
81931         path-concat.h and path-concat.c.
81932         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
81933         (Include): filenamecat.h, not path-concat.h.
81934         * modules/mkdir-p: Renamed from modules/makepath.
81935         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
81936         makepath.c.
81937         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
81938         (Include): mkdir-p.h, not makepath.h.
81939
81940 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81941
81942         Sync from coreutils.
81943         * m4/mkdir-p.m4: Renamed from makepath.m4.
81944         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
81945         Rename files from makepath.c to mkdir-p.c, and from
81946         makepath.h to mkdir-p.h.
81947         * m4/filenamecat.m4: Renamed from path-concat.m4.
81948         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
81949         Rename files from path-concat.c to filenamecat.c,
81950         and from path-concat.h to filenamecat.h.
81951         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
81952         "file name" in local variables or comments.
81953         * m4/rename.m4: Likewise.
81954
81955 2005-06-01  Bruno Haible  <bruno@clisp.org>
81956
81957         * modules/csharpexec: New file.
81958         * MODULES.html.sh (C#): New section.
81959
81960 2005-06-01  Bruno Haible  <bruno@clisp.org>
81961
81962         * m4/csharp.m4: New file, from GNU gettext.
81963         * m4/csharpexec.m4: New file, from GNU gettext.
81964
81965 2005-06-01  Bruno Haible  <bruno@clisp.org>
81966
81967         * lib/csharpexec.h: New file, from GNU gettext.
81968         * lib/csharpexec.c: New file, from GNU gettext.
81969         * lib/csharpexec.sh.in: New file, from GNU gettext.
81970
81971 2005-05-31  Derek Price  <derek@ximbiot.com>
81972             Paul Eggert  <eggert@cs.ucla.edu>
81973
81974         Sync from cvs.
81975         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81976
81977 2005-05-31  Derek Price  <derek@ximbiot.com>
81978             Paul Eggert  <eggert@cs.ucla.edu>
81979
81980         Sync from cvs.
81981         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81982
81983 2005-05-29  Derek Price  <derek@ximbiot.com>
81984
81985         * config/srclist.txt (glob_.h, glob.c): Add these files.
81986
81987 2005-05-29  Derek Price  <derek@ximbiot.com>
81988
81989         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
81990         * modules/glob: New file.
81991         * modules/getlogin_r: Add link to POSIX spec in description.
81992
81993 2005-05-29  Derek Price  <derek@ximbiot.com>
81994             Paul Eggert  <eggert@cs.ucla.edu>
81995
81996         * m4/glob.m4: New file.
81997
81998 2005-05-29  Derek Price  <derek@ximbiot.com>
81999             Paul Eggert  <eggert@cs.ucla.edu>
82000
82001         * lib/glob_.h, lib/glob.c: New files.
82002
82003 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82004
82005         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82006         * modules/fts-lgpl (Depends-on): Remove gettext.
82007
82008 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82009
82010         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82011         and don't require gt_INTTYPES_PRI.
82012
82013 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82014
82015         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82016
82017         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82018         the configuration hassle isn't worth it.
82019         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82020         (LONGEST_MODIFIER, PRIuMAX): Remove.
82021
82022 2005-05-27  Bruno Haible  <bruno@clisp.org>
82023
82024         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82025
82026 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82027
82028         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82029         _POSIX_PTHREAD_SEMANTICS for Solaris.
82030
82031 2005-05-25  Derek Price  <derek@ximbiot.com>
82032
82033         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82034
82035 2005-05-25  Derek Price  <derek@ximbiot.com>
82036             Paul Eggert  <eggert@cs.ucla.edu>
82037
82038         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82039         * lib/getlogin_r.c, getlogin_r.h: New files.
82040
82041 2005-05-25  Bruno Haible  <bruno@clisp.org>
82042             Derek Price  <derek@ximbiot.com>
82043
82044         * lib/getlogin_r.h: Simplify API documentation.
82045
82046 2005-05-23  Derek Price  <derek@ximbiot.com>
82047
82048         * modules/minmax (Files): Add m4/minmax.m4.
82049         (configure.ac): Add gl_MINMAX.
82050
82051 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82052
82053         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82054         so that unistd-safer.h (GPL'ed code) need not be included.
82055
82056 2005-05-22  Bruno Haible  <bruno@clisp.org>
82057
82058         * m4/minmax.m4: New file.
82059         Based on a patch by Derek Price <derek@ximbiot.com>.
82060
82061 2005-05-22  Bruno Haible  <bruno@clisp.org>
82062
82063         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82064         (INT64_MIN): Fix definition.
82065         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82066
82067         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82068         NEED_SIGNED_INT_TYPES.
82069
82070         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82071         HAVE_SYSTEM_INTTYPES.
82072
82073 2005-05-22  Bruno Haible  <bruno@clisp.org>
82074
82075         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82076         Also include <sys/param.h> if it defines MIN, MAX.
82077         Based on a patch by Derek Price <derek@ximbiot.com>.
82078
82079 2005-05-21  Jim Meyering  <jim@meyering.net>
82080
82081         * modules/fts (Files): Add m4/inttypes-pri.m4.
82082         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82083
82084 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82085
82086         New fts module.
82087         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82088         (setup_dir, free_dir): New functions.
82089         (enter_dir, leave_dir): Define trivial
82090         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82091         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82092         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82093         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82094         Move to fts-cycle.c.
82095         (fts_open): Use setup_dir.
82096         (fts_close): Use free_dir.
82097         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82098         This adds a label and some gotos, but the alternatives were messier.
82099         Check for memory allocation failure when entering a dir.
82100         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82101         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82102         (FTS): New member fts_cycle, that is a union that contains the
82103         old active_dir_ht and cycle_state.  All uses changed to mention
82104         fts_cycle.ht and fts_cycle.state.
82105         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82106         fts.c, with the following changes:
82107         (setup_dir, free_dir): New functions.
82108         (enter_dir): Now returns bool.  Return true if successful, false
82109         if memory exhausted.  All callers changed.
82110         Do not bother partly cleaning up on
82111         memory allocation failure; that is free_dir's job.
82112         However, free ad if hash_insert fails, to avoid memory leak.
82113         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82114         fts->fts_options to see which union member to use.
82115
82116 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82117
82118         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82119         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82120
82121 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82122
82123         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82124
82125 2005-05-20  Jim Meyering  <jim@meyering.net>
82126
82127         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82128         Now a macro, to pacify GCC.
82129
82130 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82131
82132         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82133         of -1.
82134
82135 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82136
82137         * lib/chown.c (rpl_chown): Return -1 on failure.
82138
82139 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82140
82141         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82142         Don't check for stddef.h.
82143         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82144         don't use its results.
82145         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82146         since we include them unconditionally.  Don't require
82147         AM_STDBOOL_H, since stdbool is a prerequisite.
82148         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82149         since we assume C89 or better.
82150         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82151         as we don't use their results.
82152         Don't check for fchdir, memmove, memset, strrchr, as we use
82153         them unconditionally.
82154         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82155         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82156
82157 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82158
82159         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82160         Include <stddef.h> unconditionally, since we assume C89 now.
82161         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82162         * lib/fts.c: Include fts_.h first, to check interface.
82163         Do not include intprops.h; no longer needed.
82164         Include cycle-check.h and hash.h, since fts_.h no longer does.
82165         Remove unnecessary casts of closedir to void.
82166         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82167         decide whether to decrement nlinks.
82168         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82169         (FTS): Use struct hash_table * instead of Hash_table, so that
82170         we no longer need to include hash.h here.
82171
82172 2005-05-18  Jim Meyering  <jim@meyering.net>
82173
82174         * modules/dirfd (License): Change to LGPL.  Most of the code
82175         is already in the public domain.
82176
82177 2005-05-18  Jim Meyering  <jim@meyering.net>
82178
82179         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82180         Reported by Yoann Vandoorselaere.
82181
82182 2005-05-17  Jim Meyering  <jim@meyering.net>
82183
82184         * m4/fts.m4: New file, from coreutils.
82185
82186 2005-05-17  Jim Meyering  <jim@meyering.net>
82187
82188         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82189
82190 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82191
82192         Sync from coreutils.
82193         * m4/unlinkdir.m4: New file.
82194
82195 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82196
82197         Sync from coreutils.
82198         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82199         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82200         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82201         White space changes only.
82202         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82203         special.
82204         * lib/yesno.c: Include getline.h, not ctype.h.
82205         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82206         Use getline to remove arbitrary restriction on response length.
82207
82208 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82209
82210         * config/srclist-update: Spell out "Street" in FSF postal
82211         mail address; this is the style the FSF seems to prefer.
82212
82213         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82214         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82215         this updates FSF postal mail address.
82216
82217         Sync from coreutils.
82218         * modules/unlinkdir: New file.
82219         * modules/yesno (Depends-on): Add getline.
82220         * MODULES.html.sh (File system functions): Add unlinkdir.
82221
82222 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82223
82224         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82225         lib/strsep.h:
82226         Change the initial comment to refer to GPL, not LGPL.
82227         gnulib-tool will change it to LGPL as needed.
82228
82229         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82230         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82231         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82232         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82233         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82234         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82235         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82236         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82237         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82238         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82239         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82240         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82241         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82242         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82243         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82244         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82245         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82246         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82247         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82248         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82249         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82250         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82251         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82252         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82253         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82254         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82255         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82256         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82257         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82258         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82259         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82260         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82261         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82262         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82263         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82264         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82265         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82266         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82267         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82268         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82269         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82270         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82271         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82272         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82273         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82274         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82275         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82276         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82277         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82278         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82279         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82280         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82281         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82282         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82283         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82284         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82285         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82286         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82287         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82288         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82289         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82290         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82291         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82292         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82293         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82294         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82295         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82296         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82297         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82298         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82299         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82300         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82301         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82302         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82303         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82304         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82305         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82306         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82307         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82308         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82309         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82310         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82311         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82312         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82313         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82314         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82315         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82316         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82317         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82318         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82319         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
82320         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
82321         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
82322         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
82323         lib/yesno.c, lib/yesno.h:
82324         Update FSF postal mail address.
82325
82326 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82327
82328         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
82329         tests/test-memmem.c, tests/test-stpncpy.c:
82330         Update FSF postal mail address.
82331
82332 2005-05-13  Bruno Haible  <bruno@clisp.org>
82333
82334         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
82335         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
82336         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
82337         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
82338         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
82339         Add support for 64-bit integers in the MSVC compiler.
82340
82341 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82342
82343         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
82344
82345 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
82346
82347         * gnulib-tool (func_import): Sort and uniquify recommended includes.
82348
82349 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
82350
82351         * doc/getdate.texi (General date syntax): Don't say that date
82352         date --iso-8601=ns generates acceptable dates; it doesn't yet.
82353         Problem reported by Nic Ferrier.
82354
82355 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82356
82357         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82358         specified in ai_socktype. Fix invalid ai_protocol
82359         check. ai_protocol is usually set to 0 or depending on
82360         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82361         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82362         ai_socktype / ai_protocol in the returned addrinfo structure.
82363
82364 2005-05-10  Simon Josefsson  <jas@extundo.com>
82365
82366         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82367         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82368
82369 2005-05-10  Karl Berry  <karl@gnu.org>
82370
82371         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82372         (from http://www.gnu.org/licenses).
82373         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82374         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82375         fdl.texi suffices.
82376
82377 2005-05-10  Karl Berry  <karl@gnu.org>
82378
82379         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82380         (COPYING.DOC): remove.
82381
82382         * config/srclist-update: new FSF address.
82383
82384 2005-05-10  Derek Price  <derek@ximbiot.com>
82385
82386         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82387         possible.
82388
82389 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82390             Bruno Haible  <bruno@clisp.org>
82391
82392         * modules/inet_ntop: New file.
82393         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82394         inet_ntop.
82395
82396 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82397             Bruno Haible  <bruno@clisp.org>
82398
82399         * m4/inet_ntop.m4: New file.
82400
82401 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82402             Bruno Haible  <bruno@clisp.org>
82403
82404         * lib/inet_ntop.h: New file.
82405         * lib/inet_ntop.c: New file, from glibc with modifications.
82406
82407 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
82408
82409         * modules/time_r (License): Change to LGPL.
82410         * modules/extensions (License): Change to LGPL.  Actually,
82411         the license is more permissive than that, but currently gnulib-tool
82412         doesn't know how to handle more-permissive licenses.
82413
82414         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
82415         Problem reported by Dave Love.
82416
82417 2005-05-08  Jim Meyering  <jim@meyering.net>
82418
82419         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
82420         blank.
82421
82422 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82423
82424         * modules/argmatch (Depends-on): Add stdbool.
82425         * modules/backupfile (Depends-on): Likewise.
82426         * modules/chdir-long (Depends-on): Likewise.
82427         * modules/closeout (Depends-on): Likewise.
82428         * modules/cycle-check (Depends-on): Likewise.
82429         * modules/dirname (Depends-on): Likewise.
82430         * modules/fnmatch (Depends-on): Likewise.
82431         * modules/fsusage (Depends-on): Likewise.
82432         * modules/fwriteerror (Depends-on): Likewise.
82433         * modules/getcwd (Depends-on): Likewise.
82434         * modules/getloadavg (Depends-on): Likewise.
82435         * modules/hard-locale (Depends-on): Likewise.
82436         * modules/makepath (Depends-on): Likewise.
82437         * modules/mountlist (Depends-on): Likewise.
82438         * modules/nanosleep (Depends-on): Likewise.
82439         * modules/posixtm (Depends-on): Likewise.
82440         * modules/quotearg (Depends-on): Likewise.
82441         * modules/readtokens (Depends-on): Likewise.
82442         * modules/readtokens0 (Depends-on): Likewise.
82443         * modules/readutmp (Depends-on): Likewise.
82444         * modules/save-cwd (Depends-on): Likewise.
82445         * modules/strftime (Depends-on): Likewise.
82446         * modules/userspec (Depends-on): Likewise.
82447         * modules/utimecmp (Depends-on): Likewise.
82448         * modules/xgetcwd (Depends-on): Likewise.
82449         * modules/xnanosleep (Depends-on): Likewise.
82450         * modules/xstrtod (Depends-on): Likewise.
82451         * modules/yesno (Depends-on): Likewise.
82452
82453 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
82454
82455         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
82456         needless checks.
82457
82458 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82459
82460         Merge from coreutils.  Among other things,
82461         add bulletproofing for cases where stdin, stdout, or stderr are closed.
82462         * lib/fd-safer.c: New file.
82463         * lib/fcntl-safer.h, open-safer.c: Remove.
82464         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
82465         * lib/dup-safer.c: Include unistd-safer.h first.
82466         Don't include errno.h.
82467         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
82468         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
82469         * lib/file-type.c: Rely on file-type.h change.
82470         * lib/getloadavg.c: Include unistd-safer.h.
82471         (getloadavg): Use safer open.
82472         * lib/getusershell.c: Include "stdio-safer.h".
82473         (getusershell): Use safer fopen.
82474         * lib/long-options.c (long_options): Use NULL rather than 0.
82475         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
82476         'free'.
82477         * lib/modechange.c: Likewise.
82478         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
82479         (MODE_DONE): New constant.
82480         (struct mode_change): Remove 'next' member.
82481         (make_node_op_equals): New function; like the old one of the
82482         same name, except it allocates an array.
82483         (mode_compile, mode_create_from_ref): Use it.
82484         (mode_compile): Allocate result as an array, not a linked list.
82485         Parse octal string ourself, so that we catch mistakes like "+0".
82486         (mode_adjust): Arg is an array, not a linked list.
82487         * lib/modechange.c: Include stat-macros.h, xalloc.h.
82488         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
82489         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
82490         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
82491         Remove.  This is now stat-macros.h's job.
82492         (talloc): Remove.  All callers replaced by xalloc, so that
82493         our invokers don't have to worry about reporting memory failures.
82494         (make_node_op_equals): Remove.
82495         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82496         New constants.
82497         (struct mode_change): Moved here from modechange.h.
82498         (mode_append_entry): Remove.
82499         (mode_compile): Remove MASKED_OPS arg, since it encouraged
82500         apps to have incorrect behavior.  Use simpler algorithm for head
82501         and tail.  Don't futz with umask; that's now the job of mode_adjust.
82502         Detect more invalid usages rather than having somewhat-random behavior.
82503         Don't insert an "a=" action, as that leads to incorrect behavior.
82504         (mode_compile, mode_create_from_ref): Return NULL on error instead
82505         of an enum, since now there's only one way to have an error.  All
82506         callers changed.
82507         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82508         at the correct time.  Simplify calculation of "+u" and its ilk.
82509         Don't mishandle "+X".
82510         (mode_free): Remove "register" and localize decls.
82511         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82512         (struct mode_change): Move to modechange.c; callers don't
82513         need to see this stuff.
82514         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82515         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82516         (mode_change, mode_adjust): Reflect the new signatures noted above.
82517         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82518         that might redefine system include files.
82519         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82520         (my_usleep): Use NULL rather than (void *) 0.
82521         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82522         Use siginterrupt to specify that system calls should be interrupted.
82523         (rpl_nanosleep): Move initialization of suspended closer to call of
82524         my_usleep.
82525         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82526         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82527         (desirable_utmp_entry): New function.
82528         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82529         using x2nrealloc, to simplify logic.
82530         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82531         size calculation.  Do not assume utmp file is a regular file.
82532         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82533         (READ_UTMP_CHECK_PIDS): New constant.
82534         * lib/save-cwd.c: Include unistd-safer.h.
82535         (save_cwd): Use fd_safer.
82536         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82537         [!_LIBC] Include "stat-macros.h" instead.
82538         * lib/unistd-safer.h (fd_safer): New decl.
82539
82540 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82541
82542         * modules/getloadavg (Depends-on): Add unistd-safer.
82543         * modules/getusershell (Depends-on): Add stdio-safer.
82544         * modules/lstat (Depends-on): Remove xalloc.
82545         * modules/mkstemp (Depends-on): Add stat-macros.
82546         * modules/modechange (Depends-on): Remove xstrtol.
82547         Add stat-macros, xalloc.
82548         * modules/save-cwd (Depends-on): Add unistd-safer.
82549         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82550         * modules/unistd-safer (Files): Add lib/fd-safer.c
82551         (Makefile.am): Remove lib_SOURCES.
82552
82553         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82554         Remove fcntl-safer; unistd-safer supersedes it.
82555
82556 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82557
82558         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82559         AC_HEADER_STAT.
82560         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82561         (gl_PREREQ_CHOWN): Remove.
82562         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82563         it.  Don't require AC_HEADER_STAT.
82564         (gl_PREREQ_LSTAT): Remove.
82565         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82566         Don't require AC_HEADER_STAT.
82567         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82568         (gl_PREREQ_RMDIR): Remove.
82569         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82570         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82571         the stat-macros module a prerequisite.
82572         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82573         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82574         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82575         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82576         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82577         variable names.
82578         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82579         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82580         variable prefixes.
82581         * m4/fcntl-safer.m4: Remove.
82582         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82583         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82584         Invoke gl_PREREQ_FD_SAFER.
82585         (gl_PREREQ_FD_SAFER): New macro.
82586         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82587         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82588         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82589         Remove duplicate call to AC_LIBOBJ(readutmp).
82590         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82591
82592         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82593         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82594
82595 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82596
82597         * MODULES.html.sh (Misc): Add byteswap.
82598
82599 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82600
82601         * modules/getcwd (Depends-on): Add extensions.
82602         * modules/openat (Depends-on): Likewise.
82603
82604 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82605
82606         * modules/byteswap: New file.
82607
82608 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82609
82610         * m4/byteswap.m4: New file.
82611
82612 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82613
82614         * lib/byteswap_.h: New file.
82615
82616 2005-04-25  Karl Berry  <karl@gnu.org>
82617
82618         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82619
82620 2005-04-25  Albert Chin  <china@thewrittenword.com>
82621
82622         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82623         Toolkit C bug.
82624
82625 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82626
82627         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82628         (func_ln_if_changed): Remove forcibly for no error message
82629         in case file does not exist.
82630
82631 2005-04-19  Simon Josefsson  <jas@extundo.com>
82632
82633         * gnulib-tool (Options): Make --symlink mean --symbolic.
82634
82635 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82636
82637         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82638
82639 2005-04-16  Simon Josefsson  <jas@extundo.com>
82640
82641         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82642
82643 2005-04-15  Simon Josefsson  <jas@extundo.com>
82644
82645         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82646
82647 2005-04-15  Simon Josefsson  <jas@extundo.com>
82648
82649         * gnulib-tool: Rename --symlink to --symbolic.
82650
82651 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82652
82653         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82654         symbolic links to files instead of copying/moving.  Add --aux-dir,
82655         specifying directory relative --dir where auxiliary build tools
82656         are placed.
82657
82658 2005-04-14  Bruno Haible  <bruno@clisp.org>
82659
82660         * modules/allocsa (License): Change to LGPL.
82661         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82662
82663 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82664
82665         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
82666         that "UTC +1 second" continues to work.  Problem reported
82667         by Dmitry V. Levin.
82668         (relunit_snumber): New rule.
82669         (relunit): Use it.
82670
82671 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82672
82673         * lib/getdate.y (universal_time_zone_table): New constant.
82674         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
82675         universal_time_zone_table.
82676         (lookup_zone): Prefer universal_time_zone_table to
82677         local_time_zone_table, so that "GMT" time stamps are allowed in
82678         London during the summer.  Problem reported by Ian Abbott.
82679
82680 2005-04-12  Jim Meyering  <jim@meyering.net>
82681
82682         * lib/human.c (humblock): Set *options even when returning due to
82683         xstrtoumax conversion failure.  Thanks to a used-uninitialized
82684         warning from gcc-4.
82685
82686 2005-04-09  Jim Meyering  <jim@meyering.net>
82687
82688         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
82689         -Wuninitialized: initialize tm0.tm_year.
82690
82691 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82692
82693         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
82694         count, since there's no maximum.  All uses changed.
82695         Add member dsts_seen.
82696         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
82697         not being INT_MAX.
82698         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
82699         Use pc_rels_seen to decide whther a date is absolute.
82700
82701         * lib/getdate.y (number): Don't overwrite year.
82702         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
82703         check.
82704
82705 2005-04-02  Simon Josefsson  <jas@extundo.com>
82706
82707         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
82708         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
82709
82710 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
82711
82712         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
82713         where no absolute path name can be longer than PATH_MAX.
82714
82715 2005-03-27  Jim Meyering  <jim@meyering.net>
82716
82717         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
82718
82719 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
82720
82721         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
82722         "one's complement" -> "ones' complement" in comment, as per Knuth.
82723         "value of type" -> "type or expression" in comment.
82724         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
82725
82726 2005-03-26  Jim Meyering  <jim@meyering.net>
82727
82728         Comment nits.
82729         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
82730         Correct typos: s/or/of/.
82731
82732 2005-03-26  Jim Meyering  <jim@meyering.net>
82733
82734         * modules/check-include-files: Move to ../ and rename to...
82735         * check-module: ...this.
82736
82737 2005-03-25  Jim Meyering  <jim@meyering.net>
82738
82739         * modules/xvasprintf (Files): Add xalloc.h.
82740
82741 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
82742
82743         * modules/gettext (Files): config/config.rpath ->
82744         build-aux/config.rpath
82745         * modules/iconv (Files): Likewise.
82746         Problem reported by Oskar Liljeblad.
82747
82748 2005-03-23  Jim Meyering  <jim@meyering.net>
82749
82750         * modules/check-include-files: New script to check for
82751         missing dependencies, multiple includes, etc.
82752
82753         * modules/c-strtold (Depends-on): Add xalloc.
82754         * modules/c-strtod (Depends-on): Add xalloc.
82755         * modules/hash (Depends-on): Add xalloc.
82756         (Files): Remove lib/xalloc.h.
82757
82758         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
82759         * modules/userspec (Files): Add lib/inttostr.h.
82760
82761 2005-03-23  Jim Meyering  <jim@meyering.net>
82762
82763         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
82764
82765 2005-03-22  Jim Meyering  <jim@meyering.net>
82766
82767         * modules/stat-macros: New module.
82768         * modules/canonicalize, modules/euidaccess, modules/file-type,
82769         * modules/filemode, modules/lchown, modules/makepath,
82770         * modules/rmdir, modules/stat: Depend on new stat-macros module
82771         rather than listing lib/stat-macros.h manually.
82772         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
82773
82774 2005-03-22  Jim Meyering  <jim@meyering.net>
82775
82776         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
82777
82778 2005-03-22  Bruno Haible  <bruno@clisp.org>
82779
82780         * config/srclist.txt: Replace target directory 'config' with
82781         'build-aux'.
82782         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
82783         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
82784         ../build-aux/.
82785
82786 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
82787
82788         * modules/chdir-long (Depends-on): Add mempcpy.
82789
82790         * modules/acl, modules/backupfile, modules/c-strtod,
82791         modules/c-strtold, modules/canon-host, modules/canonicalize,
82792         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
82793         modules/exclude, modules/exitfail, modules/file-type,
82794         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
82795         modules/getdate, modules/getline, modules/getpagesize,
82796         modules/getpass, modules/getugroups, modules/group-member,
82797         modules/hard-locale, modules/hash, modules/human, modules/idcache,
82798         modules/inttostr, modules/long-options, modules/makepath,
82799         modules/md5, modules/memcasecmp, modules/memcoll,
82800         modules/modechange, modules/mountlist, modules/path-concat,
82801         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
82802         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
82803         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
82804         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
82805         modules/strftime, modules/strndup, modules/strverscmp,
82806         modules/timespec, modules/unlocked-io, modules/userspec,
82807         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
82808         modules/yesno:
82809         Remove lib_SOURCES line from Makefile.am section, as this is now
82810         done automatically by the corresponding Autoconf macro.
82811
82812 2005-03-21  Jim Meyering  <jim@meyering.net>
82813
82814         Changes imported from coreutils.
82815
82816         * lib/cycle-check.c: Don't include xalloc.h.
82817
82818         * lib/path-concat.c: Don't include assert.h.
82819         (path_concat): Remove assertion that would have triggered
82820         for ABASE starting with more than one slash.
82821         Reported by Andreas Schwab.
82822
82823         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
82824         properly when ABASE is an absolute file name.
82825         Correct the description of this function.
82826         Include <assert.h>.
82827         Add an assertion and a test driver.
82828         This fixes a bug introduced on 2004-07-02.
82829         Andreas Schwab reported the resulting failure of cp --parents:
82830         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
82831
82832 2005-03-21  Jim Meyering  <jim@meyering.net>
82833
82834         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
82835         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
82836
82837 2005-03-21  Jim Meyering  <jim@meyering.net>
82838         and  Paul Eggert  <eggert@cs.ucla.edu>
82839
82840         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
82841         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
82842         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
82843         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
82844         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
82845         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
82846         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
82847         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
82848         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
82849         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
82850         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
82851         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
82852         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
82853         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
82854         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
82855         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
82856         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
82857         for these modules.
82858
82859 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
82860
82861         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
82862         (which shouldn't happen), generate nothing instead of returning 0
82863         immediately, so that nstrftime (NULL, ...) doesn't return 0.
82864
82865 2005-03-16  Bruno Haible  <bruno@clisp.org>
82866
82867         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
82868         HAVE_LONGLONG_64BIT.
82869
82870 2005-03-16  Bruno Haible  <bruno@clisp.org>
82871
82872         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
82873         HAVE_LONGLONG_64BIT.
82874
82875 2005-03-16  Bruno Haible  <bruno@clisp.org>
82876
82877         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
82878         HAVE_LONGLONG_64BIT.
82879
82880 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82881
82882         * lib/strftime.c (my_strftime): Prepend space to format so that we can
82883         reliably distinguish strftime failure from empty output on POSIX
82884         hosts.
82885
82886 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82887
82888         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
82889         (iconv_string): Don't guess a size-zero buffer, as that might cause
82890         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
82891         result would be 'too large', where 'too large' is (heuristically)
82892         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
82893         overflow concerns.  This will prevent some unwanted malloc failures
82894         when the inputs are very large.
82895
82896 2005-03-15  Karl Berry  <karl@gnu.org>
82897
82898         * config/srclist.txt (config.rpath): from gettext.
82899         * config/config.rpath: update.
82900
82901 2005-03-15  Bruno Haible  <bruno@clisp.org>
82902
82903         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
82904         to 'negate'.
82905
82906         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
82907         variable.
82908
82909         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
82910         results.
82911
82912 2005-03-14  Simon Josefsson  <jas@extundo.com>
82913
82914         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
82915         <fx@gnu.org>.
82916
82917 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
82918
82919         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
82920         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
82921         intprops.h.
82922         * lib/strtol.c: Likewise.
82923
82924 2005-03-14  Jim Meyering  <jim@meyering.net>
82925
82926         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
82927         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
82928         to be nonzero so that we (and caller) can detect the difference
82929         between a valid zero-length expansion and an error return, even
82930         when the underlying strftime fails before writing anything into
82931         that location.
82932
82933 2005-03-14  Bruno Haible  <bruno@clisp.org>
82934
82935         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
82936         Update from GNU gettext 0.14.3.
82937
82938 2005-03-10  Jim Meyering  <jim@meyering.net>
82939
82940         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
82941
82942 2005-03-10  Jim Meyering  <jim@meyering.net>
82943
82944         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
82945         so that this module works on systems without fchdir.
82946
82947 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
82948
82949         Factor int-properties macros into a single file, except for
82950         glibc-related files.
82951         * lib/intprops.h: New file.
82952         * lib/getloadavg.c: Include it instead of limits.h.
82953         (INT_STRLEN_BOUND): Remove.
82954         * lib/human.c: Include intprops.h.
82955         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
82956         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
82957         302/1000.
82958         * lib/inttostr.h: Include intprops.h instead of limits.h.
82959         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
82960         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
82961         for consistency with intprops.h.
82962         (time_t_is_integer, twos_complement_arithmetic): Use them.
82963         * lib/sig2str.h: Include <signal.h>, intprops.h.
82964         (INT_STRLEN_BOUND): Remove.
82965         * lib/strftime.c (TYPE_SIGNED): Remove.
82966         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
82967         * lib/strtol.c: Adjust comments to match intprops.h.
82968         * lib/userspec.c: Include intprops.h.
82969         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
82970         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
82971         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
82972         instead of rolling our own expressions.
82973         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
82974
82975         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
82976         instead of int.
82977         (my_strftime): Do not mishandle years close to INT_MAX, by doing
82978         the right thing even if adding 1900 would overflow.  Similarly
82979         for tm_mon + 1 and tm_yday + 1.
82980         Make %Y always equivalent to %C%y, and similarly for %G and %g.
82981         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
82982         (DO_SIGNED_NUMBER): New macro.
82983         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
82984
82985 2005-03-07  Bruno Haible  <bruno@clisp.org>
82986
82987         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
82988
82989 2005-03-07  Bruno Haible  <bruno@clisp.org>
82990
82991         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
82992
82993 2005-03-04  Derek R. Price  <derek@ximbiot.com>
82994
82995         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
82996         (func_import): Only replace files via --import when they have actually
82997         changed.
82998
82999 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83000
83001         * m4/mmap-anon.m4: New file.
83002         * m4/pagealign_alloc.m4: New file.
83003
83004 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83005             Bruno Haible  <bruno@clisp.org>
83006
83007         * modules/pagealign_alloc: New file.
83008         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83009
83010 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83011             Bruno Haible  <bruno@clisp.org>
83012
83013         * lib/pagealign_alloc.h: New file.
83014         * lib/pagealign_alloc.c: New file.
83015
83016 2005-03-03  Bruno Haible  <bruno@clisp.org>
83017
83018         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83019         Use an all-permissive copyright notice, recommended by RMS.
83020
83021 2005-03-02  Bruno Haible  <bruno@clisp.org>
83022
83023         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83024         of AIX, the replacement has to be done only after <string.h> is
83025         included, therefore not in config.h. stpncpy.h does the replacement,
83026         and stpncpy.c uses it.
83027
83028 2005-03-02  Bruno Haible  <bruno@clisp.org>
83029
83030         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83031         stpncpy.c uses it.
83032
83033 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83034
83035         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83036         The workaround isn't strictly needed for POSIX conformance, and
83037         it's too much of a pain to configure and maintain.  We'll ask
83038         people to fix their kernels instead.
83039         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83040         (NANOSLEEP_BUG_WORKAROUND): Remove.
83041         (xnanosleep): Remove the workaround.
83042
83043 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83044
83045         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83046         Reported by Derek Price.
83047         (Include): Add "timespec.h".
83048
83049         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83050
83051 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83052
83053         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83054         to detect nanosleep bug.
83055
83056 2005-03-01  Bruno Haible  <bruno@clisp.org>
83057
83058         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83059
83060 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83061
83062         * modules/gethrxtime: New file.
83063         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83064         (Depends-on): Add gethrxtime.
83065         (configure.ac): Add gl_XNANOSLEEP.
83066         (Makefile.am): Remove lib_SOURCES line.
83067
83068 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83069
83070         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83071         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83072
83073 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83074
83075         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83076         * lib/timespec.h (gettime): Return void, since it always
83077         succeeds now.  All uses changed.
83078         * lib/gettime.c (gettime): Likewise.
83079         [HAVE_NANOTIME]: Prefer nanotime.
83080         Assume gettimeofday succeeds, as POSIX requires.
83081         Assime time () succeeds, since other code already does.
83082         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83083         (timespec_subtract): Remove.
83084         (NANOSLEEP_BUG_WORKAROUND): New constant.
83085         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83086         things considerably.  Use it only on GNU/Linux hosts, since the
83087         workaround shouldn't be needed elsewhere.
83088
83089 2005-02-24  Bruno Haible  <bruno@clisp.org>
83090
83091         * modules/gettext (Files): Add m4/glibc2.m4.
83092
83093 2005-02-24  Bruno Haible  <bruno@clisp.org>
83094
83095         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83096         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83097         * m4/progtest.m4:
83098         Update from GNU gettext 0.14.2.
83099         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83100
83101 2005-02-24  Bruno Haible  <bruno@clisp.org>
83102
83103         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83104         * lib/config.charset: Update from GNU gettext 0.14.2.
83105
83106 2005-02-24  Bruno Haible  <bruno@clisp.org>
83107
83108         * lib/gettext.h: Update from GNU gettext 0.14.2.
83109
83110 2005-02-23  Simon Josefsson  <jas@extundo.com>
83111
83112         * m4/iconvme.m4: New file.
83113
83114 2005-02-23  Jim Meyering  <jim@meyering.net>
83115
83116         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83117         change.
83118         Thanks to Bruno Haible for catching it.
83119
83120 2005-02-22  Simon Josefsson  <jas@extundo.com>
83121
83122         * modules/iconvme: New file.
83123
83124         * MODULES.html.sh: Add iconvme.
83125
83126 2005-02-22  Simon Josefsson  <jas@extundo.com>
83127
83128         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83129
83130 2005-02-22  Simon Josefsson  <jas@extundo.com>
83131
83132         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83133
83134 2005-02-22  Jim Meyering  <jim@meyering.net>
83135
83136         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83137         s/ifndef/ifdef/.
83138
83139 2005-02-20  Neil Conway  <neilc@samurai.com>
83140
83141         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83142         returned by OSX/Darwin if the specified buffer is not large
83143         enough for the hostname.
83144
83145 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83146
83147         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83148         pass it to _help, otherwise the latter coredumps trying to
83149         dereference state.root_argp.
83150
83151 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83152
83153         * modules/chdir-long (Depends-on): Add memrchr.
83154         * modules/memrchr (Files): Add lib/memrchr.h.
83155         (Include): "memrchr.h".
83156
83157 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83158
83159         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83160
83161 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83162
83163         * lib/memrchr.h: New file.
83164         * lib/chdir-long.c: Include it.
83165         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83166         Don't bother including stddef.h.
83167
83168 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83169
83170         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83171         inclusion.
83172         Include <sys/types.h>, for dev_t.
83173         (ME_DUMMY, ME_REMOTE): Move from here....
83174         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83175         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83176         Dmitry V. Levin.
83177         Include mountlist.h first, to test the interface.
83178
83179 2005-01-29  Bruno Haible  <bruno@clisp.org>
83180
83181         * lib/progname.c (program_name): Initialize.
83182         Needed when linking statically on MacOS X.
83183
83184 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83185
83186         Sync from coreutils.
83187         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83188         (Depends-on): Add c-strtod.
83189         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83190
83191 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83192
83193         Sync from coreutils.
83194         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83195
83196         Remove files that are specific to coreutils.
83197         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83198
83199 2005-01-28  Bruno Haible  <bruno@clisp.org>
83200
83201         * modules/javacomp: New file.
83202         * MODULES.html.sh (Java): Add javacomp.
83203
83204 2005-01-28  Bruno Haible  <bruno@clisp.org>
83205
83206         * m4/javacomp.m4: New file, from GNU gettext.
83207
83208 2005-01-28  Bruno Haible  <bruno@clisp.org>
83209
83210         * lib/javacomp.sh.in: New file, from GNU gettext.
83211         * lib/javacomp.h: New file, from GNU gettext.
83212         * lib/javacomp.c: New file, from GNU gettext.
83213
83214 2005-01-26  Simon Josefsson  <jas@extundo.com>
83215
83216         * lib/gai_strerror.c: Use GPL in header.
83217
83218 2005-01-26  Bruno Haible  <bruno@clisp.org>
83219
83220         * modules/javaexec: New file.
83221         * MODULES.html.sh (Java): Add javaexec.
83222
83223 2005-01-26  Bruno Haible  <bruno@clisp.org>
83224
83225         * m4/javaexec.m4: New file, from GNU gettext.
83226
83227 2005-01-26  Bruno Haible  <bruno@clisp.org>
83228
83229         * lib/javaexec.sh.in: New file, from GNU gettext.
83230         * lib/javaexec.h: New file, from GNU gettext.
83231         * lib/javaexec.c: New file, from GNU gettext.
83232
83233 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83234
83235         * modules/lchown (Depends-on): Remove lchown.h
83236
83237 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83238
83239         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83240         must be defined if the header file was not found, in order
83241         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83242
83243 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83244
83245         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83246         initializers for struct pentry_state.
83247         (__argp_error): Check return value of __asprintf
83248         (__argp_failure): Translate error message
83249
83250         * lib/argp-parse.c: Removed braces around the expansion of N_()
83251
83252 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83253
83254         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83255         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83256         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83257         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83258         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83259         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83260         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83261         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83262         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83263         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83264         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83265         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83266         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83267         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83268         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83269         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83270         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83271         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83272         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83273         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83274         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83275         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83276         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83277         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83278         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83279         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83280         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83281         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83282         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83283         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83284         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83285         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83286         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83287         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83288         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83289         Use an all-permissive copyright notice, recommended by RMS.
83290
83291 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83292
83293         * modules/chdir-long (Depends-on): Remove mempcpy.
83294
83295 2005-01-21  Jim Meyering  <jim@meyering.net>
83296
83297         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83298         same value as for Solaris 9.
83299
83300         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83301         component length.  This included changing the parameter to be
83302         of type `char *' rather than `char const *'.
83303         * lib/chdir-long.h (chdir_long): Update prototype.
83304
83305         * lib/openat.c (fdopendir, fstatat): New functions.
83306         * lib/openat.h: Include headers required for use of DIR and struct
83307         stat.
83308         [AT_SYMLINK_NOFOLLOW]: Define.
83309         (fdopendir, fstatat): Add prototypes.
83310
83311 2005-01-21  Bruno Haible  <bruno@clisp.org>
83312
83313         * modules/classpath: New file.
83314         * MODULES.html.sh (Java): Add classpath.
83315
83316 2005-01-21  Bruno Haible  <bruno@clisp.org>
83317
83318         * lib/classpath.h: New file, from GNU gettext.
83319         * lib/classpath.c: New file, from GNU gettext.
83320
83321 2005-01-20  Simon Josefsson  <jas@extundo.com>
83322
83323         * modules/version-etc-fsf: New file.
83324
83325 2005-01-20  Simon Josefsson  <jas@extundo.com>
83326
83327         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
83328         * lib/version-etc.c: Remove version_etc_copyright.
83329         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
83330         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
83331
83332 2005-01-20  Simon Josefsson  <jas@extundo.com>
83333
83334         * lib/base64.h (isbase64): Add.
83335
83336         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
83337         using a unsigned prototype, don't inline.
83338         (base64_decode): Use it.
83339
83340 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83341
83342         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
83343         it.
83344
83345 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83346
83347         * lib/save-cwd.c (save_cwd): Remove code to support the case
83348         where fchdir is missing or flaky.
83349
83350 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83351
83352         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
83353
83354 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
83355
83356         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
83357         AC_LIBSOURCES now does this.
83358         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83359         with new ullong_max module.
83360
83361 2005-01-19  Bruno Haible  <bruno@clisp.org>
83362
83363         * modules/sh-quote: New file.
83364         * MODULES.html.sh (Executing programs): Add sh-quote.
83365
83366 2005-01-19  Bruno Haible  <bruno@clisp.org>
83367
83368         * lib/sh-quote.h: New file, from GNU gettext.
83369         * lib/sh-quote.c: New file, from GNU gettext.
83370
83371 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83372
83373         Merge from coreutils.
83374         * m4/ullong_max.m4: New file.
83375         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83376         (gl_MACROS): Assume localeconv exists.
83377
83378 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83379
83380         Merge changes from coreutils, as described below in several
83381         changelogs dated today.
83382
83383         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83384         (O_DIRECTORY): Remove; not needed here, since "." must be
83385         a directory.  All uses removed.
83386         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83387         universal on Suns, and we also need to test for IRIX.
83388         Revamp code to use 'if' rather than '#if'.
83389         Avoid unnecessary comparison of cwd->desc to 0.
83390
83391         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83392         for known valid error numbers rather than observed invalid ones.
83393
83394 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83395
83396         * modules/ullong_max: New file.
83397
83398         * modules/chdir-long, modules/openat: New files.
83399         * modules/save-cwd (Depends-on): Depend on chdir-long.
83400         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
83401
83402 2005-01-18  Jim Meyering  <jim@meyering.net>
83403
83404         Merge from coreutils.
83405         * m4/chdir-long.m4, m4/openat.m4: New files.
83406         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
83407         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
83408         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
83409         is sane and DOES follow symlinks.  Besides, testing 20 different
83410         systems found no broken chown implementations.
83411         Prompted by a change in rsync's copy of this macro.
83412         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
83413
83414         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
83415
83416         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
83417         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
83418         NULL-means-set-to-current-time semantics.
83419         Remove temporary file immediately, rather than waiting
83420         for configure's at-exit trap code to do it.
83421
83422 2005-01-18  Jim Meyering  <jim@meyering.net>
83423
83424         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83425
83426         * lib/utimens.c (futimens): Account for the fact that futimes
83427         can also fail with errno == ENOSYS or errno == ENOENT.
83428         Patch from Dmitry V. Levin.
83429
83430         Change the name of the robust chdir function from chdir to chdir_long.
83431         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
83432         (restore_cwd): Use chdir_long, not chdir.
83433         * lib/chdir-long.c: Renamed from chdir.c.
83434         * lib/chdir-long.h: Renamed from chdir.h.
83435         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
83436         Hurd.
83437
83438 2005-01-18  Bruno Haible  <bruno@clisp.org>
83439
83440         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
83441         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
83442         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
83443         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
83444         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
83445         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
83446         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
83447         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
83448         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
83449         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
83450         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
83451         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
83452         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
83453         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
83454         Use an all-permissive copyright notice, recommended by RMS.
83455
83456 2005-01-18  Bob Proulx  <bob@proulx.com>
83457
83458         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
83459         simplify offsetof() macro construct to avoid compile failure with
83460         native HP-UX 11.0 ANSI C compiler.
83461
83462 2005-01-17  Bruno Haible  <bruno@clisp.org>
83463
83464         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
83465         redundant because stpncpy.m4 takes care of it.
83466
83467 2005-01-17  Bruno Haible  <bruno@clisp.org>
83468
83469         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
83470
83471 2005-01-17  Bruno Haible  <bruno@clisp.org>
83472
83473         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
83474         used.
83475
83476 2005-01-17  Bruno Haible  <bruno@clisp.org>
83477
83478         * lib/fwriteerror.h (fwriteerror): Change specification to include
83479         fclose.
83480         * lib/fwriteerror.c: Include <stdbool.h>.
83481         (fwriteerror): At the end, close the file stream. Record whether
83482         stdout was already closed.
83483
83484 2005-01-17  Bruno Haible  <bruno@clisp.org>
83485
83486         * lib/execute.c (environ): Declare if needed.
83487         * lib/pipe.c (environ): Likewise.
83488         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
83489
83490 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83491
83492         * modules/argp: Depend on vsnprintf
83493
83494 2005-01-10  Jim Meyering  <jim@meyering.net>
83495
83496         * modules/closeout (Depends-on): Add atexit.
83497
83498 2005-01-06  Bruno Haible  <bruno@clisp.org>
83499
83500         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
83501
83502 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83503
83504         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83505         definitions to be after all include files, to avoid collisions.
83506         Problem reported by Bob Proulx.
83507
83508 2005-01-04  Jim Meyering  <jim@meyering.net>
83509
83510         Changes imported from coreutils.
83511         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83512         as the mkstemp template, use a temporary directory and an
83513         8.3-friendly template to avoid trouble on systems like DJGPP.
83514         Reported by Juan M. Guerrero via Stepan Kasal.
83515         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83516         close. Remove the temporary directory right away, rather than waiting
83517         for configure's at-exit trap code to do it.
83518         Suggestion from Stepan Kasal.
83519
83520 2005-01-01  Simon Josefsson  <jas@extundo.com>
83521
83522         * gnulib-tool: Print #include directives when --import'ing.
83523
83524 2004-12-28  Simon Josefsson  <jas@extundo.com>
83525
83526         * tests/test-base64.c: Include required header files.  Remove
83527         unused variables.
83528
83529 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83530
83531         * modules/error (Depends-on): Remove gettext.
83532
83533 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83534
83535         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83536         not needed.  This removes a dependency on the gettext module.
83537         [defined _LIBC]: Do not include <libintl.h>; not needed.
83538
83539 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83540
83541         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83542         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83543
83544 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83545
83546         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83547         HAVE_DECL_STRTOLD.
83548
83549 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83550
83551         * modules/getdate (Depends-on): Remove alloca-opt.
83552
83553 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83554
83555         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83556
83557 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83558
83559         * lib/argp-parse.c: Include <stddef.h>.
83560         (alignof, alignto): New macros.
83561         (parser_init): Don't assume that void * is aligned sufficiently
83562         for struct option.
83563
83564         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83565         need to extend the stack.
83566         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83567         large.
83568
83569 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83570
83571         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83572
83573 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83574
83575         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83576         (2004-10-24) change.  Apparently this was a false alarm.
83577
83578         * modules/getdate: Depend on alloca-opt, not alloca.
83579
83580 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83581
83582         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83583         Remove now-obsolete comment about AIX.
83584         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83585         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83586         (YYMAXDEPTH): New macro.
83587
83588 2004-12-18  Simon Josefsson  <jas@extundo.com>
83589
83590         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83591
83592 2004-12-18  Bruno Haible  <bruno@clisp.org>
83593
83594         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83595
83596 2004-12-18  Bruno Haible  <bruno@clisp.org>
83597
83598         * lib/fatal-signal.c (fatal_signals): Make non-const.
83599         (init_fatal_signals): New function.
83600         (uninstall_handlers, install_handlers): Ignore signals that were set to
83601         SIG_IGN.
83602         (at_fatal_signal): Call init_fatal_signals.
83603         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83604         SIG_IGN.
83605         Reported by Paul Eggert.
83606
83607 2004-12-18  Bruno Haible  <bruno@clisp.org>
83608
83609         * doc/alloca.texi: New file.
83610         * doc/alloca-opt.texi: New file.
83611
83612 2004-12-17  Jim Meyering  <jim@meyering.net>
83613
83614         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83615         Otherwise, install-sh could exit with improper exit status when
83616         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83617
83618 2004-12-16  Simon Josefsson  <jas@extundo.com>
83619
83620         * tests/test-base64.c: Add license.
83621
83622 2004-12-15  Stepan Kasal  <address@hidden>
83623
83624         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83625
83626 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83627
83628         * modules/getcwd (Files): Add m4/d-ino.m4.
83629         Suggested by Mark D. Baushke.
83630
83631 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83632
83633         * lib/getdate.y (textint): New member "negative".
83634         (time_zone_hhmm): New function.
83635         Expect 14 shift-reduce conflicts, not 13.
83636         (o_colon_minutes): New rule.
83637         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83638         (yylex): Set the "negative" member of signed numbers.
83639
83640 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83641
83642         * doc/getdate.texi (Time of day items, Time zone items):
83643         Describe new formats +00:00, UTC+00:00.
83644
83645 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83646
83647         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83648         spurious "-l"s.  Problem reported by Stepan Kasal.
83649
83650 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83651
83652         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83653         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83654
83655 2004-12-04  Simon Josefsson  <jas@extundo.com>
83656
83657         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
83658         Vandoorselaere <yoann@prelude-ids.org>.
83659
83660 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83661
83662         Changes imported from coreutils.
83663         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
83664         exist.
83665         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
83666
83667 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83668
83669         Changes imported from coreutils.
83670         * lib/hard-locale.c: Assume <locale.h> exists.
83671         Include "strdup.h".
83672         (GLIBC_VERSION): New macro.
83673         (hard_locale): Assume setlocale exists.
83674         Rewrite to avoid #ifdef.
83675         Use strdup rather than malloc + strcpy.
83676         * lib/human.c: Assume <locale.h> exists.
83677         (human_readable): Assume localeconv exists.
83678
83679 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83680
83681         * modules/hard-locale (Depends-on): Add strdup.
83682
83683 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
83684
83685         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
83686         convert T2, not T.  (Imported from libc.)
83687
83688 2004-11-30  Simon Josefsson  <jas@extundo.com>
83689
83690         * modules/restrict (License): Change to LGPL.
83691
83692 2004-11-30  Simon Josefsson  <jas@extundo.com>
83693
83694         * m4/restrict.m4: Add copyright and copying conditions.
83695
83696 2004-11-30  Simon Josefsson  <jas@extundo.com>
83697
83698         * m4/base64.m4: New file.
83699
83700 2004-11-30  Simon Josefsson  <jas@extundo.com>
83701
83702         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
83703         base64.
83704
83705         * tests/test-base64.c: New file.
83706
83707         * modules/base64: New file.
83708
83709 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83710
83711         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
83712         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
83713
83714         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
83715
83716 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83717
83718         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
83719         (__getcwd.c): Don't restore errno; glibc doesn't.
83720         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
83721         first, falling back to our code only if its results look suspicious.
83722         Ensure that the resulting buffer is only as large as necessary.
83723
83724         * lib/readutmp.c: Include readutmp.h first.
83725         Include <errno.h>, since readutmp.h no longer does that.
83726         * lib/readutmp.h: Don't include <errno.h>,
83727         <sys/param.h>, <time.h>; not needed to establish interface.
83728         (errno): Remove decl.
83729         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
83730         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
83731         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
83732
83733 2004-11-28  Simon Josefsson  <jas@extundo.com>
83734
83735         * lib/base64.h, base64.c: New file.
83736
83737 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
83738
83739         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
83740
83741 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
83742
83743         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
83744         (Depends-on): Remove pathmax, same.  Add mempcpy.
83745         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
83746         (Makefile.am): Append getcwd.h to lib_SOURCES.
83747         (Include): Add getcwd.h.
83748         (Maintainer): Change from Jim Meyering to "all, glibc",
83749         since getdate now uses intended-for-glibc code.
83750         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
83751         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
83752
83753 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83754
83755         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
83756         HP's ANSI C compiler.
83757         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
83758         Declaring int functions causes warnings on some modern systems and
83759         shouldn't be needed to compile on ancient ones.
83760         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
83761         defined.
83762
83763         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
83764         with the following changes.
83765         (__set_errno): Parenthesize properly.
83766         Include <stdbool.h>.
83767         (MIN, MAX, MATCHING_INO): New macros.
83768         (__getcwd): Define with prototype, not K&R form.
83769         Use heuristics to allocate default buffer on stack if possible.
83770         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
83771         behavior, and to avoid the PATH_MAX limit when computing
83772         ../../../../...
83773         Use MATCHING_INO to compare inode number to file.
83774         Check for arithmetic overflow in size calculations.
83775         Fix bug in reallocation of dot array that caused getcwd to fail
83776         on directories nested deeper than 75.
83777         Be more careful about saving errno on error.
83778         Do not use realloc; use only free+malloc, as this is a bit
83779         more flexible and avoids a needless copy operation.
83780         Do not inspect st_dev and st_ino for symbolic links; POSIX
83781         doesn't specify the latter.
83782         Check for closedir errors.
83783         Avoid needless casts.
83784         Use "#ifdef weak_alias" around weak_alias, to be like other
83785         glibc code.
83786         The following changes to getcwd.c have effect only when used in
83787         gnulib; they have no effect inside glibc proper.
83788         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
83789         as alloca isn't used.
83790         (alloca, __alloca): Likewise.
83791         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
83792         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83793         unconditionally, as gnulib assumes C89 or better.
83794         Do not include <sys/param.h>.
83795         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
83796         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
83797         better.
83798         (NULL) [!defined NULL]: Remove; we assume C89 or better.
83799         Include <dirent.h> in a way that is compatible with modern Autoconf.
83800         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
83801         New macros, if not already defined.
83802         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
83803         Use "_LIBC", not "defined _LIBC", for consistency.
83804         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
83805         a mempcpy module.
83806         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
83807         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
83808         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
83809         credit only to Jim Meyering and adjust the copyright dates.
83810         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
83811         <stdlib.h>, <unistd.h>, "pathmax.h".
83812         Instead, include "xgetcwd.h" (first) and "getcwd.h".
83813         (INITIAL_BUFFER_SIZE): Remove.
83814         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
83815
83816 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83817
83818         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
83819         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
83820         Use the _ONCE methods, for efficiency.
83821         Check for fcntl.h.  In test program, include <errno.h>
83822         and <fcntl.h> if available.  Remove old K&R cruft from
83823         test program.  Check for common errors in GNU/Linux,
83824         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
83825         don't do AC_LIBOBJ, as that's getcwd.m4's job.
83826         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
83827         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
83828         name accordingly.
83829         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
83830         accommodate new getcwd.c.
83831         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
83832         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
83833         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
83834         that's all we need now.
83835
83836 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83837
83838         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
83839         argp-parse.c depends on getopt internals, that means we should
83840         always use our getopt, to be on the safe side.
83841         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
83842         order not to spoil the result of an eventual previous invocation
83843         of gl_GETOPT_SUBSTITUTE.
83844
83845 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83846
83847         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
83848         redefinition warnings. To avoid them, include the defines
83849         in `#if !defined __need_getopt ... #endif'. The only place
83850         where __getopt_argv_const is used is in definitions
83851         of getopt_long and getopt_long_only below, which are as well
83852         protected by `#ifndef __need_getopt'.
83853         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
83854         __need_getopt after including <stdio.h> and <unistd.h> These
83855         headers might have defined it.
83856
83857 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83858
83859         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
83860
83861 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83862
83863         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
83864         (futimens): New function, which uses futimes if available.
83865         (futimens, utimens): Support timespec==NULL, with same semantics
83866         as utime and utimens.
83867         * lib/utimens.h (futimens): New decl.
83868
83869 2004-11-23  Jim Meyering  <jim@meyering.net>
83870
83871         * lib/getopt_.h: Remove trailing blanks.
83872
83873 2004-11-23  Jim Meyering  <jim@meyering.net>
83874
83875         * lib/__fpending.c: Add comment.
83876
83877 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
83878
83879         * modules/canonicalize (Depends-on): Add xreadlink.
83880         Problem reported by James Youngman.
83881
83882 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
83883
83884         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
83885         New macros.
83886         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
83887         optopt): Use them instead of invoking ## directly; otherwise, the
83888         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
83889
83890 2004-11-19  Bruno Haible  <bruno@clisp.org>
83891
83892         * lib/strtok_r.c: Move comments from here...
83893         * lib/strtok_r.h: ... to here.
83894
83895 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83896
83897         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
83898         implementations that mishandle size_t overflow.
83899
83900 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83901
83902         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
83903         might fail.  Problem reported by Yoann Vandoorselaere.
83904         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
83905         implementations that mishandle size_t overflow.
83906
83907 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83908
83909         * modules/canon-host (Depends-on): Add strdup.
83910
83911 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83912
83913         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
83914
83915 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83916
83917         * lib/canon-host.c: Include "strdup.h".
83918         (canon_host): Use getaddrinfo if available, so that IPv6 works.
83919         Use strdup instead of malloc/strcpy to duplicate strings.
83920
83921         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
83922         (human_space_before_unit): New constant.
83923         * lib/human.c (human_readable): Support it.
83924
83925         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
83926         (xgetcwd): Set errno correctly when failing.
83927         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
83928         the failure is actually due to a PATH_MAX problem.
83929
83930         Further getopt changes to make it more likely that glibc will
83931         buy the changes back.
83932         * lib/getopt.c (POSIXLY_CORRECT): New constant.
83933         (getopt): Use it, so to preserve glibc semantic
83934         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
83935         when compiling for libc.
83936         * lib/getopt_.h (__getopt_argv_const): Bring it back.
83937         (getopt_long, getopt_long_only): Use it.
83938
83939         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83940         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
83941         (getopt): Argv is now char * const *, as per standard.
83942         (_getopt_internal_r, _getopt_internal): Argv is now char **,
83943         not char *__getopt_argv_const *.
83944         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83945         _getopt_long_only_r): Likewise.
83946         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
83947         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83948         _getopt_long_r, _getopt_long_only_r): Likewise.
83949         * lib/getopt_.h (__getopt_argv_const): Remove.
83950         (getopt): Argv is now char * const *, as per standard.
83951
83952         * lib/getdate.y (tORDINAL): New token.
83953         (day, relunit): Allow it for relative times.
83954         (relative_time_table): Use tORDINAL for ordinals.
83955
83956 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83957
83958         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
83959         Document that "second" isn't allowed as an ordinal number.
83960
83961 2004-11-16  Jim Meyering  <jim@meyering.net>
83962
83963         * modules/closeout (Depends-on): Add fpending.
83964
83965 2004-11-15  Jim Meyering  <jim@meyering.net>
83966
83967         * lib/closeout.c: Include "__fpending.h" once again.
83968         Include <stdbool.h>.
83969         (close_stdout): Don't fail just because stdout was closed initially,
83970         since some programs don't write to stdout in the normal course of
83971         operation (other than --version and --help), and we don't want this
83972         function to make e.g. `touch file >&-' fail.
83973         But do fail if it was closed and someone has tried to write to it.
83974         E.g., `printf foo >&-' must fail.
83975
83976 2004-11-13  Jim Meyering  <jim@meyering.net>
83977
83978         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
83979
83980 2004-11-12  Simon Josefsson  <jas@extundo.com>
83981
83982         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
83983         small doc fix is still pending.
83984
83985 2004-11-11  Simon Josefsson  <jas@extundo.com>
83986
83987         * modules/strtok_r: New file.
83988
83989         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83990         strtok_r.
83991
83992 2004-11-11  Simon Josefsson  <jas@extundo.com>
83993
83994         * m4/strtok_r.m4: New file.
83995
83996         * m4/getopt.m4: Replace opterr.
83997
83998 2004-11-11  Simon Josefsson  <jas@extundo.com>
83999
84000         * lib/strtok_r.h, strtok_r.c: New file.
84001
84002 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84003
84004         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84005         of replacing opterr, getopt, etc.  This should handle the
84006         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84007
84008 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84009
84010         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84011         we can stop lying to compilers about the constness of argv when we
84012         are compiled outside glibc.
84013         (getopt, getopt_long, getopt_long_only): Use it.
84014         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84015         _getopt_internal, getopt): Likewise.
84016         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84017         _getopt_long_only_r): Likewise.
84018         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84019         _getopt_long_r, _getopt_long_only_r): Likewise.
84020
84021         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84022         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84023         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84024         the other external symbols.
84025         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84026         declaration, since the above renaming now works around collisions.
84027
84028 2004-11-11  Jim Meyering  <jim@meyering.net>
84029
84030         * lib/linebreak.c: Remove trailing blanks.
84031         * lib/alloca_.h: Likewise.
84032         * lib/acosl.c: Likewise.
84033         * lib/euidaccess.c: Likewise.
84034         * lib/allocsa.h: Likewise.
84035
84036 2004-11-10  Simon Josefsson  <jas@extundo.com>
84037
84038         * m4/getaddrinfo.m4: New file.
84039
84040 2004-11-10  Simon Josefsson  <jas@extundo.com>
84041
84042         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84043
84044 2004-11-10  Simon Josefsson  <jas@extundo.com>
84045
84046         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84047         getaddrinfo.
84048
84049         * modules/getaddrinfo: New file.
84050
84051 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84052
84053         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84054
84055 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84056
84057         * lib/mktime.c (SHR): New macro, which is a portable
84058         substitute for >> that should work even on Crays.
84059         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84060         Problem reported by Mark D. Baushke in
84061         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84062         * lib/getdate.y (SHR): Likewise.
84063         (tm_diff): Use it.
84064         * lib/strftime.c (SHR): Likewise.
84065         (tm_diff): Use it.
84066         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84067         quote_these_too, so that right shifts are well defined.  All uses
84068         changed.
84069
84070 2004-11-10  Jim Meyering  <jim@meyering.net>
84071
84072         Ensure that no close failure goes unreported.
84073         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84074         return early when it seems there's nothing to flush.
84075         Don't include __fpending.h.
84076
84077 2004-11-10  Jim Meyering  <jim@meyering.net>
84078
84079         * modules/closeout (Depends-on): Remove fpending.
84080
84081 2004-11-10  Jim Meyering  <jim@meyering.net>
84082
84083         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84084
84085 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84086
84087         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84088         gl_FUNC_STRFTIME.
84089         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84090         and AC_REQUIRE when possible, to avoid duplicate checks.
84091         Check for <wchar.h>.
84092
84093 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84094
84095         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84096
84097 2004-11-09  Bruno Haible  <bruno@clisp.org>
84098
84099         * m4/sockpfaf.m4: New file.
84100
84101 2004-11-05  Bruno Haible  <bruno@clisp.org>
84102
84103         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84104         Reported by Mark D. Baushke <mdb@cvshome.org>.
84105
84106 2004-11-04  Bruno Haible  <bruno@clisp.org>
84107
84108         2004-09-11  Bruno Haible  <bruno@clisp.org>
84109                 * allocsa.valgrind: New file.
84110         2004-02-06  Bruno Haible  <bruno@clisp.org>
84111                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84112                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84113                 Reported by Christopher Seip <chris.seip@hp.com>.
84114
84115 2004-11-04  Bruno Haible  <bruno@clisp.org>
84116
84117         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84118         (Makefile.am): Distribute it.
84119
84120 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84121
84122         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84123         with errno == ERANGE if the buffer is too small.
84124         Problem reported by Mark D. Baushke.
84125
84126 2004-11-03  Albert Chin  <china@thewrittenword.com>
84127             Paul Eggert  <eggert@cs.ucla.edu>
84128
84129         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84130         equivalent, substitute $ac_type for equivalent type rather than
84131         blindly using uint32_t *always* which won't work if uint32_t is not
84132         available.  Define _UINT32_T to work around typedef of uint32_t if
84133         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84134         2.5.1.
84135
84136 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84137
84138         * m4/jm-macros.m4: Sync from coreutils.
84139         (gl_MACROS): Check for mbrlen, for pathchk.
84140         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84141
84142 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84143
84144         * lib/xreadlink.c (MAXSIZE): New macro.
84145         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84146         size does not exceed MAXSIZE.  Avoid cast.
84147         As suggested by Mark D. Baushke in
84148         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84149         if readlink fails with buffer size just under MAXSIZE, try again
84150         with MAXSIZE.
84151
84152 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84153
84154         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84155
84156 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84157         and  Paul Eggert  <eggert@cs.ucla.edu>
84158
84159         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84160         (get_date): Overparenthesize to avoid GCC warning.
84161
84162 2004-11-02  Bruno Haible  <bruno@clisp.org>
84163
84164         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84165         returns void.
84166
84167 2004-11-02  Bruno Haible  <bruno@clisp.org>
84168
84169         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84170         function returns void.
84171
84172 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84173
84174         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84175         fflush_unlocked, flockfile, funlockfile, funlockfile,
84176         fputs_unlocked, putc_unlocked.
84177
84178 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84179
84180         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84181         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84182         already declared.
84183
84184 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84185
84186         * modules/getdate (Files): Add doc/getdate.texi.
84187         (Depends-on): Add setenv, xalloc.
84188
84189 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84190
84191         * lib/getdate.y: Add support for TZ="foo" within a date string.
84192         Fix some bugs near time_t boundaries.  Reject dates with
84193         out-of-range components, e.g., "Sept 31".
84194         Include <stdlib.h>, "setenv.h", "xalloc.h".
84195         (ISDIGIT_LOCALE): Remove; unused.
84196         Note that the TZ and time functions used here are not reentrant.
84197         (mktime_ok, get_tz): New functions.
84198         (TZBUFSIZE): New constant.
84199         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84200         This requires that we sometimes generate our own TZ="XXX..." setting.
84201
84202 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84203
84204         * doc/getdate.texi: New file, from coreutils with modifications for
84205         the new TZ parsing.
84206
84207 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84208
84209         * lib/mktime.c (not_equal_tm): Remove redundant check.
84210
84211 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84212
84213         * modules/regex (lib_SOURCES): Add regex.c.
84214         Reported by James Youngman in
84215         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84216
84217 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84218
84219         * lib/getdate.y: Use Bison 1.875 features, and some minor
84220         code cleanups.  This change does not affect semantics.
84221         Don't include <stdlib.h>; no longer needed.
84222         Don't include unlocked-io.h; only the "#if TEST" code uses
84223         stdio, and performance isn't crucial there.
84224         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84225         Bison 1.875 features as described below.
84226         All uses of "PC." replaced by "pc->".
84227         (YYSTYPE): Add a forward declaration.
84228         (yylex, yyerror): Use full prototypes in forward decls.
84229         Use "%pure-parser" rather than obsolescent "%pure_parser".
84230         Use %parse-param and %lex-param instead of obsolescent
84231         YYPARSE_PARAM and YYLEX_PARAM.
84232         (meridian_table, month_and_day_table, time_units_table,
84233         relative_time_table, time_zone_table, military_table,
84234         lookup_zone, lookup_word, get_date):
84235         Use NULL instead of 0 where appropriate.
84236         (to_hour): Avoid abort (), to avoid a dependency on
84237         stdlib.h.
84238         (yyerror, yylex): Now accepts parser_control * arg.
84239         (main) [TEST]: Use '\0' rather than 0 for char.
84240
84241 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84242
84243         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84244
84245 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84246
84247         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84248         It's now the caller's responsibility to handle the case where
84249         !HAVE_GETPAGESIZE && !defined getpagesize.
84250
84251         * lib/mktime.c (leapyear): Arg is long int, not int.
84252
84253 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84254
84255         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84256
84257 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84258
84259         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84260         missing.  Problem reported by James Youngman.
84261
84262 2004-10-16  Simon Josefsson  <jas@extundo.com>
84263
84264         * gnulib-tool: Fix comments.  Fix parse problem.
84265         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84266
84267 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84268
84269         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84270         implementation of getopt_long.  Problem reported by Alexander Taler in:
84271         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84272
84273 2004-10-15  Bruno Haible  <bruno@clisp.org>
84274
84275         * gnulib-tool: Untabify. Initialize supplied_libname.
84276         (func_usage): More homogenous output.
84277         (func_modules_transitive_closure, func_modules_to_filelist,
84278         func_emit_lib_Makefile_am): New functions.
84279         (func_import): New function, extracted from big case statement. Use
84280         func_get_license, func_modules_transitive_closure,
84281         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84282         opt_lgpl. Don't use test -a, as it's not portable.
84283         (func_create_testdir): Use func_modules_transitive_closure,
84284         func_modules_to_filelist, func_emit_lib_Makefile_am.
84285
84286 2004-10-15  Bruno Haible  <bruno@clisp.org>
84287
84288         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84289
84290 2004-10-15  Bruno Haible  <bruno@clisp.org>
84291
84292         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84293         the portions belonging to each module.
84294         Suggested by Derek Robert Price <derek@ximbiot.com>.
84295
84296 2004-10-12  Simon Josefsson  <jas@extundo.com>
84297
84298         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84299         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84300         to real functions.
84301
84302 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84303
84304         * modules/vsnprintf: New file.
84305
84306 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84307
84308         * m4/vsnprintf.m4: New file.
84309
84310 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84311
84312         * lib/vsnprintf.h: New file.
84313         * lib/vsnprintf.c: New file.
84314
84315 2004-10-11  Bruno Haible  <bruno@clisp.org>
84316
84317         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84318         vsnprintf.
84319
84320 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84321
84322         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
84323
84324 2004-10-07  Bruno Haible  <bruno@clisp.org>
84325
84326         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
84327         fits into the provided buffer.
84328
84329 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84330
84331         * lib/diacrit.c, diacrit.h: Add GPL notice.
84332
84333         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
84334         notice.
84335         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
84336         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
84337         This avoids a potential constant-folding bug.
84338
84339 2004-10-05  Bruno Haible  <bruno@clisp.org>
84340
84341         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
84342         for the declaration of strsep.
84343
84344 2004-10-05  Bruno Haible  <bruno@clisp.org>
84345
84346         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
84347
84348 2004-10-04  Simon Josefsson  <jas@extundo.com>
84349
84350         * modules/memmem: New file.
84351         * tests/test-memmem.c: New file.
84352         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
84353
84354 2004-10-04  Simon Josefsson  <jas@extundo.com>
84355
84356         * m4/memmem.m4: New file.
84357
84358 2004-10-04  Simon Josefsson  <jas@extundo.com>
84359
84360         * lib/memmem.h: New file.
84361         * lib/memmem.c: New file, taken from glibc.
84362
84363 2004-10-04  Simon Josefsson  <jas@extundo.com>
84364
84365         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84366         '#ifdef USE_UNLOCKED_IO'.
84367
84368 2004-10-04  Simon Josefsson  <jas@extundo.com>
84369
84370         * config/srclist.txt: Add memmem from glibc.
84371
84372 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84373
84374         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84375
84376         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84377         modules/exclude, modules/getdate, modules/getline,
84378         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84379         modules/getusershell, modules/linebuffer, modules/md5,
84380         modules/mountlist, modules/posixtm, modules/readtokens,
84381         modules/readutmp, modules/regex, modules/sha1,
84382         modules/version-etc, modules/yesno:
84383         Remove dependency on unlocked-io.
84384
84385 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84386
84387         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84388
84389         * m4/unlocked-io.m4: Add copyright notice.
84390         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84391
84392 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84393
84394         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
84395         * lib/xmalloc.c (xmemdup): Likewise.
84396         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
84397         XFREE): Remove these long-obsolescent macros.
84398         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
84399         * lib/xstrdup.c: Remove.
84400
84401         * lib/regex.c (re_comp): Cast gettext return value to char *,
84402         Problem reported by Martin Neitzel via Mark D. Baushke.
84403
84404 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84405
84406         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
84407         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
84408         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
84409         regex.c, sha1.c, version-etc.c, yesno.c:
84410         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
84411         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
84412         the includer's responsibility.
84413
84414         Sync from coreutils.
84415
84416         * lib/modechange.c (mode_compile): Don't decrement a pointer that
84417         points to the start of a string, as the C Standard says the
84418         resulting behavior is undefined.
84419
84420         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
84421         simple -> simple_backups, numbered_existing ->
84422         numbered_existing_backups, numbered -> numbered_backups
84423         to avoid shadowing problems.  All uses changed.
84424         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
84425         * lib/backupfile.c (check_extension, numbered_backup):
84426         Rename locals to avoid shadowing 'basename'.
84427         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
84428         once.
84429
84430         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
84431         * lib/.cvsignore: Add getopt.h.
84432
84433 2004-10-04  Bruno Haible  <bruno@clisp.org>
84434
84435         * modules/README: New file.
84436         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
84437         not a module.
84438
84439 2004-10-02  Jim Meyering  <jim@meyering.net>
84440
84441         * lib/dirfd.h, getpagesize.h: Add copyright notice.
84442
84443 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84444
84445         * modules/strsep: New file.
84446
84447 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84448
84449         * m4/strsep.m4: New file.
84450
84451 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84452
84453         * lib/strsep.h: New file.
84454         * lib/strsep.c: New file.
84455
84456 2004-10-01  Simon Josefsson  <jas@extundo.com>
84457
84458         * lib/snprintf.c (snprintf): Handle size==0.
84459
84460 2004-10-01  Simon Josefsson  <jas@extundo.com>
84461             Bruno Haible  <bruno@clisp.org>
84462
84463         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
84464         (snprintf): Declare 'args'.
84465
84466 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
84467
84468         * lib/snprintf.c: Remove comments as to why each header is needed.
84469
84470 2004-10-01  Bruno Haible  <bruno@clisp.org>
84471
84472         * MODULES.html.sh: Add strsep.
84473
84474 2004-09-30  Simon Josefsson  <jas@extundo.com>
84475
84476         * modules/snprintf: New file.
84477
84478 2004-09-30  Simon Josefsson  <jas@extundo.com>
84479
84480         * m4/snprintf.m4: New file.
84481
84482 2004-09-30  Simon Josefsson  <jas@extundo.com>
84483
84484         * lib/snprintf.h, lib/snprintf.c: New files.
84485
84486 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84487
84488         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
84489         (hol_entry_help): Never translate an empty string.
84490         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
84491         * lib/argp.h (OPTION_NO_TRANS): New option.
84492
84493 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84494
84495         * modules/argp (Maintainer): Replace Simon Josefsson
84496         by Sergey Poznyakoff.
84497
84498 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84499
84500         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
84501         changes merged back into glibc.
84502
84503 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84504
84505         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84506
84507 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84508
84509         * lib/xvasprintf.c: Include xalloc.h.
84510         (xvasprintf): Use xalloc_die, not xmalloc_die.
84511
84512 2004-09-29  Bruno Haible  <bruno@clisp.org>
84513
84514         * modules/alloca-opt: New file, derived from modules/alloca.
84515         * modules/allocsa: Depend on alloca-opt instead of alloca.
84516         * modules/setenv: Likewise.
84517         * modules/vasnprintf: Likewise.
84518         * MODULES.html.sh: Add alloca-opt.
84519
84520 2004-09-28  Simon Josefsson  <jas@extundo.com>
84521
84522         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84523         LGPL, and to replace license template from GPL to LGPL.
84524
84525 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84526
84527         * modules/dummy: Change license to LGPL.
84528
84529 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84530
84531         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84532
84533 2004-09-24  Simon Josefsson  <jas@extundo.com>
84534
84535         * modules/minmax (License): Change from GPL to LGPL.
84536
84537 2004-09-23  Simon Josefsson  <jas@extundo.com>
84538
84539         * gnulib-tool (--import): Typo.
84540
84541 2004-09-23  Simon Josefsson  <jas@extundo.com>
84542
84543         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84544
84545 2004-09-22  Bruno Haible  <bruno@clisp.org>
84546
84547         * modules/*: Add 'License' field.
84548         * gnulib-tool: Accept --extract-license option.
84549         (func_get_license): New function.
84550
84551 2004-09-21  Bruno Haible  <bruno@clisp.org>
84552
84553         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84554         Reported by Simon Josefsson.
84555
84556 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84557
84558         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84559         gl_AC_TYPE_LONG_LONG.
84560
84561 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84562
84563         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84564
84565 2004-09-18  Simon Josefsson  <jas@extundo.com>
84566         and  Paul Eggert  <eggert@cs.ucla.edu>
84567
84568         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84569         calls with autoreconf.  Define GL_LIB.
84570
84571 2004-09-14  Karl Berry  <karl@gnu.org>
84572
84573         * config/srclist.txt: unsync setenv.c, sigh.
84574
84575 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84576
84577         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84578         Problem reported by Bruno Haible in:
84579         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84580
84581 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84582
84583         * config/srclist.txt: Comment out argp-pvh.c.
84584
84585 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84586
84587         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84588         in case some system header has #define'd it.  Problem reported by
84589         Soeren D. Schulze in
84590         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84591
84592 2004-09-09  Karl Berry  <karl@gnu.org>
84593
84594         * regex.[ch]: delete from the root.  These were supposed to be
84595                 synced with emacs cvs, but this has not happened for about
84596                 a year, and anyway nothing else uses emacs regex.[ch].
84597                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84598                 lib/regex[.ch] is untouched.
84599
84600 2004-09-09  Bruno Haible  <bruno@clisp.org>
84601
84602         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84603
84604 2004-09-09  Bruno Haible  <bruno@clisp.org>
84605
84606         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84607         modifications.
84608         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84609
84610 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84611
84612         * modules/xvasprintf: New file.
84613         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84614
84615 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84616
84617         * lib/xvasprintf.h: New file.
84618         * lib/xvasprintf.c: New file.
84619         * lib/xasprintf.c: New file.
84620
84621 2004-09-08  Bruno Haible  <bruno@clisp.org>
84622
84623         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84624
84625 2004-09-08  Bruno Haible  <bruno@clisp.org>
84626
84627         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84628         length is > INT_MAX.
84629         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84630         more.
84631
84632 2004-09-08  Bruno Haible  <bruno@clisp.org>
84633
84634         * lib/stdint_.h: New file, taken from GNU clisp.
84635
84636 2004-09-08  Bruno Haible  <bruno@clisp.org>
84637             Oskar Liljeblad  <oskar@osk.mine.nu>
84638
84639         * modules/stdint: New file.
84640         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84641
84642 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84643
84644         Import from coreutils.
84645         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84646         strings on unbounded length.  alloca's performance benefits aren't
84647         that important here.
84648         (V_STRDUP): Remove.
84649         (parse_with_separator): New function, with most of the internals
84650         of the old parse_user_spec.  Allow user to omit both user and group,
84651         for compatibility with FreeBSD.
84652         Clone only the user name, not the entire spec.
84653         Do not set *uid, *gid unless entirely successful.
84654         Avoid memory leak in some failing cases.
84655         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84656         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84657         (parse_user_spec): Rewrite to use parse_with_separator.
84658
84659 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84660
84661         * modules/userspec: Don't depend on alloca.
84662
84663 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84664
84665         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
84666
84667 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84668
84669         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
84670         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
84671         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
84672
84673 2004-08-16  Simon Josefsson  <jas@extundo.com>
84674
84675         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
84676         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
84677         Add --dry-run for --import.
84678         Let user provided command line parameters override configure.ac
84679         settings.
84680
84681 2004-08-12  Simon Josefsson  <jas@extundo.com>
84682
84683         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
84684         as discussed with Paul Eggert in threads rooted at
84685         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
84686         and
84687         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
84688         Before, the test was empty, and relied on ELIDE_CODE in source
84689         code.)
84690         (gl_PREREQ_GETOPT): New macro.
84691         (gl_GETOPT): Use them.
84692
84693 2004-08-12  Simon Josefsson  <jas@extundo.com>
84694
84695         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
84696         * lib/getopt_.h: Renamed from getopt.h.
84697
84698 2004-08-12  Simon Josefsson  <jas@extundo.com>
84699
84700         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
84701         Change default library name from libfoo to libgnu.
84702         Now, if you have a configure.ac that says:
84703                 gl_SOURCE_BASE(gl)
84704                 gl_M4_BASE(gl/m4)
84705                 gl_MODULES(error getopt etcetera)
84706                 gl_INIT
84707         you can import all you need by running:
84708                 ../gnulib/gnulib-tool --import
84709
84710         * modules/getopt (Files): Rename getopt.h to getopt_.h.
84711         (Makefile.am): Rewrite, use logic from argz.
84712         (Include): Use <getopt.h> instead of "getopt.h".
84713
84714 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84715
84716         * modules/argp (Files): Add m4/unlocked-io.m4.
84717         (Depends-on): Add extensions.
84718
84719 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84720
84721         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
84722         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
84723         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
84724         Check for program_invocation_name, program_invocation_short_name,
84725         flockfile, funlockfile, features.h, _getopt_long_only_r.
84726
84727 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84728
84729         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
84730         its complicated substitute.
84731         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
84732         and program_invocation_name.
84733         (__argp_basename) [!_LIBC]: Remove; the only use was
84734         replaced by its body.
84735         (__argp_short_program_name): Change condition from
84736         !defined __argp_short_program_name to
84737         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
84738         to match argp-namefrob.h.
84739         (__argp_failure): Don't assume strerror_r returns char *.
84740         * lib/argp-parse.c (N_): Define unconditionally.
84741         (argp_default_options): Fill out initializers with 0 to avoid
84742         gcc warnings.
84743
84744 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84745
84746         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
84747         getopt1.c.
84748
84749 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84750
84751         Merge from coreutils.
84752
84753         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
84754
84755         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
84756         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
84757
84758 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84759
84760         Merge from coreutils.
84761
84762         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
84763         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
84764         for Reliant Unix 5.43.
84765
84766         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
84767         (union fooround): Use uintmax_t, not long int.
84768         The rest is a merge from libc:
84769         [defined _LIBC]: Include <shlib-compat.h>.
84770         (_obstack) [defined _LIBC]: Remove after 2.3.4.
84771
84772         * lib/settime.c (settime): Recode to avoid warning with
84773         Sun Forte C 6U2.
84774
84775         * lib/strverscmp.c: Convert to UTF-8.
84776
84777 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84778
84779         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84780         m4/uintmax_t.m4.
84781
84782 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84783
84784         * modules/xalloc-die: New file.
84785         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
84786
84787         * modules/md5 (Files): Add m4/uint32_t.m4.
84788         * modules/sha1: Renamed from modules/sha.
84789         (Files):
84790         Rename lib/sha.h to lib/sha1.h.
84791         Rename lib/sha.c to lib/sha1.c.
84792         Rename m4/sha.m4 to m4/sha1.m4.
84793         (lib_SOURCES): Likewise.
84794         (configure.ac): Rename gl_SHA to gl_SHA1.
84795         (Include): sha.h -> sha1.h.
84796
84797 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84798
84799         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
84800         * m4/sha1.m4: Renamed from sha.m4.
84801         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
84802
84803 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84804
84805         * lib/obstack.h (obstack_empty_p):
84806         Don't assume that chunk->contents is suitably aligned.
84807         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
84808         Likewise. Problem reported by Benno in
84809         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
84810
84811         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
84812         readable.  This could be improved further but it'd take some work.
84813
84814 2004-08-08  Simon Josefsson  <jas@extundo.com>
84815
84816         * modules/xgethostname (Depends-on): Remove exit and error (not
84817         used).
84818
84819         * modules/getpass-gnu: Add getpass.h.
84820         (Depends-on): Add stdbool.
84821         * modules/getpass: Add getpass.h.
84822
84823 2004-08-08  Simon Josefsson  <jas@extundo.com>
84824
84825         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
84826         Check getpass declaration.
84827
84828 2004-08-08  Simon Josefsson  <jas@extundo.com>
84829
84830         * lib/xgethostname.c: Don't include error.h (not used).
84831
84832         * lib/getpass.h: Add.
84833         * lib/getpass.c: Include getpass.h first.
84834
84835 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
84836
84837         * lib/xalloc-die.c: New file.
84838         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
84839         All uses removed.
84840         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
84841         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
84842         xalloc-die.c.
84843         (_, N_, xalloc_die): Move to xalloc-die.c.
84844         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
84845         so that we needn't mess with xalloc_msg_memory_exhausted.
84846
84847         * lib/sha1.h: Renamed from sha.h.
84848         (SHA1_H): Renamed from _SHA_H.
84849         (sha1_ctx): Renamed from sha_ctx.
84850         (sha1_init_ctx): Renamed from sha_init_ctx.
84851         (sha1_process_block): Renamed from sha_process_block.
84852         (sha1_process_bytes): Renamed from sha_process_bytes.
84853         (sha1_finish_ctx): Renamed from sha_finish_ctx.
84854         (sha1_read_ctx): Renamed from sha_read_ctx.
84855         (sha1_stream): Renamed from sha_stream.
84856         (sha1_buffer): Renamed from sha_buffer.
84857         * lib/sha1.c: Likewise; renamed from sha.c.
84858         Do not include <sys/types.h>.
84859         Include <stddef.h> rather than <stdlib.h>.
84860
84861 2004-08-08  Bruno Haible  <bruno@clisp.org>
84862
84863         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
84864         FILESYSTEM_PREFIX_LEN.
84865         * lib/progreloc.c: Likewise.
84866         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
84867
84868 2004-08-06  Simon Josefsson  <jas@extundo.com>
84869
84870         * modules/progname (Depends-on): Don't depend on stdbool.
84871
84872 2004-08-06  Simon Josefsson  <jas@extundo.com>
84873
84874         * modules/getsubopt: New file.
84875         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84876         getsubopt.
84877
84878 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84879
84880         More merge from coreutils.
84881
84882         * m4/utimens.m4, m4/utimecmp.m4: New files.
84883         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
84884         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
84885         prereq.m4, sha.m4: Import changes from coreutils.
84886
84887 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84888
84889         More merge from coreutils.
84890         * modules/raise, modules/readtokens0, modules/utimens:
84891         * modules/utimecmp, module/xnanosleep: New files.
84892         * modules/strftime: Add lib/strftime.h.
84893         Change include from <time.h> to "strftime.h".
84894         * modules/yesno: Add lib/yesno.h.
84895         * modules/backupfile: Remove lib/addext.c.
84896         * modules/euidaccess: Add stat-macros.h.
84897         * modules/canonicalize, modules/euidaccess,
84898         modules/filemode, modules/lchown, modules/makepath,
84899         modules/rmdir, modules/stat: Likewise.
84900
84901 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84902
84903         Merge from tar.
84904         * lib/argp-help.c (make_hol, hol_append): Don't assume that
84905         SIZE_MAX is a valid preprocessor constant.
84906         (__argp_basename): Change from "#ifndef _LIBC"
84907         to "#ifndef __argp_short_program_name", so that
84908         we don't compile these functions for tar.
84909
84910         More merges from coreutils.
84911         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
84912         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
84913         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
84914         * lib/addext.c: Remove; no longer needed.
84915         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
84916         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
84917         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
84918         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
84919         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
84920         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
84921         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
84922         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
84923         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
84924         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84925         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
84926         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
84927         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
84928         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
84929         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
84930         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
84931         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
84932         Import changes from coreutils.
84933
84934 2004-08-05  Simon Josefsson  <jas@extundo.com>
84935
84936         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
84937
84938 2004-08-05  Simon Josefsson  <jas@extundo.com>
84939
84940         * m4/getsubopt.m4: New file.
84941
84942 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84943
84944         Merge from coreutils.
84945
84946         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
84947         * m4/getcwd-path-max.m4: New files.
84948
84949         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
84950         FILESYSTEM_PREFIX_LEN ->
84951         FILE_SYSTEM_PREFIX_LEN.
84952         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
84953         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
84954         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
84955         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
84956
84957         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
84958         prerequisite modules now handle the DOS stuff.
84959         Don't check for unistd.h.
84960
84961 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84962
84963         Merge from coreutils.
84964
84965         * lib/.gdb-history: Remove; this doesn't belong here.
84966
84967         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
84968         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
84969         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
84970         * lib/getcwd.c: New files.
84971
84972         * lib/dirname.h: Include <stdbool.h>.
84973         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
84974         for consistency with POSIX terminology.  All uses changed.
84975         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
84976         (strip_trailing_slashes): Use bool for booleans.
84977         * lib/stripslash.c (strip_trailing_slashes): Likewise.
84978
84979         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
84980         sometimes returns a positive errno value even when it succeeds.
84981         (print_errno_message) [!LIBC]: Fall back on strerror if
84982         __strerror_r fails.
84983
84984         * lib/path-concat.c (mempcpy): Don't define if a system header defines
84985         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
84986         (longest_relative_suffix): New function.
84987         (path_concat): Use it.  Assume first argument is not NULL.
84988         Port to DOS.  Omit redundant separators.
84989         Report an error instead of returning NULL.
84990         Use mempcpy instead of memcpy.
84991         (xpath_concat): Remove: not declared or used.
84992
84993         * lib/same.h: Include <stdbool.h>
84994         (same_name): Return bool, not int.
84995         * lib/same.c (same_name): Likewise.
84996         (errno): Don't declare; we assume C89 or better now.
84997
84998         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
84999         if not already defined.
85000
85001         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85002         * lib/dup-safer.c (errno): Likewise.
85003
85004 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85005
85006         Merge from coreutils.
85007         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85008         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85009         * modules/path-concat: Don't depend on strdup.
85010
85011 2004-08-03  Simon Josefsson  <jas@extundo.com>
85012
85013         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85014         * lib/progname.h: Don't include stdbool.h.
85015
85016 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85017
85018         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85019         * MODULES.html.sh (func_all_modules): Remove fatal.
85020
85021 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85022
85023         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85024
85025 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85026
85027         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85028         working.
85029
85030 2004-08-02  Simon Josefsson  <jas@extundo.com>
85031
85032         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85033         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85034         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85035
85036 2004-08-01  Simon Josefsson  <jas@extundo.com>
85037
85038         * lib/xgetdomainname.c: Include stdlib.h, for free().
85039
85040 2004-07-19  Bruno Haible  <bruno@clisp.org>
85041
85042         * MODULES.html.sh (func_all_modules): Add dummy.
85043
85044 2004-07-16  Simon Josefsson  <jas@extundo.com>
85045
85046         * modules/dummy: New file.
85047
85048 2004-07-16  Simon Josefsson  <jas@extundo.com>
85049
85050         * lib/dummy.c: New file.
85051
85052 2004-07-16  Bruno Haible  <bruno@clisp.org>
85053
85054         * lib/backupfile.h: Add extern "C" for C++.
85055         * lib/closeout.h: Likewise.
85056         * lib/copy-file.h: Likewise.
85057         * lib/findprog.h: Likewise.
85058         * lib/full-write.h: Likewise.
85059         * lib/pathname.h: Likewise.
85060         * lib/progname.h: Likewise.
85061         * lib/stpcpy.h: Likewise.
85062         * lib/stpncpy.h: Likewise.
85063         * lib/strcase.h: Likewise.
85064         * lib/strstr.h: Likewise.
85065         * lib/xalloc.h: Likewise.
85066
85067         * lib/mbswidth.h: Add extern "C" for C++.
85068         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85069
85070 2004-07-13  Robert Millan  <robertmh@gnu.org>
85071
85072         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85073
85074 2004-07-09  Simon Josefsson  <jas@extundo.com>
85075
85076         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85077         failed without this.)
85078
85079 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85080
85081         * modules/chown (Files): Add lib/fchown-stub.c, since
85082         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85083
85084 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85085
85086         * lib/fchown-stub.c: New file.
85087
85088 2004-06-24  Jim Meyering  <jim@meyering.net>
85089
85090         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85091
85092 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85093
85094         * modules/argz: Omit "#include".
85095
85096         * MODULES.html.sh (func_all_modules): Add calloc, to match
85097         2004-06-01 addition of calloc module.
85098
85099 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85100
85101         * m4/argz.m4: New file, which is autoupdated from libtool.
85102
85103 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85104
85105         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85106         libtool.
85107
85108 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85109
85110         * config/srclist-update: Don't insist on "USA." before the
85111         close-comment, as libtool omits the period and puts the */ on a
85112         separate line.
85113         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85114         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85115
85116 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85117
85118         * modules/argz: New file.
85119         * MODULES.html.sh (func_all_modules): Add argz.
85120
85121 2004-06-12  Jim Meyering  <jim@meyering.net>
85122         and  Paul Eggert  <eggert@cs.ucla.edu>
85123
85124         * modules/hash (Files): Add lib/xalloc.h.
85125         * modules/pipe (Depends-on): Add wait-process.
85126         * modules/stat (Depends-on): Add xalloc.
85127         * modules/userspec (Files): Add lib/userspec.h.
85128         * modules/xstrto
85129
85130         Upgrade from gettext-0.13.
85131         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85132         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85133         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85134
85135 2004-06-10  Jim Meyering  <jim@meyering.net>
85136
85137         * lib/calloc.c: New file.
85138
85139 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85140
85141         * lib/getdate.y (yylex): Allow space between sign and number.
85142         Problem reported by Dan Jacobson.
85143
85144 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85145
85146         Merge from coreutils CVS.
85147
85148         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85149         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85150         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85151         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85152         xstrtol.m4: Fix copyright date and/or serial number.
85153
85154         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85155         See if we need an fchown replacement.
85156         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85157         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85158         and use the replacement function if we detect either defect.
85159
85160         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85161         gl_UTIMECMP.
85162
85163 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85164         and  Jim Meyering  <jim@meyering.net>
85165
85166         Merge from coreutils CVS.
85167
85168         * lib/stat-macros.h: New file, with contents from file-type.h
85169         and coreutils' system.h.
85170         * lib/file-type.c: Include "stat-macros.h".
85171         * lib/file-type.h (file_type): Move all macro definitions to new file,
85172         stat-macros.h.
85173
85174         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85175         Wrap old code with this conditional.
85176         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85177         function that does not dereference symlinks.
85178         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85179
85180         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85181         dependency problems.
85182         (xreadlink): Accept new arg SIZE, for efficiency.
85183         All decls and uses changed.
85184         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85185
85186         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85187         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85188
85189         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85190         sysexits.h.
85191
85192 2004-06-01  Jim Meyering  <jim@meyering.net>
85193
85194         * m4/calloc.m4: New file.
85195
85196 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85197
85198         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85199         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85200         Also, fix a typo in a diagnostic.
85201
85202 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85203
85204         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85205         or AC_FUNC_REALLOC.
85206
85207 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85208
85209         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85210         macros to be defined.
85211         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85212         the allocator returns NULL because the requested size is zero.
85213
85214 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85215
85216         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85217         var.  Add comment explaining why libc still defines it.  This
85218         merges the following patch from glibc:
85219         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85220
85221 2004-05-20  Andreas Schwab  <schwab@suse.de>
85222
85223         * m4/free.m4: Replace free if it not known to work, not the other
85224         way round.
85225
85226 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85227
85228         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85229         present in glibc since revision 1.1 of this file.
85230         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85231         obstack_alignment_mask, obstack_alloc, obstack_base,
85232         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85233         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85234         obstack_grow0, obstack_init, obstack_int_grow,
85235         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85236         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85237         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85238         nonexistent functions.
85239
85240 2004-05-18  Karl Berry  <karl@gnu.org>
85241
85242         * config/srclist.txt: break link for vasnprintf.c.
85243
85244 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85245
85246         Port obstack to the AS/400, where pointers are 16 bytes wide and
85247         you cannot cast an integer to a valid pointer.  This patch is
85248         currently waiting to be integrated into glibc; see
85249         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85250
85251         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85252         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85253         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85254         (struct obstack): temp member is now a union of a pointer and
85255         an integer, instead of an integer.  All integer uses changed.
85256         This does not affect the physical layout of struct obstack,
85257         except on hosts (like the AS/400) where the size or alignment of
85258         void * is greater than that of ptrdiff_t.
85259         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85260         __STDC__)]: Store temporary in pointer member of union, not
85261         integer member.
85262         * lib/obstack.c: Include <stddef.h>, for offsetof.
85263         (struct fooalign): Remove; it doesn't need a name.
85264         (union fooround): Change double to long double, and add void *.
85265         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85266         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85267         not a macro.  Hence the values are always int; so remove all
85268         casts-to-int in uses.
85269
85270 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85271
85272         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85273         we can get this patch merged into glibc.
85274
85275 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85276             Paul Eggert  <eggert@cs.ucla.edu>
85277
85278         * m4/argp: Depend on alloca.
85279
85280 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85281             Paul Eggert  <eggert@cs.ucla.edu>
85282
85283         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85284         freecoding.
85285
85286 2004-05-17  Bruno Haible  <bruno@clisp.org>
85287
85288         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85289         precision that consists of a '.' followed by an empty digit string.
85290         Patch by Tor Lillqvist <tml@iki.fi>.
85291
85292 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85293
85294         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85295         for backward compatibility with older code.  We need our own
85296         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85297         it under some other name, and our alloca.h will define it.
85298
85299 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85300             Derek Price  <derek@ximbiot.com>
85301
85302         * lib/alloca.c: Include <alloca.h>, to get our interface.
85303         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85304         include <alloca.h> first.  Use C89 prototype for alloca; this
85305         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85306         Use #elif for simplicity, since we can assume C89 now.
85307         Don't try to source the system alloca.h since it will not be found
85308         and to prevent recursively including its replacement.
85309         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85310         * lib/regex.c: Likewise.
85311
85312 2004-05-16  Derek Price  <derek@ximbiot.com>
85313             Paul Eggert  <eggert@cs.ucla.edu>
85314
85315         getline cleanup.  This changes the getndelim2 API: both order of
85316         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85317         no delimiter).
85318
85319         * lib/getline.c: Don't include stddef.h or stdio.h, since our
85320         interface does that.
85321         (getline): Always use getdelim, so that we don't have two
85322         copies of this code.
85323         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
85324         if available.
85325         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
85326         (GETNDELIM2_MAXIMUM): New macro.
85327         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
85328         instead of the old practice of delim2==0.  All callers changed.
85329         Return -1 on overflow, instead of returning junk.
85330         Do not set *linesize unless allocation succeeds.
85331         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
85332         that we include sys/types.h.
85333         * lib/getnline.h: Likewise.
85334         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
85335         (getndelim2): Reorder arguments.
85336         * lib/getnline.c (getnline, getndelim):
85337         Don't discard the NMAX argument.
85338         (getnline): Invoke getndelim, to avoid code duplication.
85339         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
85340         of (size_t) -1 by callers of the getnline family.
85341
85342 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85343
85344         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
85345         Check for gettimeofday.
85346         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
85347         Check for settimeofday, stime.
85348
85349 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85350
85351         * lib/nanosleep.c (suspended): Change its type from int to
85352         sig_atomic_t volatile.
85353         (first_call): Make it private to rpl_nanosleep, and have it
85354         be zero initially as that's a bit faster.
85355         (my_usleep): Round up fractional times instead of truncating them,
85356         as this is the usual meaning for 'sleep'.
85357
85358         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85359         doesn't work.
85360         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85361         (ENOSYS): Define if not defined.
85362         (settime): Fall back on stime if it exists and settimeofday fails.
85363         But don't bother with fallbacks if a method fails with errno == EPERM.
85364
85365 2004-05-11  Jim Meyering  <jim@meyering.net>
85366
85367         Prior to this change, the save_cwd caller required read access to the
85368         current directory on most systems (ones with the fchdir function).
85369
85370         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85371         fails, try write-only, and finally, resort to using xgetcwd.
85372
85373 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85374
85375         * lib/obstack.c, obstack.h: Import changes from libc.
85376
85377 2004-04-28  Bruno Haible  <bruno@clisp.org>
85378
85379         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85380         also implicitly appends .exe to executables.
85381         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85382         accepts Windows pathnames.
85383         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85384         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85385         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85386         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85387         Reported by Derek Robert Price <derek@ximbiot.com>.
85388
85389 2004-04-21  Karl Berry  <karl@gnu.org>
85390
85391         * config/srclist.txt (localcharset.c): break sync.
85392
85393 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85394
85395         * m4/host-os.m4: Add a copyright notice.
85396
85397 2004-04-20  Jim Meyering  <jim@meyering.net>
85398
85399         Change UTILS_ to gl_ in AC_DEFINE'd names.
85400         Change utils_- and jm_-prefixed variables, too.
85401         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
85402         UTILS_FUNC_MKDIR_TRAILING_SLASH.
85403         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
85404
85405         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
85406         Don't emit trailing blanks.
85407         Also rename jm_-prefixed variables to have gl_ prefix.
85408
85409         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
85410         Also rename jm_-prefixed variables to have gl_ prefix.
85411
85412         * m4/jm-macros.m4: Reflect the renamings.
85413         * m4/prereq.m4: Likewise.
85414
85415 2004-04-20  Jim Meyering  <jim@meyering.net>
85416
85417         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
85418         memory.
85419
85420 2004-04-20  Jim Meyering  <jim@meyering.net>
85421             Bruno Haible  <bruno@clisp.org>
85422
85423         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
85424         memory when realloc fails.
85425
85426 2004-04-19  Jim Meyering  <jim@meyering.net>
85427
85428         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
85429         now that readutmp.c may call `free (0)'.
85430
85431 2004-04-19  Bruno Haible  <bruno@clisp.org>
85432
85433         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
85434         * m4/inttypes_h.m4: Likewise.
85435         * m4/stdint_h.m4: Likewise.
85436         * m4/intmax_t.m4: Likewise.
85437         * m4/uintmax_t.m4: Likewise.
85438
85439 2004-04-18  Jim Meyering  <jim@meyering.net>
85440
85441         * m4/prereq.m4: Don't forbid jm_ prefix.
85442
85443         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
85444         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
85445         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
85446         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
85447         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
85448         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
85449         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
85450         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
85451         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
85452         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
85453         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
85454         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
85455         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
85456         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
85457         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
85458         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
85459         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
85460         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
85461         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
85462
85463 2004-04-18  Jim Meyering  <jim@meyering.net>
85464
85465         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
85466         failure, don't leak memory and do call END_UTMP_ENT.
85467
85468 2004-04-16  Jim Meyering  <jim@meyering.net>
85469
85470         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
85471         coreutils' stat program.
85472         (gl_PREREQ): Don't require jm_PREREQ_STAT.
85473
85474 2004-04-11  Paul Eggert  <eggert@twinsun.com>
85475
85476         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
85477         C89.
85478         (CHAR_BIT): Remove, since we assume C89.
85479         Include <stdint.h> if available, as per current Autoconf CVS advice.
85480
85481 2004-03-31  Jim Meyering  <jim@meyering.net>
85482
85483         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
85484         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
85485         * m4/xalloc.m4: Likewise.
85486
85487 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85488
85489         Merge from coreutils.
85490
85491         * m4/inttostr.m4: New file.
85492         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
85493         Require AM_STDBOOL_H and gl_TIMESPEC instead.
85494         Require gl_CLOCK_TIME.
85495         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
85496
85497 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85498
85499         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
85500         not bool, to be more consistent with Unix conventions.
85501         Suggested by Bruno Haible.
85502
85503         Merge from coreutils.
85504
85505         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85506         * lib/umaxtostr.c: New files.
85507
85508         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85509         the usual <time.h> dance.
85510         (get_date): Change signature to support fractional time stamps.
85511         All callers changed.
85512         * lib/getdate.y: Include "getdate.h" first, as we can now
85513         assume C89 and don't need to worry about 'const'.
85514         Similarly, include "unlocked-io.h" near start, not in middle.
85515         Include <limits.h>.
85516         (textint.value): Use long int rather than int.
85517         (textint.digits): Use size_t rather than int.
85518         (BILLION, LOG10_BILLION): New constants.
85519         (parser_control): New member rel_ns.  Members day_ordinal,
85520         time_zone, month, day, hour, minutes, rel_year, rel_month,
85521         rel_day, rel_hour, rel_minutes, rel_seconds
85522         are now long int, not int.  Member seconds is now struct timespec,
85523         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85524         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85525         not int.
85526         (%union.intval): Now long int, not int.
85527         New member timespec.
85528         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85529         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85530         (spec): Now is a timespec or an item list.
85531         (timespec, items): New nonterminals.
85532         (time, rel, relunit, number, get_date):
85533         Add support for fractional seconds.
85534         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85535         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85536         (to_hour): First arg is now long int, not int.
85537         (to_year): Returns long int, not int.
85538         Don't treat year -70 like 70.
85539         (tm_diff): Returns long int, not int.
85540         (lookup_word): Use bool instead of int when appropriate.
85541         (yylex): Use size_t for count, not int.
85542         Detect overflow when parsing large integer constants.
85543         Add support for fractions.
85544         (get_date): Make pointers 'const' if possible.
85545         Use more-portable code to detect integer overflow.
85546         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85547         Don't use ctime; it's not reliable if the year has >4 digits.
85548
85549         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85550         This is for compatibility with BSD.
85551
85552         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85553         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85554         From coreutils' system.h.
85555
85556         * lib/userspec.c: Don't include "posixver.h".
85557         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85558         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85559         compatible extension.  Simplify code by removing a boolean int
85560         that was always nonzero if a string was nonnull.
85561
85562 2004-03-30  Jim Meyering  <jim@meyering.net>
85563
85564         Merge from coreutils.
85565
85566         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85567         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85568         on some systems one must include <grp.h> before it.
85569         Reported by Christian Krackowizer.
85570
85571 2004-03-30  Jim Meyering  <jim@meyering.net>
85572
85573         Merge from coreutils.
85574
85575         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85576
85577         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85578         an empty input stream.
85579
85580         * lib/readtokens.c: Include <stdbool.h>.
85581         (readtoken): Use `size_t' rather than int/long.
85582         All callers adjusted.
85583         Use `bool' rather than `int' where appropriate.
85584         Use memset rather than an explicit loop.
85585         Use x2nrealloc rather than xrealloc.
85586         Allow the use of `\0' as a delimiter.
85587         (readtokens): Likewise.
85588         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85589
85590 2004-03-30  Jim Meyering  <jim@meyering.net>
85591
85592         * m4/realloc.m4: Remove file, since now it does no more than
85593         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85594         the `configure.ac' section of module/realloc.
85595         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85596
85597 2004-03-30  Bruno Haible  <bruno@clisp.org>
85598
85599         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85600         nonnull.
85601
85602 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85603
85604         Merge changes to getloadavg.c from coreutils and Emacs.
85605
85606         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85607         Define to an expression, not to the empty string.
85608         Include cloexec.h and xalloc.h.
85609         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85610         Use set_cloexec_flag rather than rolling our own.
85611         * lib/cloexec.c, lib/cloexec.h: New files.
85612
85613 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85614
85615         * m4/cloexec.m4: New file.
85616
85617 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85618
85619         * lib/getopt.h: Sync with libc CVS.
85620
85621 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85622             Bruno Haible  <bruno@clisp.org>
85623
85624         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85625         mbswidth.
85626
85627 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85628             Bruno Haible  <bruno@clisp.org>
85629
85630         * lib/mbswidth.h: Include <wchar.h> only if
85631         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85632         <wchar.h>.
85633         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85634
85635 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85636
85637         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85638         Sync with libc CVS.
85639         * lib/getopt_int.h: New file, also synced from libc.
85640
85641 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85642
85643         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85644         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85645         Bring back getopt.c, getopt.h, getopt1.c.
85646
85647 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85648
85649         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85650         All uses changed.  Check for sa_sigaction member; this fixes
85651         a bug first reported by Jason Andrade in
85652         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85653
85654 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85655
85656         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85657         '#if' expressions.  Unlike the code it replaces, it does not
85658         depend on (defined _SC_PAGESIZE).  However, it does depend on
85659         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
85660         first reported by Jason Andrade in
85661         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85662
85663 2004-02-25  Simon Josefsson  <jas@extundo.com>
85664
85665         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
85666
85667 2004-02-25  Simon Josefsson  <jas@extundo.com>
85668
85669         * lib/strdup.h: New file.
85670         * lib/strdup.c: Include it.
85671         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
85672         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
85673
85674 2004-02-23  Karl Berry  <karl@gnu.org>
85675
85676         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
85677         (from fencepost.gnu.org:/gd/gnuorg).
85678
85679 2004-02-23  Karl Berry  <karl@gnu.org>
85680
85681         * config/srclistvars.sh (GNUORG) [karl]: redefine.
85682         * config/srclist.txt: add maintain/standards documents.
85683
85684 2004-02-18  Bruno Haible  <bruno@clisp.org>
85685
85686         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
85687         Reported by Derek Robert Price <derek@ximbiot.com>.
85688
85689 2004-02-16  Karl Berry  <karl@gnu.org>
85690
85691         * config/mkinstalldirs, install-sh: update from automake.
85692
85693 2004-02-06  Karl Berry  <karl@gnu.org>
85694
85695         * m4/po.m4: update from gettext 0.14.1.
85696
85697 2004-02-06  Karl Berry  <karl@gnu.org>
85698
85699         * lib/config.charset: update from gettext 0.14.1.
85700
85701 2004-02-05  Paul Eggert  <eggert@twinsun.com>
85702
85703         Add comments and code, prompted by suggestions from Bruno Haible
85704         for sh-quote.
85705         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
85706         describing the enum quoting_style values.
85707         * lib/quotearg.c (quotearg_alloc): New function.
85708         (quotearg_buffer_restyled): Treat lone { and } as special.
85709         Treat = as special.  Work around bug with older shells
85710         that "see" a '\' that is really the 2nd byte of a multibyte char.
85711         Quote empty string with shell_quoting_style.
85712
85713 2004-02-03  Bruno Haible  <bruno@clisp.org>
85714
85715         * m4/pipe.m4: New file, from GNU gettext.
85716
85717 2004-02-03  Bruno Haible  <bruno@clisp.org>
85718
85719         * lib/pipe.h: New file, from GNU gettext.
85720         * lib/pipe.c: New file, from GNU gettext.
85721
85722 2004-01-27  Bruno Haible  <bruno@clisp.org>
85723
85724         * m4/execute.m4: New file, from GNU gettext.
85725
85726 2004-01-27  Bruno Haible  <bruno@clisp.org>
85727
85728         * lib/execute.h: New file, from GNU gettext.
85729         * lib/execute.c: New file, from GNU gettext.
85730         * lib/w32spawn.h: New file, from GNU gettext.
85731
85732 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85733
85734         Merge from diffutils.
85735
85736         * lib/file-type.c (file_type): Add typed memory objects.
85737         * lib/file-type.h (S_TYPEISTMO): New macro.
85738
85739         * lib/c-stack.h (c_stack_action): Remove argv argument.
85740         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
85741         (die): Don't calculate message unless segv_action returns.
85742         (get_stack_location, min_address_from_argv, max_address_from_argv,
85743         volatile stack_base, volatile_stack_size): Remove.
85744         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
85745         that every segmentation violation is a stack overflow.  (Ouch!)
85746         See Debian bug 136249 (still outstanding) for more info about why
85747         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
85748
85749 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85750
85751         Exit-status fix from coreutils.
85752
85753         Use exit_failure consistently in place of EXIT_FAILURE,
85754         so that program exit statuses are consistent on failure.
85755
85756         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
85757         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
85758         * lib/argmatch.h: Comment fix to match the above.
85759         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
85760         Now a macro referring to exit_failure, instead of a separate
85761         variable.  Include "exitfail.h" to get it.
85762         * lib/xstrtol.h: Include "exitfail.h".
85763         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
85764
85765         * lib/long-options.c (parse_long_options): Use prototype
85766         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
85767         for clarity.
85768
85769 2004-01-21  Jim Meyering  <jim@meyering.net>
85770
85771         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
85772         so as not to conflict with a different-sized __mktime_internal
85773         function in GNU libc.
85774         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
85775         Problem building statically-linked `ls' reported by Michael Brunnbauer.
85776
85777 2004-01-20  Karl Berry  <karl@gnu.org>
85778
85779         * config/config.guess: update from config.
85780
85781         * config/srclistvars.sh: GNUWWWLICENSES for karl.
85782
85783 2004-01-20  Bruno Haible  <bruno@clisp.org>
85784
85785         Safer stack allocation.
85786         * lib/setenv.c: Include allocsa.h.
85787         (alloca): Remove fallback definition.
85788         (freea): Remove macro.
85789         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
85790         instead of freea.
85791
85792 2004-01-20  Bruno Haible  <bruno@clisp.org>
85793
85794         * m4/eealloc.m4: New file, from GNU gettext.
85795
85796 2004-01-20  Bruno Haible  <bruno@clisp.org>
85797
85798         * m4/allocsa.m4: New file, from GNU gettext.
85799
85800 2004-01-20  Bruno Haible  <bruno@clisp.org>
85801
85802         * lib/xallocsa.h: New file, from GNU gettext.
85803         * lib/xallocsa.c: New file, from GNU gettext.
85804
85805 2004-01-20  Bruno Haible  <bruno@clisp.org>
85806
85807         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
85808
85809 2004-01-20  Bruno Haible  <bruno@clisp.org>
85810
85811         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
85812         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
85813         specially.
85814
85815 2004-01-20  Bruno Haible  <bruno@clisp.org>
85816
85817         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
85818         patch.
85819
85820 2004-01-20  Bruno Haible  <bruno@clisp.org>
85821
85822         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
85823
85824 2004-01-20  Bruno Haible  <bruno@clisp.org>
85825
85826         * lib/eealloc.h: New file.
85827
85828 2004-01-20  Bruno Haible  <bruno@clisp.org>
85829
85830         * lib/binary-io.h: Avoid warnings on Cygwin.
85831
85832 2004-01-20  Bruno Haible  <bruno@clisp.org>
85833
85834         * lib/allocsa.h: New file, from GNU gettext.
85835         * lib/allocsa.c: New file, from GNU gettext.
85836
85837 2004-01-18  Karl Berry  <karl@gnu.org>
85838
85839         * doc/gpl.texi, doc/lgpl.texi: new files.
85840
85841 2004-01-18  Karl Berry  <karl@gnu.org>
85842
85843         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
85844         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
85845
85846 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85847
85848         Merge from coreutils.
85849
85850         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
85851         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
85852         (gl_DEFAULT_POSIX2_VERSION): Move
85853         the documentation from 'configure' into 'config.hin',
85854         so that 'configure --help' isn't burdened by it and
85855         we don't have to worry about its formatting there.
85856         Reword the documentation so that it's more succinct
85857         and can be run together into a single paragraph.
85858         * m4/same.m4 (gl_SAME): Check for pathconf.
85859
85860 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85861
85862         Merge from coreutils.
85863
85864         * lib/posixver.c: Include posixver.h.
85865
85866         * lib/same.c: Include <stdbool.h>, <limits.h>.
85867         (_POSIX_NAME_MAX): Define if not defined.
85868         (MIN): New macro.
85869         (same_name): If file names are silently truncated, report
85870         that the file names are the same if they are the same after
85871         the silent truncation.
85872
85873         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
85874         conversion function.
85875         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
85876         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
85877         longer needed.
85878
85879 2004-01-15  Jim Meyering  <jim@meyering.net>
85880
85881         Merge from coreutils.
85882
85883         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
85884         if no library is required.
85885         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
85886         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
85887         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
85888         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
85889         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
85890         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
85891         value, $ac_cv_search_crypt, if it's "none required".
85892         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
85893         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
85894         not gl_FUNC_GETLOADAVG.
85895         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
85896         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
85897
85898 2004-01-15  Jim Meyering  <jim@meyering.net>
85899
85900         Merge from coreutils.
85901
85902         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
85903         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
85904         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
85905
85906         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
85907         optional configure-time default.
85908
85909         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85910
85911         * lib/xreadlink.c (xreadlink): Correct outdated comment.
85912
85913 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
85914
85915         Merge from coreutils.
85916
85917         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
85918         value, $ac_cv_search_nanosleep, if it's "none required".
85919
85920 2004-01-14  Paul Eggert  <eggert@twinsun.com>
85921
85922         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
85923         with like-named macro in fnmatch.c.
85924         (EXT): Use an internal constant instead.
85925
85926         Merge fnmatch patches from glibc.
85927         * lib/fnmatch.c (mbsinit): Remove define.
85928         Add libc_hidden_ver (__fnmatch, fnmatch).
85929         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
85930         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
85931
85932 2004-01-14  Karl Berry  <karl@gnu.org>
85933
85934         * config/install-sh: update from automake.
85935
85936 2004-01-13  Karl Berry  <karl@gnu.org>
85937
85938         * config/install-sh: update from automake.
85939
85940 2004-01-09  Karl Berry  <karl@gnu.org>
85941
85942         * config/install-sh: update from automake.
85943
85944 2004-01-05  Karl Berry  <karl@gnu.org>
85945
85946         * config/config.{sub,guess}: update from config.
85947
85948 2003-12-31  Karl Berry  <karl@gnu.org>
85949
85950         * config/depcomp: update from automake.
85951
85952 2003-12-14  Karl Berry  <karl@gnu.org>
85953
85954         * lib/config.charset: update from gettext-runtime.
85955
85956 2003-12-03  Paul Eggert  <eggert@twinsun.com>
85957
85958         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
85959         Bug reported by Alfred M. Szmidt.
85960
85961 2003-12-03  Bruno Haible  <bruno@clisp.org>
85962
85963         * m4/gettext.m4: Upgrade from gettext-0.13.
85964         * m4/po.m4: Upgrade from gettext-0.13.
85965         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
85966         * m4/intmax.m4: New file, from gettext-0.13.
85967         * m4/printf-posix.m4: New file, from gettext-0.13.
85968
85969 2003-11-29  Karl Berry  <karl@gnu.org>
85970
85971         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
85972
85973 2003-11-25  Paul Eggert  <eggert@twinsun.com>
85974             Bruno Haible  <bruno@clisp.org>
85975
85976         * lib/printf-parse.h: Don't include sys/types.h.
85977         (ARG_NONE): New macro.
85978         (char_directive): Change type of *arg_index fields to size_t.
85979         * lib/printf-parse.c: Don't include sys/types.h.
85980         (SSIZE_MAX): Remove macro.
85981         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
85982         Remove unnecessary overflow check.
85983         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
85984         fields.
85985
85986 2003-11-25  Bruno Haible  <bruno@clisp.org>
85987
85988         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
85989
85990 2003-11-25  Bruno Haible  <bruno@clisp.org>
85991
85992         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
85993         gt_TYPE_SSIZE_T.
85994
85995 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85996
85997         * modules/alloca: Remove dependency on xalloc.
85998
85999 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86000
86001         * lib/alloca.c: Remove dependency on xalloc module.
86002         (xalloc_die): Remove.
86003         (memory_full) [!defined emacs]: New macro.
86004         [!defined emacs]: Don't include xalloc.h.
86005         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86006         address arithmetic overflows.  Change datatypes a bit to avoid
86007         unnecessary casts.
86008
86009 2003-11-22  Jim Meyering  <jim@meyering.net>
86010
86011         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86012         s/size/size_t/.
86013
86014 2003-11-21  Karl Berry  <karl@gnu.org>
86015
86016         * config/config.{sub,guess}: update from config.
86017
86018 2003-11-18  Karl Berry  <karl@gnu.org>
86019
86020         * config/config.{sub,guess}: update from config.
86021
86022         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86023
86024 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86025
86026         * README: Mention that S+T cannot overflow if S is the size of
86027         an existing object and T is sufficiently small.
86028
86029 2003-11-17  Jim Meyering  <jim@meyering.net>
86030
86031         On systems without utime and without a utimes function capable of
86032         dealing with a NULL struct utimbuf* argument, this utime replacement
86033         could -- in unusual circumstances -- leak a file descriptor.
86034         * lib/utime.c: Include <unistd.h> and <errno.h>.
86035         (utime_null): Be sure to close `fd' and to preserve errno.
86036         Reported by Geoff Collyer via Arnold Robbins.
86037
86038 2003-11-17  Bruno Haible  <bruno@clisp.org>
86039
86040         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86041         (Depends-on): Add xsize.
86042
86043 2003-11-17  Bruno Haible  <bruno@clisp.org>
86044
86045         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86046
86047 2003-11-17  Bruno Haible  <bruno@clisp.org>
86048
86049         * lib/vasnprintf.c (alloca): Remove fallback definition.
86050         (freea): Remove definition.
86051         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86052         Reported by Paul Eggert.
86053
86054 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86055             Bruno Haible  <bruno@clisp.org>
86056
86057         Protect against address arithmetic overflow.
86058         * lib/printf-args.h: Include stddef.h.
86059         (arguments): Change type of field 'count' to size_t.
86060         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86061         'unsigned int' where appropriate.
86062         * lib/printf-parse.h: Include sys/types.h.
86063         (char_directive): Change type of *arg_index fields to ssize_t.
86064         (char_directives): Change type of fields 'count', max_*_length to
86065         size_t.
86066         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86067         (SSIZE_MAX): Define fallback value.
86068         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86069         instead of 'int' where appropriate. Check a_allocated, d_allocated
86070         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86071         * lib/vasnprintf.c: Include xsize.h.
86072         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86073         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86074         overflow. Avoid wraparound when converting a width or precision from
86075         decimal to binary.
86076
86077 2003-11-16  Bruno Haible  <bruno@clisp.org>
86078
86079         Update from GNU gettext.
86080         * lib/printf-parse.c: Generalize to it can be compiled for wide
86081         strings.
86082         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86083         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86084         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86085         SNPRINTF): New macros.
86086         Don't include <alloca.h> if the file is used inside libintl.
86087         (local_wcslen): New function, for Solaris 2.5.1.
86088         (VASNPRINTF): Use it instead of wcslen.
86089
86090 2003-11-16  Bruno Haible  <bruno@clisp.org>
86091
86092         * lib/xsize.h (xmax): New function.
86093         (xsum, xsum3, xsum4): Declare as "pure" functions.
86094
86095 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86096
86097         * modules/xalloc (Files): Undo latest change, since xalloc.h
86098         no longer needs SIZE_MAX or PTRDIFF_MAX.
86099
86100 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86101
86102         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86103         gl_PTRDIFF_MAX.
86104
86105 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86106
86107         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86108         "return", to pacify some unknown compiler.  Problem reported
86109         by Joerg Schilling.
86110
86111 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86112
86113         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86114         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86115         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86116         heuristic is just as accurate as far as we know, and it removes a
86117         dependency on size_max.m4 and ptrdiff_max.m4.
86118
86119 2003-11-11  Bruno Haible  <bruno@clisp.org>
86120
86121         * modules/xsize (Files): Add m4/size_max.m4.
86122         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86123
86124 2003-11-11  Bruno Haible  <bruno@clisp.org>
86125
86126         * m4/size_max.m4: New file.
86127         * m4/ptrdiff_max.m4: New file.
86128         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86129         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86130         (gl_XALLOC): Invoke it.
86131
86132 2003-11-11  Bruno Haible  <bruno@clisp.org>
86133
86134         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86135         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86136         defined.
86137
86138 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86139
86140         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86141         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86142         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86143         From Bruno Haible.
86144         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86145         not (size_t) -1, since it's defined here.
86146
86147 2003-11-09  Karl Berry  <karl@gnu.org>
86148
86149         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86150
86151 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86152
86153         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86154         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86155         Reject sizes of exactly SIZE_MAX bytes.
86156         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86157         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86158
86159 2003-11-05  Bruno Haible  <bruno@clisp.org>
86160
86161         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86162         SIZE_MAX defined in <limits.h> on Solaris.
86163
86164 2003-11-04  Jim Meyering  <jim@meyering.net>
86165
86166         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86167         variable names, rather than @VAR@.
86168         * modules/poll: Likewise.
86169
86170 2003-11-04  Bruno Haible  <bruno@clisp.org>
86171
86172         * modules/xsize: New file.
86173         * modules/linebreak: Depend on xsize.
86174         * MODULES.html.sh (func_all_modules): Add xsize.
86175
86176 2003-11-04  Bruno Haible  <bruno@clisp.org>
86177
86178         * m4/xsize.m4: New file.
86179
86180 2003-11-04  Bruno Haible  <bruno@clisp.org>
86181
86182         * lib/xsize.h: New file.
86183         * lib/linebreak.c: Include xsize.h.
86184         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86185         argument for overflow.
86186         Suggested by Paul Eggert.
86187
86188 2003-11-03  Karl Berry  <karl@gnu.org>
86189
86190         * config/config.{guess,sub}: update from config.
86191
86192 2003-11-03  Jim Meyering  <jim@meyering.net>
86193
86194         * modules/userspec (lib_SOURCES): Add userspec.h.
86195         (Include): Add "userspec.h".
86196         Improve description.
86197
86198 2003-11-03  Jim Meyering  <jim@meyering.net>
86199
86200         * lib/userspec.c: Include "userspec.h".
86201         * lib/userspec.h: New file.
86202
86203 2003-11-03  Bruno Haible  <bruno@clisp.org>
86204
86205         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86206
86207 2003-11-03  Bruno Haible  <bruno@clisp.org>
86208
86209         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86210         available, to avoid (extremely rare) race condition.
86211         Suggested by Paul Eggert.
86212
86213 2003-11-02  Karl Berry  <karl@gnu.org>
86214
86215         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86216
86217 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86218
86219         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86220         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86221         (read_filesystem_list): Set and use me_type_malloced.
86222         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86223         whatever the type happens to be), for brevity and consistency.
86224         Check for size calculation overflow on Alphas running OSF/1.
86225
86226 2003-10-31  Jim Meyering  <jim@meyering.net>
86227
86228         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86229
86230         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86231
86232 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86233             Bruno Haible  <bruno@clisp.org>
86234
86235         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86236         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86237
86238 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86239
86240         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86241         netbsd*-gnu*.  Suggested by Robert Millan.
86242
86243 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86244
86245         * modules/group-member: Depend on stdbool.
86246
86247 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86248
86249         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86250
86251 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86252
86253         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86254         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86255         after the 'gnu' in these cases.  This fixes some bugs in the
86256         previous change, and is based on suggestions by Robert Millan.
86257
86258 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86259
86260         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86261         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86262         no longer needed.
86263         * lib/quotearg.c (quotearg_n_options): Use it.
86264         * lib/group-member.c: Include <stdbool.h>.
86265         (free_group_info): Arg is now const *; don't free arg.
86266         (get_group_info): Now returns bool and accepts struct group_info *,
86267         rather than returning a malloc'ed struct group_info *.
86268         All uses changed.  Check for overflow in internal size calculation.
86269
86270         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86271         rather than xmalloc/xrealloc.
86272         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86273         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86274         conformance bug: the old code used a pointer after freeing the
86275         storage that it addressed.
86276         * lib/hash.c (hash_initialize): Simplify the code by using
86277         xalloc_oversized rather than doing it by hand.
86278         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86279         the buffer preserved.  Use free and xmalloc instead.
86280         * lib/quotearg.c (quotearg_n_options): Likewise.
86281         Use a simpler test for size overflow.  Don't use xalloc_oversized
86282         because unsigned int might be wider than size_t (!); this suggests
86283         that we should switch from unsigned int to size_t for slot numbers.
86284
86285 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86286
86287         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86288         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86289         NetBSD kernels.  Requested by Richard Stallman.
86290
86291 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86292
86293         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86294         to allocate the returned structure.  Do not allocate a subarray,
86295         as x2nrealloc will do that.
86296         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86297         instead of xnrealloc.
86298         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86299
86300 2003-10-27  Bruno Haible  <bruno@clisp.org>
86301
86302         * lib/stdbool_.h: Better support for BeOS.
86303
86304 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86305
86306         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86307         now uses inline.
86308
86309 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86310
86311         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86312         callers that want to do their own size-overflow checking.  Include
86313         <stdbool.h>, since xalloc_oversized returns bool.
86314         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86315         to use xalloc_oversized.
86316
86317         Add two functions x2realloc, x2nrealloc, for programs that grow
86318         arrays dynamically by doubling their sizes.
86319         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
86320         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
86321         New functions.
86322
86323         Port to C99 semantics for 'inline' of external functions.
86324         Bug reported by Bruno Haible.
86325         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
86326         with the old contents of xnmalloc.
86327         (xnmalloc, xmalloc): Use it.
86328         (xnrealloc_inline): New static inline function,
86329         with the old contents of xnrealloc.
86330         (xnrealloc, xrealloc): Use it.
86331
86332         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
86333         that.
86334
86335 2003-10-26  Karl Berry  <karl@gnu.org>
86336
86337         * config/srclist.txt (COPYING.DOC): no longer available from
86338         /gd/gnuorg; don't know where the ultimate source is.
86339
86340 2003-10-25  Paul Eggert  <eggert@twinsun.com>
86341
86342         Fix several address-calculation bugs in the hash modules,
86343         plus some minor code cleanup.
86344
86345         * lib/hash.h: Include <stdbool.h>, for bool.
86346         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
86347         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
86348         hash_get_n_entries, hash_get_max_bucket_length,
86349         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
86350         hash_rehash): Use size_t rather than unsigned.
86351         * lib/hash.c (struct hash_table, hash_get_n_buckets,
86352         hash_get_n_buckets_used, hash_get_n_entries,
86353         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
86354         hash_get_entries, hash_do_for_each, hash_string, is_prime,
86355         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
86356         Likewise.
86357         (SIZE_MAX): Define if not defined.
86358         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86359         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86360         hash_print):
86361         Use const * when possible.
86362         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86363         (check_tuning): Fix bug: if tuning parameters were very close to
86364         0 or 1, rounding errors could have caused subscript violations.
86365         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86366         (hash_initialize): Add 'fail:' label
86367         to free table and return NULL, and use it to simplify code.
86368         Use calloc rather than clearing the storage ourself.
86369         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86370         buffer size calculations.
86371         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86372         Include <stddef.h>, for size_t.
86373         * lib/hash-pjw.c (hash_pjw): Likewise.
86374         Switch to method described by Bruno Haible.
86375         Include <limits.h>, for CHAR_BIT.
86376         (SIZE_BITS): New macro.
86377
86378 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86379
86380         * m4/getline.m4 (AM_FUNC_GETLINE):
86381         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86382         hosts.  Problem reported by Derek Robert Price in
86383         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86384         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86385         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86386
86387 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86388
86389         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86390         ceiling the allocation at NMAX bytes rather than silently
86391         discarding input bytes before NMAX is reached.  This makes
86392         a difference only if NMAX exceeds SIZE_MAX / 2.
86393
86394         * lib/obstack.c: Merge from glibc.
86395         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
86396         Add libc_hidden_def (_obstack_newchunk).
86397         (_obstack_free) [! defined _LIBC]: Remove.
86398         [defined _LIBC]: Make a strong alias from obstack_free, rather than
86399         a clone of the function body.
86400         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
86401         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
86402
86403         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
86404         glibc.
86405         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
86406         arg to memcpy.
86407
86408         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
86409         (obstack_ptr_grow_fast, obstack_int_grow_fast):
86410         Don't use lvalue casts, as GCC plans to remove support for them
86411         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
86412         was also present in the non-GCC version, indicating that this
86413         code had always been buggy and had never been widely used.
86414         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
86415         Use the fast variant of each macro, rather than copying the
86416         definiens of the fast variant; that way, we'll be more likely to
86417         catch future bugs in the fast variants.
86418
86419 2003-10-20  Bruno Haible  <bruno@clisp.org>
86420
86421         * modules/wait-process: New file.
86422         * MODULES.html.sh (func_all_modules): Add wait-process.
86423
86424 2003-10-20  Bruno Haible  <bruno@clisp.org>
86425
86426         * m4/wait-process.m4: New file.
86427
86428 2003-10-20  Bruno Haible  <bruno@clisp.org>
86429
86430         * lib/wait-process.h: New file, from GNU gettext.
86431         * lib/wait-process.c: New file, from GNU gettext.
86432
86433 2003-10-19  Jim Meyering  <jim@meyering.net>
86434
86435         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
86436         HPUX 10.20.
86437
86438 2003-10-18  Karl Berry  <karl@gnu.org>
86439
86440         * config/config.guess: update from config.
86441
86442 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86443
86444         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
86445         (getgroups): First arg is int, not size_t.
86446         Don't let 'free' mangle errno.
86447
86448 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86449
86450         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
86451
86452 2003-10-16  Karl Berry  <karl@gnu.org>
86453
86454         * config/config.{guess,sub}: update from config.
86455
86456 2003-10-16  Jim Meyering  <jim@meyering.net>
86457
86458         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
86459         memcpy.
86460
86461 2003-10-15  Paul Eggert  <eggert@twinsun.com>
86462
86463         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
86464         (SIZE_MAX): Remove.
86465         (new_exclude, add_exclude_file): Initial size no longer needs to
86466         be a power of 2.
86467         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
86468         our own address arithmetic overflow checking.
86469
86470         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
86471         (fnmatch): Do not alloca more than 2000 wide characters;
86472         instead, use malloc for large buffers.
86473         Check for address arithmetic overflow, and return -1
86474         with errno set to ENOMEM in that case.
86475         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
86476         (NEW_PATTERN): Do not alloca more than 8000 bytes;
86477         instead, return -1.  Check for address arithmetic overflow.
86478
86479 2003-10-14  Paul Eggert  <eggert@twinsun.com>
86480
86481         Handle invalid suffixes and overflow independently, so that
86482         callers can treat them independently as needed.  Fix some bugs in
86483         suffix handling, e.g., "100k@" was not diagnosed as an invalid
86484         suffix for a human-readable blocksize.  The major caller-visible
86485         change is the addition of a new
86486         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
86487         that both overflow and suffix chars were found.
86488
86489         * lib/human.c (humblock): Don't check separately for invalid suffix
86490         char; that is xstrtoumax's job (now that its bug is fixed).
86491         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
86492         INTMAX_MAX]: New macros.
86493         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
86494         TYPE_MAXIMUM): New macros.
86495         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
86496         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
86497         if overflow occurs, as it's what __strtol does and it's more useful
86498         in practice.
86499         (__xstrtol): If __strtol reports some error other than ERANGE,
86500         reflect it to the caller as LONGINT_INVALID.  If it reports
86501         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
86502         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
86503         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
86504         value.
86505         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86506         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86507         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86508         [defined UINTMAX_MAX]: New macros.
86509
86510 2003-10-14  Bruno Haible  <bruno@clisp.org>
86511
86512         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86513
86514 2003-10-14  Bruno Haible  <bruno@clisp.org>
86515
86516         * m4/sig_atomic_t: New file, from GNU gettext.
86517         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86518
86519 2003-10-14  Bruno Haible  <bruno@clisp.org>
86520
86521         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86522         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86523         Also use volatile where needed.
86524
86525 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86526
86527         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86528         Change maintainer from Bruno Haible to 'all'.
86529
86530 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86531
86532         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86533
86534 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86535
86536         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86537         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86538         and define in terms of the other primitives.
86539         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86540         (SIZE_MAX): Define if not already defined.
86541         (array_size_overflow): New function.
86542         (xalloc_die): Abort instead of exiting if 'error' returns.
86543         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86544         (xmalloc, xrealloc): Use them.
86545         (xcalloc): Check for address arithmetic overflow.
86546         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86547         a bit faster than strcpy.
86548
86549 2003-10-10  Simon Josefsson  <jas@extundo.com>
86550
86551         * modules/argp (Depends-on): Add restrict and strcase.
86552
86553 2003-10-10  Simon Josefsson  <jas@extundo.com>
86554
86555         * m4/argp.m4: Add AC_C_INLINE.
86556
86557 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86558
86559         Merge getpass from libc, plus a few fixes.
86560
86561         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86562         Include <stdbool.h>.
86563         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86564         __fsetlocking to empty.
86565         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86566         do include <bits/libc-lock.h>.
86567         Do not include <fcntl.h>; not needed.
86568         [_LIBC]: Include <wchar.h>.
86569         (NOTCANCEL_MODE): New macro.
86570         (flockfile, funlockfile) [_LIBC]: New macros.
86571         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86572         [!_LIBC]: New macros.
86573         (call_fclose): New function.
86574         (getpass): Use it.  Save tty stream separately; this simplifies the
86575         code and makes it more reliable if stdin happens to equal stdout.
86576         Invoke __fsetlocking on tty.
86577         Handle thread cancellation if needed.
86578         Namespace cleanup (use __tcgetattr, __getline).
86579         Use bool for Booleans.
86580         [USE_IN_LIBIO]: Handle wide streams.
86581         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86582         stream might go where.
86583
86584         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86585         doesn't have to include <stdio.h> before us.
86586         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86587         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86588         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86589         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86590         if not declared, so that we can use getpass.c code from libc without
86591         rewriting it.
86592         (flockfile, ftrylockfile, funlockfile): New macros.
86593
86594 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86595
86596         * modules/getpass: Depend on stdbool.
86597
86598 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86599
86600         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86601
86602 2003-10-07  Karl Berry  <karl@gnu.org>
86603
86604         * config/config.{guess,sub}: update from config.
86605
86606 2003-10-06  Jim Meyering  <jim@meyering.net>
86607             Bruno Haible  <bruno@clisp.org>
86608
86609         This lets translators provide better translations for the
86610         "Written by ..." part of --version output.
86611         * lib/version-etc.h: Include stdarg.h.
86612         (version_etc_copyright): Declare as readonly.
86613         (version_etc): Make this function variadic with a NULL-terminated list
86614         of author name strings.
86615         (version_etc_va): New declaration.
86616         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86617         (version_etc_copyright): Declare as readonly.
86618         (version_etc_va): New function. Provide a different translatable string
86619         for each possible number of authors < 10. Abbreviate when there are 10
86620         authors or more.
86621         (version_etc): Make this function variadic. Call version_etc_va.
86622         Suggestion from Gary V. Vaughan.
86623
86624         * lib/long-options.h (parse_long_options): Change prototype: the
86625         authors string is moved to the end and becomes variadic.
86626         * lib/long-options.c: Include stdarg.h.
86627         (parse_long_options): Make this function variadic, too.
86628         Call version_etc_va, not version_etc.
86629
86630 2003-10-06  Bruno Haible  <bruno@clisp.org>
86631
86632         * modules/version-etc-2: Remove file.
86633         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86634
86635 2003-10-06  Bruno Haible  <bruno@clisp.org>
86636
86637         * modules/fatal-signal: New file.
86638         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86639
86640 2003-10-06  Bruno Haible  <bruno@clisp.org>
86641
86642         * m4/fatal-signal.m4: New file.
86643         * m4/signalblocking.m4: New file, from GNU gettext.
86644
86645 2003-10-06  Bruno Haible  <bruno@clisp.org>
86646
86647         * lib/version-etc-2.h: Remove file.
86648         * lib/version-etc-2.c: Remove file.
86649
86650 2003-10-06  Bruno Haible  <bruno@clisp.org>
86651
86652         * lib/fatal-signal.h: New file, from GNU gettext.
86653         * lib/fatal-signal.c: New file, from GNU gettext.
86654
86655 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86656
86657         * README: Rework advice for preventing empty .o files.
86658         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
86659         not <sys/types.h>.
86660
86661 2003-10-04  Karl Berry  <karl@gnu.org>
86662
86663         * lib/argp*: update from libc.
86664
86665 2003-10-04  Karl Berry  <karl@gnu.org>
86666
86667         * config/config.{guess,sub}: update from config.
86668
86669 2003-10-02  Bruno Haible  <bruno@clisp.org>
86670
86671         * modules/lchown (Include): Add lchown.h.
86672         * modules/time_r (Include): Use "..." syntax.
86673         * modules/xgetdomainname (Include): Add xgetdomainname.h.
86674
86675 2003-10-01  Simon Josefsson  <jas@extundo.com>
86676
86677         * MODULES.html.sh (func_all_modules): Move gethostname from section
86678         'based on' to section 'lacking' POSIX:2001.
86679
86680 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
86681
86682         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
86683         to output mode on the same stream.
86684
86685 2003-09-29  Paul Eggert  <eggert@twinsun.com>
86686
86687         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
86688         Fix arg typo in previous patch.
86689
86690 2003-09-28  Jim Meyering  <jim@meyering.net>
86691
86692         * lib/error.c: Correct cpp indentation.
86693
86694 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86695
86696         * modules/free: New file.
86697
86698 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86699
86700         * m4/free.m4: New file.
86701
86702 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86703
86704         * lib/minmax.h (MIN, MAX)
86705         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
86706         Omit the special code that used __typeof__, since we worry that
86707         it could be more trouble than it's worth.  See:
86708         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
86709         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
86710
86711         * lib/free.c: New file.
86712
86713 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
86714
86715         Trivial fixes to Makefile.am parts of module listings.
86716         * modules/strstr: Append strstr.h to lib_SOURCES.
86717         * modules/strcase: Likewise, for strcase.h.
86718
86719 2003-09-27  Karl Berry  <karl@gnu.org>
86720
86721         * config/mkinstalldirs: update from automake.
86722
86723 2003-09-26  Paul Eggert  <eggert@twinsun.com>
86724
86725         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
86726         (error_tail): Do not loop, reallocating temporary buffer, since
86727         the output cannot contain more wide characters than the input
86728         contains bytes, the size must be big enough already.  This avoids
86729         one potential size overflow calculation.  Check for size overflow
86730         when calculating temporary buffer size.  Free temporary buffer
86731         when done, if it was allocated with malloc; this plugs a memory
86732         leak.  Remove casts from void * to pointers, that are no longer
86733         needed now that we're assuming C89 or better.
86734
86735         Merge error changes from glibc.
86736
86737         * lib/error.c, error.h: Update copyright notice header to match glibc.
86738         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
86739         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
86740         Disable cancellation while printing error.
86741         * lib/error.h: Prepend __ to parameter names.
86742
86743 2003-09-26  Jim Meyering  <jim@meyering.net>
86744
86745         * lib/error.c (error_tail): Move some declarations
86746         into inner scope where the local variables are used.
86747
86748 2003-09-26  Bruno Haible  <bruno@clisp.org>
86749
86750         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
86751         stpncpy().
86752         Don't define stpncpy through config.h; it's now done through stpncpy.h.
86753
86754 2003-09-26  Bruno Haible  <bruno@clisp.org>
86755
86756         * lib/stpncpy.h (gnu_stpncpy): New declaration.
86757         (stpncpy): Define as alias for gnu_stpncpy.
86758         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
86759
86760 2003-09-25  Simon Josefsson  <jas@extundo.com>
86761
86762         * lib/xgetdomainname.h: New file.
86763         * lib/xgetdomainname.c: New file.
86764
86765 2003-09-25  Simon Josefsson  <jas@extundo.com>
86766             Bruno Haible  <bruno@clisp.org>
86767
86768         * modules/getdomainname: New file.
86769         * modules/xgetdomainname: New file.
86770         * MODULES.html.sh (func_all_modules): Add getdomainname,
86771         xgetdomainname.
86772
86773 2003-09-25  Simon Josefsson  <jas@extundo.com>
86774             Bruno Haible  <bruno@clisp.org>
86775
86776         * m4/getdomainname.m4: New file.
86777
86778 2003-09-25  Simon Josefsson  <jas@extundo.com>
86779             Bruno Haible  <bruno@clisp.org>
86780
86781         * lib/getdomainname.h: New file.
86782         * lib/getdomainname.c: New file.
86783
86784 2003-09-25  Karl Berry  <karl@gnu.org>
86785
86786         * lib/argp-fmtstream.c, argp-help.c: update from libc.
86787
86788 2003-09-25  Karl Berry  <karl@gnu.org>
86789
86790         * config/install-sh: update from automake.
86791
86792 2003-09-25  Bruno Haible  <bruno@clisp.org>
86793
86794         * modules/version-etc-2: New file, from modules/version-etc with
86795         modifications.
86796         * MODULES.html.sh (func_all_modules): Add version-etc-2.
86797
86798 2003-09-25  Bruno Haible  <bruno@clisp.org>
86799
86800         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
86801         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
86802
86803 2003-09-24  Simon Josefsson  <jas@extundo.com>
86804
86805         * modules/xgethostname: Add xgethostname.h.
86806
86807 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86808
86809         * lib/linebuffer.c (freebuffer): Don't free the argument, just
86810         the buffer associated with the argument.  Bug reported by
86811         Simon Josefsson.
86812
86813 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86814
86815         * README: Document assumptions that 'int' is at least 32 bits
86816         wide, that integer arithmetic is 2's complement without overflow,
86817         that there are no holes in integer values, that adding sizes of
86818         two nonoverlapping objects can't overflow, and that all-bits-zero
86819         yields scalar zero.  Fix spelling and capitalization typos.
86820
86821 2003-09-19  Karl Berry  <karl@gnu.org>
86822
86823         * lib/argp.h: update from libc.
86824
86825 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86826
86827         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
86828         to avoid spurious warnings like "AC_RUN_IFELSE was called before
86829         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
86830
86831 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86832
86833         * gnulib-tool: Use "test -h", not "test -L", for portability
86834         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
86835         (tags_regexp): Remove, since \| doesn't conform to POSIX.
86836         (sed_extract_prog): Issue s commands one-by-one, rather than
86837         using \| in one s command.
86838
86839 2003-09-16  Paul Eggert  <eggert@twinsun.com>
86840
86841         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
86842         input error, instead of returning NULL the next time we are called
86843         (and therefore losing track of errno).
86844
86845 2003-09-16  Bruno Haible  <bruno@clisp.org>
86846
86847         * gnulib-tool (func_create_testdir): Warn about duplicated
86848         dependencies.
86849
86850 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86851
86852         * modules/argmatch, modules/fatal, modules/obstack,
86853         modules/xalloc, modules/xgethostname: Sort dependencies by
86854         importance, not alphabetically.
86855
86856 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86857
86858         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
86859         fails, so that the caller gets the proper errno.
86860
86861         * lib/readutmp.c (read_utmp): Likewise.
86862         Check for fstat error.  Close stream and free storage
86863         when failing.
86864
86865 2003-09-14  Karl Berry  <karl@gnu.org>
86866
86867         * config/srclist.txt (strdup.c): disable for c89 changes.
86868
86869 2003-09-14  Jim Meyering  <jim@meyering.net>
86870
86871         * lib/getloadavg.c: Correct cpp indentation.
86872         * lib/strdup.c: Likewise.
86873         * lib/vasnprintf.c: Likewise.
86874
86875 2003-09-14  Bruno Haible  <bruno@clisp.org>
86876
86877         * modules/fwriteerror: New file.
86878         * MODULES.html.sh (func_all_modules): Add fwriteerror.
86879
86880 2003-09-14  Bruno Haible  <bruno@clisp.org>
86881
86882         * lib/fwriteerror.h: New file.
86883         * lib/fwriteerror.c: New file.
86884
86885 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86886
86887         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
86888         modules/xgethostname, modules/xalloc: Depend on exit.
86889
86890 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86891
86892         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
86893
86894         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
86895         and AC_MINIX, too, so that their extensions are available.
86896
86897         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
86898         This macro has been superseded by gl_BACKUPFILE.
86899
86900         More patches to assume C89 or better.
86901
86902         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
86903
86904         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
86905         unconditionally.
86906         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
86907         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
86908         Include <string.h>, <stdlib.h> unconditionally.
86909         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
86910         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
86911         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
86912         headers or for string.h.
86913         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
86914         or strtoul.
86915
86916         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
86917         headers.
86918         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
86919         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86920         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
86921         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
86922         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86923         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
86924         memcpy, memset.
86925         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
86926         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
86927         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
86928         strtol.
86929         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
86930         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
86931         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
86932         strtoul.
86933
86934 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86935
86936         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
86937         * lib/obstack.c [!defined _LIBC]: Likewise.
86938         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
86939         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
86940         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
86941
86942         More changes to assume C89 or better.
86943
86944         * lib/error.c (error_tail): Assume vprintf.
86945
86946         * lib/argmatch.c (getenv): Remove decl.
86947         * lib/progreloc.c (get_full_program_name): Define via prototype.
86948         * lib/setenv.c (clearenv): Likewise.
86949         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
86950         needed.
86951         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
86952         (malloc, memcpy): Remove decls.
86953         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
86954         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
86955         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86956         (memcpy): Remove macro.
86957         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
86958         (__P): Remove.  All uses removed.
86959         (PTR): Remove.  All uses changed to void *.
86960         (CHAR_BIT, NULL): Remove.
86961         (spaces, zeros, memset_space, memset_zero)
86962         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
86963         Remove.
86964         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
86965         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
86966         Define with prototype.
86967         Remove now-unnecessary prototype decl.
86968         (extra_args_spec): Assume ANSI C.  All uses changed.
86969         (extra_args_spec_iso): Remove.
86970         (my_strftime, emacs_strftimeu): Define via prototype.
86971         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
86972         unconditionally.
86973         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
86974         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
86975         (strtoul, strtol): Remove decls.
86976         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
86977         LONG_MAX): Remove.
86978         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86979         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
86980         (LOCALE_PARAM_PROTO): New macro.
86981         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
86982         (INTERNAL (strtol), strtol): Define with a prototype.
86983         (PARAMS): Remove.  All uses removed.
86984         * lib/tempname.c: Include <string.h> unconditionally.
86985         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
86986         * lib/xgethostname.c (main): Define with a prototype.
86987         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
86988         Include <stdlib.h> unconditionally.
86989         (calloc, malloc, realloc, free): Remove decls.
86990         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
86991         Include <stdlib.h> unconditionally.  Sort include file names.
86992         (strtod): Remove.
86993         (xstrtod): Define with a prototype.
86994         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
86995         (strtol, strtoul): Remove decls.
86996
86997 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86998
86999         More patches to assume C89 or better.
87000         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87001         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87002         string.h, memchr, STDC_HEADERS.
87003
87004 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87005
87006         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87007         Include <stdlib.h>, <string.h> unconditionally.
87008         Remove now-unnecessary cast to char *.
87009         * lib/strnlen.c: Include <string.h> unconditionally.
87010         * lib/yesno.c (yesno): Define with a prototype.
87011
87012 2003-09-11  Bruno Haible  <bruno@clisp.org>
87013
87014         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87015
87016 2003-09-10  Jim Meyering  <jim@meyering.net>
87017
87018         * lib/error.c: Correct indentation of cpp directives.
87019
87020 2003-09-10  Bruno Haible  <bruno@clisp.org>
87021
87022         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87023         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87024         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87025         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87026         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87027         <stdlib.h> and <string.h> checks.
87028         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87029         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87030
87031 2003-09-10  Bruno Haible  <bruno@clisp.org>
87032
87033         * lib/strcspn.c: Include <string.h> unconditionally.
87034         * lib/strpbrk.c: Include <string.h> unconditionally.
87035         * lib/strstr.c: Include <string.h> unconditionally.
87036         * lib/unicodeio.c: Include <string.h> unconditionally.
87037         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87038         * lib/unsetenv.c: Likewise.
87039         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87040         * lib/yesno.c: Include <stdlib.h> unconditionally.
87041         (rpmatch): Add prototype.
87042
87043 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87044
87045         More patches to assume C89 or better.
87046         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87047         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87048         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87049         or for string.h.
87050         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87051         stdlib.h.
87052         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87053         C headers.
87054         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87055         string.h.
87056         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87057         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87058         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87059         or for string.h.
87060         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87061         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87062         C headers.
87063         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87064         memcpy.
87065         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87066         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87067         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87068         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87069         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87070         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87071         string.h, free.
87072         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87073         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87074         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87075         C headers, or for string.h.
87076         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87077         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87078         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87079         headers, memory.h, stdlib.h, string.h, strings.h.
87080         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87081         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87082         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87083         strchr.
87084         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87085         headers, memory.h, string.h.
87086         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87087         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87088         free.
87089         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87090         headers.
87091         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87092         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87093         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87094         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87095         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87096
87097 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87098
87099         More K&R removal.
87100
87101         * lib/acosl.c (main): Use a prototype.
87102         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87103         tanl.c: Likewise.
87104
87105         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87106
87107         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87108         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87109         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87110         with a prototype.
87111         * lib/getopt.c (const): Remove macro.
87112         Include <string.h> unconditionally.
87113         (my_index): Remove; all uses changed to strchr.
87114         (strlen): Remove decl.
87115         (exchange): Remove forward decl; no longer needed.
87116         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87117         Define with prototype.
87118         * lib/getopt1.c (const): Remove macro.
87119         (getopt_long, getopt_long_only, main): Define with prototype.
87120
87121         * lib/getugroups.c: Include <string.h> unconditionally.
87122
87123         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87124         (getusershell, setusershell, endusershell, readname, main):
87125         Define with prototypes.
87126
87127         * lib/group-member.c: Include group-member.h first.
87128         Include <stdlib.h> unconditionally.
87129
87130         * lib/hard-locale.c: Include hard-locale.h first.
87131         Include <stdlib.h>, <string.h> unconditionally.
87132
87133         * lib/hash.c (free, malloc): Remove decls.
87134         Include <stdlib.h> unconditionally.
87135
87136         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87137         (getenv): Do not declare.
87138
87139         * lib/idcache.c: Include <string.h> unconditionally.
87140
87141         * lib/long-options.c: Include long-options.h first, to test interface.
87142         Include <stdlib.h> unconditionally.
87143
87144         * lib/makepath.c: Include makepath.h first, to test interface.
87145         Include <stdlib.h> and <string.h> unconditionally.
87146
87147         * lib/linebuffer.c: Include <stdlib.h>.
87148         (free): Remove decl.
87149
87150         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87151         stddef.h. rpl_malloc returns void *, not char *.
87152         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87153         prototype.
87154
87155         * lib/md5.h: Include <limits.h> unconditionally.
87156         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87157         (__P): Remove; all uses removed.
87158         * lib/md5.c: Include "md5.h" first.
87159         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87160         md5_buffer, md5_process_bytes, md5_process_block):
87161         Define with prototypes.
87162         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87163         * lib/sha.c: Include "sha.h" first.
87164         Include <stdlib.h>, <string.h> unconditionally.
87165
87166         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87167         * lib/memcmp.c (__ptr_t): Likewise.
87168         * lib/memrchr.c (__ptr_t): Likewise.
87169         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87170         Include <string.h> unconditionally.
87171         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87172         * lib/memchr.c: Include <stdlib.h> unconditionally.
87173         * lib/memchr.c (LONG_MAX): Remove.
87174         * lib/memrchr.c (LONG_MAX): Likewise.
87175         * lib/memchr.c (__memchr): Define via a prototype.
87176         * lib/memrchr.c (__memrchr): Likewise.
87177         * lib/memcmp.c (__P): Remove, and remove all uses.
87178         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87179         Remove forward decls; no longer needed.
87180         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87181         Use types required by C89 in prototype.
87182
87183         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87184         * lib/savedir.c: Likewise.
87185         * lib/mkdir.c (free): Remove decl.
87186         * lib/rmdir.c (rmdir): Define with a prototype.
87187         * lib/savedir.c: Include savedir.h first, to test interface.
87188
87189         * lib/mktime.c (STDC_HEADERS): Remove.
87190         Include <stdlib.h>, <string.h> unconditionally.
87191
87192         * lib/modechange.c: Include <stdlib.h> unconditionally.
87193         (malloc): Remove decl.
87194
87195         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87196         (free): Remove decl.
87197
87198         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87199         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87200         (This type really should be intptr_t, but that's a C99ism.)
87201         (_obstack_memcpy): Remove: all uses changed to memcpy.
87202         Include <string.h> unconditionally.
87203         (struct obstack): Assume __STDC__ for types of members
87204         chunkfun, freefun, extra_arg.
87205         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87206         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87207         obstack_begin, obstack_specify_allocation,
87208         obstack_specify_allocation_with_arg, obstack_chunkfun,
87209         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87210         Remove unprototyped decls and the macros that use them.
87211         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87212         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87213         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87214         (defined __STDC__ && __STDC__)]:
87215         Remove nonprototyped code.
87216         Include <stdlib.h> unconditionally.
87217         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87218         _obstack_allocated_p, _obstack_free, obstack_free,
87219         _obstack_memory_used, print_and_abort):
87220         Define using prototypes.
87221         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87222         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87223         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87224         obstack_next_free, obstack_object_size, obstack_room) [0]:
87225         Remove unused, unprototyped code.
87226
87227         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87228
87229         * lib/physmem.c (physmem_total, physmem_available, main): Define
87230         with prototypes.
87231
87232         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87233         (main): Define with a prototype.
87234
87235         * lib/posixver.c (getenv): Remove decl.
87236
87237         * lib/putenv.c (malloc): Returns void *, not char *.
87238         Include <string.h> unconditionally.
87239         (strchr, memcpy, NULL): Do not define.
87240
87241         * lib/readtokens.c: Include readtokens.h first, to test interface.
87242         Include <stdlib.h>, <string.h> unconditionally.
87243         (init_tokenbuffer): Define with a prototype.
87244
87245         * lib/regex.c (PARAMS): Remove.  All uses removed.
87246         All uses of _RE_ARGS removed, too.
87247         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87248         unconditionally.
87249         (bzero): Assume memset exists.
87250         (memcmp, memcpy, NULL): Remove.
87251         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87252         char, or assignments to local vars of type signed char.
87253         (init_syntax_once, PREFIX(extract_number_and_incr),
87254         PREFIX(print_partial_compiled_pattern),
87255         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87256         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87257         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87258         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87259         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87260         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87261         wcs_compile_range, byte_compile_range, truncate_wchar,
87262         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87263         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87264         count_mbs_length, wcs_re_match_2_internal,
87265         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87266         PREFIX(alt_match_null_string_p),
87267         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87268         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87269         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87270         now-unnecessary declaration, if any.
87271         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87272         regcomp, regexec):
87273         Remove now-unnecessary casts among pointer types.
87274         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87275
87276         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87277         (free): Remove decl.
87278
87279         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87280
87281         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87282         (free): Remove decl.
87283
87284         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87285         * lib/xgetcwd.c: Likewise.
87286
87287         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87288         (free): Remove decl.
87289
87290         * lib/strchrnul.c (strchrnul): Define with a prototype.
87291         Fix bug: c_in was not converted to char before searching.
87292
87293         The following changes are not K&R related:
87294
87295         * lib/group-member.h: Include <sys/types.h>, so that this file is
87296         self-contained.
87297         * lib/makepath.h: Likewise.
87298
87299         * lib/getusershell.c (readname, default_index, line_size, readname):
87300         Use size_t, not int, for sizes.
87301         (readname): If the size overflows, report an error instead of
87302         looping forever.
87303
87304 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87305
87306         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87307         libc.
87308
87309 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87310
87311         * README: New section: portability guidelines.
87312
87313 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87314
87315         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87316         C89 spec.
87317
87318 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87319
87320         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
87321
87322 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87323
87324         Assume C89 or better; remove K&R cruft.
87325         A few of these changes were first proposed by Derek Robert Price
87326         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
87327
87328         * lib/addext.c: Include <string.h> unconditionally.
87329         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
87330         Don't declare getenv or malloc.
87331
87332         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
87333         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
87334         (NULL): Remove.
87335         (find_stack_direction, alloca): Use prototypes.
87336
87337         * lib/atexit.c (atexit): Define using a prototype.
87338
87339         * lib/basename.c, dirname.c, stripslash.c:
87340         Include <string.h> unconditionally.
87341
87342         * lib/bcopy.c: Include <stddef.h>.
87343         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
87344
87345         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
87346
87347         * lib/error.h (error, error_at_line, error_print_progname)
87348         [! (defined (__STDC__) && __STDC__)]: Remove decls.
87349         * lib/error.c: Include error.h first, to check interface.
87350         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87351         (VA_START): Remove; all uses changeed to va_start.
87352         (exit, strerror): Remove decls.
87353         (error_print_progname): Prototype uncondionally.
87354         Don't include <errno.h>; no longer needed.
87355         (private_strerror): Remove.
87356         (error_tail): Always define.
87357         (error, error_at_line): Assume C89 or better; always use prototypes.
87358         * lib/fatal.c: Include "fatal.h" first, to test interface.
87359         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87360         (VA_START): Remove; all uses changed to va_start.
87361         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87362         this case.
87363         (exit): Remove decl.
87364         (fatal): Prototype unconditionally.  Assume va_start works.
87365         Abort at end, to pacify gcc.
87366
87367         * lib/euidaccess.c (main): Define with a prototype.
87368
87369         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87370
87371         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87372
87373         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87374         prototypes.
87375         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87376         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87377         (getenv): Remove decl.
87378         (fnmatch): Define using a prototype.
87379         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87380         (FCT): Define using a prototype.
87381
87382         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87383
87384         * lib/gethostname.c: Include <stddef.h>.
87385         (gethostname): Define with prototype.  Length is size_t, not int.
87386
87387 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87388
87389         Assume C89 or better; remove K&R cruft.
87390         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87391         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87392         string.h, getenv, malloc.
87393         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87394         headers.
87395         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
87396         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
87397         do not check for strerror.
87398         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
87399         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
87400         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
87401         do not check for doprnt or vprintf.
87402         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
87403         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
87404
87405 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87406
87407         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
87408         getversion.c should have been removed then, but was accidentally
87409         preserved.
87410
87411         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
87412         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
87413
87414 2003-09-08  Karl Berry  <karl@gnu.org>
87415
87416         * config/config.sub, config.guess, srclistvars.sh: update from savannah
87417                 config, forget about prep.
87418
87419         * config/depcomp, missing: update from automake.
87420
87421 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87422
87423         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
87424         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87425
87426 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87427
87428         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
87429         copy_tm_result.  Bug reported by Simon Josefsson in
87430         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87431
87432 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87433
87434         * m4/time_r.m4: New file.
87435         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
87436         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
87437         is. Check for timegm declaration.
87438         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
87439         Do not check for gmtime_r.
87440         Replace mktime if __mktime_internal does not exist and if mktime
87441         hasn't been replaced already.
87442
87443 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87444
87445         * lib/time_r.c, lib/time_r.h: New files.
87446
87447         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
87448         __localtime_r.
87449         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
87450         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
87451
87452         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
87453         __gmtime_r.
87454         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
87455         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
87456         Include <time_r.h>.
87457
87458         * lib/timegm.c: Switch to glibc implementation, with the following
87459         changes:
87460         [defined HAVE_CONFIG_H]: Include <config.h>.
87461         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
87462         (__mktime_internal) [!defined _LIBC]: New decl.
87463         (__gmtime_r) [!defined _LIBC]: New macro and function.
87464         (timegm): Use a prototype, since gnulib assumes C89.
87465         Do not bother declaring tmp to be const, as it's not really usefu.
87466         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
87467         (timegm): Declare only if HAVE_DECL_TIMEGM.
87468
87469 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87470
87471         * MODULES.html.sh (func_all_modules): Add time_r.
87472         * modules/time_r: New file.
87473         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
87474         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
87475
87476 2003-09-03  Paul Eggert  <eggert@twinsun.com>
87477
87478         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
87479         Bug reported by Lute Kamstra in
87480         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
87481
87482         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
87483         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
87484         course with correspondingly smaller numbers for tomorrow and
87485         yesterday.  From Tadayoshi Funaba.  Originally installed into
87486         sh-utils on 1999-08-07, but the patch got lost (I guess during the
87487         coreutils merge?).
87488
87489 2003-08-31  Simon Josefsson  <jas@extundo.com>
87490
87491         * modules/timegm: New file.
87492         * MODULES.html.sh (func_all_modules): Add timegm.
87493
87494 2003-08-31  Simon Josefsson  <jas@extundo.com>
87495
87496         * m4/timegm.m4: New file.
87497
87498 2003-08-31  Simon Josefsson  <jas@extundo.com>
87499
87500         * lib/timegm.h: New file.
87501         * lib/timegm.c: New file.  Based on
87502         wget-1.8.2/src/http.c:mktime_from_utc.
87503
87504 2003-08-31  Karl Berry  <karl@gnu.org>
87505
87506         * lib/argp.h: update from libc.
87507
87508 2003-08-28  Bruno Haible  <bruno@clisp.org>
87509
87510         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87511         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87512         followed by '#define fnmatch fnmatch_posix' gives an error.
87513
87514 2003-08-28  Bruno Haible  <bruno@clisp.org>
87515
87516         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87517         warning on QNX, which defines O_BINARY to 000000.
87518
87519 2003-08-27  Jim Meyering  <jim@meyering.net>
87520
87521         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87522         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87523         would fail after 32.  Reported by Danny Levinson.  Details here:
87524         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87525
87526 2003-08-24  Bruno Haible  <bruno@clisp.org>
87527
87528         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87529         MSVC7 <stdio.h> is included later.
87530
87531 2003-08-22  Simon Josefsson  <jas@extundo.com>
87532
87533         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87534
87535 2003-08-20  Karl Berry  <karl@gnu.org>
87536
87537         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87538
87539 2003-08-20  Bruno Haible  <bruno@clisp.org>
87540
87541         * modules/progname: New file.
87542         * MODULES.html.sh (func_all_modules): Add progname.
87543
87544 2003-08-20  Bruno Haible  <bruno@clisp.org>
87545
87546         * lib/progname.h: New file, from GNU gettext.
87547         * lib/progname.c: New file, from GNU gettext.
87548         * lib/progreloc.c: New file, from GNU gettext.
87549
87550 2003-08-19  Jim Meyering  <jim@meyering.net>
87551
87552         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87553         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87554
87555 2003-08-19  Bruno Haible  <bruno@clisp.org>
87556
87557         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87558         more.
87559
87560 2003-08-19  Bruno Haible  <bruno@clisp.org>
87561
87562         * lib/xstrdup.c: Assume <string.h> exists.
87563
87564 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87565
87566         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87567         in makefile rules.
87568
87569 2003-08-18  Jim Meyering  <jim@meyering.net>
87570
87571         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87572         * m4/lib-ld.m4: Likewise.
87573
87574 2003-08-18  Jim Meyering  <jim@meyering.net>
87575
87576         * lib/setenv.h: Indent nested cpp directive.
87577         * lib/vasnprintf.c: Remove trailing blanks.
87578
87579 2003-08-17  Simon Josefsson  <jas@extundo.com>
87580
87581         * modules/xstrndup: New file.
87582         * MODULES.html.sh (func_all_modules): Add xstrndup.
87583
87584 2003-08-17  Simon Josefsson  <jas@extundo.com>
87585
87586         * modules/argp: Fix autoconf macro name. Add more dependencies.
87587
87588 2003-08-17  Simon Josefsson  <jas@extundo.com>
87589
87590         * m4/xstrndup.m4: New file.
87591
87592 2003-08-17  Simon Josefsson  <jas@extundo.com>
87593
87594         * m4/argp.m4: New file.
87595
87596 2003-08-17  Simon Josefsson  <jas@extundo.com>
87597             Bruno Haible  <bruno@clisp.org>
87598
87599         * lib/xstrndup.h: New file.
87600         * lib/xstrndup.c: New file.
87601
87602 2003-08-17  Bruno Haible  <bruno@clisp.org>
87603
87604         * modules/strndup (Files, Include): Add lib/strndup.h.
87605
87606 2003-08-17  Bruno Haible  <bruno@clisp.org>
87607
87608         * modules/euidaccess (Files): Add lib/euidaccess.h.
87609
87610 2003-08-17  Bruno Haible  <bruno@clisp.org>
87611
87612         * lib/strndup.h: New file.
87613
87614 2003-08-17  Bruno Haible  <bruno@clisp.org>
87615
87616         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87617         like AC_GNU_SOURCE.
87618         * modules/extensions (configure.ac): Comment out the invocation of
87619         gl_USE_SYSTEM_EXTENSIONS.
87620
87621 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87622
87623         Merges from coreutils, etc.
87624         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87625         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87626         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87627         fixing a typo.
87628         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87629         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87630
87631 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87632
87633         Document merge from coreutils.
87634         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87635         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87636         * modules/utime: Add m4/utimes-null.m4.
87637
87638 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87639
87640         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87641         space, undoing this 2003-08-12 change:
87642         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87643
87644 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87645
87646         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87647         strtoul.c from libc, undoing this 2003-08-12 change:
87648         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87649
87650 2003-08-16  Jim Meyering  <jim@meyering.net>
87651
87652         Merges from coreutils.
87653         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87654         prefix.  Adjust cache variables similarly.  Create 500 rather than
87655         just 300 files, to exercise bug on Darwin6.5, too.
87656         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87657         $missing_dir.
87658         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
87659         AM_SYS_POSIX_TERMIOS.
87660         Reported by mkc@mathdogs.com.
87661         Also change use of $am_cv_sys_posix_termios
87662         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
87663         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
87664         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
87665         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
87666         in /proc/mounts until it finds one with matching device number.  This
87667         is unnecessary when the FILE argument *is* a mount point.  No stat call
87668         is necessary in that case.  So, disable the statvfs-testing code on
87669         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
87670         as RedHat bug# 84846.
87671         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87672         to 1MB, so as not to render systems with no stack size limit (e.g.,
87673         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87674         Include <unistd.h>.  On some systems,
87675         it is required for the definition of _SC_PAGESIZE.
87676
87677 2003-08-16  Jim Meyering  <jim@meyering.net>
87678
87679         Merge from coreutils.
87680         * lib/xstrtoimax.c: #else #if -> #elif.
87681         * lib/xstrtoumax.c: Likewise.
87682
87683 2003-08-16  Jim Meyering  <jim@meyering.net>
87684
87685         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
87686         * m4/utimes.m4: Removed.
87687         * m4/utimes-null.m4: Renamed from utimes.m4.
87688
87689         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87690         to 1MB, so as not to render systems with no stack size limit (e.g.,
87691         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87692         Include <unistd.h>.  On some systems,
87693         it is required for the definition of _SC_PAGESIZE.
87694
87695 2003-08-16  Jim Meyering  <jim@meyering.net>
87696         and Paul Eggert  <eggert@cs.ucla.edu>
87697
87698         Merges from coreutils, etc.
87699
87700         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
87701         using the latest version from cvs.  This avoids problems with #line
87702         directives using a vendor (Sun) compiler.
87703         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
87704         Don't set GETGROUPS_LIB here; now it's
87705         done via getgroups.m4's wrapper function.
87706         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
87707         rather than just in sh-util/configure.in, so that the
87708         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
87709         same.
87710         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
87711         AC_FUNC_GETLOADAVG where to find getloadavg.c.
87712         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
87713         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
87714         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
87715         Remove code that is now done by the newly-required macros.
87716         Append $(EXEEXT) to DF_PROG.
87717         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
87718         Do not invoke or require the following here,
87719         since prereq.m4 or some gnulib .m4 now does this for us:
87720         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
87721         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
87722         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
87723         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
87724         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
87725         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
87726         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
87727         AC_FUNC_OBSTACK.
87728         Do not replace the following functions, as this is now the job
87729         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
87730         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
87731         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
87732         atexit getpass, strdup, getpagesize.
87733         Replace 'raise'.
87734         Do not check for the following functions, as this is now the job
87735         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
87736         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
87737         setregid.
87738         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
87739         Check for sys/sysctl.h.
87740         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
87741         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
87742         of checking for ssize_t ourselves.
87743
87744         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
87745         Require every macro that gnulib/modules/* suggests for us.
87746         (jm_PREREQ_ADDEXT): New macro.
87747         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
87748         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
87749
87750         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
87751         (gl_PHYSMEM): Use it.
87752         Also check for `table' function.
87753         Check for new headers and functions.
87754         Add check for sys/sysmp.h.
87755         With suggestions from Kaveh Ghazi.
87756         Ignore headers that are present but cannot be compiled.  This
87757         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
87758         C 5.4.
87759
87760 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87761
87762         Document merge from coreutils.
87763         * modules/userspec: Depend on posixver.
87764         * modules/strftime: Depend on tzset.
87765
87766 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87767
87768         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
87769         rather than tab, after '#' in shell-script copyright notices.
87770         Suggested by Bruno Haible.
87771
87772 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87773
87774         * config/srclist-update: Use three spaces, rather than tab, after '#'
87775         in shell-script copyright notices.  Suggested by Bruno Haible.
87776         Remove unnecessary parenthesization in regular expression.
87777
87778 2003-08-15  Jim Meyering  <jim@meyering.net>
87779
87780         Merge from coreutils.
87781         * lib/xgethostname.c: Include <stdlib.h>.
87782         (xghostname): Don't exit for anything other than memory-related
87783         failure; just return NULL.
87784         * lib/userspec.c: Include "posixver.h".
87785         (parse_user_spec): Accept `.' as a separator only
87786         in pre-POSIX-200112 mode.
87787         * lib/strtoimax.c: Use #elif rather than #else #if.
87788         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
87789         Remove function, now that we can rely on a working tzset function.
87790         [!_LIBC]: Ensure that the required autoconf test has been run.
87791         [!defined _NL_CURRENT && HAVE_STRFTIME]:
87792         Use underlying_strftime for %r.
87793         * lib/sha.c: Merge in some clean-up and optimization changes from
87794         glibc.
87795         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
87796         Ensure that it is a multiple of 64.
87797         Rearrange loop exit tests so as to avoid performing an
87798         additional fread after encountering an error or EOF.
87799         * lib/realloc.c: Update copyright date.
87800
87801 2003-08-15  Jim Meyering  <jim@meyering.net>
87802         and Paul Eggert  <eggert@twinsun.com>
87803
87804         Merge from coreutils.
87805         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
87806         member but strut utmpx does not.  Needed for AIX 4.3.3.
87807         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
87808
87809 2003-08-15  Jim Meyering  <jim@meyering.net>
87810         and Paul Eggert  <eggert@cs.ucla.edu>
87811
87812         Merges from coreutils, etc.
87813         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
87814         Require gl_FUNC_TZSET_CLOBBER.
87815         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
87816         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
87817         members.
87818
87819 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87820
87821         Help the merge from coreutils.
87822         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
87823         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
87824         * m4/tzset.m4: Use it too.
87825
87826 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87827
87828         * modules/tzset: New file.
87829
87830 2003-08-14  Jim Meyering  <jim@meyering.net>
87831
87832         Merges from coreutils.
87833         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
87834         variable names, rather than @FNMATCH_H@.
87835         * modules/alloca: Likewise for $(ALLOCA_H).
87836
87837         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
87838         the three copies of the literal target, `fnmatch.h'.
87839         * modules/alloca (alloca.h): Likewise.
87840
87841 2003-08-14  Jim Meyering  <jim@meyering.net>
87842
87843         Merge from coreutils.
87844         * m4/tzset.m4: New file.
87845         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
87846         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
87847         otherwise, AIX 5.1 systems would end up using the latter.
87848         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
87849         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
87850         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
87851         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
87852
87853 2003-08-14  Jim Meyering  <jim@meyering.net>
87854
87855         Merge from coreutils.
87856         * lib/obstack.h: Whitespace changes.
87857         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
87858         and xcalloc return values.
87859         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
87860         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
87861         hang on OSF/1 5.1 for DIR on both local and remote file systems.
87862         Reported by (and fix confirmed by) Nelson H. F. Beebe.
87863         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
87864         error from mntctl.
87865         Use mntctl's return value to drive the entry-processing loop, since
87866         we can't rely on the value of the vmt_length member in the last
87867         entry.  On some systems doing so could result in exhausting
87868         virtual memory.  Based in part on a patch from Mike Jetzer.
87869
87870 2003-08-14  Jim Meyering  <jim@meyering.net>
87871         and Paul Eggert  <eggert@twinsun.com>
87872
87873         Merges from coreutils, plus other fixes.
87874         * lib/physmem.c: Merge in portability changes from gcc/libiberty
87875         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
87876         for credits and details.  Thanks to Kaveh Ghazi for helping
87877         to keep these files in sync.
87878         (ARRAY_SIZE): Define it.
87879         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
87880         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
87881         (memcasecmp): Don't assume size_t fits in unsigned int.
87882         Remove casts and duplicate code.
87883         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
87884         (memcpy): Remove definition.
87885         Merge in some clean-up and optimization changes from glibc.
87886         [BLOCKSIZE]: Move definition to top of file.
87887         Ensure that it is a multiple of 64.
87888         Rearrange loop exit tests so as to avoid performing an
87889         additional fread after encountering an error or EOF.
87890         * lib/md5.h (md5_uintptr): Define.
87891         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
87892         return to the initial working directory.  Preserve errno
87893         for caller.
87894         * lib/idcache.c: Include "xalloc.h".
87895         (xmalloc, xrealloc): Remove decls.
87896         (getuser): Remove casts no longer required in C89.
87897         * lib/human.c: Include stdio.h, for sprintf.
87898         * lib/group-member.c: Include "xalloc.h".
87899         (xmalloc, xrealloc): Remove decls.
87900         (get_group_info): Remove casts no longer required in C89.
87901         * lib/getusershell.c (readname): Remove casts no longer required in
87902         C89.
87903         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
87904         * lib/getline.c: Whitespace fix, from coreutils.
87905
87906 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87907
87908         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
87909         Check for isascii.
87910
87911         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87912         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87913         Undo previous (whitespace-only) change.
87914
87915 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87916
87917         * lib/exclude.c: Include <ctype.h>
87918         (IN_CTYPE_DOMAIN): New macro.
87919         (is_space): New fn.
87920         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
87921         and empty lines.
87922
87923         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87924         Undo previous (whitespace-only) change.
87925
87926 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87927
87928         * config/srclist-update: Change update back to the old behavior,
87929         leaving whitespace alone.  Use one 'sed' command rather than a
87930         pipeline.
87931         (fixlicense): Now a variable, not a function.
87932         (remove_trailing_blanks): Remove.
87933         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
87934         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87935         Undo previous (whitespace-only) change.
87936
87937 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87938
87939         Merge from coreutils.
87940         * modules/euidaccess: Add lib_SOURCES, include for new
87941         file euidaccess.h
87942
87943 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87944
87945         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87946         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87947         Normalize leading white space and remove trailing white space.
87948
87949         Merge from coreutils
87950         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
87951
87952         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
87953         0.12.1.  These files are now being upgraded automatically by
87954         ../config/srclist-update.
87955
87956 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87957
87958         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87959         Normalize leading white space and remove trailing white space.
87960         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
87961         notice, as per ../config/srclist-update.
87962
87963         Merge from coreutils.
87964         * lib/euidaccess.h: New file.
87965         * lib/euidaccess.c: Include it.
87966         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
87967         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
87968         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
87969
87970 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87971
87972         * config/srclist-update: Add copyright notice.
87973         (remove_id_lines, remove_trailing_blanks): New constants.
87974         (fixfile): Use them to normalize spacing a bit in copied files.
87975         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87976         Normalize leading white space and remove trailing white space.
87977
87978         * config/texinfo.tex: Sync with texinfo.
87979
87980         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
87981         strtoul.c from libc, to merge coreutils whitespace changes.
87982
87983         * config/srclist.txt: Get the following m4 files from gettext:
87984         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
87985         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
87986         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
87987         wint_t.m4.
87988
87989 2003-08-12  Karl Berry  <karl@gnu.org>
87990
87991         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
87992         been made.
87993
87994 2003-08-11  Paul Eggert  <eggert@twinsun.com>
87995
87996         * modules/gnu-source, m4/gnu-source.m4:
87997         Remove; we're assuming Autoconf 2.54 or later now.
87998         Suggested by Bruno Haible.
87999         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88000
88001 2003-08-11  Bruno Haible  <bruno@clisp.org>
88002
88003         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88004
88005 2003-08-11  Bruno Haible  <bruno@clisp.org>
88006
88007         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88008         (vasnprintf): Use it instead of wcslen.
88009
88010 2003-08-11  Bruno Haible  <bruno@clisp.org>
88011
88012         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88013         value to ensure that _Bool promotes to int. Use #define for _Bool when
88014         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88015
88016 2003-08-10  Karl Berry  <karl@gnu.org>
88017
88018         * lib/regex.h: update from libc (whitespace fix).
88019
88020 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88021
88022         Merge some files from coreutils.  These changes were
88023         originally made by Jim Meyering.
88024         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88025         many older Unixes require this.
88026         * lib/alloca.c (alloca): Remove cast to argument of free;
88027         no longer needed in C89.
88028         * lib/alloca_.h, regex.h: Fix white space to match
88029         what GNU indent does.
88030
88031 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88032
88033         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88034         apparently Emacs's Unicode mode got confused before my 2003-08-05
88035         checkin.
88036
88037 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88038
88039         * m4/extensions.m4: New file.
88040         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88041         Require gl_USE_SYSTEM_EXTENSIONS.
88042         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88043         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88044
88045 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88046
88047         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88048         * modules/extensions, modules/gnu-source: New files.
88049         * modules/timespec, modules/unlocked-io: Depend on extensions.
88050
88051 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88052
88053         * modules/restrict: New file.
88054         * MODULES.html.sh (func_all_modules): Add restrict.
88055         * modules/regex: Depend on restrict.
88056
88057 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88058
88059         * m4/restrict.m4: New file.
88060         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88061
88062 2003-08-07  Bruno Haible  <bruno@clisp.org>
88063
88064         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88065         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88066
88067 2003-08-07  Bruno Haible  <bruno@clisp.org>
88068
88069         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88070         makes the module 'getndelim2' compatible with the module 'getline'.
88071
88072 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88073
88074         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88075         byte with "\201" to avoid glitches when editing that source file
88076         with multi-gnome-terminal.
88077
88078 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88079
88080         * lib/bumpalloc.h: Remove.
88081
88082 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88083
88084         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88085         * modules/bumpalloc: Remove.
88086
88087 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88088
88089         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88090         GNU coding style.
88091
88092         Merge from coreutils.
88093         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88094         1. From glibc.
88095         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88096         from Karl Berry, implemented by Jim Meyering.
88097         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88098         from Dmitry V. Levin.
88099         Remove anachronistic cast of xrealloc.
88100         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88101         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88102         type. Otherwise, it wouldn't compile with at least /bin/cc on
88103         ymp-cray-unicos9.0.2.X.
88104         Combine two mostly-identical uses of alloca into one.
88105         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88106
88107 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88108
88109         [From Emacs.]
88110
88111         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88112         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88113         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88114         obsolete NLIST_NAME_UNION.
88115         [__GNU__]: Undef BSD and FSCALE.
88116         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88117
88118 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88119
88120         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88121         an enum type, so that it's guaranteed to promote to int.  See:
88122         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88123
88124 2003-08-03  Karl Berry  <karl@gnu.org>
88125
88126         * config/depcomp: update from automake.
88127
88128 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88129
88130         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88131         (strerror): Don't assume that a printable int fits in 14 bytes.
88132
88133 2003-07-31  Bruno Haible  <bruno@clisp.org>
88134
88135         * modules/getpass-gnu: New file.
88136         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88137
88138 2003-07-31  Bruno Haible  <bruno@clisp.org>
88139
88140         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88141
88142 2003-07-24  Karl Berry  <karl@gnu.org>
88143
88144         * config/missing: update from automake.
88145
88146 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88147             Bruno Haible  <bruno@clisp.org>
88148
88149         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88150         * lib/getline.c (getline, getdelim): Likewise.
88151         Remove _GNU_SOURCE define; now it's defined in config.h through
88152         m4/getline.m4.
88153
88154 2003-07-23  Karl Berry  <karl@gnu.org>
88155
88156         * config/config.sub: update from prep.
88157
88158 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88159
88160         * modules/xalloc (Depends-on): Add exitfail.
88161         * modules/xmemcoll: Likewise.
88162
88163 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88164
88165         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88166         over-parenthesization in macros.
88167
88168         Sync with coreutils.
88169
88170         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88171         required by C99.
88172
88173         Use `exit_failure' for xalloc and xmemcoll instead of their own
88174         private exit-failure variables.
88175         * lib/xalloc.h (xalloc_exit_failure): Remove.
88176         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88177         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88178         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88179         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88180         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88181
88182 2003-07-20  Jim Meyering  <jim@meyering.net>
88183
88184         * modules/closeout (Depends-on): Add exitfail.
88185         Suggestion from Bruno Haible.
88186
88187 2003-07-19  Karl Berry  <karl@gnu.org>
88188
88189         * config/config.sub: update from prep.
88190
88191 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88192
88193         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88194         Remove.
88195         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88196         to test that it can stand by itself.  Include "exitfail.h".
88197         Clients should set exit_failure instead.
88198         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88199
88200 2003-07-18  Bruno Haible  <bruno@clisp.org>
88201
88202         * modules/getndelim2: New file.
88203         * modules/getline: Share files with module getndelim2.
88204         * modules/getnline: Depend on getndelim2 instead of sharing files with
88205         it. Add getnline.c to lib_SOURCES.
88206         * MODULES.html.sh (func_all_modules): Add getndelim2.
88207
88208 2003-07-18  Bruno Haible  <bruno@clisp.org>
88209
88210         * m4/getndelim2.m4: New file.
88211         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88212         invoke gl_PREREQ_GETNDELIM2.
88213         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88214         gl_PREREQ_GETNDELIM2.
88215         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88216         gl_GETNDELIM2.
88217
88218 2003-07-18  Bruno Haible  <bruno@clisp.org>
88219
88220         * lib/getndelim2.h: New file.
88221         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88222         getndelim2.h.
88223         (getndelim2): Make non-static. Change return type to ssize_t.
88224         * lib/getline.h: Change argument names.
88225         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88226         * lib/getnline.c: Include getndelim2.h.
88227
88228 2003-07-18  Andreas Schwab  <schwab@suse.de>
88229
88230         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88231
88232 2003-07-17  Karl Berry  <karl@gnu.org>
88233
88234         * config/config.sub: update from prep.
88235
88236 2003-07-17  Bruno Haible  <bruno@clisp.org>
88237
88238         * modules/getnline: New file.
88239         * modules/getline: Add lib/getndelim2.c to source file list.
88240         * MODULES.html.sh (func_all_modules): Add getnline.
88241
88242 2003-07-17  Bruno Haible  <bruno@clisp.org>
88243
88244         * m4/getnline.m4: New file.
88245
88246 2003-07-17  Bruno Haible  <bruno@clisp.org>
88247
88248         * m4/Makefile.am.in: Remove file.
88249         * m4/Makefile.am: Remove file.
88250         * m4/Makefile.in: Remove file.
88251
88252 2003-07-17  Bruno Haible  <bruno@clisp.org>
88253
88254         * lib/getnline.h: New file.
88255         * lib/getnline.c: New file.
88256         * lib/getndelim2.c: New file, extracted from getline.c.
88257         (getndelim2): Renamed from getdelim2, with added nmax argument.
88258         * lib/getline.c: Include getndelim2.c.
88259         (getdelim2): Moved out to getndelim2.c.
88260         (getline, getdelim): Update.
88261
88262 2003-07-17  Bruno Haible  <bruno@clisp.org>
88263
88264         * lib/Makefile.am: Remove file.
88265         * lib/Makefile.in: Remove file.
88266
88267 2003-07-17  Bruno Haible  <bruno@clisp.org>
88268
88269         * configure.in: Remove file.
88270         * Makefile.in: Remove file.
88271
88272 2003-07-17  Bruno Haible  <bruno@clisp.org>
88273
88274         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88275
88276 2003-07-16  Karl Berry  <karl@gnu.org>
88277
88278         * config/srclist-update: was running fixlicense twice, which caused
88279                 texinfo.tex to be nullified for some reason.  Simplify,
88280                 $gplsrc is no longer needed as far as I can see?
88281
88282 2003-07-16  Jim Meyering  <jim@meyering.net>
88283
88284         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88285
88286 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88287
88288         * config/srclist.txt: Get the following files from gettext-runtime/intl
88289         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88290         ref-del.sin.  From Bruno Haible.
88291         * config/srclist-update (fixfile): Change grep pattern again, since the
88292         previous fix didn't work (there was another trailing $).  Use
88293         '[$]' to escape the $s.
88294
88295 2003-07-15  Karl Berry  <karl@gnu.org>
88296
88297         * lib/vasnprintf.c: update from gettext.
88298
88299 2003-07-15  Karl Berry  <karl@gnu.org>
88300
88301         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88302         gets expanded when surrounded by '$'.
88303
88304 2003-07-15  Jim Meyering  <jim@meyering.net>
88305
88306         * modules/save-cwd: Don't depend on error.  From Derek Price.
88307
88308 2003-07-15  Jim Meyering  <jim@meyering.net>
88309
88310         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88311
88312 2003-07-14  Simon Josefsson  <jas@extundo.com>
88313
88314         * modules/mempcpy: New file.
88315         * MODULES.html.sh (func_all_modules): Add mempcpy.
88316
88317 2003-07-14  Simon Josefsson  <jas@extundo.com>
88318
88319         * m4/mempcpy.m4: New file.
88320
88321 2003-07-14  Simon Josefsson  <jas@extundo.com>
88322
88323         * lib/mempcpy.h: New file.
88324         * lib/mempcpy.c: New file.
88325
88326 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88327
88328         * modules/getdate, modules/posixtm: Depend on mktime.
88329
88330 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88331
88332         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
88333         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
88334         unicodeio.c, unicodeio.h, unlocked-io.h:
88335         Switch from LGPL to GPL.
88336
88337 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88338
88339         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
88340         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
88341         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
88342         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
88343         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
88344         updated automatically by ../config/srclist-update.  This changes
88345         their license from LPGL to GPL.
88346
88347 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88348
88349         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
88350         assumed to refer to the root of the most recent stable gettext version.
88351         * config/srclistvars.sh: Add defaults for eggert.
88352         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
88353         Match "This program" as well as "The program".  This is needed
88354         for gettext.
88355
88356 2003-07-14  Jim Meyering  <jim@meyering.net>
88357
88358         Don't emit diagnostics.  Let callers do that.
88359         * lib/save-cwd.c: Don't include "error.h".
88360         (save_cwd): Don't call error.  Ensure that errno is valid
88361         when returning nonzero.
88362
88363         * lib/save-cwd.h (restore_cwd): Update prototype.
88364         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88365         Simplify.  Don't call error upon failure.  Let callers do that.
88366         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88367         when auditing is enabled.  But don't bother updating the #if.
88368
88369 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88370
88371         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88372         it breaks C++ compilation.
88373         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88374
88375 2003-07-10  Simon Josefsson  <jas@extundo.com>
88376
88377         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88378
88379 2003-07-10  Jim Meyering  <jim@meyering.net>
88380
88381         * m4/clock_time.m4: Remove trailing blank.
88382         * m4/intmax_t.m4: Likewise.
88383
88384 2003-07-10  Jim Meyering  <jim@meyering.net>
88385
88386         * lib/vasnprintf.c: Remove trailing blanks.
88387         Make cpp indentation consistent.
88388
88389 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88390
88391         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88392         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88393         Switch from LGPL to GPL.
88394
88395 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88396
88397         * config/srclist.txt: Sort sublists.  Add
88398         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
88399         that differ from gnulib for one reason or another; we'd like this list
88400         to be smaller but for now let's document what we have.
88401
88402 2003-07-08  Paul Eggert  <eggert@twinsun.com>
88403
88404         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
88405         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
88406         and sweeter "eval x=$x".
88407         * config/srclist.txt: Get lib/argp* from glibc.
88408
88409 2003-07-07  Paul Eggert  <eggert@twinsun.com>
88410
88411         * lib/mktime.c: Fix some boundary cases and remove need for floating
88412         point.
88413
88414         Issue a compile-time diagnostic if time_t is floating point, or if
88415         two's complement arithmetic is not in effect, or if arithmetic
88416         right shift does not propagate the sign.  These assumptions were
88417         all in the original code but they weren't checked.
88418
88419         (TIME_T_MIDPOINT, verify): New macros.
88420         (__isleap): Remove; it has integer overflow problems.
88421         (leapyear): New function, without those problems.
88422         (ydhms_tm_diff): Remove; splitting into two parts.
88423         (ydhms_diff): New function, containing the arithmetic part of
88424         the old ydhms_tm_diff function.  Issue a compile-time
88425         diagnostic if we are not using C99 integer division.
88426         Avoid casts when possible.
88427         (guess_time_tm): New function, containing the checking part of
88428         the old ydhms_tm_diff function.  Return the new value, rather than
88429         the difference between it and the old.  Accept a new argument T
88430         so that *T specifies the old value.  Check for overflow in the result.
88431
88432         (__mktime_internal): Use a time_t offset, not a long int offset.
88433         This undoes the 2003-06-04 change, which is no longer needed now
88434         that we have better overflow checking.
88435         (localtime_offset): Likewise.
88436
88437         (__mktime_internal): Avoid harmful overflow on hosts where time_t
88438         and long are 64-bit but int is only 32-bit.
88439         (ydhms_diff): Use long int to store year1 and yday1.
88440         Issue a compile-time diagnostic if long int is not wide enough.
88441
88442         (__mktime_internal): Use long int to store adjusted year and yday.
88443         Use plain C rather than preprocessor commands, if that doesn't
88444         affect efficiency.
88445         Check for overflow (and try to repair) after each probe
88446         rather than checking only at the very end.  This avoids some bugs
88447         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
88448         does not equal GMT offset at maximum time).
88449         Use integer to check for overflow rather than floating point; this
88450         is more portable to non-IEEE hosts, and is a tad faster.
88451         When we detect that we are oscillating between two values,
88452         don't check whether tm_isdst has the requested value, since
88453         we already know the answer.  When tm_isdst has the wrong value,
88454         use a different heuristic to find the right one, based on the
88455         extreme values actually observed in practice in tz2003a,
88456         rather than the (overly optimistic) "previous 3 calendar quarters".
88457
88458         (not_equal_tm, print_tm, check_result): Use "const T" rather than
88459         "T const" to accommodate glibc style.
88460         (check_result): Use less-confusing report format.  "long" -> "long int.
88461         (main): Likewise.
88462         Don't loop if the iteration overflows time_t.
88463         Allow a negative step in the iteration.
88464
88465 2003-07-06  Karl Berry  <karl@gnu.org>
88466
88467         * config/depcomp: update from automake.
88468         * config/config.sub: update from prep.
88469
88470 2003-07-03  Karl Berry  <karl@gnu.org>
88471
88472         * config/config.guess: update from prep.
88473
88474 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88475
88476         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
88477         xreadlink.c now includes it unconditionally.
88478
88479 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88480
88481         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
88482         having it depend on HAVE_SYS_TYPES_H.
88483
88484 2003-07-01  Bruno Haible  <bruno@clisp.org>
88485
88486         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
88487         <sys/types.h> should be sufficient.
88488         Reported by Paul Eggert.
88489
88490 2003-06-26  Karl Berry  <karl@gnu.org>
88491
88492         * config/depcomp: update from automake.
88493
88494 2003-06-26  Bruno Haible  <bruno@clisp.org>
88495
88496         * modules/human: Depend on module stdbool.
88497
88498 2003-06-25  Bruno Haible  <bruno@clisp.org>
88499
88500         * modules/readlink: New file.
88501         * modules/xreadlink: Depend on it.
88502         * MODULES.html.sh (func_all_modules): Add readlink.
88503
88504 2003-06-25  Bruno Haible  <bruno@clisp.org>
88505
88506         * m4/readlink.m4: New file.
88507
88508 2003-06-25  Bruno Haible  <bruno@clisp.org>
88509
88510         * lib/readlink.c: New file.
88511
88512 2003-06-22  Karl Berry  <karl@gnu.org>
88513
88514         * config/srclist.txt: update mkinstalldirs from automake.
88515         * config/mkinstalldirs: update.
88516
88517 2003-06-22  Bruno Haible  <bruno@clisp.org>
88518
88519         Portability to mingw32.
88520         * m4/ssize_t.m4: New file, from GNU gettext.
88521         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88522         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88523
88524 2003-06-22  Bruno Haible  <bruno@clisp.org>
88525
88526         * modules/safe-read: Add m4/ssize_t.m4.
88527         * modules/xreadlink: Add m4/ssize_t.m4.
88528
88529 2003-06-20  Bruno Haible  <bruno@clisp.org>
88530
88531         Assume C89, so PARAMS isn't needed.
88532         * lib/unicodeio.h (PARAMS): Remove.
88533         * lib/unicodeio.c: Don't use PARAMS.
88534
88535 2003-06-18  Karl Berry  <karl@gnu.org>
88536
88537         * config/config.{guess,sub}: update from prep.
88538
88539 2003-06-18  Jim Meyering  <jim@meyering.net>
88540
88541         Merge changes from coreutils.
88542         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88543         Remove explicit declarations of xmalloc and realloc.
88544         Include xalloc.h.
88545         (read_utmp): Remove anachronistic cast of xmalloc.
88546
88547 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88548
88549         Assume C89, so PARAMS isn't needed.
88550         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88551         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88552         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88553         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88554         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88555         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88556         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88557         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88558         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88559         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88560         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88561         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88562         no longer needed. Anyway, config.h should always be included before any
88563         other file.
88564
88565 2003-06-11  Simon Josefsson  <jas@extundo.com>
88566
88567         * modules/sysexits: New file.
88568         * MODULES.html.sh (func_all_modules): Add sysexits.
88569
88570 2003-06-11  Simon Josefsson  <jas@extundo.com>
88571
88572         * lib/sysexit_.h: New file.
88573
88574 2003-06-11  Derek Price  <derek@ximbiot.com>
88575
88576         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88577         necessary.
88578
88579 2003-06-11  Bruno Haible  <bruno@clisp.org>
88580
88581         * m4/sysexits.m4: New file.
88582
88583 2003-06-10  Simon Josefsson  <jas@extundo.com>
88584
88585         * lib/argp.h: New file, from glibc.
88586         * lib/argp-ba.c: New file, from glibc.
88587         * lib/argp-eexst.c: New file, from glibc.
88588         * lib/argp-fmtstream.c: New file, from glibc.
88589         * lib/argp-fmtstream.h: New file, from glibc.
88590         * lib/argp-fs-xinl.c: New file, from glibc.
88591         * lib/argp-help.c: New file, from glibc.
88592         * lib/argp-namefrob.h: New file, from glibc.
88593         * lib/argp-parse.c: New file, from glibc.
88594         * lib/argp-pv.c: New file, from glibc.
88595         * lib/argp-pvh.c: New file, from glibc.
88596         * lib/argp-xinl.c: New file, from glibc.
88597
88598 2003-06-10  Simon Josefsson  <jas@extundo.com>
88599
88600         * modules/strchrnul: New file.
88601
88602 2003-06-10  Simon Josefsson  <jas@extundo.com>
88603
88604         * modules/argp: New file.
88605
88606 2003-06-10  Simon Josefsson  <jas@extundo.com>
88607
88608         * m4/strchrnul.m4: New file.
88609
88610 2003-06-10  Simon Josefsson  <jas@extundo.com>
88611
88612         * lib/strchrnul.h: New file.
88613         * lib/strchrnul.c: New file.
88614
88615 2003-06-10  Bruno Haible  <bruno@clisp.org>
88616
88617         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88618
88619 2003-06-07  Karl Berry  <karl@gnu.org>
88620
88621         * config/config.{guess,sub}: update from prep.
88622
88623 2003-06-07  Jim Meyering  <jim@meyering.net>
88624
88625         * modules/strtod: Use $(...) notation, not @...@ for
88626         AC_REPLACE'd variables.
88627         * modules/localcharset: Likewise.
88628
88629 2003-06-07  Jim Meyering  <jim@meyering.net>
88630
88631         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88632         in place of my name in the copyright comment.
88633         Remove definition and uses of __P.
88634
88635         From coreutils.
88636         * lib/stat.c: Don't declare xmalloc explicitly.
88637         Instead, include "xalloc.h".
88638         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88639         xrealloc, and xcalloc return values.
88640         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88641         Improve comment.
88642         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88643
88644 2003-06-07  Bruno Haible  <bruno@clisp.org>
88645
88646         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88647         avoid AC_CONFIG_LINKS.
88648         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88649         fnmatch.h, to avoid AC_CONFIG_LINKS.
88650         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88651
88652 2003-06-07  Bruno Haible  <bruno@clisp.org>
88653
88654         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88655         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88656         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88657         directory.
88658         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
88659         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88660         directory.
88661
88662 2003-06-06  Jim Meyering  <jim@meyering.net>
88663
88664         Merge from coreutils.
88665         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
88666         Consolidate declarations and initializations of *_base* locals.
88667
88668         Merge from coreutils.
88669         This avoids a core dump on systems without GNU putenv,
88670         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
88671         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
88672         (unsetenv): New static function, from GNU libc.
88673         (rpl_putenv): Use it.
88674
88675         * lib/modechange.c: Remove trailing blanks.
88676
88677         Merge from coreutils.
88678         * lib/fsusage.c: Remove declaration of statfs.
88679         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
88680
88681         * lib/posixtm.c: Include <stdbool.h> unconditionally.
88682
88683 2003-06-06  Jim Meyering  <jim@meyering.net>
88684
88685         * lib/stdbool_.h: Renamed from stdbool.h.in.
88686
88687 2003-06-06  Jim Meyering  <jim@meyering.net>
88688             Bruno Haible  <bruno@clisp.org>
88689
88690         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
88691         Adjust Makefile.am snippet not to redirect directly to target.
88692         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
88693
88694 2003-06-05  Paul Eggert  <eggert@twinsun.com>
88695
88696         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
88697         mismatch, look in future quarters as well as past.  This fixes a
88698         bug when processing fall-backwards gaps immediately after a long
88699         period of daylight-saving time.
88700
88701         * lib/mktime.c: Assume freestanding C89 or better.
88702         (HAVE_LIMITS_H): Remove.  Assume it's 1.
88703         (__P): Remove; not used.
88704         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
88705         (mktime, not_equal_tm, print_tm, check_result,
88706         main): Use prototypes.  Use const * where appropriate.
88707         (main): Fix typo in testing code that uncovered by above changes.
88708         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
88709
88710 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88711
88712         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
88713         locale.h, localeconv.  This merges changes from coreutils.
88714
88715         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
88716         It can be removed after the next Autoconf is released.
88717         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
88718         needed.
88719
88720 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88721
88722         * lib/mktime.c: Fix Debian bug 177940
88723         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
88724         (localtime_offset): Now long int, not time_t, because we want it
88725         to be guaranteed to be signed.  All uses changed.
88726         (__mktime_internal): If overflow would occur when adding offset,
88727         don't add it.
88728
88729         Merge 'human' changes from coreutils.  Rewrite to support
88730         locale-specific notations like thousands separators.
88731         * lib/human.c: Simplify authorship notice.
88732         Include human.h immediately after config.h.
88733         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
88734         <limits.h>: Do not include, since human.h does.
88735         (SIZE_MAX, UINTMAX_MAX): New macros.
88736         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
88737         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
88738         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
88739         (power_letter): Renamed from suffixes.
88740         (generate_suffix_backwards): Remove.
88741         (adjust_value): Now takes int style (because of human.h changes)
88742         and long double value (for greater precision on some platforms).
88743         (group_number): New function.
88744         (human_readable): Use it.  Use integer options, not enum.
88745         Put the options before the sizes in the arg list.
88746         Support all the new options.
88747         The old human_readable function has been removed;
88748         use inttostr.h instead.
88749         (human_readable, default_block_size, humblock):
88750         Use uintmax_t, not int, for block sizes.
88751         (human_readable_inexact, block_size_types): Remove.
88752         (block_size_opts): New constant.
88753         (human_options): Renamed from human_block_size, with new signature
88754         that allows block sizes up to UINTMAX_MAX.  All callers changed.
88755         * lib/human.h: Add copyright and authorship notice.
88756         Include <limits.h> and <stdbool.h> unconditionally.
88757         (PARAMS): Remove.  All uses removed.
88758         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
88759         (enum human_inexact_style): Remove tag; now a nameless enum.
88760         (human_floor, human_ceiling, human_round_to_even): Now have
88761         values 2, 0, 1 rather than -1, 1, 0.
88762         (human_group_digits, human_suppress_point_zero, human_autoscale,
88763         human_base_1024, human_SI, human_B): New constants.
88764         (human_readable_inexact, human_block_size): Remove.
88765         (human_readable): Size args are now uintmax_t, not int.
88766         (human_options): New decl.
88767
88768         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
88769         unnecessary now that we assume C89 or better.  This change
88770         imported from coreutils.
88771
88772         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88773         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
88774         in the 2003-05-30 sync from glibc.
88775
88776         .h files should stand alone, but we shouldn't include <sys/types.h>
88777         if we can get away with just <stddef.h>.
88778
88779         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
88780         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
88781         rather than <sys/types.h>, as we merely need size_t.
88782         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
88783         to get size_t.
88784         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
88785         Include <stdio.h>, to get FILE.
88786         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
88787         memcasecmp.h has included <stddef.h> and all we need is size_t.
88788         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
88789         our interface, instead of including <sys/types.h>
88790
88791 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88792
88793         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
88794         now, as glibc mktime is buggy on non-glibc systems.
88795
88796 2003-06-03  Karl Berry  <karl@gnu.org>
88797
88798         * config/config.sub: update from prep.
88799
88800 2003-06-02  Paul Eggert  <eggert@twinsun.com>
88801
88802         [from coreutils]
88803         Fix some minor time-related bugs with POSIX time arguments.
88804         Some valid time stamps were being rejected (notably -1, and
88805         time stamps before 1900 on 64-bit hosts).  And some invalid
88806         time stamps were being accepted, e.g. September 31.
88807
88808         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
88809         that we can return (time_t) -1 successfully.
88810         * lib/posixtm.c: Likewise.
88811         [HAVE_STDBOOL_H]: Include <stdbool.h>.
88812         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
88813         (t): Remove static var.
88814         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
88815         of static var.  All uses changed.
88816         (year): Do not reject years before 1900; they can occur with
88817         64-bit time_t.
88818         (posix_time_parse): Do not check for out-of-range components;
88819         that is now the caller's responsibility, since our checks were
88820         only approximations.
88821         (posixtime): Use mktime to check for out-of-range components,
88822         since it knows them exactly.
88823         If mktime returns (time_t) -1, check whether an error actually occurred
88824         by invoking localtime on -1.
88825         (main) [TEST_POSIXTIME]: Check for input data errors, and report
88826         posixtime failures better.
88827         Improve the test data (in comments only).
88828
88829 2003-06-02  Karl Berry  <karl@gnu.org>
88830
88831         * config/mkinstalldirs (version): new variable.
88832         (--version): new option.
88833         (usage): improve message.
88834
88835 2003-05-30  Karl Berry  <karl@gnu.org>
88836
88837         * lib/mktime.c: update from libc.
88838
88839 2003-05-30  Bruno Haible  <bruno@clisp.org>
88840
88841         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
88842         * config/config.rpath: Upgrade to gettext-0.12.1.
88843
88844 2003-05-30  Bruno Haible  <bruno@clisp.org>
88845
88846         * m4/gettext.m4: Upgrade to gettext-0.12.1.
88847         * m4/nls.m4: New file, from gettext-0.12.1.
88848         * m4/po.m4: New file, from gettext-0.12.1.
88849         * m4/progtest.m4: Upgrade to gettext-0.12.1.
88850
88851 2003-05-30  Bruno Haible  <bruno@clisp.org>
88852
88853         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
88854         * lib/localcharset.h: Likewise.
88855         * lib/localcharset.c: Likewise.
88856
88857 2003-05-29  Karl Berry  <karl@gnu.org>
88858
88859         * config/config.rpath: update from gettext.
88860
88861 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88862
88863         Assume the headers required for C89 freestanding compilers.
88864         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
88865         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
88866         * m4/human.m4 (gl_HUMAN): Likewise.
88867         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
88868         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
88869         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88870         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
88871         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88872         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
88873
88874 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88875
88876         Assume the headers required for C89 freestanding compilers.
88877         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
88878         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
88879         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
88880         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
88881         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
88882         define, since <limits.h> is guaranteed to do that.
88883         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
88884         * lib/exclude.c: Include <stdbool.h> unconditionally.
88885         * lib/tempname.c: Include <stddef.h> unconditionally.
88886         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
88887         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
88888         <stddef.h> does that.
88889         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
88890         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
88891         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
88892         needed.
88893         * lib/xstrtol.c: Likewise.
88894         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
88895         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
88896
88897         * lib/addext.c (addext): Use assignment rather than cast, to avoid
88898         warnings on some platforms.
88899
88900         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88901         arbitrarily.
88902
88903 2003-05-26  Jim Meyering  <jim@meyering.net>
88904
88905         Merge in a change from coreutils:
88906         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
88907         that is guaranteed to be `no'.  Use `no_such_member' to indicate
88908         that condition, rather than `-1' which is slightly misleading.
88909         Change the name of the cache variable to have the gl_ prefix.
88910         Prompted by a patch from Richard Dawe for DJGPP.
88911
88912 2003-05-24  Karl Berry  <karl@gnu.org>
88913
88914         * config/config.guess: update from prep.
88915
88916 2003-05-22  Karl Berry  <karl@gnu.org>
88917
88918         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
88919
88920 2003-05-20  Karl Berry  <karl@gnu.org>
88921
88922         * config/config.guess: update from prep.
88923
88924 2003-05-18  Karl Berry  <karl@gnu.org>
88925
88926         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
88927         might actually be set by the user.
88928
88929         * config/depcomp, install-sh, mdate-sh: update from automake.
88930
88931 2003-05-17  Bruno Haible  <bruno@clisp.org>
88932
88933         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
88934         invalid expansion for AC_EGREP_CPP.
88935         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
88936         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
88937         Suggested by Akim Demaille <akim@epita.fr> in
88938         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
88939
88940 2003-05-12  Jim Meyering  <jim@meyering.net>
88941
88942         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
88943         the space-padded-by-default conversion specifiers, %e, %k, %l.
88944
88945 2003-05-12  Bruno Haible  <bruno@clisp.org>
88946
88947         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
88948         the string is longer than 4 KB.
88949
88950 2003-05-11  Karl Berry  <karl@gnu.org>
88951
88952         * config/config.{guess,sub}: update from prep.
88953
88954 2003-05-09  Bruno Haible  <bruno@clisp.org>
88955
88956         * modules/error: Add m4/strerror_r.m4 to file list.
88957
88958 2003-05-03  Bruno Haible  <bruno@clisp.org>
88959
88960         Upgrade to Unicode-4.0.
88961         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
88962         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
88963         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
88964         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
88965         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
88966         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
88967         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
88968         Change width of U+E0100..U+E01EF from 1 to 0.
88969
88970 2003-04-25  Jim Meyering  <jim@meyering.net>
88971
88972         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
88973         of type size_t, not int.
88974
88975 2003-04-25  Bruno Haible  <bruno@clisp.org>
88976
88977         * lib/copy-file.c: Include <stddef.h>, for size_t.
88978
88979 2003-04-21  Paul Eggert  <eggert@twinsun.com>
88980
88981         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
88982         code which expansion is under static control.  Patch imported from
88983         Akim Demaille's patch to Bison; see
88984         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
88985
88986 2003-04-14  Bruno Haible  <bruno@clisp.org>
88987
88988         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
88989
88990 2003-04-11  Jim Meyering  <jim@meyering.net>
88991
88992         Merge changes from Coreutils.
88993
88994         2003-03-22  Jim Meyering  <jim@meyering.net>
88995
88996         * lib/strftime.c (widen): Cast alloca return value to proper type.
88997
88998         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
88999
89000         From GNU libc.
89001         * lib/strftime.c (my_strftime): Handle very large width
89002         specifications for numeric values correctly.  Improve checks for
89003         overflow.
89004
89005         2003-01-19  Jim Meyering  <jim@meyering.net>
89006
89007         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89008         definitions.
89009         (nl_get_alt_digit) [! defined my_strftime]: Define.
89010         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89011         _nl_get_alt_digit and _nl_get_walt_digit.
89012
89013         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89014         libc. These changes have no effect outside of _LIBC.
89015
89016 2003-04-10  Bruno Haible  <bruno@clisp.org>
89017
89018         * modules/findprog: New file.
89019         * MODULES.html.sh (func_all_modules): Add it.
89020
89021 2003-04-10  Bruno Haible  <bruno@clisp.org>
89022
89023         * m4/findprog.m4: New file.
89024         * m4/eaccess.m4: New file.
89025
89026 2003-04-10  Bruno Haible  <bruno@clisp.org>
89027
89028         * lib/findprog.h: New file, from GNU gettext.
89029         * lib/findprog.c: New file, from GNU gettext.
89030
89031 2003-04-05  Jim Meyering  <jim@meyering.net>
89032
89033         Merge changes from Coreutils.
89034
89035         * lib/exclude.h (PARAMS): Remove definition and uses.
89036         * lib/exclude.c: Remove uses of `PARAMS'.
89037
89038         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89039         Add test-cases for DOS filenames. Declare program_name.
89040         (main): Set up program_name.  Patch by Rich Dawe.
89041
89042         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89043         error from mntctl.
89044         Use mntctl's return value to drive the entry-processing loop, since
89045         we can't rely on the value of the vmt_length member in the last
89046         entry.  On some systems doing so could result in exhausting
89047         virtual memory.  Based in part on a patch from Mike Jetzer.
89048
89049 2003-04-04  Bruno Haible  <bruno@clisp.org>
89050
89051         * modules/linebreak: New file.
89052         * MODULES.html.sh (func_all_modules): Add it.
89053
89054 2003-04-04  Bruno Haible  <bruno@clisp.org>
89055
89056         * m4/linebreak.m4: New file.
89057
89058 2003-04-04  Bruno Haible  <bruno@clisp.org>
89059
89060         * lib/linebreak.h: New file, from GNU gettext.
89061         * lib/linebreak.c: New file, from GNU gettext with slight
89062         modifications.
89063         * lib/lbrkprop.h: New file, from GNU gettext.
89064
89065 2003-04-03  Bruno Haible  <bruno@clisp.org>
89066
89067         * modules/utf8-ucs4: New file.
89068         * modules/utf16-ucs4: New file.
89069         * modules/ucs4-utf8: New file.
89070         * modules/ucs4-utf16: New file.
89071         * MODULES.html.sh (func_all_modules): Add them.
89072
89073 2003-04-03  Bruno Haible  <bruno@clisp.org>
89074
89075         * m4/utf-ucs4.m4: New file.
89076         * m4/ucs4-utf.m4: New file.
89077
89078 2003-04-03  Bruno Haible  <bruno@clisp.org>
89079
89080         * lib/utf8-ucs4.h: New file, from GNU gettext.
89081         * lib/utf16-ucs4.h: New file, from GNU gettext.
89082         * lib/ucs4-utf8.h: New file, from GNU gettext.
89083         * lib/ucs4-utf16.h: New file, from GNU gettext.
89084
89085 2003-04-02  Bruno Haible  <bruno@clisp.org>
89086
89087         * modules/binary-io: New file.
89088         * MODULES.html.sh (func_all_modules): Add it.
89089
89090 2003-04-02  Bruno Haible  <bruno@clisp.org>
89091
89092         * lib/binary-io.h: New file, from GNU gettext.
89093
89094 2003-04-01  Bruno Haible  <bruno@clisp.org>
89095
89096         * modules/pathname: New file.
89097         * MODULES.html.sh (func_all_modules): Add it.
89098
89099 2003-04-01  Bruno Haible  <bruno@clisp.org>
89100
89101         * lib/pathname.h: New file, from GNU gettext.
89102         * lib/concatpath.c: New file, from GNU gettext.
89103
89104 2003-03-30  Bruno Haible  <bruno@clisp.org>
89105
89106         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89107
89108 2003-03-30  Bruno Haible  <bruno@clisp.org>
89109
89110         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89111         function chown() doesn't exist.
89112
89113 2003-03-28  Bruno Haible  <bruno@clisp.org>
89114
89115         * modules/copy-file: New file.
89116         * MODULES.html.sh (func_all_modules): Add it.
89117
89118 2003-03-28  Bruno Haible  <bruno@clisp.org>
89119
89120         * m4/copy-file.m4: New file.
89121
89122 2003-03-28  Bruno Haible  <bruno@clisp.org>
89123
89124         * lib/copy-file.h: New file, from GNU gettext.
89125         * lib/copy-file.c: New file, from GNU gettext.
89126
89127 2003-03-18  Jim Meyering  <jim@meyering.net>
89128
89129         * lib/quote.c (quote_n): Fix typo in comment.
89130
89131 2003-03-18  Bruno Haible  <bruno@clisp.org>
89132
89133         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89134         checking.
89135         * m4/onceonly_2_57.m4: Likewise.
89136
89137 2003-03-17  Bruno Haible  <bruno@clisp.org>
89138
89139         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89140         (m4_quote): Remove macro.
89141         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89142
89143 2003-03-14  Jim Meyering  <jim@meyering.net>
89144
89145         Merge changes from Coreutils.
89146         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89147         to be const, in order to avoid warnings.
89148         (obstack_room): Likewise.
89149         (obstack_empty_p): Likewise.
89150
89151 2003-03-14  Bruno Haible  <bruno@clisp.org>
89152
89153         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89154         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89155
89156 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89157
89158         Merge changes from Bison.
89159         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89160         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89161         when compiling Bison 1.875's `bitset bset = obstack_alloc
89162         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89163         * lib/hash.c: Include <stdbool.h> unconditionally.
89164
89165 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89166
89167         * m4/onceonly.m4 (m4_quote): New macro.
89168         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89169         Quote AC_FOREACH variable-expansions properly.
89170
89171 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89172
89173         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89174
89175 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89176
89177         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89178         Reported by Bruce Becker; see:
89179         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89180
89181 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89182             Bruno Haible  <bruno@clisp.org>
89183
89184         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89185         Reported by John Hughes, see
89186         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89187
89188 2003-02-20  Bruno Haible  <bruno@clisp.org>
89189
89190         * MODULES.html.sh (func_all_modules): Add poll.
89191
89192 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89193
89194         * modules/poll: New file.
89195
89196 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89197
89198         * lib/poll_.h: New file.
89199         * lib/poll.c: New file.
89200
89201 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89202
89203         * m4/poll.m4: New file.
89204
89205 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89206
89207         * modules/mathl: New file.
89208
89209 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89210
89211         * lib/mathl.h: New file.
89212         * lib/acosl.c: New file.
89213         * lib/asinl.c: New file.
89214         * lib/atanl.c: New file.
89215         * lib/ceill.c: New file.
89216         * lib/cosl.c: New file.
89217         * lib/expl.c: New file.
89218         * lib/floorl.c: New file.
89219         * lib/frexpl.c: New file.
89220         * lib/ldexpl.c: New file.
89221         * lib/logl.c: New file.
89222         * lib/sincosl.c: New file.
89223         * lib/sinl.c: New file.
89224         * lib/sqrtl.c: New file.
89225         * lib/tanl.c: New file.
89226         * lib/trigl.c: New file.
89227         * lib/trigl.h: New file.
89228
89229 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89230
89231         * m4/mathl.m4: New file.
89232
89233 2003-02-18  Bruno Haible  <bruno@clisp.org>
89234
89235         * MODULES.html.sh (func_all_modules): Add mathl.
89236
89237 2003-02-17  Bruno Haible  <bruno@clisp.org>
89238
89239         * modules/mkdtemp: New module.
89240         * MODULES.html.sh (func_all_modules): Add it.
89241
89242 2003-02-17  Bruno Haible  <bruno@clisp.org>
89243
89244         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89245
89246 2003-02-17  Bruno Haible  <bruno@clisp.org>
89247
89248         * lib/mkdtemp.h: New file, from GNU gettext.
89249         * lib/mkdtemp.c: New file, from GNU gettext.
89250
89251 2003-02-02  Jim Meyering  <jim@meyering.net>
89252
89253         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89254         e.g. glibc-2.2.93.
89255
89256 2003-01-31  Bruno Haible  <bruno@clisp.org>
89257
89258         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89259         'rpl_rename'.
89260         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89261         'rpl_strnlen'.
89262         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89263         'rpl_strtod'.
89264         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89265         'rpl_utime'.
89266
89267 2003-01-31  Bruno Haible  <bruno@clisp.org>
89268
89269         * lib/rename.c: #undef rename before defining rpl_rename.
89270         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89271
89272 2003-01-30  Bruno Haible  <bruno@clisp.org>
89273
89274         * modules/vasnprintf, modules/vasprintf: New modules.
89275         * MODULES.html.sh (func_all_modules): Add them.
89276
89277 2003-01-30  Bruno Haible  <bruno@clisp.org>
89278
89279         * m4/signed.m4: New file, from GNU gettext.
89280         * m4/longdouble.m4: New file, from GNU gettext.
89281         * m4/wchar_t.m4: New file, from GNU gettext.
89282         * m4/wint_t.m4: New file, from GNU gettext.
89283         * m4/vasnprintf.m4: New file.
89284         * m4/vasprintf.m4: New file.
89285
89286 2003-01-30  Bruno Haible  <bruno@clisp.org>
89287
89288         * lib/printf-args.h: New file, from GNU gettext.
89289         * lib/printf-args.c: New file, from GNU gettext.
89290         * lib/printf-parse.h: New file, from GNU gettext.
89291         * lib/printf-parse.c: New file, from GNU gettext.
89292         * lib/vasnprintf.h: New file, from GNU gettext.
89293         * lib/vasnprintf.c: New file, from GNU gettext.
89294         * lib/asnprintf.c: New file, from GNU gettext.
89295         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89296         * lib/vasprintf.c: New file, from GNU gettext.
89297         * lib/asprintf.c: New file, from GNU gettext.
89298
89299 2003-01-29  Bruno Haible  <bruno@clisp.org>
89300
89301         * modules/stpncpy: New module.
89302         * MODULES.html.sh (func_all_modules): Add it.
89303
89304 2003-01-29  Bruno Haible  <bruno@clisp.org>
89305
89306         * m4/stpncpy.m4: New file.
89307
89308 2003-01-29  Bruno Haible  <bruno@clisp.org>
89309
89310         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89311         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89312
89313 2003-01-28  Bruno Haible  <bruno@clisp.org>
89314
89315         * modules/c-ctype: New module.
89316         * MODULES.html.sh (func_all_modules): Add it.
89317
89318 2003-01-28  Bruno Haible  <bruno@clisp.org>
89319
89320         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
89321         Paul Eggert.
89322         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
89323         Paul Eggert.
89324
89325 2003-01-27  Bruno Haible  <bruno@clisp.org>
89326
89327         * modules/xsetenv: New module.
89328         * MODULES.html.sh (func_all_modules): Add it.
89329
89330 2003-01-27  Bruno Haible  <bruno@clisp.org>
89331
89332         * lib/xsetenv.h: New file, from GNU gettext.
89333         * lib/xsetenv.c: New file, from GNU gettext.
89334
89335 2003-01-23  Jim Meyering  <jim@meyering.net>
89336
89337         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
89338         from working on systems without dirfd (at least Irix and OSF1/Tru64).
89339
89340 2003-01-23  Bruno Haible  <bruno@clisp.org>
89341
89342         * modules/minmax: New module.
89343         * MODULES.html.sh (func_all_modules): Add it.
89344
89345 2003-01-23  Bruno Haible  <bruno@clisp.org>
89346
89347         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
89348         Eggert.
89349
89350 2003-01-22  Bruno Haible  <bruno@clisp.org>
89351
89352         * modules/exit: New module.
89353         * MODULES.html.sh (func_all_modules): Add it.
89354
89355 2003-01-22  Bruno Haible  <bruno@clisp.org>
89356
89357         * lib/exit.h: New file, from GNU gettext.
89358
89359 2003-01-19  Bruno Haible  <bruno@clisp.org>
89360
89361         * gnulib-tool: Recognize option --extract-maintainer.
89362         (func_get_maintainer): New function.
89363         * modules/*: Add Maintainer entry.
89364
89365 2003-01-16  Jim Meyering  <jim@meyering.net>
89366
89367         * m4/regex.m4: The `regex' struct is both input and output.
89368         Initialize it before each use.  Patch by Tim Waugh.
89369
89370 2003-01-16  Bruno Haible  <bruno@clisp.org>
89371
89372         * MODULES.html.sh: Add a table of contents. Add the module name as
89373         leftmost column. Add hyperlinks.
89374
89375 2003-01-15  Bruno Haible  <bruno@clisp.org>
89376
89377         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89378
89379 2003-01-15  Bruno Haible  <bruno@clisp.org>
89380
89381         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89382         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89383         suffix.
89384
89385 2003-01-15  Bruno Haible  <bruno@clisp.org>
89386
89387         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89388
89389 2003-01-15  Bruno Haible  <bruno@clisp.org>
89390
89391         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89392         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89393
89394 2003-01-14  Jim Meyering  <jim@meyering.net>
89395
89396         * lib/same.c (same_name): Tweak a comment.
89397
89398 2003-01-14  Bruno Haible  <bruno@clisp.org>
89399
89400         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
89401         when a string comparison is sufficient.
89402
89403 2003-01-14  Bruno Haible  <bruno@clisp.org>
89404
89405         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
89406         'unsigned int'.
89407
89408 2003-01-14  Bruno Haible  <bruno@clisp.org>
89409
89410         * lib/hash-pjw.c: Add comment about low quality of this function.
89411
89412 2003-01-13  Bruno Haible  <bruno@clisp.org>
89413
89414         * modules/stpcpy: Distribute lib/stpcpy.h.
89415         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
89416
89417 2003-01-13  Bruno Haible  <bruno@clisp.org>
89418
89419         * modules/*: Add a description.
89420         * modules/strpbrk: Fix Makefile.am snippet.
89421         * modules/strtoimax: Fix dependencies.
89422         * modules/strtoumax: Likewise.
89423
89424 2003-01-13  Bruno Haible  <bruno@clisp.org>
89425
89426         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
89427         * modules/alloca (Makefile.am): All object files depend on alloca.h.
89428         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
89429
89430 2003-01-13  Bruno Haible  <bruno@clisp.org>
89431
89432         * gnulib-tool (func_create_testdir): Store config/* files in the main
89433         directory.
89434         * config.rpath: Move to ...
89435         * config/config.rpath: ... here.
89436         * modules/gettext: Contains config/config.rpath, not config.rpath.
89437         * modules/iconv: Likewise.
89438
89439 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89440
89441         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89442         to avoid collisions with libcurses and libreadline.
89443
89444         * m4/getstr.m4: Remove.
89445         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
89446
89447 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89448
89449         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89450         to avoid collisions with libcurses and libreadline.
89451
89452         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
89453         * lib/getstr.h, getstr.c: Remove.
89454         * lib/getline.c: Include "getline.h", to check interface.
89455         Move body of old getstr.c here: this defines MIN_CHUNK and
89456         declares getdelim2, which is renamed from getstr.
89457         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
89458
89459         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
89460         All uses changed.
89461         * lib/linebuffer.h: Likewise.
89462         (readline): Remove backward-compatibility macro.
89463
89464 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89465
89466         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89467         to avoid collisions with libcurses and libreadline.
89468         * getstr: Remove.
89469         * MODULES.html.sh: Remove getstr.
89470         * modules/getline: Depend on unlocked-io, not getstr.
89471
89472 2003-01-12  Jim Meyering  <jim@meyering.net>
89473
89474         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
89475
89476 2003-01-10  Bruno Haible  <bruno@clisp.org>
89477
89478         * modules/alloca: Change Makefile.am requirements. Simplify Include
89479         requirements. Add lib/alloca_.h to file list.
89480
89481 2003-01-10  Bruno Haible  <bruno@clisp.org>
89482
89483         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
89484
89485 2003-01-10  Bruno Haible  <bruno@clisp.org>
89486
89487         * lib/alloca_.h: New file.
89488         * lib/getdate.y: Unconditionally include alloca.h.
89489         * lib/makepath.c: Likewise.
89490         * lib/setenv.c: Likewise.
89491         * lib/userspec.c: Likewise.
89492
89493 2003-01-09  Karl Berry  <karl@gnu.org>
89494
89495         * MODULES.html.sh: include `dirname $0` in PATH, to find
89496         gnulib-tool.
89497
89498 2003-01-09  Bruno Haible  <bruno@clisp.org>
89499
89500         * modules/stdbool: Change configure.ac, Makefile.am requirements.
89501         Simplify Include requirements. Add lib/stdbool.h.in to file list.
89502
89503 2003-01-09  Bruno Haible  <bruno@clisp.org>
89504
89505         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89506
89507 2003-01-09  Bruno Haible  <bruno@clisp.org>
89508
89509         * lib/stdbool.h.in: New file.
89510
89511 2003-01-09  Bruno Haible  <bruno@clisp.org>
89512
89513         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89514         * MODULES.html.sh: Likewise.
89515
89516 2003-01-08  Jim Meyering  <jim@meyering.net>
89517
89518         * lib/full-write.c: Undefine and define-away `const' after inclusion
89519         of errno.h, not before.  Suggestion from Bruno Haible.
89520
89521 2003-01-08  Bruno Haible  <bruno@clisp.org>
89522
89523         * modules/full-read: Depend on full-write.
89524
89525 2003-01-08  Bruno Haible  <bruno@clisp.org>
89526
89527         * lib/safe-read.c: Include specification header first, to ensure its
89528         selfcontainedness.
89529         * lib/full-write.c: Likewise.
89530
89531 2003-01-07  Jim Meyering  <jim@meyering.net>
89532
89533         * lib/full-write.c: Rework so that it may serve to define full_read,
89534         too.
89535         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89536
89537 2003-01-07  Bruno Haible  <bruno@clisp.org>
89538
89539         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89540         <inttypes.h>.
89541         * lib/xstrtol.h: Likewise.
89542         * lib/xstrtoimax.c: Likewise.
89543         * lib/xstrtoumax.c: Likewise.
89544         * lib/human.h: Likewise.
89545
89546         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89547         on systems that have <inttypes.h> but not <stdint.h>.
89548
89549 2003-01-07  Bruno Haible  <bruno@clisp.org>
89550
89551         * MODULES.html.sh: Add copyright notice.
89552         (missed_files): Omit CVS directory entries.
89553         (func_module): Make it work with sed-3.02.
89554         * MODULES.txt: Remove file.
89555
89556 2003-01-06  Jim Meyering  <jim@meyering.net>
89557
89558         * lib/version-etc.c: Update year in translatable copyright string.
89559
89560 2003-01-03  Karl Berry  <karl@gnu.org>
89561
89562         * config/config.{guess,sub}: update from prep.
89563
89564 2003-01-02  Karl Berry  <karl@gnu.org>
89565
89566         * doc/COPYING.DOC: belatedly updated to 1.2.
89567
89568 2003-01-01  Karl Berry  <karl@gnu.org>
89569
89570         * gnulib-tool (func_verify_module): report module name $module in
89571         error message, not $1.
89572         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89573         be created, only if it doesn't exist.
89574         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89575
89576 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89577
89578         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89579
89580 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89581
89582         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89583         memcmp if strcoll doesn't work.
89584
89585 2002-12-31  Bruno Haible  <bruno@clisp.org>
89586
89587         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89588         nonempty.
89589
89590 2002-12-31  Bruno Haible  <bruno@clisp.org>
89591
89592         * lib/memcoll.c (STRCOLL): New macro.
89593         (memcoll): Use it.
89594
89595 2002-12-31  Bruno Haible  <bruno@clisp.org>
89596
89597         * lib/localcharset.h: New file.
89598         * lib/localcharset.c: Include it.
89599         * lib/unicodeio.c: Likewise.
89600
89601 2002-12-31  Bruno Haible  <bruno@clisp.org>
89602
89603         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89604         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89605
89606 2002-12-31  Bruno Haible  <bruno@clisp.org>
89607
89608         * lib/getline.h: Include <stddef.h>, for size_t.
89609
89610         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89611         * lib/unicodeio.c: Don't include <stddef.h>.
89612
89613 2002-12-31  Bruno Haible  <bruno@clisp.org>
89614
89615         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89616         HAVE_TM_ZONE.
89617
89618 2002-12-24  Karl Berry  <karl@gnu.org>
89619
89620         * config/config.guess: update from prep.
89621
89622 2002-12-24  Bruno Haible  <bruno@clisp.org>
89623
89624         General infrasructure.
89625         * m4/README: Rewritten.
89626         * m4/onceonly.m4: New file.
89627         * m4/onceonly_2_57.m4: New file.
89628
89629         Module atexit.
89630         * m4/atexit.m4: New file.
89631
89632         Module strtod.
89633         * m4/strtod.m4: New file.
89634
89635         Module strtol.
89636         * m4/strtol.m4: New file.
89637
89638         Module strtoul.
89639         * m4/strtoul.m4: New file.
89640
89641         Module memchr.
89642         * m4/memchr.m4: New file.
89643
89644         Module memcmp.
89645         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89646         (jm_FUNC_MEMCMP): Invoke it.
89647
89648         Module memcpy.
89649         * m4/memcpy.m4: New file.
89650
89651         Module memmove.
89652         * m4/memmove.m4: New file.
89653
89654         Module memset.
89655         * m4/memset.m4: New file.
89656
89657         Module strcspn.
89658         * m4/strcspn.m4: New file.
89659
89660         Module strpbrk.
89661         * m4/strpbrk.m4: New file.
89662
89663         Module strstr.
89664         * m4/strstr.m4: New file.
89665
89666         Module strerror.
89667         * m4/strerror.m4: New file.
89668
89669         Module mktime.
89670         * m4/mktime.m4: Renamed from jm-mktime.m4.
89671         (gl_PREREQ_MKTIME): New macro.
89672         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
89673
89674         Module malloc.
89675         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
89676         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
89677         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
89678
89679         Module realloc.
89680         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
89681         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
89682         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
89683
89684         Module strftime.
89685         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
89686         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
89687         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
89688         gl_TM_GMTOFF.
89689         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
89690
89691         Module xalloc.
89692         * m4/xalloc.m4: New file.
89693
89694         Module alloca.
89695         * m4/alloca.m4: New file.
89696
89697         Module putenv.
89698         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
89699         (jm_FUNC_PUTENV): Invoke it.
89700
89701         Module setenv.
89702         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
89703         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
89704         when invoked twice.
89705         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
89706         gt_FUNC_SETENV.
89707
89708         Module memrchr.
89709         * m4/memrchr.m4: New file.
89710
89711         Module stpcpy.
89712         * m4/stpcpy.m4: New file.
89713
89714         Module strcase.
89715         * m4/strcase.m4: New file.
89716
89717         Module strdup.
89718         * m4/strdup.m4: New file.
89719
89720         Module strnlen.
89721         * m4/strnlen.m4: New file.
89722
89723         Module strndup.
89724         * m4/strndup.m4: New file.
89725
89726         Module xstrtod.
89727         * m4/xstrtod.m4: New file.
89728
89729         Module xstrtol.
89730         * m4/xstrtol.m4: New file.
89731
89732         Module getdate.
89733         * m4/getdate.m4: New file.
89734
89735         Module unlocked-io.
89736         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
89737         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
89738         * m4/jm-glibc-io.m4n: Remove file.
89739
89740         Module long-options.
89741         * m4/long-options.m4: New file.
89742
89743         Module md5.
89744         * m4/md5.m4: New file.
89745
89746         Module sha.
89747         * m4/sha.m4: New file.
89748
89749         Module getstr.
89750         * m4/getstr.m4: New file.
89751
89752         Module getline.
89753         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
89754         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
89755         <sys/types.h>, for size_t. Use the function name gnu_getline, not
89756         simply getline. Infoke gl_PREREQ_GETLINE.
89757
89758         Module obstack.
89759         * m4/obstack.m4: New file.
89760
89761         Module hash.
89762         * m4/hash.m4: New file.
89763
89764         Module readtokens.
89765         * m4/readtokens.m4: New file.
89766
89767         Module strverscmp.
89768         * m4/strverscmp.m4: New file.
89769
89770         Module stdbool.
89771         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
89772         OSF/1.
89773
89774         Module strtoll.
89775         * m4/strtoll.m4: New file.
89776
89777         Module strtoull.
89778         * m4/strtoull.m4: New file.
89779
89780         Module strtoimax.
89781         * m4/strtoimax.m4: New file.
89782
89783         Module strtoumax.
89784         * m4/strtoumax.m4: New file.
89785
89786         Module xstrtoimax.
89787         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
89788         jm_AC_PREREQ_XSTRTOIMAX.
89789         Moved the strtol prerequisites to strtol.m4.
89790         Moved the strtoll prerequisites to strtoll.m4.
89791         Moved the strtoimax prerequisites to strtoimax.m4.
89792
89793         Module xstrtoumax.
89794         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
89795         jm_AC_PREREQ_XSTRTOUMAX.
89796         Moved the strtoul prerequisites to strtoul.m4.
89797         Moved the strtoull prerequisites to strtoull.m4.
89798         Moved the strtoumax prerequisites to strtoumax.m4.
89799
89800         Module chown.
89801         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
89802         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
89803
89804         Module dup2.
89805         * m4/dup2.m4: New file.
89806
89807         Module ftruncate.
89808         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
89809         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
89810
89811         Module getgroups.
89812         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
89813         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
89814
89815         Module gettimeofday.
89816         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
89817         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
89818         gl_PREREQ_GETTIMEOFDAY.
89819
89820         Module mkdir.
89821         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
89822         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
89823
89824         Module mkstemp.
89825         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
89826         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
89827         jm_AC_TYPE_UINTMAX_T.
89828         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
89829
89830         Module stat.
89831         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
89832         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
89833
89834         Module lstat.
89835         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
89836         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
89837
89838         Module timespec.
89839         * m4/timespec.m4 (gl_TIMESPEC): New macro.
89840         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
89841         * m4/st_mtim.m4: Indentation.
89842
89843         Module nanosleep.
89844         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
89845         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
89846         gl_PREREQ_NANOSLEEP.
89847
89848         Module regex.
89849         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
89850         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
89851         (gl_REGEX): New macro.
89852
89853         Module rename.
89854         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
89855         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
89856
89857         Module rmdir.
89858         * m4/rmdir.m4: New file.
89859
89860         Module utime.
89861         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
89862         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
89863         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
89864
89865         Module dirname.
89866         * m4/dirname.m4: New file.
89867
89868         Module getopt.
89869         * m4/getopt.m4: New file.
89870
89871         Module unistd-safer.
89872         * m4/unistd-safer.m4: New file.
89873
89874         Module fnmatch.
89875         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
89876         declaration.
89877         (gl_PREREQ_FNMATCH_EXTRA): New macro.
89878         (gl_FUNC_FNMATCH_POSIX): New macro.
89879         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
89880         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
89881         simply fnmatch.
89882
89883         Module exclude.
89884         * m4/exclude.m4: New file.
89885
89886         Module human.
89887         * m4/human.m4: New file.
89888
89889         Module acl.
89890         * m4/acl.m4: Nop.
89891
89892         Module backupfile.
89893         * m4/backupfile.m4: New file.
89894         * m4/d-ino.m4: Indentation.
89895
89896         Module fsusage.
89897         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
89898         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
89899         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
89900
89901         Module dirfd.
89902         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
89903         requirements.
89904
89905         Module euidaccess.
89906         * m4/euidaccess.m4: New file.
89907
89908         Module file-type.
89909         * m4/file-type.m4: New file.
89910
89911         Module fileblocks.
89912         * m4/fileblocks.m4: New file.
89913
89914         Module filemode.
89915         * m4/filemode.m4: New file.
89916
89917         Module isdir.
89918         * m4/isdir.m4: New file.
89919
89920         Module lchown.
89921         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
89922         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
89923
89924         Module makepath.
89925         * m4/makepath.m4: New file.
89926
89927         Module modechange.
89928         * m4/modechange.m4: New file.
89929
89930         Module mountlist.
89931         * m4/mountlist.m4: New file.
89932         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
89933         Indentation.
89934
89935         Module path-concat.
89936         * m4/path-concat.m4: New file.
89937
89938         Module pathmax.
89939         * m4/pathmax.m4: New file.
89940
89941         Module same.
89942         * m4/same.m4: New file.
89943
89944         Module save-cwd.
89945         * m4/save-cwd.m4: New file.
89946
89947         Module savedir.
89948         * m4/savedir.m4: New file.
89949
89950         Module xgetcwd.
89951         * m4/xgetcwd.m4: New file.
89952         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
89953
89954         Module xreadlink.
89955         * m4/xreadlink.m4: New file.
89956
89957         Module safe-read.
89958         * m4/safe-read.m4: New file.
89959
89960         Module safe-write.
89961         * m4/safe-write.m4: New file.
89962
89963         Module closeout.
89964         * m4/closeout.m4: New file.
89965
89966         Module stdio-safer.
89967         * m4/stdio-safer.m4: New file.
89968
89969         Module getpass.
89970         * m4/getpass.m4: New file.
89971
89972         Module getugroups.
89973         * m4/getugroups.m4: New file.
89974
89975         Module group-member.
89976         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
89977         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
89978
89979         Module idcache.
89980         * m4/idcache.m4: New file.
89981
89982         Module userspec.
89983         * m4/userspec.m4: New file.
89984
89985         Module gettime.
89986         * m4/clock_time.m4: New file.
89987         * m4/gettime.m4: New file.
89988
89989         Module settime.
89990         * m4/settime.m4: New file.
89991
89992         Module posixtm.
89993         * m4/posixtm.m4: New file.
89994
89995         Module gethostname.
89996         * m4/gethostname.m4: New file.
89997
89998         Module canon-host.
89999         * m4/canon-host.m4: New file.
90000
90001         Module gettext.
90002         * m4/codeset.m4: New file, from gettext-0.11.5.
90003         * m4/gettext.m4: New file, from gettext-0.11.5.
90004         * m4/glibc21.m4: New file, from gettext-0.11.5.
90005         * m4/iconv.m4: New file, from gettext-0.11.5.
90006         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90007         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90008         * m4/inttypes.m4: New file, from gettext-0.11.5.
90009         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90010         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90011         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90012         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90013         * m4/lib-link.m4: New file, from gettext-0.11.5.
90014         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90015         * m4/progtest.m4: New file, from gettext-0.11.5.
90016         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90017         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90018         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90019
90020         Module localcharset.
90021         * m4/localcharset.m4: New file.
90022
90023         Module hard-locale.
90024         * m4/hard-locale.m4: New file.
90025
90026         Module mbswidth.
90027         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90028         onceonly macros.
90029         * m4/mbrtowc.m4: Add comment.
90030
90031         Module memcasecmp.
90032         * m4/memcasecmp.m4: New file.
90033
90034         Module memcoll.
90035         * m4/memcoll.m4: New file.
90036
90037         Module unicodeio.
90038         * m4/unicodeio.m4: New file.
90039
90040         Module rpmatch.
90041         * m4/rpmatch.m4: New file.
90042
90043         Module yesno.
90044         * m4/yesno.m4: New file.
90045
90046         Module exitfail.
90047         * m4/exitfail.m4: New file.
90048
90049         Module c-stack.
90050         * m4/c-stack.m4 (gl_C_STACK): New macro.
90051         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90052
90053         Module error.
90054         * m4/error.m4 (gl_ERROR): New macro.
90055         (jm_PREREQ_ERROR): Use onceonly macros.
90056
90057         Module fatal.
90058         * m4/fatal.m4: New file.
90059
90060         Module getloadavg.
90061         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90062         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90063
90064         Module getpagesize.
90065         * m4/getpagesize.m4: New file.
90066
90067         Module getusershell.
90068         * m4/getusershell.m4: New file.
90069
90070         Module physmem.
90071         * m4/physmem.m4: New file.
90072
90073         Module posixver.
90074         * m4/posixver.m4: New file.
90075
90076         Module quotearg.
90077         * m4/quotearg.m4: New file.
90078
90079         Module quote.
90080         * m4/quote.m4: New file.
90081
90082         Module readutmp.
90083         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90084
90085         Module sig2str.
90086         * m4/sig2str.m4: New file.
90087
90088         Other.
90089         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90090         ulonglong.m4.
90091         * m4/intmax_t.m4: New file.
90092         * m4/d-type.m4: Indentation.
90093         * m4/jm-macros.m4: Update.
90094         * m4/prereq.m4 (jm_PREREQ): Update.
90095         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90096         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90097         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90098         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90099         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90100         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90101         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90102         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90103         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90104         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90105         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90106         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90107         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90108         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90109         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90110         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90111         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90112         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90113         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90114
90115 2002-12-24  Bruno Haible  <bruno@clisp.org>
90116
90117         * MODULES.txt: Update according to m4/ changes.
90118
90119         Module gettext.
90120         * config.rpath: New file, from gettext-0.11.5.
90121
90122         * modules/*: New module descriptions.
90123         * gnulib-tool: New file.
90124         * MODULES.html.sh: New file.
90125
90126 2002-12-21  Karl Berry  <karl@gnu.org>
90127
90128         * doc/fdl.texi: update to version 1.2.
90129
90130 2002-12-19  Karl Berry  <karl@gnu.org>
90131
90132         * config/config.guess: update from prep.
90133
90134 2002-12-18  Bruno Haible  <bruno@clisp.org>
90135
90136         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90137         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90138
90139 2002-12-17  Bruno Haible  <bruno@clisp.org>
90140
90141         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90142         stdlib.h, string.h.
90143
90144 2002-12-17  Bruno Haible  <bruno@clisp.org>
90145
90146         * lib/canon-host.c (strdup): Remove unused declaration.
90147
90148         * lib/fsusage.c: Include full_read.h.
90149         (get_fs_usage): Use full_read instead of safe_read.
90150
90151         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90152
90153 2002-12-12  Karl Berry  <karl@gnu.org>
90154
90155         * config/config.guess: update from prep.
90156
90157 2002-12-11  Bruno Haible  <bruno@clisp.org>
90158
90159         * m4/setenv.m4: New file, from gettext-0.11.5.
90160
90161 2002-12-11  Bruno Haible  <bruno@clisp.org>
90162
90163         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90164         not unsetenv().
90165         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90166         modifications:
90167
90168         2002-12-11  Bruno Haible  <bruno@clisp.org>
90169
90170                 * setenv.c (alloca): Fall back to malloc.
90171                 (freea): New macro.
90172                 (setenv): Use freea() to free memory allocated with alloca().
90173
90174         2002-11-13  Bruno Haible  <bruno@clisp.org>
90175
90176                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90177                 function declarations.
90178                 * unsetenv.c (unsetenv): Likewise.
90179
90180         2002-03-04  Bruno Haible  <bruno@clisp.org>
90181
90182                 Portability to AIX 4.3.3.
90183                 * unsetenv.c: New file, extracted from setenv.c.
90184                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90185
90186         2001-12-20  Bruno Haible  <bruno@clisp.org>
90187
90188                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90189                 use malloc instead. For SunOS 4.
90190
90191         2001-12-11  Bruno Haible  <bruno@clisp.org>
90192
90193                 * setenv.c: Declare alloca.
90194                 (compar_fn_t): New typedef.
90195                 (KNOWN_VALUE, STORE_VALUE): Use it.
90196
90197         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90198         setenv.h.
90199
90200 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90201
90202         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90203         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90204         Choose values that are less likely to collide with system fnmatch
90205         options.
90206         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90207         defined (e.g., a pure POSIX system).
90208         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90209         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90210
90211 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90212
90213         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90214         a pain in practice to deal with generated m4 files.  This change
90215         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90216
90217         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90218         and jm-glibc-io.m4, as they are no longer a special case.
90219         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90220         kludge and the auto-generation stuff.  Check only whether the
90221         functions are declared, not whether they exist, since older hosts
90222         that don't declare the functions can't use the optimization anyway.
90223
90224 2002-12-06  Jim Meyering  <jim@meyering.net>
90225
90226         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90227
90228         Merge in changes from libc's misc/error.c, in preparation
90229         for the merge of gnulib's changes back into libc.
90230
90231         * lib/error.c (_): Define only if not already defined.
90232         Move definition to follow all #include directives.
90233         Include unlocked-io.h only if !_LIBC.
90234         [_LIBC]: Include <libio/libioP.h>.
90235         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90236         (fflush): Tweak definition to use INTUSE.
90237         (putc): Define.
90238
90239 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90240
90241         * lib/alloca.c [defined emacs]: Include "lisp.h".
90242         (xalloc_die) [defined emacs]: New macro.
90243         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90244         [! defined emacs]: Include <xalloc.h>.
90245         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90246         (pointer): Typedef to POINTER_TYPE *.
90247         (malloc): Remove decl; we now always use xmalloc.
90248         (alloca): Use old-style definition, since Emacs needs this.
90249         Check for arithmetic overflow when computing combined size.
90250
90251 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90252
90253         Do not generate unlocked-io.h automatically, since it's easier to
90254         maintain it by hand.
90255
90256         * lib/unlocked-io.h: New file, from GNU diffutils,
90257         but with proper copyright notice and attribution.
90258         * lib/gen-uio: Remove.
90259         * lib/Makefile.am: Add copyright notice.
90260         (libfetish_a_SOURCES): Add unlocked-io.h.
90261         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90262         (DISTCLEANFILES, io_functions): Remove macros.
90263         (EXTRA_DIST): Remove gen_uio.
90264         (unlocked-io.h): Remove rule.
90265
90266 2002-12-04  Jim Meyering  <jim@meyering.net>
90267
90268         Reflect the fact that stat.c and lstat.c are no longer generated.
90269         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90270         (DISTCLEANFILES): Likewise.
90271         (EXTRA_DIST): Likewise.
90272         (all_local): Don't depend on stat.c or lstat.c.
90273         (stat.c, lstat.c): Remove rules.
90274         (EXTRA_DIST): Remove xstat.in.
90275
90276         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90277         * lib/stat.c: New file.  Contents mostly from xstat.in.
90278         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90279         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90280
90281         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90282         too.
90283         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90284
90285 2002-12-03  Jim Meyering  <jim@meyering.net>
90286
90287         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90288         but not semantics, to minimize the differences between these two files.
90289         (safe_read): Change comment to mention SAFE_READ_ERROR.
90290
90291         * lib/safe-read.c (IS_EINTR): Define.
90292         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90293
90294 2002-12-02  Jim Meyering  <jim@meyering.net>
90295
90296         * lib/safe-read.c (EINTR): Define.
90297         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90298         (INT_MAX): Provide fallback.
90299         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90300
90301         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90302
90303 2002-12-02  Bruno Haible  <bruno@clisp.org>
90304
90305         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90306         Define, taken from safe-read.c.
90307         (INT_MAX): Provide fallback.
90308         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90309         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90310
90311         * lib/safe-read.c (EINTR): Remove definition.
90312         (safe_read): Don't use EINTR if it is absent.
90313
90314 2002-12-01  Jim Meyering  <jim@meyering.net>
90315
90316         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90317         zero.
90318         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90319
90320 2002-11-27  Paul Eggert  <eggert@twinsun.com>
90321
90322         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
90323         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
90324         with `if (! (value < limit)) abort ();', for readability.
90325
90326 2002-11-26  Karl Berry  <karl@gnu.org>
90327
90328         * lib/strdup.c: copy from libc again, with jim's ok.
90329         * lib/.cppi-disable: re-add strdup.c
90330
90331 2002-11-25  Karl Berry  <karl@gnu.org>
90332
90333         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
90334         instead of "strtol.c".
90335
90336 2002-11-25  Karl Berry  <karl@gnu.org>
90337
90338         * config/install-sh: update from automake for variable quoting, $0 in
90339         error msgs, etc.
90340
90341         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
90342         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
90343         entry.
90344
90345 2002-11-25  Jim Meyering  <jim@meyering.net>
90346
90347         * lib/mktime.c: Sync from libc, now that it has the latest fix.
90348
90349 2002-11-24  Karl Berry  <karl@gnu.org>
90350
90351         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
90352         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
90353
90354 2002-11-24  Jim Meyering  <jim@meyering.net>
90355
90356         Update from coreutils:
90357
90358         * lib/mktime.c: Merge in changes from libc.
90359
90360         Avoid a link-time failure on some Linux systems.
90361         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90362         (otherwise).
90363         (__mon_yday): Declare with the STATIC attribute.
90364         (__mktime_internal): Likewise.
90365         Based on a report from Greg Schafer.
90366
90367 2002-11-23  Jim Meyering  <jim@meyering.net>
90368
90369         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90370         Use `unsigned', not `int', as type of index.
90371
90372         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90373
90374         * lib/fsusage.c: Remove unneeded parentheses around operands of
90375         `defined'.
90376
90377 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90378
90379         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90380         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90381         so that we can be included first.
90382         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90383         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90384         No need to include stddef.h or sys/types.h any more.
90385         Surround local include files with "", not "<>".
90386         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90387         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90388         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90389         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90390         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90391         (ISPRINT): Remove; no longer needed now that we assume C89.
90392
90393         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90394         Preserve errno.
90395
90396         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
90397         quotearg_char): Use SIZE_MAX rather than
90398         (size_t) -1 when we are talking about "infinity".
90399
90400         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
90401
90402 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90403
90404         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
90405         hint that one should use `if (! x) abort ();' rather than `assert
90406         (x);', and anyway it's one less thing to worry about configuring.
90407         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
90408         hash_rehash, hash_insert): Use abort rather than assert.
90409
90410 2002-11-22  Bruno Haible  <bruno@clisp.org>
90411
90412         * lib/safe-read.h: Assume C89. Add comments.
90413         (safe_read): Change return type to size_t.
90414         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
90415         byte counts > SSIZE_MAX correctly.
90416         * lib/safe-write.h: New file.
90417         * lib/safe-write.c: New file.
90418         * lib/full-read.h: New file.
90419         * lib/full-read.c: New file.
90420         * lib/full-write.h: Assume C89. Add comments.
90421         * lib/full-write.c: Include safe-write.h.
90422         (full_write): Rewritten to use safe_write.
90423         Suggested by Jim Meyering and Paul Eggert.
90424
90425 2002-11-21  Jim Meyering  <jim@meyering.net>
90426
90427         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
90428
90429         Merge in changes from the coreutils.
90430
90431         2002-09-25  Paul Eggert  <eggert@twinsun.com>
90432         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
90433         <stdint.h>.
90434         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
90435         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
90436         int.  Work more efficiently if X is the same width as uintmax_t.
90437         Do not compare X to -1, to avoid bogus compiler warning.
90438         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
90439         Don't assume that f_frsize and f_bsize are the same type.
90440
90441         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
90442         warning on FreeBSD.
90443
90444         * lib/makepath.c (make_path): Restore umask *before* creating the final
90445         component.
90446         (make_path): Minor reformatting.
90447
90448         * lib/xmalloc.c: Adjust to work with new autoconf macros,
90449         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
90450         HAVE_MALLOC/HAVE_REALLOC.
90451
90452         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
90453         dummy ones.  At least on GNU/Linux systems, `auto' means something
90454         else.
90455         From Michael Stone.
90456
90457 2002-11-21  Bruno Haible  <bruno@clisp.org>
90458
90459         Remove case insensitive option matching.
90460         * lib/argmatch.h (argcasematch): Remove declaration.
90461         (ARGCASEMATCH): Remove macro.
90462         (__xargmatch_internal): Remove case_sensitive argument.
90463         (XARGMATCH): Update.
90464         (XARGCASEMATCH): Remove macro.
90465         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
90466         case_sensitive argument.
90467         (argcasematch): Remove function.
90468         (__xargmatch_internal): Remove case_sensitive argument.
90469         (main): Use XARGMATCH instead of XARGCASEMATCH.
90470
90471         * lib/xmalloc.c: Change compile-time error message. Add comment about
90472         required autoconf version.
90473
90474 2002-11-20  Paul Eggert  <eggert@twinsun.com>
90475
90476         Merge argmatch cleanups from Bison.  Assume C89.
90477
90478         * lib/argmatch.c: Include config.h here, not in argmatch.h.
90479         Include stdlib.h, for EXIT_FAILURE.
90480         Always include <string.h>, since we assume C89.
90481         (EXIT_FAILURE): Remove pre-C89 bug workaround.
90482         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
90483         Include <stddef.h> instead, since it's all we need for size_t.
90484         (PARAMS): Remove.  All uses removed.
90485         (ARRAY_CARDINALITY): Do not bother to #undef.
90486         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
90487         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90488         Remove unnecessary parentheses.
90489         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90490         Insert necessary parentheses.
90491         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
90492         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
90493
90494 2002-11-19  Bruno Haible  <bruno@clisp.org>
90495
90496         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
90497         * lib/mbswidth.h: Include <stddef.h>, for size_t.
90498
90499         * lib/mbswidth.h (PARAMS): Remove macro.
90500         (mbswidth, mbsnwidth): Use ANSI C function declarations.
90501         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
90502
90503         * lib/gcd.h (PARAMS): Remove macro.
90504         (gcd): Use ANSI C function declarations.
90505         * lib/gcd.c (gcd): Likewise.
90506
90507 2002-11-15  Bruno Haible  <bruno@clisp.org>
90508
90509         * lib/strcspn.c: Include <stddef.h>.
90510         (strcspn): Use ANSI C function declaration. Change return type to
90511         size_t. Use NULL.
90512         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90513         (strpbrk): Use NULL.
90514         * lib/strpbrk.h (PARAMS): Remove macro.
90515         (strpbrk): Use ANSI C function declaration.
90516         * lib/strstr.c: Don't include <sys/types.h>.
90517         * lib/strstr.h (PARAMS): Remove macro.
90518         (strstr): Use ANSI C function declarations.
90519
90520 2002-11-14  Karl Berry  <karl@gnu.org>
90521
90522         * config/mkinstalldirs: `do' on separate line, instead of
90523         `for var; do'.
90524
90525 2002-11-06  Bruno Haible  <bruno@clisp.org>
90526
90527         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90528         * lib/gcd.c (gcd): Likewise.
90529
90530 2002-11-05  Bruno Haible  <bruno@clisp.org>
90531
90532         * lib/gcd.h: New file, from gettext-0.11.5.
90533         * lib/gcd.c: New file, from gettext-0.11.5.
90534
90535 2002-11-05  Bruno Haible  <bruno@clisp.org>
90536
90537         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90538         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90539         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90540         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90541
90542         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90543         <libintl.h>.
90544         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90545         <libintl.h>.
90546
90547         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90548         * lib/human.c: Include gettext.h instead of <libintl.h>.
90549         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90550         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90551         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90552         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90553         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90554         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90555         (textdomain): Remove definition.
90556         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90557
90558         * lib/long-options.c: Remove include of <libintl.h> and definition of
90559         _.
90560         * lib/same.c: Remove include of <libintl.h> and definition of _.
90561
90562 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90563
90564         * lib/config.charset: A few additions for Solaris.
90565
90566 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90567
90568         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90569         * lib/localcharset.c (locale_charset): Declare as extern "C".
90570
90571 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90572
90573         * lib/config.charset: msdos in uk_UA uses CP1125.
90574
90575 2002-11-04  Bruno Haible  <bruno@clisp.org>
90576
90577         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90578         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90579         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90580         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90581         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90582
90583 2002-11-04  Bruno Haible  <bruno@clisp.org>
90584
90585         * lib/localcharset.c (locale_charset): Don't return an empty string.
90586
90587 2002-11-04  Bruno Haible  <bruno@clisp.org>
90588
90589         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90590         aliases.
90591
90592 2002-11-04  Bruno Haible  <bruno@clisp.org>
90593
90594         * lib/config.charset: Update for newest glibc. Add canonical names
90595         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90596
90597 2002-11-04  Bruno Haible  <bruno@clisp.org>
90598
90599         * lib/config.charset: Add support for NetBSD.
90600
90601 2002-11-04  Bruno Haible  <bruno@clisp.org>
90602
90603         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90604
90605 2002-11-01  Bruno Haible  <bruno@clisp.org>
90606
90607         * configure.in: Add AC_CONFIG_AUX_DIR call.
90608         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90609         test/Makefile.
90610         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90611
90612 2002-09-28  Karl Berry  <karl@gnu.org>
90613
90614         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90615         installed automake until the next release, since changes have been
90616         made.
90617
90618 2002-09-25  Karl Berry  <karl@gnu.org>
90619
90620         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90621         * lib/getopt*: copy from libc/posix.
90622         * lib/gettext.h: copy from gettext.
90623         * lib/.cppi-disable: add strdup.c, gettext.h.
90624
90625 2002-09-25  Karl Berry  <karl@gnu.org>
90626
90627         * config/srclist.txt: enable gettext.h check.
90628         * config/config.{guess,sub}: update from prep.
90629         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90630                 from automake 1.6.3.
90631         See srclist*.
90632
90633 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90634
90635         * regex.c (PATFETCH): Remove the translating fetch.
90636         (PATFETCH_RAW): Rename to PATFETCH.
90637         (set_image_of_range): New fun.
90638         (SET_RANGE_TABLE_WORK_AREA): Use it.
90639         (regex_compile): Don't translate the pattern chars so eagerly.
90640         Only do it when inserting an `exactn' bytecode or when handling
90641         a char-range.
90642         (mutually_exclusive_p): Avoid empty statement.
90643
90644 2002-07-06  Jim Meyering  <meyering@lucent.com>
90645
90646         * m4/README: Don't mention Makefile.am.in.
90647         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90648
90649 2002-07-01  Jim Meyering  <meyering@lucent.com>
90650
90651         * lib/c-stack.c: Include sys/time.h.
90652         From Volker Borchert.
90653
90654 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90655
90656         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90657
90658 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90659
90660         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
90661         New macro.  Use it uniformly instead of
90662         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
90663         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
90664         reported by Vin Shelton.
90665
90666 2002-06-22  Paul Eggert  <eggert@twinsun.com>
90667
90668         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
90669         Do not assume SA_SIGINFO behavior.
90670         Bug reported by Jim Meyering on NetBSD 1.5.2.
90671
90672 2002-06-22  Jim Meyering  <meyering@lucent.com>
90673
90674         * m4/c-stack.m4: New file, from diffutils-2.8.2.
90675         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
90676
90677         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
90678         now that configure.ac uses AC_GNU_SOURCE.
90679         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
90680         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
90681
90682         Update to latest tools.  Suggestions from Paul Eggert.
90683         * m4/stdbool.m4: New file, from diffutils-2.8.2.
90684         * m4/gnu-source.m4: Update from diffutils-2.8.2.
90685         * m4/fnmatch.m4: Likewise.
90686         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
90687         to AC_HEADER_STDBOOL
90688
90689 2002-06-22  Jim Meyering  <meyering@lucent.com>
90690
90691         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
90692         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
90693
90694 2002-06-22  Jim Meyering  <meyering@lucent.com>
90695
90696         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
90697
90698         * lib/exitfail.c, exitfail.h: Likewise.
90699         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
90700
90701         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
90702         of fnmatch.h.
90703         (EXTRA_DIST): Add fnmatch_loop.c.
90704         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
90705
90706         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
90707         * lib/fnmatch.c: Update from diffutils-2.8.2.
90708         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
90709         * lib/fnmatch.h: Remove file.
90710
90711 2002-06-21  Jim Meyering  <meyering@lucent.com>
90712
90713         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
90714         * m4/mbrtowc.m4: Likewise.
90715
90716         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
90717         * m4/mbswidth.m4: Reflect name change:
90718         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
90719         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90720
90721         * m4/lib-link.m4: Update from gettext-0.11.2.
90722         * m4/gettext.m4: Likewise.
90723
90724         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
90725         From Alfred M. Szmidt.
90726
90727 2002-06-18  Paul Eggert  <eggert@twinsun.com>
90728
90729         * lib/file-type.h: Report an error if neither S_ISREG nor
90730         S_IFREG is defined, instead of using a test specific to glibc
90731         2.2.  This should be safe, since POSIX requires S_ISREG and
90732         Unix Version 7 had S_IFREG.  We don't need to check for
90733         <sys/types.h> since we don't use any symbols that it defines.
90734
90735 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
90736
90737         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
90738         $@-t, so that each temporary file name is unique and valid in the first
90739         8 characters, for operation under DOS.
90740
90741 2002-06-15  Paul Eggert  <eggert@twinsun.com>
90742
90743         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
90744
90745 2002-06-15  Jim Meyering  <meyering@lucent.com>
90746
90747         Work even with DJGPP 2.03, which lacks support for symlinks.
90748         From Richard Dawe.
90749         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
90750         is defined.
90751         * lib/lchown.c (S_ISLNK): Likewise.
90752
90753 2002-06-15  Jim Meyering  <meyering@lucent.com>
90754
90755         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
90756         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
90757         have been included before this file.
90758
90759 2002-06-14  Jim Meyering  <meyering@lucent.com>
90760
90761         * lib/file-type.h: Use the version from diffutils-2.8.2.
90762         * lib/file-type.c: Likewise.
90763
90764 2002-06-07  Jim Meyering  <meyering@lucent.com>
90765
90766         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
90767         They're needed at least for NetBSD 1.5.2.
90768         ($statxfs_includes): Include those same headers.
90769         ($statxfs_includes): Include sys/vfs.h if available.
90770         ($statxfs_includes): Likewise for sys/statvfs.h.
90771         Check for the following members in both structs statfs and statvfs:
90772         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
90773
90774 2002-06-01  Jim Meyering  <meyering@lucent.com>
90775
90776         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
90777         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
90778
90779 2002-05-28  Jim Meyering  <meyering@lucent.com>
90780
90781         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
90782         Reported by Volker Borchert.
90783
90784 2002-05-27  Jim Meyering  <meyering@lucent.com>
90785
90786         Fix a problem seen only on nonconforming systems whereby ls.c's
90787         use of localtime, and then of gettimeofday would cause trouble:
90788         the localtime call used to initialize rpl_gettimeofday's save
90789         mechanism would clobber ls's current local time information so
90790         that in any long listing the first file would always be listed
90791         with date 1970-01-01.  Analysis by Volker Borchert.
90792
90793         * lib/gettimeofday.c (localtime): Undefine.
90794         (rpl_localtime): New function.
90795
90796 2002-05-27  Jim Meyering  <meyering@lucent.com>
90797
90798         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
90799         localtime.
90800
90801         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
90802         use the replacement function; it wouldn't resolve at link time.
90803         Reported by Volker Borchert.
90804
90805 2002-05-22  Jim Meyering  <meyering@lucent.com>
90806
90807         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
90808         file-type.h.
90809         * lib/file-type.h: New file.
90810         * lib/file-type.c (file_type): New file/function.  Extracted from
90811         diffutils.
90812
90813 2002-04-30  Jim Meyering  <meyering@lucent.com>
90814
90815         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
90816
90817 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90818
90819         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
90820
90821 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90822
90823         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
90824         Do not check for alloca.h (no longer used) or stdbool.h (was never
90825         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
90826
90827 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90828
90829         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
90830
90831 2002-04-29  Jim Meyering  <meyering@lucent.com>
90832
90833         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
90834         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
90835         Use AC_FUNC_STRNLEN here instead.
90836
90837         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
90838         With autoconf-2.53a, it's part of AC_PROG_CC.
90839
90840 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90841
90842         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
90843         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
90844
90845 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90846
90847         * lib/sig2str.h, lib/sig2str.c: New files.
90848         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
90849
90850 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90851
90852         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
90853         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
90854         of 127, since 64 is the largest conceivable number for ancient
90855         nonstandard hosts.
90856         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
90857
90858 2002-04-28  Jim Meyering  <meyering@lucent.com>
90859
90860         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
90861
90862 2002-04-24  Jim Meyering  <meyering@lucent.com>
90863
90864         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
90865         (jm_PREREQ): Use it.
90866
90867         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
90868         mach/mach.h fcntl.h.
90869         Check for this function: setlocale.
90870
90871 2002-04-24  Jim Meyering  <meyering@lucent.com>
90872
90873         * lib/gettext.h: New file, from Gettext.
90874         * lib/Makefile.am (INCLUDES): Remove -I../intl.
90875         (libfetish_a_SOURCES): Add gettext.h.
90876
90877 2002-04-16  Jim Meyering  <meyering@lucent.com>
90878
90879         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
90880         ut_pid, ut_id, ut_exit.
90881
90882 2002-04-16  Jim Meyering  <meyering@lucent.com>
90883
90884         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
90885         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
90886         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
90887
90888 2002-04-12  Jim Meyering  <meyering@lucent.com>
90889
90890         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
90891         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
90892         existence of the getmntinfo function.  Needed for Darwin 5.3.
90893
90894         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
90895         This is necessary at least on Darwin 5.3.
90896
90897         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
90898         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
90899         strnlen.o in the library, and that makes some versions of ranlib
90900         object.
90901
90902 2002-04-12  Jim Meyering  <meyering@lucent.com>
90903
90904         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
90905
90906 2002-04-09  Jim Meyering  <meyering@lucent.com>
90907
90908         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
90909         to be more precise.  Rather than saying we're checking whether the
90910         function `works', say what we're testing.
90911         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
90912         Reported by Bruno Haible.
90913
90914 2002-03-10  Jim Meyering  <meyering@lucent.com>
90915
90916         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
90917         Suggestion from Santiago Vila.
90918
90919 2002-03-08  Jim Meyering  <meyering@lucent.com>
90920
90921         * lib/rename.c: Mention that this wrapper is needed also on
90922         mips-dec-ultrix4.4 systems.
90923
90924 2002-03-02  Jim Meyering  <meyering@lucent.com>
90925
90926         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
90927         not HAVE_CLOCK_SETTIME.
90928
90929 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90930
90931         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
90932         Check for clock_settime.
90933
90934 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90935
90936         * lib/nanosleep.h: Rename to....
90937         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
90938
90939         * lib/gettime.c: New file.
90940         * lib/settime.c: New file.
90941         * lib/stime.c: Remove.
90942
90943         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
90944         timespec.h.  Remove nanosleep.h.
90945
90946 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90947
90948         * m4/acl.m4: New file.
90949         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
90950         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
90951
90952 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90953
90954         * lib/acl.c, lib/acl.h: New files.
90955         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
90956
90957 2002-02-24  Jim Meyering  <meyering@lucent.com>
90958
90959         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
90960         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
90961         cause trouble.  Reported by Nelson Beebe.
90962
90963 2002-02-23  Paul Eggert  <eggert@twinsun.com>
90964
90965         * lib/path-concat.c (xpath_concat): Reorder code to pacify
90966         compilers that don't know that xalloc_die never returns.
90967
90968 2002-02-20  Jim Meyering  <meyering@lucent.com>
90969
90970         * lib/getdate.c: Regenerate using bison-1.33.
90971
90972 2002-02-17  Jim Meyering  <meyering@lucent.com>
90973
90974         * config/config.guess (main): Don't use `head -1'; it's no longer
90975         portable. Use `sed 1q' instead.
90976
90977 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
90978
90979         * m4/codeset.m4: Upgrade to gettext-0.11.
90980         * m4/gettext.m4: Upgrade to gettext-0.11.
90981         * m4/glibc21.m4: Upgrade to gettext-0.11.
90982         * m4/iconv.m4: Upgrade to gettext-0.11.
90983         * m4/isc-posix.m4: Upgrade to gettext-0.11.
90984         * m4/lcmessage.m4: Upgrade to gettext-0.11.
90985         * m4/lib-ld.m4: New file, from gettext-0.11.
90986         * m4/lib-link.m4: New file, from gettext-0.11.
90987         * m4/lib-prefix.m4: New file, from gettext-0.11.
90988         * m4/progtest.m4: Upgrade to gettext-0.11.
90989
90990 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90991
90992         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
90993         (jm_PREREQ): Use it.
90994
90995 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90996
90997         * lib/posixver.c, lib/posixver.h: New files.
90998         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90999
91000 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91001             Bruno Haible  <bruno@clisp.org>
91002
91003         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91004         (fwrite_success_callback): New declaration.
91005         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91006         print_unicode_char. Call failure callback instead of error.
91007         (fwrite_success_callback): New function.
91008         (exit_failure_callback): New function.
91009         (fallback_failure_callback): New function.
91010         (print_unicode_char): Call unicode_to_mb.
91011
91012 2002-01-26  Jim Meyering  <meyering@lucent.com>
91013
91014         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91015         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91016
91017 2002-01-26  Jim Meyering  <meyering@lucent.com>
91018
91019         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91020
91021 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91022
91023         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91024
91025 2002-01-22  Jim Meyering  <meyering@lucent.com>
91026
91027         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91028         Otherwise, some versions of automake would omit the rule that makes
91029         Makefile from Makefile.in.
91030
91031 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91032
91033         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91034         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91035         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91036         (memcoll): Set errno to zero if there is no error.
91037
91038         * lib/quotearg.c (quotearg_buffer_restyled):
91039         Fix bug with quoting buffers containing NUL when backslashing escapes.
91040         This bug was exposed by the other changes in this patch.
91041         (quotearg_n_options): New arg ARGSIZE.
91042         All callers changed.
91043         (quoting_options_from_style): New function.
91044         (quotearg_n_style): Use it.
91045         (quotearg_n_style_mem): New function.
91046
91047         * lib/quotearg.h (quotearg_n_style_mem): New function.
91048
91049 2002-01-19  Jim Meyering  <meyering@lucent.com>
91050
91051         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91052         Remove useless quotes: DF_PROG="df".
91053         * m4/strnlen.m4: New file.
91054
91055 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91056
91057         * lib/backupfile.c (ISDIGIT): Comment fix.
91058         * lib/getdate.y (ISDIGIT): Likewise.
91059         * lib/posixtm.c (ISDIGIT, year): Likewise.
91060         * lib/strverscmp.c (ISDIGIT): Likewise.
91061         * lib/userspec.c (ISDIGIT): Likewise.
91062
91063 2002-01-16  Jim Meyering  <meyering@lucent.com>
91064
91065         * lib/getdate.y: Add three semicolons, each just before a closing
91066         brace. Bison (as of version 1.31) no longer papers over that mistake.
91067
91068 2002-01-05  Jim Meyering  <meyering@lucent.com>
91069
91070         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91071
91072 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91073
91074         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91075         not silently exit merely because the output buffer happens to
91076         have nothing pending.
91077
91078 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91079
91080         See the big note in ../ChangeLog.
91081         * lib/human.c (suffixes): Prefer K to k for 1024.
91082         (generate_suffix_backwards): New function.
91083         (human_readable_inexact): Use it.
91084         * lib/xstrtol.c (__xstrtol): If there is no number but there
91085         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91086         Accept 'K' as well as 'k'.
91087
91088 2001-12-15  Jim Meyering  <meyering@lucent.com>
91089
91090         * lib/regex.h (__restrict_arr): Update from libc.
91091
91092         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91093         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91094         (STREQ): Define.
91095
91096 2001-12-14  Jim Meyering  <meyering@lucent.com>
91097
91098         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91099         Suggestion from Bruno Haible.
91100
91101 2001-12-10  Jim Meyering  <meyering@lucent.com>
91102
91103         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91104         xrealloc, Instead, include "xalloc.h".
91105         (initbuffer): Don't cast xmalloc return value to char*.
91106         (readline): Reword comment.
91107         Don't cast xrealloc return value to char*
91108         Return NULL, not 0.
91109
91110 2001-12-09  Jim Meyering  <meyering@lucent.com>
91111
91112         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91113         about `signed and unsigned type in conditional expression'.
91114         * lib/posixtm.c (posix_time_parse): Likewise.
91115
91116         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91117
91118         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91119         to avoid a pedantic warning.
91120
91121         * lib/getstr.c: Don't include assert.h.
91122         (getstr): Remove warning-evoking assertions.
91123         Return -1 if offset parameter is out of bounds.
91124         Change the type of a local from int to size_t.
91125
91126         * lib/strftime.c (my_strftime_localtime_r): Include this function
91127         definition in the `#if ! HAVE_TM_GMTOFF' block.
91128
91129         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91130         Include xalloc.h instead.
91131
91132 2001-12-02  Jim Meyering  <meyering@lucent.com>
91133
91134         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91135         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91136         included.
91137
91138         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91139         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91140
91141 2001-11-30  Akim Demaille  <akim@epita.fr>
91142
91143         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91144         before being defined.
91145
91146 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91147
91148         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91149         First arg is int, not unsigned.
91150         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91151         (SIZE_MAX, UINT_MAX): New macros.
91152         (quotearg_n_options): Abort if N is negative.
91153         Avoid overflow check on hosts where size_t is 64 bits and int
91154         is 32 bits, as overflow is impossible there.
91155         Fix off-by-one typo that caused unnecessary reallocation.
91156
91157 2001-11-27  Jim Meyering  <meyering@lucent.com>
91158
91159         * lib/tempname.c: Merge with version from libc.
91160         * lib/regex.c: Likewise.
91161
91162         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91163         systems for which STDC_HEADERS is 0, it was not included, resulting in
91164         a warning about an integer-to-pointer conversion problem with getenv.
91165         Reported by Volker Borchert.
91166
91167 2001-11-26  Jim Meyering  <meyering@lucent.com>
91168
91169         * lib/gtod.h: Remove file.
91170         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91171         * lib/gettimeofday.c: Don't include gtod.h.
91172         (GTOD_init): Remove function.
91173         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91174         Suggestion from Volker Borchert.
91175
91176 2001-11-23  Jim Meyering  <meyering@lucent.com>
91177
91178         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91179         it.
91180         * lib/hash.c (struct hash_table): Define it here instead.
91181
91182 2001-11-22  Jim Meyering  <meyering@lucent.com>
91183
91184         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91185
91186 2001-11-20  Jim Meyering  <meyering@lucent.com>
91187
91188         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91189         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91190
91191 2001-11-19  Jim Meyering  <meyering@lucent.com>
91192
91193         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91194         directory.  Use "conftestXXXXXX" as the template.
91195         Suggestion from Paul Eggert.
91196
91197         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91198         immediately, so the test doesn't mistakenly hit the max-open-files
91199         limit.
91200
91201 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91202
91203         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91204         (TEMPORARIES): New macro.
91205         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91206         removes an artificial limitation (e.g. HP-UX 10.20, where
91207         TMP_MAX is 17576).
91208
91209 2001-11-18  Jim Meyering  <meyering@lucent.com>
91210
91211         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91212
91213 2001-11-18  Jim Meyering  <meyering@lucent.com>
91214
91215         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91216         on SunOS 4.
91217
91218         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91219         files will be created before anything else.
91220
91221 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91222
91223         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91224         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91225
91226 2001-11-17  Jim Meyering  <meyering@lucent.com>
91227
91228         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91229         Prompted by a report from Bob Proulx.
91230
91231         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91232         Instead, require UTILS_FUNC_MKSTEMP.
91233
91234 2001-11-17  Jim Meyering  <meyering@lucent.com>
91235
91236         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91237         Now, that's done as part of AC_FUNC_STRTOD.
91238
91239 2001-11-17  Jim Meyering  <meyering@lucent.com>
91240
91241         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91242         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91243         rather than group writable.  Patch by Juan F. Codagnone.
91244
91245         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91246         xrealloc, Instead, include "xalloc.h".
91247
91248         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91249         Remove explicit declarations of xmalloc, xrealloc,
91250         and xstrdup.  Instead, include "xalloc.h".
91251
91252         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91253         unlocked-io.h.
91254         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91255         Likewise.
91256         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91257
91258         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91259         Reported by Padraig Brady.
91260
91261         * lib/mkstemp.c: #undef mkstemp.
91262         Include config.h.
91263         (rpl_mkstemp): Rename from mkstemp.
91264         Protoize.
91265
91266 2001-11-16  Jim Meyering  <meyering@lucent.com>
91267
91268         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91269         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91270         determine the amount of total physical memory, use pstat_getstatic.
91271         HPUX-11 doesn't define _SC_PHYS_PAGES.
91272         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91273         If sysconf couldn't be used to determine the amount of available
91274         physical memory, use both pstat_getstatic and pstat_getdynamic.
91275         Based on a patch from Bob Proulx.
91276
91277 2001-11-10  Jim Meyering  <meyering@lucent.com>
91278
91279         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91280         (jm_PREREQ): Use it.
91281
91282 2001-11-09  Jim Meyering  <meyering@lucent.com>
91283
91284         * m4/jm-macros.m4: Require autoconf-2.52f.
91285         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91286         Use these AC_-prefixed names, not the AM_-prefixed ones.
91287
91288         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91289
91290 2001-11-05  Jim Meyering  <meyering@lucent.com>
91291
91292         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91293
91294 2001-11-04  Jim Meyering  <meyering@lucent.com>
91295
91296         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91297         $DEFS.
91298
91299 2001-11-03  Jim Meyering  <meyering@lucent.com>
91300
91301         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91302         of AC_DEFUN.
91303
91304         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91305         know the name of the variable in the macro definition.
91306
91307 2001-11-03  Jim Meyering  <meyering@lucent.com>
91308
91309         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91310         in argmatch_to_argument call.
91311
91312         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91313         argument.
91314
91315         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91316         e.g., a fault due to an attempt to free a NULL pointer.
91317
91318 2001-11-01  Jim Meyering  <meyering@lucent.com>
91319
91320         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
91321         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
91322
91323 2001-11-01  Jim Meyering  <meyering@lucent.com>
91324
91325         * lib/dirfd.c, lib/dirfd.h: New files.
91326         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
91327
91328         * lib/hash.c (hash_print) [TESTING]: Clean up.
91329
91330 2001-10-22  Paul Eggert  <eggert@twinsun.com>
91331
91332         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
91333         to avoid a warning if -Wall.
91334
91335 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
91336
91337         * README: New file
91338         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
91339         (per RMS's instructions, this is now the canonical source)
91340         * lgpl/, gpl/: New directories.
91341
91342 2001-10-21  Paul Eggert  <eggert@twinsun.com>
91343
91344         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
91345
91346 2001-10-21  Jim Meyering  <meyering@lucent.com>
91347
91348         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
91349         this code would end up calling gettext even in packages built
91350         with --disable-nls.
91351         * lib/getopt.c (_): Likewise.
91352         * lib/regex.c (_): Likewise.
91353
91354 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91355
91356         * m4/error.m4 (jm_PREREQ_ERROR):
91357         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91358         AC_FUNC_STRERROR_R does that.
91359         Check for strerror declaration.
91360
91361         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91362         are supposed to have them these days.
91363         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91364         Merge changes from latest Autoconf CVS.
91365         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91366         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91367         POSIX decided to standardize on the int flavor of strerror_r.
91368
91369 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91370
91371         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91372         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91373         Use strerror_r that is only a macro, even if it is not a function.
91374         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91375         (private_strerror): Use prototypes, not old-style function definition.
91376         (print_errno_message): New function.
91377         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91378         char*-flavored one.
91379         (error_tail, error, error_at_line): Use it.
91380
91381 2001-10-11  Jim Meyering  <meyering@lucent.com>
91382
91383         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91384         and quote_n (1, ... to avoid clobbering a buffer.
91385
91386 2001-10-05  Jim Meyering  <meyering@lucent.com>
91387
91388         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91389         hash-pjw.h.
91390         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91391         * lib/hash-pjw.h: New file.
91392
91393 2001-09-30  Jim Meyering  <meyering@lucent.com>
91394
91395         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
91396         `struct fsstat' has the `f_fstypename' member.
91397         Use that to define FS_TYPE, which is now used to make
91398         the getfsstat link test tighter.
91399
91400 2001-09-30  Jim Meyering  <meyering@lucent.com>
91401
91402         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
91403         Include <sys/ucred.h>, for Apple Darwin.
91404         Include sys/mount.h and sys/fs_types.h only if available.
91405         (FS_TYPE): Define.
91406         (read_filesystem_list): Use FS_TYPE.
91407
91408 2001-09-29  Paul Eggert  <eggert@twinsun.com>
91409
91410         * lib/exclude.c (excluded_filename): 0 -> false, since it's
91411         a boolean context.
91412
91413 2001-09-29  Jim Meyering  <meyering@lucent.com>
91414
91415         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91416         [one-argument getmntent function]): Include stdio.h before mntent.h.
91417         SunOS 4.1.x needs it for the declaration of `FILE'.
91418         Patch by Volker Borchert.
91419
91420         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91421         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
91422         sys/fs_types.h, and make the link-test for getfsstat guard #include
91423         directives with appropriate #if HAVE_*_H tests so that we can
91424         detect getfsstat on Apple Darwin1.3.7 systems.
91425         Reported by Nelson Beebe.
91426         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
91427
91428 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91429
91430         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91431         #defines strtoimax.  Also treat the other strto* functions
91432         like strtoimax.
91433
91434         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91435         Check for strtoul and strtoumax,
91436         as those declarations are made even in the signed case.
91437         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
91438         Likewise, for strtol and strtoimax.
91439
91440 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91441
91442         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91443         #defines strtoimax.  Also treat the other strto* functions
91444         like strtoimax.
91445
91446         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
91447         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
91448         (strtoimax, strtoumax): Do not declare if already defined as a macro.
91449
91450 2001-09-26  Jim Meyering  <meyering@lucent.com>
91451
91452         Most macros in unlocked-io.h had the wrong number of arguments.
91453         * lib/gen-uio: New script.
91454         (USE_UNLOCKED_IO): Define to 1 if not already defined.
91455         * lib/unlocked-io.hin: Remove file.
91456         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
91457         rather than trying to embed it here.
91458         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
91459         Reported by Padraig Brady.
91460
91461 2001-09-25  Volker Borchert  <bt@teknon.de>
91462
91463         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
91464         `result'.
91465
91466 2001-09-24  Jim Meyering  <meyering@lucent.com>
91467
91468         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
91469
91470 2001-09-23  Jim Meyering  <meyering@lucent.com>
91471
91472         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
91473         instead of the mere test for existence of mntent.h.  The latter
91474         would get a false-positive on AIX 3.4 systems.
91475         In the outer getmntent if-block, don't die if neither of the getmntent
91476         tests succeeds.  Instead, just fall through and continue with the
91477         remaining tests.
91478
91479 2001-09-23  Jim Meyering  <meyering@lucent.com>
91480
91481         * lib/mountlist.c: Remove useless parentheses in #if directives.
91482         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
91483         the deprecated MOUNTED symbol is no longer defined in mntent.h.
91484
91485 2001-09-22  Jim Meyering  <meyering@lucent.com>
91486
91487         * m4/gettext.m4: New file.  From gettext.
91488         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
91489         * m4/progtest.m4: Likewise
91490         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
91491         * m4/glibc21.m4: Likewise.
91492
91493         * m4/libintl.m4: Remove.  No longer used.
91494
91495 2001-09-22  Jim Meyering  <meyering@lucent.com>
91496
91497         * lib/localcharset.c: Update from latest gettext.
91498         * lib/config.charset: Likewise.
91499
91500 2001-09-20  Jim Meyering  <meyering@lucent.com>
91501
91502         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
91503         strtoimax.
91504         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91505         strtoumax.
91506
91507 2001-09-20  Jim Meyering  <meyering@lucent.com>
91508
91509         * lib/xstrtol.c (strtoimax): Guard declaration with
91510         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91511         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91512         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91513         (strtoumax): Likewise, for completeness (it wasn't necessary).
91514
91515 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91516
91517         * lib/strtoimax.c (HAVE_LONG_LONG):
91518         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91519         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91520         to work around bug in IBM C compiler.
91521
91522 2001-09-17  Jim Meyering  <meyering@lucent.com>
91523
91524         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91525         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91526         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91527         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91528         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91529         whenever the right hand side need not be expanded by the shell.
91530
91531 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91532
91533         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91534         library.  It's not correct, as some older glibcs are buggy.
91535         fnmatch wasn't fixed until glibc 2.2.
91536
91537         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91538         special shell magic here.
91539
91540 2001-09-16  Jim Meyering  <meyering@lucent.com>
91541
91542         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91543         * m4/jm-macros.m4: Require it.
91544
91545 2001-09-16  Jim Meyering  <meyering@lucent.com>
91546
91547         * lib/mkdir.c: New file.
91548
91549 2001-09-15  Jim Meyering  <meyering@lucent.com>
91550
91551         * m4/jm-macros.m4: Check for help2man.
91552
91553 2001-09-11  Jim Meyering  <meyering@lucent.com>
91554
91555         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91556         The body, by Paul Eggert, was moved here from configure.in.
91557         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91558
91559 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91560
91561         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91562         (jm_PREREQ): Use it.
91563
91564 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91565
91566         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91567         Use ssize_t, not int, to store result of readlink.
91568         Check for ssize_t overflow as well as size_t overflow,
91569         as POSIX says the result of readlink is implementation-defined
91570         when ssize_t overflows.
91571         Remove unnecessary cast to char*.
91572         Use free+malloc instead of realloc, as the storage doesn't need
91573         to be preserved and it's clearer and can be more efficient that way.
91574         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91575         * lib/xreadlink.h (xreadlink): Update prototype.
91576
91577 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91578
91579         * lib/xgetcwd.c: Revert some of the previous change; intead,
91580         fix the HAVE_GETCWD_NULL code to behave more like the
91581         !HAVE_GETCWD_NULL code used to.
91582
91583         Include "xalloc.h".
91584         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91585         invoke xalloc_die.
91586
91587 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91588
91589         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91590         sys/param.h, as pathmax.h includes them.
91591
91592 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91593
91594         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91595         (jm_PREREQ_XGETCWD): New macro.
91596
91597         * m4/getcwd.m4: New file.
91598
91599 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91600
91601         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91602         like the HAVE_GETCWD_NULL code.
91603         Include pathmax.h if not HAVE_GETCWD.
91604         Do not include xalloc.h.
91605         (INITIAL_BUFFER_SIZE): New symbol.
91606         Do not use xmalloc / xrealloc, since the caller is responsible for
91607         handling errors.  Preserve errno around `free' during failure.
91608         Do not overrun buffer when using getwd.
91609
91610 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91611
91612         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91613         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91614         getcwd (NULL, 0).
91615
91616 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91617
91618         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91619         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91620         spotted by Jim Meyering.
91621
91622 2001-09-03  Jim Meyering  <meyering@lucent.com>
91623
91624         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91625         failure.
91626
91627 2001-09-02  Jim Meyering  <meyering@lucent.com>
91628
91629         * lib/error.c: Update from GNU libc.
91630
91631 2001-09-01  Jim Meyering  <meyering@lucent.com>
91632
91633         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91634         Used by df.
91635
91636 2001-09-01  Jim Meyering  <meyering@lucent.com>
91637
91638         * lib/xreadlink.c: New file.
91639         * lib/xreadlink.h: New file.
91640         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91641         xreadlink.h.
91642
91643         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91644         doesn't conflict with sparc Solaris 7's definition in
91645         /usr/include/sys/int_types.h.
91646
91647         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91648         files.
91649         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91650         and strncasecmp as r-values.  Unixware didn't have declarations.
91651
91652 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91653
91654         * lib/xstrtol.h: Add copyright notice.
91655         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91656         LONGINT_INVALID_SUFFIX_CHAR.
91657
91658 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91659
91660         * lib/xstrtol.c (strtoimax): New decl.
91661
91662 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91663
91664         * lib/xgetcwd.c: Don't include pathmax.h.
91665         Include stdlib.h and unistd.h if available.
91666         Include xalloc.h.
91667         (xmalloc, xstrdup, free): Remove decls.
91668         (xgetcwd): Don't assume sizes fit in unsigned.
91669         Check for overflow when computing sizes.
91670         Simplify reallocation code.
91671
91672 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91673
91674         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
91675         a directory's st_size can have an arbitrary value, so the old
91676         usage could waste an arbitrary amount of memory.  All uses
91677         changed.
91678         * lib/savedir.h: Update prototype.
91679
91680 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91681
91682         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
91683
91684         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
91685         old strtoimax.c.
91686
91687         Also, make the following further changes to make this file's
91688         configuration more similar to that of strtol.c:
91689         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
91690         (strtoumax, uintmax_t, strtoull, strtol): Remove.
91691         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
91692         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
91693         changed to signed values.
91694
91695         And make the following changes as well:
91696         Fix copyright notice, as 1999 was missing.
91697         (verify): New macro.
91698         (strtoimax): Check sizes at compile-time, not run-time.
91699         Prefer strtol to strtoll if both work.
91700         (main): Remove; it was not that useful and was a pain to maintain.
91701
91702         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
91703
91704 2001-08-31  Jim Meyering  <meyering@lucent.com>
91705
91706         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
91707         Use an initial, malloc'd, buffer of length 128 rather than
91708         a statically allocated one of length 1024.
91709
91710 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91711
91712         Simplify code, partly by assuming autoconf 2.52 semantics.
91713
91714         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
91715
91716         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
91717         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
91718         All uses removed.
91719         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
91720         Move AC_REQUIRE to next-to-top level, to avoid confusion.
91721         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
91722         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
91723         jm_AC_HEADER_INTTYPES_H.
91724         * m4/jm-macros.m4 (jm_MACROS): Likewise.
91725
91726         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
91727
91728         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91729         Quote first arg of AC_DEFUN.
91730         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
91731         since they are needed to parse the include file even if we need
91732         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
91733         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
91734         but with opposite signedness.
91735
91736 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91737
91738         Merge 'exclude' changes from tar 1.13.22.
91739         This fixes one or two unlikely storage allocation overflow bugs,
91740         but doesn't change user-visible behavior otherwise.
91741
91742 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91743
91744         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
91745         (jm_PREREQ_EXCLUDE): New macro.
91746
91747 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91748
91749         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
91750         tm to be declared.
91751
91752 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91753
91754         * lib/hash.c: Remove '2001' from copyright notice.
91755
91756 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91757
91758         * lib/full-write.h: New file.
91759         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
91760         * lib/full-write.c: Correct credits, as cccp.c no longer
91761         exists and anyway it was so heavily changed from the old cccp
91762         code as to be unrecognizable.  Include full-write.h.
91763         (full_write): Return size_t, with short writes meaning failure.
91764         All callers changed.  This fixes a bug with large buffers
91765         on 64-bit hosts.
91766         * lib/utime.c: Include full-write.h.
91767
91768 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91769
91770         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
91771         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
91772         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
91773         Include if available.
91774         (<xalloc.h>): Include
91775         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
91776         (verify): New macro.  Use it to verify that EXCLUDE macros do not
91777         collide with FNM macros.
91778         (struct patopts): New struct.
91779         (struct exclude): Use it, as exclude patterns now come with options.
91780         (new_exclude): Support above changes.
91781         (new_exclude, add_exclude_file):
91782         Initial size must now be a power of two to simplify overflow checking.
91783         (free_exclude, fnmatch_no_wildcards): New function.
91784         (excluded_filename): No longer requires options arg, as the options
91785         are determined by add_exclude.  Now returns bool, not int.
91786         (excluded_filename, add_exclude):
91787         Add support for the fancy new exclusion options.
91788         (add_exclude, add_exclude_file): Now takes int options arg.
91789         Check for arithmetic overflow when computing sizes.
91790         (add_exclude_file): xrealloc might modify errno, so don't
91791         realloc until after errno might be used.
91792
91793         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
91794         New macros.
91795         (free_exclude): New decl.
91796         (add_exclude, add_exclude_file): Now takes int options arg.
91797         (excluded_filename): No longer requires options arg, as the options
91798         are determined by add_exclude.  Now returns bool, not int.
91799
91800 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91801
91802         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
91803
91804 2001-08-27  Jim Meyering  <meyering@lucent.com>
91805
91806         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
91807
91808         * lib/version-etc.c (N_): Remove definition.
91809         Revert most of last change.
91810         Instead, simply don't mark the `Copyright...' string for translation.
91811         Based on advice from Paul Eggert.
91812
91813         * lib/strtoxmax.c: Tweak comment.
91814
91815 2001-08-26  Jim Meyering  <meyering@lucent.com>
91816
91817         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
91818
91819         * m4/xstrtoimax.m4: New file.
91820         * m4/xstrtoumax.m4: Add comments explaining why we
91821         AC_REPLACE_FUNCS(strtol).
91822
91823 2001-08-26  Jim Meyering  <meyering@lucent.com>
91824
91825         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
91826         of copyright with `%s' so translators don't get an untranslated
91827         message in 2002.
91828         (COPYRIGHT_YEAR): Define.
91829         (version_etc): Use fprintf rather than fputs.
91830         Suggestion from Ulrich Drepper.
91831
91832         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
91833
91834         * lib/strtoll.c: New file, from GNU libc.
91835         * lib/xstrtoimax.c: New file.
91836
91837         * lib/xstrtol.h: Add xstrtoimax.
91838         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
91839         * lib/strtoimax.c: New file.  Likewise, but first define
91840         STRTOUXMAX_SIGNED.
91841
91842         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
91843         ...
91844         * lib/strtoxmax.c: ... then renamed to this.
91845
91846 2001-08-18  Paul Eggert  <eggert@twinsun.com>
91847
91848         * m4/inttypes.m4: Add AC_PREREQ(2.13).
91849         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
91850         (jm_AC_TYPE_INTMAX_T): New macro.
91851         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
91852
91853         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
91854
91855         * m4/longlong.m4: Renamed from ulonglong.m4.
91856         * m4/inttypes.m4: Renamed from inttypes_h.m4.
91857         * m4/uintmax_t.m4: Removed.
91858
91859 2001-08-13  Paul Eggert  <eggert@twinsun.com>
91860
91861         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
91862         Port to Solaris 8, where 'sed' requires a space after the 'r'
91863         command, and where sh dislikes "$/".  Clean up the spacing a bit.
91864         Redirect output to $tmp just once.
91865
91866 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
91867
91868         * lib/addext.c (<errno.h>): Include.
91869         (errno): Declare if not defined.
91870         (addext): Work correctly when pathconf returns -1 and leaves
91871         errno alone because there is no limit.  Also, work even if
91872         pathconf returns a value greater than SIZE_MAX.
91873
91874 2001-08-12  Jim Meyering  <meyering@lucent.com>
91875
91876         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
91877         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
91878         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
91879         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
91880         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
91881         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
91882         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
91883         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
91884         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
91885         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
91886         utime.m4, utimes.m4, xstrtoumax.m4:
91887         Quote the first argument in each use of AC_DEFUN.
91888
91889 2001-08-12  Jim Meyering  <meyering@lucent.com>
91890
91891         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
91892         Simply `return getcwd (NULL, 0);'.
91893         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
91894         Use 1300 as initial value for length, not PATH_MAX.
91895
91896         * lib/pathmax.h: Clean up cpp syntax.
91897
91898 2001-08-12  Jim Meyering  <meyering@lucent.com>
91899
91900         * lib/gettimeofday.c: New file.
91901         * lib/gtod.h: New file.
91902         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
91903
91904 2001-08-05  Jim Meyering  <meyering@lucent.com>
91905
91906         * m4/jm-macros.m4: Require autoconf-2.52.
91907
91908 2001-08-04  Jim Meyering  <meyering@lucent.com>
91909
91910         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
91911         stmt, to get in sync with glibc.
91912
91913 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91914
91915         The following changes are from gettext 0.10.39 as maintained by
91916         Bruno Haible.
91917
91918         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
91919         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
91920         with inverted sense.  All uses changed.
91921
91922         * lib/mbswidth.c: Don't include <limits.h>.
91923         Include <stdlib.h> and <string.h> unconditionally.
91924         (iswcntrl, mbsinit, ISCNTRL): New macros.
91925         (mbsnwidth): Use K&R style function declarations.
91926         Don't bother checking for MB_LEN_MAX == 1, since the compiler
91927         can optimize it when MB_CUR_MAX == 1.
91928         The width of control characters is zero, not 1.
91929
91930 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91931
91932         The following changes are from gettext 0.10.39 as maintained by
91933         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
91934
91935         * m4/codeset.m4: Upgrade to serial AM1.
91936         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
91937         all uses changed.  Quote first arg of AC_DEFUN.
91938         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
91939
91940         * m4/iconv.m4: Upgrade to serial AM2.
91941         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
91942         Add --with-libconv-prefix.
91943         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
91944         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
91945         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
91946         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
91947         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
91948
91949         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
91950         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
91951         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
91952         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
91953         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
91954         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
91955         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
91956         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
91957         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
91958
91959         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
91960         string.h any more.
91961
91962         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
91963         not the default value.
91964
91965         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
91966         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
91967         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
91968         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
91969         Also check for iswcntrl, used for wcwidth fallback.
91970         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
91971         to Autoconf 2.13.
91972
91973 2001-08-03  Jim Meyering  <meyering@lucent.com>
91974
91975         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
91976         as it was in the original.  Reported by Paul Eggert.
91977
91978 2001-07-16  Jim Meyering  <meyering@lucent.com>
91979
91980         * m4/gettimeofday.m4: New file.
91981         Prompted by a report from Bernhard Baehr.
91982
91983 2001-07-15  Jim Meyering  <meyering@lucent.com>
91984
91985         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
91986         stuff. Now it's in ../Makefile.cfg.
91987
91988 2001-07-15  Jim Meyering  <meyering@lucent.com>
91989
91990         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
91991         (BUILT_SOURCES): Add unlocked-io.h.
91992         (io_functions): Define.
91993         (unlocked-io.h): New rule.
91994         (DISTCLEANFILES): Add unlocked-io.h.
91995         (all-local): Depend on unlocked-io.h, to ensure it is created.
91996
91997         * lib/unlocked-io.hin: New file
91998
91999         * lib/regex.c: Update from glibc.
92000
92001 2001-07-05  Jim Meyering  <meyering@lucent.com>
92002
92003         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92004         recommendation.
92005         (libfetish_a_SOURCES): Put all .h files here instead.
92006         Remove a thus-exposed (better checks in automake) duplicate and
92007         two unnecessary .h files.
92008
92009 2001-07-04  Jim Meyering  <meyering@lucent.com>
92010
92011         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92012         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92013         distcheck failure.
92014
92015 2001-07-02  Jim Meyering  <meyering@lucent.com>
92016
92017         The following changes were prompted by suggestions from Bruno Haible.
92018
92019         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92020         is now generated.
92021         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92022         definition of EXTRA_DIST.
92023         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92024         ensure that the generated file is created/updated whenever the list
92025         of $(unlocked_functions) is changed.
92026         (jm-glibc-io.m4): New rule.
92027         (unlocked-io.h): New rule -- currently unused.
92028
92029 2001-06-24  Jim Meyering  <meyering@lucent.com>
92030
92031         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92032         unmatched right bracket, rather than kludging it with an extra,
92033         falsely-matching quote in a comment.  Patch by Akim Demaille.
92034
92035 2001-06-11  Jim Meyering  <meyering@lucent.com>
92036
92037         * lib/regex.c: Update from GNU libc.
92038
92039 2001-05-27  Jim Meyering  <meyering@lucent.com>
92040
92041         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92042         Check for ut_type in struct utmp.
92043
92044 2001-05-27  Jim Meyering  <meyering@lucent.com>
92045
92046         * lib/readutmp.h (UT_TYPE): Define.
92047
92048 2001-05-24  Jim Meyering  <meyering@lucent.com>
92049
92050         * lib/argmatch.c: Include "quote.h".
92051         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92052         quote function.  Reported by Göran Uddeborg.
92053
92054 2001-05-22  Jim Meyering  <meyering@lucent.com>
92055
92056         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92057         now that we use the package-supplied version unconditionally.
92058         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92059
92060 2001-05-21  Jim Meyering  <meyering@lucent.com>
92061
92062         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92063         shell syntax errors.
92064
92065 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92066
92067         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92068
92069 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92070
92071         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92072         Don't bother to check library strftime, since
92073         we'll be using our own my_strftime function anyway.
92074         Define my_strftime instead of strftime.
92075
92076 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92077
92078         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92079         which is not yet declared.
92080
92081 2001-05-15  Jim Meyering  <meyering@lucent.com>
92082
92083         * m4/regex.m4: Use proper quoting so brackets appear in the test
92084         program.
92085         Reported by, and with help from, Bruno Haible.
92086
92087 2001-05-13  Jim Meyering  <meyering@lucent.com>
92088
92089         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92090         undefined.
92091
92092 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92093
92094         dirname code cleanup.  base_name now behaves more compatibly
92095         with POSIX basename when given file names that have trailing
92096         slashes, and similarly for dir_name.  Add new primitives
92097         base_len and dir_len.  Put the directory-name-related decls
92098         into dirname.h.
92099
92100         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92101         * lib/backupfile.c (base_name): Likewise.
92102         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92103         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92104         * lib/makepath.c (strip_trailing_slashes): Likewise.
92105         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92106         ISSLASH): Likewise.
92107         * lib/rename.c (strip_trailing_slashes): Likewise.
92108         * lib/same.c (base_name): Likewise.
92109         * lib/stripslash.c (ISSLASH): Likewise.
92110
92111         * lib/addext.c: Include <dirname.h> after size_t is defined.
92112         * lib/backupfile.c: Likewise.
92113
92114         * lib/addext.c (addext): Use base_len to trim redundant
92115         trailing slashes instead of doing it ourselves.
92116         But do not trim the last slash if it is not redundant.
92117
92118         * lib/backupfile.c (find_backup_file_name,
92119         max_backup_version): Use base_len instead of rolling it ourselves.
92120         Handle the case of "" and (on DOS) "C:" correctly.
92121
92122         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92123         needed. Include <string.h>, <dirname.h>.
92124         (base_name): Allow file names ending in slashes, other than names
92125         that are all slashes.  In this case, return the basename followed
92126         by the slashes.  This is more general, and can be used in places
92127         where the original base_name purposely had an assertion failure.
92128         (base_len): New function.
92129
92130         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92131         Do not include <assert.h>; no longer needed.
92132         Include xalloc.h.
92133         (memrchr): Remove decl.
92134         (dir_name_r): Remove.
92135         (dir_len): Renamed from dirlen.  All callers changed.
92136         Rewrite in terms of base_name, for simplicity and consistency.
92137         (dir_name): Never return NULL.  All callers changed.
92138         Do not include <stdlib.h> in test program; no longer needed.
92139         return 0; is fine for test program.
92140
92141         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92142         New macros.
92143         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92144
92145         * lib/path-concat.c (path_concat): Use base_len to compute
92146         base length, not strlen; this means we cannot rely on memcpy
92147         to null-terminate.
92148
92149         * lib/same.c (STREQ): Remove.
92150         (same_name): Handle the case where the basename ends in trailing '/'.
92151
92152         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92153         a slash was stripped.  Do not strip the last slash after a
92154         file system prefix.
92155
92156 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92157
92158         * lib/Makefile.am (libfetish_a_SOURCES):
92159         Add strftime.c, since we now compile it on all hosts.
92160
92161         * lib/strftime.c (my_strftime):
92162         Define to nstrftime if emacs, but only if my_strftime is not defined.
92163         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92164         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92165         Add one more extra argument: a nanoseconds value.
92166         All uses changed.
92167         (ns): New macro.
92168         (my_strftime function): Add %N format.
92169         (emacs_strftimeu): Renamed from emacs_strftime,
92170         with extra ut argument.
92171
92172 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92173
92174         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92175
92176 2001-04-21  Jim Meyering  <meyering@lucent.com>
92177
92178         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92179         doesn't interfere.
92180
92181 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92182
92183         * m4/ftruncate.m4: Check for chsize.
92184         Link with ftruncate.o unconditionally if ftruncate is missing.
92185         This was required when cross-compiling to i586-mingw32msvc.
92186
92187 2001-04-08  Jim Meyering  <meyering@lucent.com>
92188
92189         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92190         recomputed; that's necessary when the offset spans a DST transition.
92191         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92192
92193 2001-04-02  Jim Meyering  <meyering@lucent.com>
92194
92195         * lib/regex.h, regex.c: Update from GNU libc.
92196
92197 2001-03-24  Jim Meyering  <meyering@lucent.com>
92198
92199         * m4/jm-macros.m4: Require autoconf-2.49d.
92200
92201 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92202
92203         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92204
92205 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92206
92207         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92208
92209 2001-03-17  Jim Meyering  <meyering@lucent.com>
92210
92211         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92212         now that the version in autoconf is equivalent.
92213         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92214
92215         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92216         Suggestion from Akim Demaille.
92217
92218         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92219         (jm_PREREQ_TEMPNAME): New function.
92220
92221 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92222
92223         * lib/tempname.c (uint64_t): Define to uintmax_t if
92224         not defined, and if UINT64_MAX is not defined.
92225         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92226         Reported by John David Anglin.
92227
92228 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92229
92230         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92231         resolve alias if codeset is empty.
92232         * lib/config.charset (BeOS): Use wildcard syntax.
92233
92234 2001-03-13  Jim Meyering  <meyering@lucent.com>
92235
92236         * lib/path-concat.c (path_concat)
92237         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92238         concatenating e.g., `C:' and `foo'.
92239         From Bruno Haible.
92240
92241 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92242
92243         * lib/localcharset.c (locale_charset): Don't use
92244         setlocale(LC_CTYPE,NULL). Don't return NULL.
92245         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92246
92247 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92248
92249         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92250         support for DOS/DJGPP.
92251
92252 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92253
92254         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92255         lacks mkstemp.  Compile our own tempname.c if we compile our own
92256         mkstemp.c, as mkstemp relies on tempname.
92257
92258 2001-03-01  Jim Meyering  <meyering@lucent.com>
92259
92260         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92261         AH_VERBATIM really does output its argument verbatim.
92262
92263 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92264
92265         * lib/Makefile.am (libfetish_a_SOURCES):
92266         Add dup-safer.c, fopen-safer.c.
92267         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92268
92269         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92270         * lib/unistd-safer.h: New files.
92271
92272 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92273
92274         The mkstemp replacement is taken from glibc 2.2.2, with some
92275         portability fixes for use outside glibc, as follows:
92276
92277         * lib/tempname.c (struct_stat64): New macro.
92278         (direxists, __gen_tempname): Use it.
92279         This avoids a portability problem with Solaris 8.
92280
92281         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92282         (<stddef.h>, <stdint.h>, <string.h>):
92283         Include only if STDC_HEADERS || _LIBC.
92284         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92285         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92286         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92287         (__set_errno): Define this macro if <errno.h> doesn't.
92288         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92289         Define these macros if <stdio.h> doesn't.
92290         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92291         Define these macros if <sys/stat.h>
92292         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92293         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92294         __xstat64): Define if not _LIBC.
92295         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92296         (__gen_tempname): Invoke gettimeofday only if
92297         HAVE_GETTIMEOFDAY || _LIBC;
92298         otherwise, fall back on plain "time".
92299         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92300
92301         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92302
92303         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92304
92305 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92306
92307         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92308
92309 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92310
92311         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92312         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92313         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92314         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92315
92316 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92317
92318         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92319         Remove workaround macros for hosts that have mbrtowc but not
92320         mbstate_t, as we now insist on proper declarations for both
92321         before using mbrtowc.
92322
92323 2001-02-17  Jim Meyering  <meyering@lucent.com>
92324
92325         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
92326         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
92327         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
92328         UnixWare 7.1.1.
92329
92330         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
92331         rather than AC_CACHE_VAL.
92332
92333 2001-02-17  Jim Meyering  <meyering@lucent.com>
92334
92335         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
92336         around included file name.
92337
92338         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
92339
92340         * lib/strftime.c: Update from GNU libc (the only changes were to
92341         comments).
92342
92343 2001-02-17  Jim Meyering  <meyering@lucent.com>
92344
92345         * lib/regex.c: Update from libc.
92346
92347 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
92348
92349         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
92350         clash.
92351
92352 2001-02-16  Paul Eggert  <eggert@twinsun.com>
92353
92354         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
92355         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
92356         Reported by Mark Hounschell via Paul Eggert.
92357
92358 2001-02-07  Jim Meyering  <meyering@lucent.com>
92359
92360         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92361
92362 2001-02-05  Jim Meyering  <meyering@lucent.com>
92363
92364         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92365         it includes the patch required for `large file' support with at least
92366         HP-UX's 10.20 /bin/cc.
92367
92368 2001-02-03  Jim Meyering  <meyering@lucent.com>
92369
92370         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92371         AS_IF, now that it works once again (mysteriously).
92372         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92373
92374 2001-01-30  Jim Meyering  <meyering@lucent.com>
92375
92376         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92377         * m4/chown.m4: Rename conftestchown to conftest.chown.
92378         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92379         s/conftestdir2/conftest.d2/.
92380         * m4/utimes.m4: s/conftestdata/conftest.data/
92381         Inspired by Pavel Roskin's change in autoconf.
92382
92383 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92384
92385         * lib/config.charset: Update for FreeBSD 4.2.
92386
92387 2001-01-27  Jim Meyering  <meyering@lucent.com>
92388
92389         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92390         a use of AS_IF.
92391         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92392
92393 2001-01-26  Jim Meyering  <meyering@lucent.com>
92394
92395         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
92396         quotearg.c includes it.
92397
92398 2001-01-26  Jim Meyering  <meyering@lucent.com>
92399
92400         * lib/quotearg.c: Include stddef.h.
92401         * lib/quote.c: Include stddef.h.
92402         Reported by Axel Kittenberger.
92403
92404         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
92405         line in double quotes so that it evokes a better diagnostic.
92406         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
92407         Reported by Axel Kittenberger.
92408
92409 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
92410
92411         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
92412         as if it was a `charset'.
92413
92414 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92415
92416         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
92417         has const.
92418
92419 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92420
92421         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
92422         to avoid a warning.  Add back 'const' to inptr.
92423
92424 2001-01-20  Jim Meyering  <meyering@lucent.com>
92425
92426         Be sure that headers are checked before used in code compiled
92427         for the type checks.
92428         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
92429         In place of that, invoke jm_CHECK_ALL_TYPES.
92430         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
92431         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
92432         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
92433         The check for ssize_t was mistakenly run before the test for unistd.h.
92434
92435         The configure-time check for stdbool.h was missing.
92436         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
92437         (jm_PREREQ_HASH): New function.
92438
92439 2001-01-17  Jim Meyering  <meyering@lucent.com>
92440
92441         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
92442         for autoconf-2.49c.
92443         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
92444
92445 2001-01-16  Jim Meyering  <meyering@lucent.com>
92446
92447         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
92448         From Bruno Haible.
92449
92450 2001-01-14  Jim Meyering  <meyering@lucent.com>
92451
92452         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
92453         foo and bar.  Create conftestdir/ in the script, not in the C code.
92454         Remove directories in the script, not in the C code.
92455         Remove conftestdir{,2} before trying to create the directory.
92456         Make the entire configure script fail if the mkdir fails.
92457
92458 2001-01-14  Jim Meyering  <meyering@lucent.com>
92459
92460         * lib/rename.c: New file.  From Volker Borchert.
92461         Include stdlib.h, string.h or strings.h, and xalloc.h.
92462         Use strip_trailing_slashes rather than open-coding it.
92463
92464 2001-01-03  Paul Eggert  <eggert@twinsun.com>
92465
92466         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
92467
92468 2001-01-03  Jim Meyering  <meyering@lucent.com>
92469
92470         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
92471         of local `inptr' to avoid warning with some system declarations of
92472         iconv.
92473
92474 2001-01-02  Volker Borchert  <bt@teknon.de>
92475
92476         * m4/rename.m4: New file.
92477         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
92478
92479 2001-01-01  Jim Meyering  <meyering@lucent.com>
92480
92481         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
92482         even on systems with utmpx.h.  It's necessary for the declaration of
92483         utmp's ut_user member.  Reported by Andreas Jaeger.
92484
92485         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
92486         available. They are required for the declarations of getgrgid and
92487         getpwuid resp.
92488         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
92489         Reported by Andreas Jaeger.
92490
92491 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
92492
92493         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
92494         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
92495         so `make install' also works in VPATH builds.
92496
92497 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
92498
92499         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
92500         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
92501         can be used in subdirectories.
92502
92503 2000-12-29  Paul Eggert  <eggert@twinsun.com>
92504
92505         * lib/modechange.c: Do not assume that mode_t uses the
92506         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92507         the other-execute bit of FOO even if S_IXOTH != 1.
92508
92509         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92510         WOTH, XOTH, ALLM): New macros.
92511         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92512          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92513         Use them.
92514         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92515         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92516         (mode_compile):
92517         No need to use uintmax_t; unsigned long is long enough.
92518         Don't bother to get suffix since we don't use it.
92519
92520 2000-12-26  Jim Meyering  <meyering@lucent.com>
92521
92522         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92523         better with autoheader.
92524
92525 2000-12-24  Jim Meyering  <meyering@lucent.com>
92526
92527         * lib/hash.c (is_prime): Return explicit boolean values.
92528         (hash_get_first): Return NULL to appease Irix5.6's 89.
92529         Reported by Nelson Beebe.
92530
92531 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92532
92533         * lib/localcharset.c (locale_charset): Add support for Win32.
92534
92535 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92536
92537         * lib/physmem.h, lib/physmem.c: New files.
92538
92539         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92540         (noinst_HEADERS): Add physmem.h.
92541
92542         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92543         't' for compatibility with Solaris 8 sort.
92544
92545 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92546
92547         * lib/config.charset: Add support for BeOS.
92548
92549 2000-12-17  Jim Meyering  <meyering@lucent.com>
92550
92551         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92552         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92553
92554 2000-12-16  Jim Meyering  <meyering@lucent.com>
92555
92556         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92557         N and M) would have treated it like `chown N:N FILE'.
92558
92559         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92560
92561 2000-12-16  Jim Meyering  <meyering@lucent.com>
92562
92563         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92564         SHELLS_FILE to a file name that's useful on djgpp systems.
92565         Include stdlib.h.
92566         (ADDITIONAL_DEFAULT_SHELLS): Define.
92567         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92568         Based mostly on a patch from Prashant TR.
92569
92570 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92571
92572         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92573         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92574         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92575
92576 2000-12-08  Andreas Schwab  <schwab@suse.de>
92577
92578         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92579         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92580
92581 2000-12-07  Jim Meyering  <meyering@lucent.com>
92582
92583         * lib/stripslash.c (ISSLASH): Define.
92584         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92585         `/'.
92586         From Prashant TR.
92587
92588         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92589         (dir_name_r): Declare this function as static.
92590         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92591         manifest itself on a name containing a mix of slashes and
92592         backslashes.
92593         Make this function work with names starting with a DOS-style
92594         drive letter and colon prefix.
92595         (dir_name): Append `.' if necessary.
92596         Based mostly on patches from Prashant TR and Eli Zaretskii.
92597
92598         * lib/dirname.h (dir_name_r): Remove prototype.
92599
92600 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92601
92602         * m4/off_t-format.m4: Remove this file.
92603         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92604
92605 2000-12-06  Jim Meyering  <meyering@lucent.com>
92606
92607         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92608         replacement strtoull, we may well need the replacement strtoul, too.
92609         Check for declarations of strtoul and strtoull.
92610         Check for strtol.  Mainly as a cue to cause automake to include
92611         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92612         Check for limits.h -- strtol.c needs it.
92613
92614 2000-12-05  Jim Meyering  <meyering@lucent.com>
92615
92616         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92617
92618 2000-12-04  Jim Meyering  <meyering@lucent.com>
92619
92620         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92621         Also include memory.h, stdlib.h, unistd.h if appropriate.
92622         Reported by Andreas Jaeger (conflicting declaration of malloc).
92623
92624 2000-12-02  Jim Meyering  <meyering@lucent.com>
92625
92626         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92627         * m4/jm-macros.m4 (jm_MACROS): require it.
92628
92629 2000-12-02  Jim Meyering  <meyering@lucent.com>
92630
92631         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92632
92633 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92634
92635         * lib/memrchr.c: Include <config.h> before any system include file.
92636
92637 2000-11-30  Jim Meyering  <meyering@lucent.com>
92638
92639         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92640
92641 2000-11-30  Jim Meyering  <meyering@lucent.com>
92642
92643         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92644
92645 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92646
92647         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92648
92649 2000-11-26  Jim Meyering  <meyering@lucent.com>
92650
92651         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92652
92653 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92654
92655         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92656         size of (size_t) -1; it's not portable.
92657
92658 2000-11-17  Jim Meyering  <meyering@lucent.com>
92659
92660         * lib/strstr.c: Update from GNU libc.
92661
92662 2000-11-17  Akim Demaille  <akim@epita.fr>
92663
92664         * lib/obstack.h: Formatting changes.
92665         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
92666         prevent type checking.
92667         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
92668         cast the value to (void *): assigning a `foo *' to a `void *'
92669         variable is valid.
92670         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
92671
92672 2000-11-16  Jim Meyering  <meyering@lucent.com>
92673
92674         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
92675
92676 2000-11-11  Jim Meyering  <meyering@lucent.com>
92677
92678         * lib/error.c: Add a couple #includes, merging from GNU libc version.
92679
92680 2000-11-10  Jim Meyering  <meyering@lucent.com>
92681
92682         * lib/obstack.h: Update from GNU libc.
92683         * lib/obstack.c: Likewise.
92684
92685 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
92686
92687         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
92688
92689 2000-11-06  Paul Eggert  <eggert@twinsun.com>
92690
92691         * lib/getusershell.c (setusershell): Use rewind rather than
92692         fseek/fseeko, to avoid configuration hassles with fseeko.
92693         Don't bother opening SHELLS_FILE if shellstream is NULL;
92694         it's not necessary.
92695
92696 2000-11-05  Jim Meyering  <meyering@lucent.com>
92697
92698         * lib/makepath.h (make_dir): Declare.
92699         * lib/makepath.c (make_dir): Remove `static' attribute.
92700         Tweak a comment.
92701
92702 2000-11-04  Jim Meyering  <meyering@lucent.com>
92703
92704         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
92705
92706 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
92707
92708         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
92709         last one in a bucket, advance to the next bucket.
92710
92711 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
92712
92713         * lib/fnmatch.c: Do not comment out all the code if we are using
92714         the GNU C library, because in some cases we are replacing buggy
92715         code in the GNU C library itself.
92716
92717 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
92718
92719         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
92720         (regex_compile): Catch bogus \(\1\).
92721
92722 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92723
92724         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
92725         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
92726         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
92727
92728 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92729
92730         * lib/error.h, getline.h, modechange.h:
92731         Remove "2000" from Copyright line, as the file hasn't been
92732         changed this year other than in the copyright notice.
92733
92734         * lib/xalloc.h: Add "2000" to Copyright line, as this file
92735         was changed this year.
92736
92737 2000-10-29  Jim Meyering  <meyering@lucent.com>
92738
92739         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
92740         renaming.
92741         * m4/ls-mntd-fs.m4: Likewise
92742
92743 2000-10-29  Jim Meyering  <meyering@lucent.com>
92744
92745         * lib/xstat.in: Fix grammar in comment.
92746
92747 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
92748
92749         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
92750         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
92751         doesn't define __restrict_arr.
92752
92753 2000-10-28  Jim Meyering  <meyering@lucent.com>
92754
92755         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
92756         (jm_PREREQ_MEMCHR): New function.
92757
92758 2000-10-28  Jim Meyering  <meyering@lucent.com>
92759
92760         * lib/memchr.c: Update from libc.
92761         Adjust for portability:
92762         [HAVE_STDLIB_H]: Include stdlib.h.
92763         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
92764         Undef __memchr, too.
92765         [!weak_alias]: Define __memchr to memchr.
92766
92767         * lib/regex.c: Update from libc.
92768         * lib/regex.h: Likewise.
92769         * lib/getopt1.c: Likewise.
92770         * lib/memcmp.c: Likewise.
92771
92772         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
92773         Avoid using fseek, when possible -- it's broken by design.
92774         Patch by Ulrich Drepper.
92775
92776 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
92777
92778         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
92779         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
92780         Giving in to popular pressure to shut up the compiler with casts.
92781
92782 2000-10-26  Jim Meyering  <meyering@lucent.com>
92783
92784         * lib/strftime.c: Update from libc.
92785
92786 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
92787
92788         * regex.c: More `unsigned char' -> `re_char' changes.
92789         Also change several `int' into `re_wchar_t'.
92790         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
92791         (PUSH_FAILURE_POINTER): Don't cast any more.
92792         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
92793         We want GCC to complain, since this piece of code makes
92794         re_match non-reentrant, which *should* be fixed.
92795         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
92796         (EXTEND_BUFFER): Use RETALLOC.
92797         (SET_LIST_BIT): Don't cast.
92798         (re_wchar_t): New type.
92799         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
92800         that those two functions will always properly return.
92801         (IMMEDIATE_QUIT_CHECK): Cast to void.
92802         (analyse_first): Use recursion rather than an explicit stack.
92803         (re_compile_fastmap): Can't fail anymore.
92804         (re_search_2): Don't check re_compile_fastmap for failure.
92805         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
92806         Now also sets the new value (passed in a new argument).
92807         (re_match_2_internal): Use it.
92808         Also, use a new var `reg' of type size_t when looping through regs
92809         rather than reuse the inappropriate `mcnt'.
92810
92811 2000-10-25  Jim Meyering  <meyering@lucent.com>
92812
92813         * lib/obstack.c: Update from libc.
92814
92815 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
92816
92817         * regex.c (regex_compile): Change the way of handling a range from
92818         a char less than 256 to a char not less than 256.
92819
92820 2000-10-24  Andrew Innes  <andrewi@gnu.org>
92821
92822         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
92823         NT-Emacs only.
92824         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
92825         so that re_search functions only quit when callers expect them to.
92826
92827 2000-10-23  Jim Meyering  <meyering@lucent.com>
92828
92829         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
92830         wrong.  That set_locale call must not have any side effects.
92831         From Paul Eggert.
92832
92833 2000-10-22  Jim Meyering  <meyering@lucent.com>
92834
92835         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
92836         [CYCLIC]: Remove now-unused definition.
92837
92838         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
92839         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
92840         Suggestion from Ulrich Drepper.
92841
92842 2000-10-21  Jim Meyering  <meyering@lucent.com>
92843
92844         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
92845         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
92846         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
92847
92848 2000-10-21  Jim Meyering  <meyering@lucent.com>
92849
92850         * lib/dirname.c (memrchr): Declare if necessary.
92851         (dir_name): Remove the restriction that there be no
92852         trailing slashes.  Now, this code skips past them, effectively
92853         ignoring them.
92854         [TEST_DIRNAME] (main): New unit tests.
92855
92856         * lib/memrchr.c: New file from GNU libc.
92857         Undef __memrchr, too.
92858         [!weak_alias]: Define __memrchr to memrchr.
92859         Guard weak_alias use with `#ifdef weak_alias'.
92860
92861 2000-10-21  Jim Meyering  <meyering@lucent.com>
92862
92863         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
92864         (dir_name): Use dir_name_r.
92865         * lib/dirname.h (dir_name_r): Declare it.
92866
92867 2000-10-17  Jim Meyering  <meyering@lucent.com>
92868
92869         * lib/quote.h (PARAMS): Define and use.
92870         Reported by Akim Demaille.
92871
92872         * lib/getopt.c: Update from libc.
92873
92874 2000-10-16  Jim Meyering  <meyering@lucent.com>
92875
92876         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
92877         setlocale.
92878         From Jan Fedak.
92879
92880 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
92881
92882         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
92883
92884 2000-09-25  Jim Meyering  <meyering@lucent.com>
92885
92886         * lib/md5.h (rol): Define (from GnuPG).
92887
92888         * lib/sha.c: Give credit (GnuPG) where due.
92889         (M): Use rol rather than open-coding it.
92890         Add a FIXME comment.
92891
92892 2000-09-21  Jim Meyering  <meyering@lucent.com>
92893
92894         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
92895         Reported by Michael Stone.
92896
92897 2000-09-20  Jim Meyering  <meyering@lucent.com>
92898
92899         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
92900         (noinst_HEADERS): Add sha.h.
92901         Based on code from Scott G. Miller and from GnuPG.
92902
92903 2000-09-18  Jim Meyering  <meyering@lucent.com>
92904
92905         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
92906         LIBS. Otherwise, everyone ends up linking with -lelf for some
92907         configurations.
92908         Reported by Mike Stone.
92909
92910 2000-09-15  Jim Meyering  <meyering@lucent.com>
92911
92912         * lib/regex.c: Update from libc.
92913
92914 2000-09-10  Jim Meyering  <meyering@lucent.com>
92915
92916         * lib/getopt.c (_getopt_internal): Update from glibc.
92917
92918 2000-09-09  Jim Meyering  <meyering@lucent.com>
92919
92920         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
92921         think it should be used as a general replacement for isascii.
92922         * lib/fnmatch.c: Likewise.
92923         * lib/mbswidth.c: Likewise
92924         * lib/regex.c: Likewise.
92925
92926         Don't use atoi.
92927         * lib/userspec.c: Include sys/param.h and limits.h.
92928         Include xstrtol.h.
92929         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92930         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
92931         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
92932         UID, GID.  Check range.
92933
92934 2000-09-06  Jim Meyering  <meyering@lucent.com>
92935
92936         * lib/getopt.c (_getopt_internal): Update from glibc.
92937
92938 2000-08-30  Jim Meyering  <meyering@lucent.com>
92939
92940         * lib/strftime.c: Merge in changes from GNU libc.
92941
92942 2000-08-26  Jim Meyering  <meyering@lucent.com>
92943
92944         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
92945         * m4/fpending.m4: New file.
92946
92947 2000-08-26  Jim Meyering  <meyering@lucent.com>
92948
92949         * lib/closeout.c: Include "__fpending.h".
92950         (close_stdout_status): Return right away if there's nothing to flush.
92951
92952         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
92953         * lib/__fpending.c: New file.
92954         * lib/__fpending.h: New file.
92955
92956 2000-08-20  Jim Meyering  <meyering@lucent.com>
92957
92958         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
92959         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
92960         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
92961
92962 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
92963
92964         Improve fileutils installation on systems where running
92965         programs (like install) can't be unlinked.
92966         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
92967         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
92968
92969 2000-08-07  Paul Eggert  <eggert@twinsun.com>
92970
92971         Standardize on "memory exhausted" instead of "Memory exhausted"
92972         or "virtual memory exhausted".
92973         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
92974         "virtual memory exhausted".
92975         * lib/same.c (same_name): Invoke xalloc_die instead of printing
92976         our own message.
92977         * lib/userspec.c (parse_user_spec): Likewise.
92978         * lib/bumpalloc.h: comment fix
92979         * lib/same.c, userspec.c: Include xalloc.h.
92980
92981         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
92982         not char *const and pointing to a constant array.
92983         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
92984         (xrealloc): Comment fix.
92985
92986         * lib/userspec.c (parse_user_spec):
92987         Don't translate a message until just before returning,
92988         to avoid unnecessary translation.
92989
92990 2000-08-07  Jim Meyering  <meyering@lucent.com>
92991
92992         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
92993         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
92994         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
92995         getgroups.c, gethostname.c, getopt.h, group-member.c,
92996         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
92997         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
92998         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
92999         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93000         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93001         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93002         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93003         yesno.c: Back out Copyright date changes for each file with no change
93004         this year.  This eases coordination with other programs using the same
93005         source code modules.  From Paul Eggert.
93006
93007 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93008
93009         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93010         not char, for compatibility with glibc 2.1.3 strftime.c.
93011
93012 2000-08-03  Greg McGary  <greg@mcgary.org>
93013
93014         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93015         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93016         (EXTEND_BUFFER): Use them.
93017
93018 2000-08-01  Jim Meyering  <meyering@lucent.com>
93019
93020         * lib/dirname.c (ISSLASH): Define.
93021         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93022         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93023         both `\' and `/' may be use as path separators.
93024         Based on a patch from Prashant TR.
93025
93026 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93027
93028         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93029         slot vector a constant, since it might get modified.
93030
93031 2000-07-31  Jim Meyering  <meyering@lucent.com>
93032
93033         * lib/xmalloc.c: Use `virtual memory exhausted', not
93034         `Memory exhausted'.
93035         * lib/obstack.c (print_and_abort): Likewise.
93036
93037 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93038
93039         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93040         buffer, so that the caller can always quote one small
93041         component of a "memory exhausted" message in slot 0.
93042         From a suggestion by Jim Meyering.
93043
93044 2000-07-30  Jim Meyering  <meyering@lucent.com>
93045
93046         * lib/makepath.c (make_path): Quote the other instance, too.
93047
93048         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93049         (STATIC_BUF_SIZE): Define.
93050         (quotearg_n_options): Use only statically allocated storage when
93051         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93052         than STATIC_BUF_SIZE.
93053
93054 2000-07-29  Jim Meyering  <meyering@lucent.com>
93055
93056         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93057         * lib/dirname.c (dir_name): Likewise.
93058
93059         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93060         `/'.
93061
93062         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93063         (dir_name): Assert that there are no trailing slashes.
93064
93065 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93066
93067         * lib/mbswidth.h (mbswidth): Add a flags argument.
93068         (mbswidth): New declaration.
93069         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93070         * lib/mbswidth.c (mbswidth): Add a flags argument.
93071         (mbsnwidth): New function.
93072
93073 2000-07-24  Jim Meyering  <meyering@lucent.com>
93074
93075         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93076
93077 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93078
93079         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93080
93081 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93082
93083         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93084         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93085         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93086         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93087         invoke multibyte primitives.
93088
93089 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93090
93091         * lib/quotearg.c:
93092         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93093         so that mbstate_t is always defined.
93094
93095         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93096         be 1 in at least one GCC installation, and this configuration
93097         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93098         performance on hosts that have mbrtowc but have only unibyte
93099         locales, but I assume these hosts are rare.
93100
93101 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93102
93103         * lib/mbswidth.c (_XOPEN_SOURCE):
93104         Don't define; this causes problems on Solaris 7.
93105         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93106
93107 2000-07-23  Jim Meyering  <meyering@lucent.com>
93108
93109         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93110         too: getgrgid, getpwuid, getuid.
93111
93112 2000-07-23  Jim Meyering  <meyering@lucent.com>
93113
93114         * lib/basename.c (base_name): Add an assertion.
93115
93116 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93117
93118         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93119         shadow its mbsinit function.
93120
93121 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93122
93123         * lib/mbswidth.h: New file.
93124         * lib/mbswidth.c: New file.
93125         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93126         (noinst_HEADERS): Add mbswidth.h.
93127
93128 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93129
93130         * lib/config.charset: Add support for FreeBSD. Improve support for
93131         HP-UX and IRIX 6.
93132
93133 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93134
93135         * m4/mbswidth.m4: New file.
93136         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93137
93138 2000-07-15  Jim Meyering  <meyering@lucent.com>
93139
93140         * lib/makepath.c: Include quote.h.
93141         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93142         corresponding argument in a `quote (...)' call.
93143         Give better diagnostics.
93144
93145         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93146         (noinst_HEADERS): Add quote.h.
93147
93148         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93149         from tar's src/misc.c.
93150         * lib/quote.h: New file.  Prototypes for same.
93151
93152 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93153
93154         From a suggestion by Bruno Haible.
93155         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93156         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93157         to decide whether to define the BeOS workaround macro;
93158         this adjusts to the change to AC_MBSTATE_T.
93159
93160 2000-07-14  Jim Meyering  <meyering@lucent.com>
93161
93162         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93163         jm_AC_TYPE_UINTMAX_T.
93164
93165 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93166
93167         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93168
93169         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93170         quotearg_buffer_restyled): Add support for
93171         clocale_quoting_style.  Undo previous change to
93172         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93173         and "{RIGHT QUOTATION MARK}" msgids.
93174
93175 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93176
93177         From a suggestion by Bruno Haible.
93178         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93179         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93180         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93181         and mbstate_t, to a single-part test that simply defines mbstate_t.
93182         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93183         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93184
93185 2000-07-10  Jim Meyering  <meyering@lucent.com>
93186
93187         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93188
93189         * m4/gnu-source.m4: Output to confdefs.h directly.
93190         Suggestion from Akim Demaille.
93191
93192 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93193
93194         The old behavior of quoting `like this' doesn't look good with
93195         newer, ISO-style fonts.  See:
93196         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93197
93198         Instead, quote "like this" by default.  Let the translator
93199         tailor the locale-specific quoting behavior by providing
93200         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93201
93202         * lib/quotearg.c (N_): New macro.
93203         (gettext_default): New function.
93204         (quotearg_buffer_restyled): Use
93205         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93206         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93207
93208 2000-07-09  Jim Meyering  <meyering@lucent.com>
93209
93210         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93211         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93212
93213         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93214         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93215
93216 2000-07-09  Jim Meyering  <meyering@lucent.com>
93217
93218         * lib/Most files: Update copyright dates to include 2000.
93219
93220 2000-07-08  Jim Meyering  <meyering@lucent.com>
93221
93222         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93223         if not defined.
93224         (xgethostname): Remove now-unnecessary #ifdef.
93225         Move declaration of `err' into loop where it's used.
93226
93227 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93228         and Bruno Haible  <haible@clisp.cons.org>
93229
93230         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93231         only if the test for an object-type mbstate_t fails.  This
93232         prevents us from mistakenly reporting that mbstate_t is a
93233         system object type after we "#define mbstate_t int" to work
93234         around its lack.
93235
93236 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93237         and Bruno Haible  <haible@clisp.cons.org>
93238
93239         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93240
93241 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93242
93243         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93244         to strerror_r.
93245         Include <ctype.h> for use of isalpha.
93246
93247 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93248
93249         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93250         by allocating a larger buffer. Test the gethostname return value for
93251         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93252         returns an error and ENAMETOOLONG isn't defined.
93253
93254 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93255
93256         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93257         dimension.
93258
93259 2000-07-04  Jim Meyering  <meyering@lucent.com>
93260
93261         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93262         of the deprecated AC_CHECKING.
93263
93264 2000-07-04  Jim Meyering  <meyering@lucent.com>
93265
93266         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93267         Reported by Bruno Haible.
93268
93269 2000-07-04  Jim Meyering  <meyering@lucent.com>
93270
93271         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93272         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93273         lacks mbrtowc.
93274
93275 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93276
93277         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93278         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93279
93280 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93281         and Bruno Haible  <haible@clisp.cons.org>
93282
93283         * lib/quotearg.c (mbrtowc):
93284         Assign to *pwc, and return 1 only if result is nonzero.
93285         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93286
93287 2000-07-03  Jim Meyering  <meyering@lucent.com>
93288
93289         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93290
93291 2000-07-03  Jim Meyering  <meyering@lucent.com>
93292
93293         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93294         This is necessary to get a definition of e.g., UTMP_FILE on
93295         HP-UX 10.20.
93296         From Bob Proulx.
93297
93298 2000-07-02  Jim Meyering  <meyering@lucent.com>
93299
93300         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93301
93302         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93303         AC_LIBOBJ(function_name).
93304         * m4/chown.m4: Likewise.
93305         * m4/fnmatch.m4: Likewise.
93306         * m4/ftruncate.m4: Likewise.
93307         * m4/getgroups.m4: Likewise.
93308         * m4/getline.m4: Likewise.
93309         * m4/group-member.m4: Likewise.
93310         * m4/jm-macros.m4: Likewise.
93311         * m4/lstat.m4: Likewise.
93312         * m4/malloc.m4: Likewise.
93313         * m4/memcmp.m4: Likewise.
93314         * m4/nanosleep.m4: Likewise.
93315         * m4/putenv.m4: Likewise.
93316         * m4/realloc.m4: Likewise.
93317         * m4/regex.m4: Likewise.
93318         * m4/stat.m4: Likewise.
93319         * m4/strftime.m4: Likewise.
93320
93321 2000-07-02  Jim Meyering  <meyering@lucent.com>
93322
93323         * lib/quotearg.c (mbstate_t): Don't define here.
93324
93325 2000-07-02  Jim Meyering  <meyering@lucent.com>
93326
93327         * lib/nanosleep.c (SIGCONT): Define if not already defined.
93328
93329 2000-07-01  Jim Meyering  <meyering@lucent.com>
93330
93331         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
93332
93333 2000-07-01  Jim Meyering  <meyering@lucent.com>
93334
93335         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
93336         problem.
93337
93338 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93339
93340         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
93341         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
93342
93343 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93344
93345         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
93346         per change in ../m4/ls-mntd-fs.m4.
93347         (read_filesystem_list): Ignore symbolic links.
93348
93349 2000-06-29  Jim Meyering  <meyering@lucent.com>
93350
93351         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
93352         for declaration of strcmp.
93353
93354         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
93355
93356         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
93357         Avoid warning by casting result to `char *' to remove `const'.
93358
93359 2000-06-28  Jim Meyering  <meyering@lucent.com>
93360
93361         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93362         included by quotearg.c, for which we perform this test.  From
93363         Bruno Haible.
93364
93365 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93366
93367         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93368         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93369         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93370
93371 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93372
93373         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93374
93375 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93376
93377         savedir now sets errno on failure and invokes xmalloc to get memory.
93378         Fix a couple of other minor bugs while we're at it.
93379
93380         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93381         (NAMLEN): Remove macro.
93382         (malloc, realloc): Remove decls.
93383         (stpcpy): Likewise.
93384         ("xalloc.h"): Include.
93385         (NAME_SIZE_DEFAULT): New macro.
93386         (savedir): Use xmalloc / xrealloc to allocate memory.
93387         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93388         Skip "" directory entries.
93389         Use strlen to calculate directory entry length, since the old method
93390         is rarely used these days and isn't worth supporting.
93391         Don't use a pointer after freeing it.
93392         Check for integer overflow when calculating allocation size.
93393         Use memcpy to copy entries, instead of stpcpy.
93394         Set errno properly when returning NULL.
93395         Check for readdir error.
93396
93397 2000-06-26  Jim Meyering  <meyering@lucent.com>
93398
93399         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
93400
93401 2000-06-25  Jim Meyering  <meyering@lucent.com>
93402
93403         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
93404         Linux header bug when _XOPEN_SOURCE is defined to 500.
93405
93406 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93407
93408         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
93409         deficiency.
93410
93411 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93412
93413         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
93414         Include xalloc.h.
93415         Don't include <stdlib.h>.  Don't declare malloc, realloc.
93416
93417 2000-06-24  Jim Meyering  <meyering@lucent.com>
93418
93419         * m4/strerror_r.m4: Revive this file -- to try out an experimental
93420         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
93421         for which strerror does return char*, but which lacks a conveniently
93422         accessible declaration of the function.  If the compile-test says
93423         strerror_r doesn't work, then resort to a `run'-test that works on
93424         BeOS and segfaults on DEC Unix.
93425
93426 2000-06-24  Jim Meyering  <meyering@lucent.com>
93427
93428         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
93429
93430 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93431
93432         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
93433         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
93434
93435 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93436
93437         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
93438         (mbrtowc, mbstate_t): Define substitutes if
93439         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
93440         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
93441         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
93442
93443 2000-06-23  Jim Meyering  <meyering@lucent.com>
93444
93445         * m4/afs.m4: Add missing AC_MSG_RESULT.
93446         Reported by Bruno Haible.
93447
93448         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
93449         Suggestion from Bruno Haible.
93450
93451 2000-06-23  Jim Meyering  <meyering@lucent.com>
93452
93453         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
93454
93455 2000-06-21  Jim Meyering  <meyering@lucent.com>
93456
93457         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
93458
93459 2000-06-21  Jim Meyering  <meyering@lucent.com>
93460
93461         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
93462         (noinst_HEADERS): Add getstr.h.
93463
93464         * lib/getline.c (getstr): Move into a separate file.
93465         * lib/getstr.c (getstr): New file, extracted from getline.c, with
93466         the following changes: new parameter, delim2; both delim[12]
93467         parameters have type `int', not `char'.  The latter would lose
93468         with 8-bit delimiters.
93469         * lib/getstr.h: New file.
93470
93471 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93472
93473         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
93474         than 1024, return a memory chunk of least possible size, instead
93475         of size PATH_MAX + 2. In the loop, increment the size proportionally.
93476         Use free/xmalloc instead of xrealloc to avoid copying for very long
93477         paths.
93478
93479 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93480
93481         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
93482         the empty string.
93483
93484 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93485
93486         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
93487         address, not strdup.  Include <stdlib.h> and don't declare free().
93488
93489 2000-06-19  Jim Meyering  <meyering@lucent.com>
93490
93491         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
93492
93493 2000-06-18  Jim Meyering  <meyering@lucent.com>
93494
93495         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
93496
93497         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
93498         `checking whether...' message to be consistent with that of the
93499         lstat test.
93500
93501 2000-06-18  Jim Meyering  <meyering@lucent.com>
93502
93503         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
93504         Besides, these days every porting target provides a mkdir function.
93505
93506         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93507         needed. (this snippet comes from src/system.h).
93508
93509 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93510
93511         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93512
93513 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93514
93515         * lib/human.c (adjust_value): New function.
93516         (human_readable_inexact): Apply rounding style even when
93517         printing approximate values.
93518
93519 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93520
93521         * lib/human.c (human_readable_inexact): Allow an input block
93522         size that is not a multiple of the output block size, and vice versa.
93523         Reported by Piergiorgio Sartor.
93524
93525 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93526
93527         * lib/getdate.y (get_date): Apply relative times after time
93528         zone indicator, not before.  Reported by Todd A. Jacobs.
93529
93530 2000-06-13  Jim Meyering  <meyering@lucent.com>
93531
93532         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93533
93534         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93535
93536 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93537
93538         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93539
93540 2000-06-12  Jim Meyering  <meyering@lucent.com>
93541
93542         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93543         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93544         optional argument.
93545         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93546         the optional argument, `lib'.
93547
93548 2000-06-08  Jim Meyering  <meyering@lucent.com>
93549
93550         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93551
93552 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93553
93554         Rewrite largefile configuration so that we don't need to run
93555         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93556         AC_CANONICAL_HOST in configure.in -- jmm]
93557
93558         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93559         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93560         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93561         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93562         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93563         All uses changed.
93564         Instead of inspecting the output of getconf, try to compile the
93565         test program without and with the macro definition.
93566         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93567         for getconf.  Instead, check for the needed flags by compiling
93568         test programs.
93569
93570 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93571
93572         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93573
93574 2000-06-04  Jim Meyering  <meyering@lucent.com>
93575
93576         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93577         SunOS 4.1.4 for which gid_t is an unsigned type.
93578
93579 2000-06-03  Jim Meyering  <meyering@lucent.com>
93580
93581         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93582         now that autoconf requires that.
93583
93584         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93585         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93586         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93587
93588 2000-06-03  Jim Meyering  <meyering@lucent.com>
93589
93590         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93591
93592 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93593
93594         * m4/glibc21.m4: New file.
93595         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93596
93597 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93598
93599         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93600         newer, don't install charset.alias.
93601         * lib/config.charset: Change the Linux/glibc rules so they become empty
93602         on glibc-2.1 or newer.
93603
93604 2000-06-02  Jim Meyering  <meyering@lucent.com>
93605
93606         * lib/mountlist.c: Back out last change.  Instead, do this...
93607         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93608         me_dummy member using the same `ignore'-testing code.
93609         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93610         fs_type strings.
93611         From Mark D. Roth.
93612
93613 2000-05-29  Jim Meyering  <meyering@lucent.com>
93614
93615         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93616         mounts with the `ignore' attribute.  Based on a patch from
93617         Mark D. Roth.
93618
93619 2000-05-28  Jim Meyering  <meyering@lucent.com>
93620
93621         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93622         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93623         * m4/stat.m4: Likewise.
93624         * m4/lstat.m4: Likewise.
93625         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93626
93627         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93628         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93629
93630 2000-05-26  Jim Meyering  <meyering@lucent.com>
93631
93632         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93633
93634 2000-05-24  Jim Meyering  <meyering@lucent.com>
93635
93636         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93637         autoconf requires that.
93638         * m4/lib-check.m4: Likewise.
93639         * m4/jm-macros.m4: Likewise.
93640         * m4/strftime.m4: Likewise.
93641
93642         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93643         AC_CHECK_DECLS, now that autoconf requires that.
93644
93645 2000-05-22  Jim Meyering  <meyering@lucent.com>
93646
93647         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93648         * m4/lstat.m4: Likewise.
93649
93650 2000-05-22  Jim Meyering  <meyering@lucent.com>
93651
93652         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93653
93654 2000-05-20  Jim Meyering  <meyering@lucent.com>
93655
93656         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93657         (jm_PREREQ): Use it.
93658
93659 2000-05-18  Jim Meyering  <meyering@lucent.com>
93660
93661         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
93662         back, too, since it may have been modified by allocate_entry.
93663         (hash_delete): Rewrite to use neither the assignment operator
93664         nor the comma operator in an if-expression.
93665
93666 2000-05-15  Paul Eggert  <eggert@twinsun.com>
93667
93668         * lib/closeout.c:
93669         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
93670         Remove; no longer needed.
93671         "quotearg.h": Add include.
93672         (file_name): Do not bother to explicitly initialize to NULL; it's less
93673         efficient on some hosts.
93674         (close_stdout_status): Remove test as to whether stdout was already
93675         closed; it breaks for the case "echo x | sort >&-".
93676         Quote file name colons.
93677         Do not assume that _("write error") lacks format strings.
93678
93679 2000-05-15  Jim Meyering  <meyering@lucent.com>
93680
93681         * lib/version-etc.c (version_etc_copyright): Update the copyright
93682         string used in all --version output.
93683
93684 2000-05-14  Jim Meyering  <meyering@lucent.com>
93685
93686         * lib/closeout.c (close_stdout_set_file_name): New function.
93687         (close_stdout_status): Use new file-scoped global.
93688         Return right away if fstat says the stdout file descriptor is invalid.
93689         * lib/closeout.h (close_stdout_set_file_name): Declare.
93690
93691 2000-05-10  Jim Meyering  <meyering@lucent.com>
93692
93693         * lib/closeout.c [default_exit_status]: New file-scoped variable.
93694         (close_stdout_set_status): New function.
93695         * lib/closeout.h (close_stdout_set_status): Declare.
93696
93697 2000-05-09  Jim Meyering  <meyering@lucent.com>
93698
93699         * m4/gettext.m4: Rename this...
93700         * m4/libintl.m4: ...to this.
93701
93702 2000-05-08  Jim Meyering  <meyering@lucent.com>
93703
93704         * lib/long-options.c: Don't include closeout.h.
93705         (parse_long_options): Don't call close_stdout for --version.
93706
93707 2000-05-06  Paul Eggert  <eggert@twinsun.com>
93708
93709         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
93710         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
93711         2.1.3 bug.  This avoids a clash when files like regex.c define
93712         _GNU_SOURCE.
93713
93714 2000-05-06  Jim Meyering  <meyering@lucent.com>
93715
93716         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
93717         (AC_REPLACE_FUNCS): Add strnlen.
93718
93719         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
93720         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
93721
93722         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
93723         AC_SEARCH_LIBS call for nanosleep.
93724         (LIB_NANOSLEEP): Set and AC_SUBST.
93725
93726 2000-05-06  Jim Meyering  <meyering@lucent.com>
93727
93728         * lib/strnlen.c: Undefine __strnlen and strnlen.
93729         [!weak_alias]: Define __strnlen to strnlen.
93730
93731         * lib/atexit.c: New file, from libiberty.
93732
93733 2000-05-06  Jim Meyering  <meyering@lucent.com>
93734
93735         * lib/closeout.c (close_stdout_status): Also check for errors on the
93736         stderr stream.
93737
93738 2000-05-05  Jim Meyering  <meyering@lucent.com>
93739
93740         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
93741         AC_SEARCH_LIBS call for clock_gettime.
93742         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
93743
93744         * m4/search-libs.m4: Update from autoconf.
93745
93746         su doesn't work on Solaris 2.6.
93747         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
93748         <shadow.h>.  Reported by Dragos Harabor.
93749
93750 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
93751
93752         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
93753         memcpy instead of xmalloc, xrealloc, path_concat.
93754         (locale_charset): Treat empty environment variables as absent.
93755         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
93756
93757 2000-05-04  Jim Meyering  <meyering@lucent.com>
93758
93759         * lib/getopt.c: Update from glibc.
93760         * lib/obstack.c: Likewise.
93761         * lib/obstack.h: Likewise.
93762         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
93763         file
93764
93765         * lib/regex.h: Likewise.
93766         * lib/strndup.c: Likewise.
93767         * lib/strnlen.c: New file, from glibc.
93768
93769 2000-05-03  Jim Meyering  <meyering@lucent.com>
93770
93771         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
93772
93773 2000-05-02  Paul Eggert  <eggert@twinsun.com>
93774
93775         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
93776         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
93777         compile-time test, rather than inspecting host and OS, to
93778         decide whether to define _LARGEFILE_SOURCE.
93779
93780 2000-05-01  Jim Meyering  <meyering@lucent.com>
93781
93782         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
93783
93784         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
93785         Based on a patch from Bruno Haible.
93786
93787 2000-05-01  Jim Meyering  <meyering@lucent.com>
93788
93789         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
93790
93791 2000-04-29  Jim Meyering  <meyering@lucent.com>
93792
93793         * lib/path-concat.c: Declare strdup only if it's not defined.
93794         * lib/canon-host.c: Likewise.
93795
93796 2000-04-28  Jim Meyering  <meyering@lucent.com>
93797
93798         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
93799         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
93800         is included first, then limits.h is included by locale.h by libintl.h.
93801         From John David Anglin.
93802
93803 2000-04-25  Jim Meyering  <meyering@lucent.com>
93804
93805         * lib/makepath.c (S_IRWXUGO): Define.
93806         (make_path): Always perform explicit chmod if MODE specifies any
93807         of the `special' permission bits.  Prompted by a bug report against
93808         install from Mate Wierdl and Joost van Baal.
93809
93810 2000-04-18  Jim Meyering  <meyering@lucent.com>
93811
93812         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
93813         (jm_PREREQ): Use it.
93814
93815 2000-04-18  Jim Meyering  <meyering@lucent.com>
93816
93817         * lib/README: New file.
93818
93819         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
93820         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
93821
93822 2000-04-17  Jim Meyering  <meyering@lucent.com>
93823
93824         Get it right :-)
93825         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
93826         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
93827         Suggestion from Akim Demaille.
93828
93829 2000-04-17  Jim Meyering  <meyering@lucent.com>
93830
93831         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
93832         the definition of it to rpl_strftime also defined-away the system's
93833         declaration.
93834
93835 2000-04-15  Jim Meyering  <meyering@lucent.com>
93836
93837         Use `C' to denote so-called `contiguous' files, the same way
93838         that tar does.
93839         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
93840         (ftypelet): Use S_ISCTG.
93841         From Michael Deutschmann.
93842
93843 2000-04-14  Jim Meyering  <meyering@lucent.com>
93844
93845         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
93846         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
93847         clobbered.
93848
93849 2000-04-14  Jim Meyering  <meyering@lucent.com>
93850
93851         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
93852
93853 2000-04-13  Jim Meyering  <meyering@lucent.com>
93854
93855         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
93856         AH_VERBATIM to insert required #ifndef into config.h.in.
93857         Suggestion from Akim Demaille.
93858
93859 2000-04-12  Jim Meyering  <meyering@lucent.com>
93860
93861         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
93862         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
93863         Christian Krackowizer.
93864
93865         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
93866         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
93867         (AC_SYS_LARGEFILE): Require.
93868         (AM_C_PROTOTYPES): Require.
93869
93870 2000-04-08  Jim Meyering  <meyering@lucent.com>
93871
93872         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
93873         names don't conflict.  Reported by Eli Zaretskii.
93874
93875 2000-04-07  Jim Meyering  <meyering@lucent.com>
93876
93877         * lib/putenv.c: Move inclusion of errno.h so it follows that of
93878         sys/types.h, to work around system header problems on AIX 3.2.5.
93879         From Bruno Haible.
93880
93881 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
93882
93883         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
93884         bug.  Deal with the different error behavior of Irix iconv.
93885
93886 2000-04-05  Paul Eggert  <eggert@twinsun.com>
93887
93888         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
93889         IRIX if the installer said otherwise.
93890
93891 2000-04-05  Jim Meyering  <meyering@lucent.com>
93892
93893         Portability tweaks required for ultrix4.3.
93894         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
93895         (jm_CHECK_DECLS): Add getutent to the list of functions.
93896         (_jm_DECL_HEADERS): Add utmpx.h.
93897         From John David Anglin.
93898
93899         * m4/strftime.m4: Back out the 2000-04-02 change.
93900         Instead of that change, simply undefine putenv in the test program.
93901
93902 2000-04-05  Jim Meyering  <meyering@lucent.com>
93903
93904         Portability tweaks required for ultrix4.3.
93905         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
93906         getutent.
93907         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
93908         * lib/canon-host.c: Declare strdup.
93909         * lib/path-concat.c: Likewise.
93910         From John David Anglin.
93911
93912 2000-04-04  Jim Meyering  <meyering@lucent.com>
93913
93914         Be more DOS 8.3-friendly.
93915         * lib/ref-add.sin: Renamed from ref-add.sed.in.
93916         * lib/ref-del.sin: Renamed from ref-del.sed.in.
93917         * lib/Makefile.am: Reflect renaming.
93918         Reported by Eli Zaretskii.
93919
93920         Use a temporary file name that won't clash with `charset.alias'
93921         in the DOS 8.3 name space.
93922         * lib/Makefile.am (charset_tmp): Define.
93923         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
93924         (uninstall-local): Likewise.
93925         Reported by Eli Zaretskii.
93926
93927 2000-04-03  Jim Meyering  <meyering@lucent.com>
93928
93929         * m4/gettext.m4: Fix typo in comment.
93930
93931         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
93932         textutils/configure.in).  Suggestion from Paul Eggert.
93933         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
93934
93935 2000-04-02  Paul Eggert  <eggert@twinsun.com>
93936
93937         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
93938         variable in the shell rather than using putenv, which isn't
93939         portable.  This avoids the configure-time inter-test dependency
93940         on the potentially-renamed putenv function.
93941
93942 2000-03-30  Paul Eggert  <eggert@twinsun.com>
93943
93944         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
93945         before checking struct stat.st_blksize, so that
93946         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
93947
93948 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93949
93950         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
93951         since strftime.c uses HAVE_STRFTIME to decide whether to use
93952         the underlying strftime.
93953
93954 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93955
93956         * lib/time/strftime.c (my_strftime): Make sure we call the system
93957         strftime, not ourselves, when invoking the underlying strftime.
93958
93959 2000-03-24  Jim Meyering  <meyering@lucent.com>
93960
93961         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
93962         (charset_alias): Define.
93963         (install-exec-local): Factor out common code.
93964         (uninstall-local): Split lines longer than 80.
93965         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
93966         (SUFFIXES): Define.
93967         (.sed.in.sed): New rule.  Don't redirect directly to $@.
93968         (CLEANFILES): Add ref-add.sed and ref-del.sed.
93969
93970 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
93971
93972         * lib/config.charset: Output a line containing "Packages using this
93973         file".
93974         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
93975         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
93976         ref-del.sed): New rules.
93977
93978 2000-03-17  Jim Meyering  <meyering@lucent.com>
93979
93980         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
93981         Otherwise, include <strings.h>
93982
93983 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
93984
93985         * lib/unicodeio.c (utf8_wctomb): New function.
93986         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
93987         format instead of in UCS-4 with platform dependent endianness.
93988
93989 2000-03-10  Jim Meyering  <meyering@lucent.com>
93990
93991         * m4/lib-check.m4: Look for getspnam in -lgen, too.
93992         From Marco Franzen.
93993
93994 2000-03-07  Paul Eggert  <eggert@twinsun.com>
93995
93996         * lib/savedir.c (savedir): Work even if directory size is
93997         negative; this can happen with some screwy NFS configurations.
93998
93999 2000-03-06  Jim Meyering  <meyering@lucent.com>
94000
94001         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94002         if it's NULL (because we ran out of memory).  From Bruno Haible.
94003
94004 2000-03-05  Jim Meyering  <meyering@lucent.com>
94005
94006         * lib/localcharset.c ("path-concat.h"): Include.
94007         (get_charset_aliases): Use path_concat instead of ANSI string
94008         concatenation.
94009
94010         * lib/unicodeio.h (PARAMS): Define.
94011         Use it to guard prototype.
94012
94013 2000-03-04  Jim Meyering  <meyering@lucent.com>
94014
94015         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94016         for lib/localcharset.c.
94017
94018 2000-03-04  Jim Meyering  <meyering@lucent.com>
94019
94020         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94021         installing into it.
94022         (uninstall-local): Uncomment this rule so `make distcheck' works
94023         once again.
94024
94025         * lib/unicodeio.c (<errno.h>): Include it.
94026         (errno): Declare if not defined.
94027
94028         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94029
94030         * lib/config.charset: New version, incorporating remarks from a linux
94031         i18n mailing list.  From Bruno Haible.
94032
94033 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94034
94035         * m4/codeset.m4: New file.
94036         * m4/iconv.m4: New file.
94037         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94038
94039 2000-03-03  Jim Meyering  <meyering@lucent.com>
94040
94041         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94042
94043 2000-03-02  Jim Meyering  <meyering@lucent.com>
94044
94045         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94046         the messages come out on separate lines.
94047
94048         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94049         rather than jm_CHECK_DECLARATIONS.
94050         * m4/decl.m4: Remove now-unused file.
94051
94052         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94053         geteuid.
94054
94055 2000-03-02  Jim Meyering  <meyering@lucent.com>
94056
94057         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94058
94059 2000-03-01  Jim Meyering  <meyering@lucent.com>
94060
94061         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94062         * lib/unicodeio.c: Likewise.
94063
94064 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94065
94066         * lib/config.charset: New file.
94067         * lib/localcharset.c: New file.
94068         * lib/unicodeio.h, lib/unicodeio.c: New files.
94069         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94070         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94071         (noinst_HEADERS): Add unicodeio.h.
94072         (all-local, install-exec-local, charset.alias): New targets.
94073
94074 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94075
94076         * lib/quotearg.c (ALERT_CHAR): New macro.
94077         (quotearg_buffer_restyled): Use it.
94078
94079 2000-02-27  Jim Meyering  <meyering@lucent.com>
94080
94081         * m4/check-decl.m4: Add getenv to the list.
94082
94083 2000-02-27  Jim Meyering  <meyering@lucent.com>
94084
94085         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94086         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94087
94088         * lib/backupfile.c: Guard inclusion of stdlib.h with
94089         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94090         Declare malloc if needed.
94091
94092         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94093         `#ifndef HAVE_DECL..'
94094         now that autoconf always defines the HAVE_DECL_ symbols.
94095         * lib/human.c: Likewise.
94096         * lib/same.c: Likewise.
94097         * lib/strtoumax.c: Likewise.
94098
94099         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94100         declaration check was not run.
94101         * lib/hash.c: Likewise.
94102         * lib/human.c: Likewise.
94103         * lib/same.c: Likewise.
94104         * lib/strtoumax.c: Likewise.
94105
94106         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94107         `.', then first look up the entire `.'-containing string as a login
94108         name.
94109
94110 2000-02-23  Jim Meyering  <meyering@lucent.com>
94111
94112         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94113         in place of my hack.
94114
94115 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94116
94117         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94118         (textint): New typedef.
94119         (parser_control): Member year changed from int to textint.
94120         All uses changed.
94121         (YYSTYPE): Removed; replaced by %union with int and textint members.
94122         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94123         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94124         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94125         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94126         (date, number, to_year): Use width of number in digits, not its value,
94127         to determine whether it's a 2-digit year, or a 2-digit time.
94128         (yylex): Store number of digits of numeric tokens.
94129         Reported by John Kendall.
94130
94131         (parser_control): Changed from struct parser_control to typedef (for
94132         consistency).  All uses changed.
94133
94134         (tID): Removed; not used.
94135         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94136
94137 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94138
94139         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94140         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94141
94142 2000-02-12  Jim Meyering  <meyering@lucent.com>
94143
94144         * lib/userspec.c (ISDIGIT): Define it.
94145         (isdigit): Remove definition.
94146         (is_number): Use ISDIGIT, not isdigit.
94147         <libintl.h>: Include.
94148         (_ and N_): Define.
94149         (parse_user_spec): Mark translatable strings.
94150
94151 2000-02-10  Jim Meyering  <meyering@lucent.com>
94152
94153         With these changes, nanosleep.[ch] are finally enough like the other
94154         lib/* replacement files to compile on a few more losing systems.
94155
94156         * lib/nanosleep.h: Don't include config.h.
94157         Remove prototype from declaration of nanosleep.
94158         (PARAMS): Remove now-unneeded definition.
94159         * lib/nanosleep.c: #undef nanosleep.
94160         (rpl_nanosleep): Rename from nanosleep.
94161
94162 2000-02-10  Jim Meyering  <meyering@lucent.com>
94163
94164         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94165         gnu_nanosleep to rpl_nanosleep.
94166
94167 2000-02-09  Jim Meyering  <meyering@lucent.com>
94168
94169         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94170         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94171
94172 2000-02-08  Akim Demaille  <akim@epita.fr>
94173
94174         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94175         `[' and `]' and remove uses of `changequote'.
94176         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94177         (AC_SYS_LARGEFILE): Likewise.
94178         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94179         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94180         of changequote.
94181         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94182         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94183         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94184         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94185
94186 2000-02-05  Jim Meyering  <meyering@lucent.com>
94187
94188         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94189         Remove explicit use of AC_HEADER_TIME.  It is required by
94190         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94191         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94192         in autoconf whereby the expansion of the latter ended up preceding
94193         the expansion of its prerequisite, AC_HEADER_TIME.
94194         Reported by Volker Borchert.
94195
94196 2000-02-03  Jim Meyering  <meyering@lucent.com>
94197
94198         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94199
94200 2000-02-03  Jim Meyering  <meyering@lucent.com>
94201
94202         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94203         rather than with `#if HAVE_UTMPNAME'.
94204
94205 2000-02-02  Jim Meyering  <meyering@lucent.com>
94206
94207         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94208         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94209         Reported by Eli Zaretskii.
94210
94211 2000-02-01  Jim Meyering  <meyering@lucent.com>
94212
94213         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94214
94215 2000-01-31  Jim Meyering  <meyering@lucent.com>
94216
94217         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94218         functions.  Add the time.h and sys/time.h headers along with the
94219         AC_REQUIRE'ment of AC_HEADER_TIME.
94220
94221 2000-01-31  Jim Meyering  <meyering@lucent.com>
94222
94223         * lib/nanosleep.h (nanosleep): Guard declaration with
94224         `#if ! HAVE_DECL_NANOSLEEP'.
94225         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94226         the declaration in that vendor's sys/timers.h.
94227         Reported by Christian Krackowizer.
94228
94229         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94230         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94231         (ISPRINT): Likewise.
94232         Reported by Tom Tromey.
94233
94234 2000-01-30  Jim Meyering  <meyering@lucent.com>
94235
94236         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94237
94238         * m4/prereq.m4 (utmp_includes): Define.
94239         Check for ut_user and ut_name members in both struct utmpx
94240         and struct utmp.
94241
94242 2000-01-30  Jim Meyering  <meyering@lucent.com>
94243
94244         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94245         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94246         header files where only utmpx.ut_user is declared.
94247
94248         * lib/readutmp.h (UT_USER): Define.
94249
94250 2000-01-29  Jim Meyering  <meyering@lucent.com>
94251
94252         * m4/lib-check.m4: New file containing library-related checks from
94253         fileutils and sh-utils (textutils had none).
94254
94255 2000-01-28  Jim Meyering  <meyering@lucent.com>
94256
94257         * m4/perl.m4: Change format of warning message to look more like that
94258         from the missing script.  Suggestion from François Pinard.
94259
94260 2000-01-25  Jim Meyering  <meyering@lucent.com>
94261
94262         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94263         well as time.h in the compile check.
94264         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94265         Fix typo in cross-compiling case: s/yes/no/.
94266
94267 2000-01-23  Jim Meyering  <meyering@lucent.com>
94268
94269         * m4/jm-macros.m4: Move df-related tests here from
94270         fileutils/configure.in
94271
94272         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94273         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94274
94275         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94276         s/space/ac_fsusage_space/.
94277         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94278
94279         * m4/ftruncate.m4: New file (derived from part of
94280         fileutils/configure.in).
94281         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94282         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94283
94284         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94285         AC_SUBST these here, rather than just in sh-util/configure.in, so
94286         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94287         all the same.
94288         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94289         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94290         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94291         (AC_SUBST(POW_LIBM)): Likewise.
94292         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94293
94294 2000-01-23  Jim Meyering  <meyering@lucent.com>
94295
94296         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94297         obstack.c.
94298
94299 2000-01-22  Jim Meyering  <meyering@lucent.com>
94300
94301         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94302
94303         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94304
94305         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94306         configure.in
94307         (AC_CHECK_HEADERS): Likewise for sh-utils.
94308         (AC_CHECK_HEADERS): Likewise for textutils.
94309         Merge the three lists of headers.
94310
94311         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94312         from fileutils' configure.in.
94313
94314         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94315         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94316         check-decl.m4.
94317
94318         * m4/check-decl.m4: Use #if rather than #ifdef.
94319         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
94320         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
94321         (_jm_DECL_HEADERS): Define new function.
94322         (jm_CHECK_DECLARATIONS): Require it.
94323
94324 2000-01-22  Jim Meyering  <meyering@lucent.com>
94325
94326         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
94327         [! HAVE_DECL_STRTOULL]: Declare strtoull.
94328         Required for some AIX systems.  Reported by Christian Krackowizer.
94329         [TESTING] (main): New function.
94330
94331         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
94332         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
94333         letters.
94334
94335         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
94336         iswprint.
94337
94338         * lib/strverscmp.c (ISDIGIT): Define.
94339         (strverscmp): Use ISDIGIT, not isdigit.
94340
94341 2000-01-19  Jim Meyering  <meyering@lucent.com>
94342
94343         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
94344         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
94345         defines `struct timespec' in <sys/time.h>
94346
94347         * m4/c-bs-a.m4: Remove uses of changequote altogether.
94348         Thanks to Akim for explaining.
94349
94350 2000-01-17  Paul Eggert  <eggert@twinsun.com>
94351
94352         * lib/nanosleep.c (nanosleep):
94353         Don't use SA_INTERRUPT to decide whether to call sigaction, as
94354         POSIX.1 doesn't require SA_INTERRUPT and some systems
94355         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
94356         it's been part of POSIX.1 since day 1 (in 1988).
94357
94358 2000-01-17  Jim Meyering  <meyering@lucent.com>
94359
94360         * lib/interlock: Remove unused file.  Reported by François Pinard.
94361
94362 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94363
94364         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94365         alert, backslash, formfeed, and vertical tab unnecessarily in
94366         shell quoting style.
94367
94368 2000-01-16  Jim Meyering  <meyering@lucent.com>
94369
94370         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94371         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94372         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94373         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94374
94375 2000-01-16  Jim Meyering  <meyering@lucent.com>
94376
94377         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94378         because the latter didn't work.
94379
94380 2000-01-15  Jim Meyering  <meyering@lucent.com>
94381
94382         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94383         (AC_REPLACE_FUNCS): Add memcpy and memset.
94384         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94385         Add strpbrk.
94386         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94387
94388 2000-01-12  Jim Meyering  <meyering@lucent.com>
94389
94390         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94391         (jm_PREREQ): Use it.
94392         (jm_PREREQ_READUTMP): New macro.
94393         (jm_PREREQ): Use it.
94394
94395 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94396
94397         Quote multibyte characters correctly.
94398         * m4/c-bs-a.m4: New file.
94399         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
94400         (jm_PREREQ): Use it.
94401
94402 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94403
94404         * m4/uintmax_t.m4: Port to autoconf 2.13.
94405
94406 2000-01-08  Jim Meyering  <meyering@ascend.com>
94407
94408         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
94409         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
94410
94411 2000-01-04  Jim Meyering  <meyering@ascend.com>
94412
94413         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
94414         jm_STRUCT_DIRENT_D_TYPE.
94415         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
94416         jm_STRUCT_DIRENT_D_INO.
94417         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
94418         jm_STRUCT_UTIMBUF.
94419         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
94420         renamings.
94421         * m4/utime.m4: Likewise.
94422
94423         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
94424         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
94425
94426 2000-01-03  Paul Eggert  <eggert@twinsun.com>
94427
94428         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
94429         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
94430
94431 2000-01-02  Jim Meyering  <meyering@ascend.com>
94432
94433         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
94434         remember if this is necessary.
94435
94436 1999-12-26  Jim Meyering  <meyering@ascend.com>
94437
94438         * m4/jm-macros.m4: Use it here.
94439         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
94440
94441 1999-12-23  Jim Meyering  <meyering@ascend.com>
94442
94443         * m4/jm-macros.m4: Check for clock_gettime (moved from
94444         fileutils/configure.in)
94445         Check for gettimeofday.
94446
94447 1999-12-20  Jim Meyering  <meyering@ascend.com>
94448
94449         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
94450         autoconf-2.14a-1999-12-20.
94451
94452 1999-12-19  Jim Meyering  <meyering@ascend.com>
94453
94454         * m4/lstat-slash.m4: New file.
94455         * m4/jm-macros.m4: Use the new macro:
94456         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94457
94458 1999-12-07  Jim Meyering  <meyering@ascend.com>
94459
94460         * m4/perl.m4: Require that File::Compare be available, too.
94461         Too many systems seem to lack it.
94462
94463         * m4/strftime.m4: Add checks for most of the cpp macros tested in
94464         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
94465
94466 1999-11-18  Paul Eggert  <eggert@twinsun.com>
94467
94468         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
94469         problem with the QNX 4.25 shell, which doesn't propagate exit
94470         status of failed commands inside shell assignments.
94471
94472 1999-11-17  Jim Meyering  <meyering@ascend.com>
94473
94474         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
94475
94476 1999-11-07  Jim Meyering  <meyering@ascend.com>
94477
94478         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
94479
94480 1999-11-06  Jim Meyering  <meyering@ascend.com>
94481
94482         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
94483         * m4/jm-macros.m4 (jm_MACROS): Use it here.
94484
94485 1999-11-05  Jim Meyering  <meyering@ascend.com>
94486
94487         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
94488         configure.in of textutils, fileutils, and sh-utils into this one
94489         (shared between those packages) file.
94490         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
94491         AC_STRUCT_ST_BLKSIZE.
94492
94493 1999-11-03  Jim Meyering  <meyering@ascend.com>
94494
94495         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
94496         of AC_CHECK_TYPE checks includes unistd.h.
94497         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
94498         Suggestion from Akim Demaille.
94499
94500 1999-10-30  Jim Meyering  <meyering@ascend.com>
94501
94502         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
94503         m4-quoted string.
94504         * m4/ls-mntd-fs.m4: Likewise.
94505         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94506         * m4/jm-winsz1.m4: Likewise.
94507
94508         * m4/const.m4: Remove file, since the fix made it into the experimental
94509         version of autoconf.
94510         * m4/mktime.m4: Likewise.
94511
94512         * m4/check-type.m4: Remove file, now that the latest version of
94513         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94514
94515         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94516         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94517         AC_CHECK_TYPE.
94518
94519 1999-10-04  Jim Meyering  <meyering@ascend.com>
94520
94521         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94522
94523 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94524
94525         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94526         2.95.1 bug with HP-UX 10.20.
94527
94528 1999-09-17  Jim Meyering  <meyering@ascend.com>
94529
94530         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94531         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94532         due to missing strdup (against sh-utils-2.0).
94533
94534 1999-08-29  Jim Meyering  <meyering@ascend.com>
94535
94536         * m4/jm-macros.m4: Require jm_BISON.
94537         * m4/bison.m4: New file.
94538
94539 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94540
94541         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94542         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94543
94544 1999-08-05  Jim Meyering  <meyering@ascend.com>
94545
94546         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94547         to avoid conflicts with `conftest' on 8+3 filesystems.
94548         Suggestion from Eli Zaretskii.
94549
94550 1999-08-04  Jim Meyering  <meyering@ascend.com>
94551
94552         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94553         fileutils and sh-utils (textutils's getline test was inadequate).
94554         (AM_FUNC_GETLINE): Run this test.
94555         (AC_CHECK_FUNCS): Check for getdelim.
94556         Reported by Bob Proulx.
94557
94558 1999-08-02  Jim Meyering  <meyering@ascend.com>
94559
94560         * m4/jm-macros.m4: Add a comment.
94561
94562 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94563
94564         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94565         <inttypes.h> defines strtoumax as a macro (and not as a
94566         function).
94567
94568 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94569
94570         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94571         that we can shift, multiply and divide unsigned long long
94572         values; Ultrix cc can't do it.
94573
94574 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94575
94576         * m4/mktime.m4: New file, which is a preview of what should appear
94577         in the next public autoconf release.
94578
94579 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94580
94581         * m4/lfs.m4: Remove this file.
94582         * m4/largefile.m4: New file.  It contains the old contents of
94583         lfs.m4, except that all names with prefix AC_LFS have been
94584         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94585         compatible with future autoconf versions.  Also, some minor m4
94586         quoting problems have been fixed.
94587
94588 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94589
94590         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94591         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94592         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94593         and simplify the shell code.
94594
94595 1999-08-01  Jim Meyering  <meyering@ascend.com>
94596
94597         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94598         m4.
94599
94600 1999-07-20  Jim Meyering  <meyering@ascend.com>
94601
94602         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94603
94604 1999-07-15  Jim Meyering  <meyering@ascend.com>
94605
94606         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94607
94608 1999-05-22  Jim Meyering  <meyering@ascend.com>
94609
94610         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94611
94612 1999-05-20  Jim Meyering  <meyering@ascend.com>
94613
94614         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94615         Add a colon after each `then' in case $4 is empty.
94616
94617 1999-05-16  Jim Meyering  <meyering@ascend.com>
94618
94619         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94620
94621 1999-05-10  Jim Meyering  <meyering@ascend.com>
94622
94623         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94624
94625         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94626         AC_FUNC_MKTIME.
94627
94628 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94629
94630         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94631
94632 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94633
94634         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94635         not CPPFLAGS, so that linking works correctly in IRIX.
94636
94637 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94638
94639         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94640
94641 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94642
94643         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94644         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94645         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94646         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94647         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94648
94649         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94650
94651 1999-04-20  Jim Meyering  <meyering@ascend.com>
94652
94653         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94654         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94655         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94656
94657 1999-04-18  Jim Meyering  <meyering@ascend.com>
94658
94659         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
94660         * m4/jm-macros.m4: Use it.
94661
94662 1999-04-06  Jim Meyering  <meyering@ascend.com>
94663
94664         * m4/strftime.m4: Remove test for %f.
94665
94666 1999-03-29  Jim Meyering  <meyering@ascend.com>
94667
94668         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
94669         superset of the AC_TYPE_* checks in the textutils, fileutils,
94670         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
94671         AC_TYPE_PID_T.
94672
94673 1999-03-28  Jim Meyering  <meyering@ascend.com>
94674
94675         * m4/jm-macros.m4: Define GNU_PACKAGE here.
94676         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
94677         replaced e.g., in the *.sh files of the sh-utils.
94678
94679 1999-03-20  Jim Meyering  <meyering@ascend.com>
94680
94681         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
94682         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
94683         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
94684
94685 1999-03-19  Jim Meyering  <meyering@ascend.com>
94686
94687         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
94688
94689 1999-03-12  Jim Meyering  <meyering@ascend.com>
94690
94691         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
94692
94693 1999-03-07  Jim Meyering  <meyering@ascend.com>
94694
94695         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
94696         declared.
94697
94698 1999-02-17  Jim Meyering  <meyering@ascend.com>
94699
94700         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
94701         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
94702
94703 1999-02-07  Jim Meyering  <meyering@ascend.com>
94704
94705         * m4/group-member.m4: New file -- extracted from sh-utils'
94706         configure.in.
94707
94708         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
94709         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
94710
94711 1999-02-06  Jim Meyering  <meyering@ascend.com>
94712
94713         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
94714         * m4/fnmatch.m4: Likewise.
94715         * m4/getgroups.m4: Likewise.
94716         * m4/lstat.m4: Likewise.
94717         * m4/malloc.m4: Likewise.
94718         * m4/putenv.m4: Likewise.
94719         * m4/realloc.m4: Likewise.
94720         * m4/regex.m4: Likewise.
94721         * m4/stat.m4: Likewise.
94722         * m4/strftime.m4: Likewise.
94723         Suggestion from Alain Magloire.
94724
94725         * m4/chown.m4: Use `.$ac_objext', not `.o'.
94726         * m4/fnmatch.m4: Likewise.
94727         * m4/getgroups.m4: Likewise.
94728         * m4/getline.m4: Likewise.
94729         * m4/lstat.m4: Likewise.
94730         * m4/malloc.m4: Likewise.
94731         * m4/memcmp.m4: Likewise.
94732         * m4/putenv.m4: Likewise.
94733         * m4/realloc.m4: Likewise.
94734         * m4/regex.m4: Likewise.
94735         * m4/stat.m4: Likewise.
94736         * m4/strftime.m4: Likewise.
94737         Suggestion from Alain Magloire.
94738
94739         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
94740         an argument.
94741
94742         * m4/regex.m4: Add a run-time Test for proper operation of
94743         re_compile_pattern.
94744
94745 1999-01-31  Jim Meyering  <meyering@ascend.com>
94746
94747         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
94748
94749 1999-01-30  Jim Meyering  <meyering@ascend.com>
94750
94751         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
94752
94753         * m4/jm-mktime.m4: Make this a wrapper around the official
94754         AM_FUNC_MKTIME rather than my private copy, now that the official one
94755         is up to date.
94756         * m4/mktime.m4: Remove file.
94757
94758         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
94759         * m4/uptime.m4: Likewise.
94760         * m4/uintmax_t.m4: Likewise.
94761
94762 1999-01-28  Jim Meyering  <meyering@ascend.com>
94763
94764         * m4/jm-macros.m4: Use jm_AFS.
94765         * m4/afs.m4: New file (from fileutils' configure.in).
94766
94767         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
94768         * m4/chown.m4: Likewise.
94769         * m4/d-ino.m4: Likewise.
94770         * m4/d-type.m4: Likewise.
94771         * m4/fnmatch.m4: Likewise.
94772         * m4/getgroups.m4: Likewise.
94773         * m4/gettext.m4: Likewise.
94774         * m4/jm-mktime.m4: Likewise.
94775         * m4/jm-winsz2.m4: Likewise.
94776         * m4/lcmessage.m4: Likewise.
94777         * m4/ls-mntd-fs.m4: Likewise.
94778         * m4/malloc.m4: Likewise.
94779         * m4/memcmp.m4: Likewise.
94780         * m4/putenv.m4: Likewise.
94781         * m4/realloc.m4: Likewise.
94782         * m4/st_mtim.m4: Likewise.
94783         * m4/strftime.m4: Likewise.
94784
94785 1999-01-16  Jim Meyering  <meyering@ascend.com>
94786
94787         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
94788         (ARGMATCH_DIE_DECL): Define.
94789
94790 1999-01-12  Jim Meyering  <meyering@ascend.com>
94791
94792         * m4/Makefile.am.in: Rewrite to avoid using fmt.
94793         Reported by Lars Hecking.
94794
94795 1999-01-10  Jim Meyering  <meyering@ascend.com>
94796
94797         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
94798         gross kludge.
94799         * m4/inttypes_h.m4: Likewise.
94800         * m4/lstat.m4: Likewise.
94801         * m4/malloc.m4: Likewise.
94802         * m4/readdir.m4: Likewise.
94803         * m4/realloc.m4: Likewise.
94804         * m4/st_dm_mode.m4: Likewise.
94805         * m4/stat.m4: Likewise.
94806         * m4/utimbuf.m4: Likewise.
94807         * m4/utimes.m4: Likewise.
94808
94809         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
94810         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
94811         comments in config.h.in are meaningful.
94812
94813         * m4/jm-macros.m4: Require autoconf-2.13 here.
94814
94815         * m4/regex.m4: By default, don't use the included regex.c on systems
94816         with glibc 2.  Suggestion from Uli Drepper.
94817
94818 1999-01-02  Jim Meyering  <meyering@ascend.com>
94819
94820         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
94821
94822 1998-12-18  Jim Meyering  <meyering@ascend.com>
94823
94824         * m4/Makefile.am.in (Makefile.am): Simplify rule.
94825         Based on a suggestion from Lars Hecking.
94826
94827 1998-11-16  Paul Eggert  <eggert@twinsun.com>
94828
94829         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
94830
94831 1998-11-16  Jim Meyering  <meyering@ascend.com>
94832
94833         * m4/lfs.m4: Double-quote the `uname...` expression.
94834
94835 1998-11-14  Jim Meyering  <meyering@ascend.com>
94836
94837         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
94838         * m4/stat.m4: Likewise.
94839
94840 1998-11-03  Jim Meyering  <meyering@ascend.com>
94841
94842         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
94843         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
94844
94845 1998-10-18  Jim Meyering  <meyering@ascend.com>
94846
94847         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
94848
94849 1998-10-17  Jim Meyering  <meyering@ascend.com>
94850
94851         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
94852         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
94853         calls for those previously hard-coded headers.  Instead, take a new
94854         parameter.
94855         (jm_CHECK_DECLARATIONS): Reflect interface change.
94856         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
94857         (jm_CHECK_DECL_LOCALTIME_R): New macro.
94858
94859         * m4/mktime.m4: Test for spring-forward gap before long-running test.
94860
94861 1998-10-14  Jim Meyering  <meyering@ascend.com>
94862
94863         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
94864         instead of "TZ=America/Vancouver".  From Paul Eggert.
94865
94866 1998-10-11  Jim Meyering  <meyering@ascend.com>
94867
94868         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
94869         This adds a test for a recently added compatibility fix for mktime.c.
94870         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
94871
94872 1998-09-27  Jim Meyering  <meyering@ascend.com>
94873
94874         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
94875
94876         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
94877         ../configure.in, including a change from Gordon Matzigkeit to allow
94878         cross-compiling for the Hurd.
94879
94880         * m4/glibc.m4: New file/macro to test for the GNU C Library
94881         versions 1 and 2.  From Gordon Matzigkeit.
94882         Indent.
94883
94884 1998-09-21  Jim Meyering  <meyering@ascend.com>
94885
94886         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
94887
94888 1998-08-18  Paul Eggert  <eggert@twinsun.com>
94889
94890         Port nanosecond-resolution times to UnixWare 2.1.2 and
94891         pedantic Solaris 2.6.
94892
94893         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
94894         AC_STRUCT_ST_MTIM.
94895         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
94896         Generate name of ns member, instead of just 1 or undef.
94897         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
94898
94899 1998-08-15  Jim Meyering  <meyering@ascend.com>
94900
94901         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
94902         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
94903         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
94904         instead of jm_TYPE_SSIZE_T.
94905
94906 1998-08-12  Jim Meyering  <meyering@ascend.com>
94907
94908         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
94909
94910 1998-08-02  Jim Meyering  <meyering@ascend.com>
94911
94912         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
94913         in acconfig.h manually.
94914
94915 1998-07-31  Paul Eggert  <eggert@twinsun.com>
94916
94917         * m4/st_mtim.m4: New file.
94918
94919 1998-07-28  Jim Meyering  <meyering@ascend.com>
94920
94921         * m4/utimes.m4: Undef stat.
94922
94923 1998-07-25  Jim Meyering  <meyering@ascend.com>
94924
94925         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
94926         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
94927
94928 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
94929
94930         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
94931         uid and gid actually remain unchanged.
94932
94933 1998-07-07  Jim Meyering  <meyering@ascend.com>
94934
94935         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
94936
94937 1998-07-04  Jim Meyering  <meyering@ascend.com>
94938
94939         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
94940         to prove that this macro can be used in packages without regex.c.
94941
94942 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
94943
94944         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
94945         is to be used.
94946
94947 1998-07-03  Jim Meyering  <meyering@ascend.com>
94948
94949         * m4/gettext.m4: Add -lintl if it's found to be necessary.
94950
94951         * m4/gettext.m4: New file -- from gettext-0.10.35.
94952         * m4/lcmessage.m4: Likewise.
94953         * m4/progtest.m4: Likewise.
94954
94955         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
94956         * m4/jm-macros.m4: Require the new macro.
94957
94958 1998-06-29  Jim Meyering  <meyering@ascend.com>
94959
94960         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
94961         for the definition of NGROUPS (used in a system header included
94962         by sys/mount.h).
94963
94964 1998-06-28  Jim Meyering  <meyering@ascend.com>
94965
94966         * m4/ls-mntd-fs.m4: New file.
94967         * m4/fstypename.m4: New file.
94968
94969         * m4/jm-macros.m4: Require the new macro.
94970         * m4/jm-glibc-io.m4: New file.
94971
94972 1998-05-19  Jim Meyering  <meyering@ascend.com>
94973
94974         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
94975         * m4/lchown.m4: New file.
94976
94977         * m4/Makefile.am.in: New file.
94978         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
94979
94980 1998-05-14  Jim Meyering  <meyering@ascend.com>
94981
94982         * m4/Makefile.am (EXTRA_DIST): Add them.
94983         * m4/jm-macros.m4: New file.
94984         * m4/utimbuf.m4: New file.
94985
94986 1998-05-12  Jim Meyering  <meyering@ascend.com>
94987
94988         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
94989
94990 1998-05-11  Jim Meyering  <meyering@ascend.com>
94991
94992         * m4/isc-posix.m4: New file.
94993
94994 1998-05-10  Jim Meyering  <meyering@ascend.com>
94995
94996         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
94997
94998 1998-05-09  Jim Meyering  <meyering@ascend.com>
94999
95000         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95001         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95002         with automake.
95003
95004         * m4/ssize_t.m4: New file.
95005         * m4/mktime.m4: Remove file -- the new automake has this now.
95006
95007 1998-04-26  Jim Meyering  <meyering@ascend.com>
95008
95009         * m4/assert.m4: New file.
95010         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95011
95012 1998-04-05  Jim Meyering  <meyering@ascend.com>
95013
95014         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95015         (jm_PREREQ): Use it here.
95016
95017 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95018
95019         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95020         in acconfig.h.
95021
95022 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95023
95024         * m4/prereq.m4: New file.
95025         * m4/error.m4: New file.
95026         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95027
95028 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95029
95030         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95031         cache-check for the same variable -- that defeated the purpose of
95032         the test; the test program was never run.  This was a problem only
95033         on systems with losing getline functions -- HP-UX 10.20 is one.
95034         Reported by Bjorn Helgaas.
95035
95036 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95037
95038         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95039
95040 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95041
95042         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95043
95044         * m4/const.m4: New file.  Use an initializer in this declaration
95045         typedef int charset[2]; const charset x;
95046         Reported by Bob Glickstein.
95047
95048 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95049
95050         * m4/chown.m4: Fix reversed types on -1 args to chown.
95051         From Kaveh Ghazi.
95052
95053 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95054
95055         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95056         Add lseek and memchr.
95057
95058         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95059         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95060         have a 20-character limit on names.
95061
95062 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95063
95064         * m4/inttypes_h.m4: New file.
95065         * m4/uintmax_t.m4: New file.
95066         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95067
95068
95069         -----
95070
95071         Local Variables:
95072         coding: utf-8
95073         End:
95074
95075         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95076
95077         Copying and distribution of this file, with or without
95078         modification, are permitted provided the copyright notice
95079         and this notice are preserved.